unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#65755] [PATCH 0/3] Mark some packages as not supported on the hurd.
@ 2023-09-05 11:17 Christopher Baines
  2023-09-05 11:35 ` [bug#65755] [PATCH 1/3] gnu: musl-cross: Remove i586-gnu from supported-systems Christopher Baines
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Christopher Baines @ 2023-09-05 11:17 UTC (permalink / raw)
  To: 65755

[-- Attachment #1: Type: text/plain, Size: 472 bytes --]

Mark some packages as not supported on the hurd.

Christopher Baines (3):
  gnu: musl-cross: Remove i586-gnu from supported-systems.
  gnu: linux-libre-headers: Remove i586-gnu from supported-systems.
  gnu: skalibs: Remove i586-gnu from %supported-systems.

 gnu/packages/heads.scm   | 1 +
 gnu/packages/linux.scm   | 1 +
 gnu/packages/skarnet.scm | 1 +
 3 files changed, 3 insertions(+)


base-commit: e7b6cd86ef856b52817428227f9c3d3297312262
-- 
2.41.0

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 987 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [bug#65755] [PATCH 1/3] gnu: musl-cross: Remove i586-gnu from supported-systems.
  2023-09-05 11:17 [bug#65755] [PATCH 0/3] Mark some packages as not supported on the hurd Christopher Baines
@ 2023-09-05 11:35 ` Christopher Baines
  2023-09-05 11:35   ` [bug#65755] [PATCH 2/3] gnu: linux-libre-headers: " Christopher Baines
  2023-09-05 11:35   ` [bug#65755] [PATCH 3/3] gnu: skalibs: Remove i586-gnu from %supported-systems Christopher Baines
  2023-09-12  7:21 ` [bug#65755] [PATCH 0/3] Mark some packages as not supported on the hurd Ludovic Courtès
  2023-09-15 18:32 ` [bug#65755] This broke make check on master Janneke Nieuwenhuizen
  2 siblings, 2 replies; 10+ messages in thread
From: Christopher Baines @ 2023-09-05 11:35 UTC (permalink / raw)
  To: 65755

As I don't think musl supports the Hurd.

* gnu/packages/heads.scm (musl-cross)[supported-systems]: Remove i586-gnu.
---
 gnu/packages/heads.scm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gnu/packages/heads.scm b/gnu/packages/heads.scm
index 212849f2a9..268d4d0198 100644
--- a/gnu/packages/heads.scm
+++ b/gnu/packages/heads.scm
@@ -158,6 +158,7 @@ (define-public musl-cross
            (uri "http://www.musl-libc.org/releases/musl-1.1.24.tar.gz")
            (sha256
             (base32 "18r2a00k82hz0mqdvgm7crzc7305l36109c0j9yjmkxj2alcjw0k"))))))
+    (supported-systems (delete "i586-gnu" %supported-systems))
     (home-page "https://github.com/osresearch/heads")
     (synopsis "Musl-cross gcc 5 toolchain")
     (description "Musl-cross toolchain: binutils, gcc 5 and musl.")

base-commit: e7b6cd86ef856b52817428227f9c3d3297312262
-- 
2.41.0





^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [bug#65755] [PATCH 2/3] gnu: linux-libre-headers: Remove i586-gnu from supported-systems.
  2023-09-05 11:35 ` [bug#65755] [PATCH 1/3] gnu: musl-cross: Remove i586-gnu from supported-systems Christopher Baines
@ 2023-09-05 11:35   ` Christopher Baines
  2023-09-05 11:35   ` [bug#65755] [PATCH 3/3] gnu: skalibs: Remove i586-gnu from %supported-systems Christopher Baines
  1 sibling, 0 replies; 10+ messages in thread
From: Christopher Baines @ 2023-09-05 11:35 UTC (permalink / raw)
  To: 65755; +Cc: Leo Famulari, Tobias Geerinckx-Rice

As I don't think attempting to build for the Hurd is useful.

* gnu/packages/heads.scm (make-linux-libre-headers*): Remove i586-gnu from
supported-systems.
---
 gnu/packages/linux.scm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 9142f6edf1..9e28eb44ad 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -737,6 +737,7 @@ (define (make-linux-libre-headers* version gnu-revision source)
                    (format p "~a-default~%" ,version)))))))
        #:allowed-references ()
        #:tests? #f))
+    (supported-systems (delete "i586-gnu" %supported-systems))
     (home-page "https://www.gnu.org/software/linux-libre/")
     (synopsis "GNU Linux-Libre kernel headers")
     (description "Headers of the Linux-Libre kernel.")
-- 
2.41.0





^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [bug#65755] [PATCH 3/3] gnu: skalibs: Remove i586-gnu from %supported-systems.
  2023-09-05 11:35 ` [bug#65755] [PATCH 1/3] gnu: musl-cross: Remove i586-gnu from supported-systems Christopher Baines
  2023-09-05 11:35   ` [bug#65755] [PATCH 2/3] gnu: linux-libre-headers: " Christopher Baines
@ 2023-09-05 11:35   ` Christopher Baines
  1 sibling, 0 replies; 10+ messages in thread
From: Christopher Baines @ 2023-09-05 11:35 UTC (permalink / raw)
  To: 65755

* gnu/packages/skarnet.scm (skalibs)[supported-systems]: Remove i586-gnu.
---
 gnu/packages/skarnet.scm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gnu/packages/skarnet.scm b/gnu/packages/skarnet.scm
index 2c7b0f9c23..6781e2eb58 100644
--- a/gnu/packages/skarnet.scm
+++ b/gnu/packages/skarnet.scm
@@ -49,6 +49,7 @@ (define-public skalibs
                       (substitute* "Makefile"
                         (("\\$\\(wildcard src/lib\\*/\\*.c\\)")
                          "$(sort $(wildcard src/lib*/*.c))")))))))
+    (supported-systems (delete "i586-gnu" %supported-systems))
     (home-page "https://skarnet.org/software/skalibs/")
     (synopsis "Platform abstraction libraries for skarnet.org software")
     (description
-- 
2.41.0





^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [bug#65755] [PATCH 0/3] Mark some packages as not supported on the hurd.
  2023-09-05 11:17 [bug#65755] [PATCH 0/3] Mark some packages as not supported on the hurd Christopher Baines
  2023-09-05 11:35 ` [bug#65755] [PATCH 1/3] gnu: musl-cross: Remove i586-gnu from supported-systems Christopher Baines
@ 2023-09-12  7:21 ` Ludovic Courtès
  2023-09-12  7:46   ` bug#65755: " Christopher Baines
  2023-09-15 18:32 ` [bug#65755] This broke make check on master Janneke Nieuwenhuizen
  2 siblings, 1 reply; 10+ messages in thread
From: Ludovic Courtès @ 2023-09-12  7:21 UTC (permalink / raw)
  To: Christopher Baines; +Cc: 65755

Hi,

Christopher Baines <mail@cbaines.net> skribis:

>   gnu: musl-cross: Remove i586-gnu from supported-systems.
>   gnu: linux-libre-headers: Remove i586-gnu from supported-systems.
>   gnu: skalibs: Remove i586-gnu from %supported-systems.

LGTM!

Ludo’.




^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#65755: [PATCH 0/3] Mark some packages as not supported on the hurd.
  2023-09-12  7:21 ` [bug#65755] [PATCH 0/3] Mark some packages as not supported on the hurd Ludovic Courtès
@ 2023-09-12  7:46   ` Christopher Baines
  0 siblings, 0 replies; 10+ messages in thread
From: Christopher Baines @ 2023-09-12  7:46 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 65755-done

[-- Attachment #1: Type: text/plain, Size: 419 bytes --]


Ludovic Courtès <ludo@gnu.org> writes:

> Hi,
>
> Christopher Baines <mail@cbaines.net> skribis:
>
>>   gnu: musl-cross: Remove i586-gnu from supported-systems.
>>   gnu: linux-libre-headers: Remove i586-gnu from supported-systems.
>>   gnu: skalibs: Remove i586-gnu from %supported-systems.
>
> LGTM!

Great, I've pushed this to master as
53f510dad6cc1b55b4abdbbfd55e507a9463a80f.

Thanks,

Chris

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 987 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [bug#65755] This broke make check on master
  2023-09-05 11:17 [bug#65755] [PATCH 0/3] Mark some packages as not supported on the hurd Christopher Baines
  2023-09-05 11:35 ` [bug#65755] [PATCH 1/3] gnu: musl-cross: Remove i586-gnu from supported-systems Christopher Baines
  2023-09-12  7:21 ` [bug#65755] [PATCH 0/3] Mark some packages as not supported on the hurd Ludovic Courtès
@ 2023-09-15 18:32 ` Janneke Nieuwenhuizen
  2023-09-15 18:56   ` Christopher Baines
  2 siblings, 1 reply; 10+ messages in thread
From: Janneke Nieuwenhuizen @ 2023-09-15 18:32 UTC (permalink / raw)
  To: 65755; +Cc: Marius Bakke, Christopher Baines, Ludovic Courtès

Hi,

Marius found that building the updated "guix" package on the
just-rebased hurd-team branch failed.

It turns out that the packages.scm test on master fails notably:
package-transitive-supported-systems, implicit inputs

--8<---------------cut here---------------start------------->8---
test-name: package-transitive-supported-systems, implicit inputs
location: /home/janneke/src/guix/master/tests/packages.scm:496
source:
+ (test-equal
+   "package-transitive-supported-systems, implicit inputs"
+   %supported-systems
+   (let ((p (dummy-package
+              "foo"
+              (build-system gnu-build-system)
+              (supported-systems
+                `("does-not-exist" "foobar" ,@%supported-systems)))))
+     (parameterize
+       ((%current-system "armhf-linux"))
+       (package-transitive-supported-systems p))))
expected-value: ("x86_64-linux" "mips64el-linux" "aarch64-linux" "powerpc64le-linux" "riscv64-linux" "i686-linux" "armhf-linux" "i586-gnu" "powerpc-linux")
actual-value: ("x86_64-linux" "mips64el-linux" "aarch64-linux" "powerpc64le-linux" "riscv64-linux" "i686-linux" "armhf-linux" "powerpc-linux")
result: FAIL
--8<---------------cut here---------------end--------------->8---

The culprit is this commit

    0e08ad7f19d5b29a4883468552b5d213a7bdb66e
    gnu: linux-libre-headers: Remove i586-gnu from supported-systems.

Greetings,
Janneke

-- 
Janneke Nieuwenhuizen <janneke@gnu.org>  | GNU LilyPond https://LilyPond.org
Freelance IT https://www.JoyOfSource.com | Avatar® https://AvatarAcademy.com




^ permalink raw reply	[flat|nested] 10+ messages in thread

* [bug#65755] This broke make check on master
  2023-09-15 18:32 ` [bug#65755] This broke make check on master Janneke Nieuwenhuizen
@ 2023-09-15 18:56   ` Christopher Baines
  2023-09-15 19:43     ` [bug#65755] [PATCH 0/3] Mark some packages as not supported on the hurd Ludovic Courtès
  0 siblings, 1 reply; 10+ messages in thread
From: Christopher Baines @ 2023-09-15 18:56 UTC (permalink / raw)
  To: Janneke Nieuwenhuizen; +Cc: Marius Bakke, 65755, Ludovic Courtès

[-- Attachment #1: Type: text/plain, Size: 2263 bytes --]


Janneke Nieuwenhuizen <janneke@gnu.org> writes:

> Marius found that building the updated "guix" package on the
> just-rebased hurd-team branch failed.
>
> It turns out that the packages.scm test on master fails notably:
> package-transitive-supported-systems, implicit inputs
>
> test-name: package-transitive-supported-systems, implicit inputs
> location: /home/janneke/src/guix/master/tests/packages.scm:496
> source:
> + (test-equal
> +   "package-transitive-supported-systems, implicit inputs"
> +   %supported-systems
> +   (let ((p (dummy-package
> +              "foo"
> +              (build-system gnu-build-system)
> +              (supported-systems
> +                `("does-not-exist" "foobar" ,@%supported-systems)))))
> +     (parameterize
> +       ((%current-system "armhf-linux"))
> +       (package-transitive-supported-systems p))))
> expected-value: ("x86_64-linux" "mips64el-linux" "aarch64-linux" "powerpc64le-linux" "riscv64-linux" "i686-linux" "armhf-linux" "i586-gnu" "powerpc-linux")
> actual-value: ("x86_64-linux" "mips64el-linux" "aarch64-linux" "powerpc64le-linux" "riscv64-linux" "i686-linux" "armhf-linux" "powerpc-linux")
> result: FAIL

I would say interesting, but I've struggled with the supported system
stuff for years. The data service does use
package-transitive-supported-systems, but in a very weird way. To check
if a package supports a system, you call
package-transitive-supported-systems with the package and system (as the
second optional argument), then check if that system is present in the
returned list.

This is to say that in my uninformed opinion, the presence of the system
which you pass to package-transitive-supported-systems in the returned
list seems to mean something, but I wouldn't be able to say anything
else about the returned value.

I don't think there's anything wrong with adjusting the expectation to
have the test pass, but to me the longer term thing to do is look at
changing the code around supported systems.

On not breaking tests when making changes though, I don't generally run
make check unless I'm changing code in guix/ but it would be nice to
start QA doing that for every patch series. We should also probably try
to avoid tests that break when making changes to packages.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 987 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [bug#65755] [PATCH 0/3] Mark some packages as not supported on the hurd.
  2023-09-15 18:56   ` Christopher Baines
@ 2023-09-15 19:43     ` Ludovic Courtès
  2023-09-15 20:06       ` Janneke Nieuwenhuizen
  0 siblings, 1 reply; 10+ messages in thread
From: Ludovic Courtès @ 2023-09-15 19:43 UTC (permalink / raw)
  To: Christopher Baines; +Cc: Marius Bakke, 65755, Janneke Nieuwenhuizen

Christopher Baines <mail@cbaines.net> skribis:

> Janneke Nieuwenhuizen <janneke@gnu.org> writes:
>
>> Marius found that building the updated "guix" package on the
>> just-rebased hurd-team branch failed.
>>
>> It turns out that the packages.scm test on master fails notably:
>> package-transitive-supported-systems, implicit inputs
>>
>> test-name: package-transitive-supported-systems, implicit inputs
>> location: /home/janneke/src/guix/master/tests/packages.scm:496
>> source:
>> + (test-equal
>> +   "package-transitive-supported-systems, implicit inputs"
>> +   %supported-systems
>> +   (let ((p (dummy-package
>> +              "foo"
>> +              (build-system gnu-build-system)
>> +              (supported-systems
>> +                `("does-not-exist" "foobar" ,@%supported-systems)))))
>> +     (parameterize
>> +       ((%current-system "armhf-linux"))
>> +       (package-transitive-supported-systems p))))
>> expected-value: ("x86_64-linux" "mips64el-linux" "aarch64-linux" "powerpc64le-linux" "riscv64-linux" "i686-linux" "armhf-linux" "i586-gnu" "powerpc-linux")
>> actual-value: ("x86_64-linux" "mips64el-linux" "aarch64-linux" "powerpc64le-linux" "riscv64-linux" "i686-linux" "armhf-linux" "powerpc-linux")
>> result: FAIL

[...]

> I don't think there's anything wrong with adjusting the expectation to
> have the test pass, but to me the longer term thing to do is look at
> changing the code around supported systems.

Agreed, we need to change the expected result to:

  (filter target-linux? %supported-systems)

This is expected given that ‘%current-system’ is set to *-linux.

> On not breaking tests when making changes though, I don't generally run
> make check unless I'm changing code in guix/ but it would be nice to
> start QA doing that for every patch series.

Yes!

> We should also probably try to avoid tests that break when making
> changes to packages.

We try to avoid it but there are a few cases where we test real packages
that we hope rarely change.

Thanks,
Ludo’.




^ permalink raw reply	[flat|nested] 10+ messages in thread

* [bug#65755] [PATCH 0/3] Mark some packages as not supported on the hurd.
  2023-09-15 19:43     ` [bug#65755] [PATCH 0/3] Mark some packages as not supported on the hurd Ludovic Courtès
@ 2023-09-15 20:06       ` Janneke Nieuwenhuizen
  0 siblings, 0 replies; 10+ messages in thread
From: Janneke Nieuwenhuizen @ 2023-09-15 20:06 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 65755, Marius Bakke, Christopher Baines

Ludovic Courtès writes:

Hi,

> Christopher Baines <mail@cbaines.net> skribis:
>
>> Janneke Nieuwenhuizen <janneke@gnu.org> writes:
>>
>>> Marius found that building the updated "guix" package on the
>>> just-rebased hurd-team branch failed.
[..]

>> I don't think there's anything wrong with adjusting the expectation to
>> have the test pass, but to me the longer term thing to do is look at
>> changing the code around supported systems.
>
> Agreed, we need to change the expected result to:
>
>   (filter target-linux? %supported-systems)
>
> This is expected given that ‘%current-system’ is set to *-linux.

That makes sense (and fixes it :)

Pushed to master as edca2863bcb52388fe454e14136264a4f7490273

Thanks!
Janneke

-- 
Janneke Nieuwenhuizen <janneke@gnu.org>  | GNU LilyPond https://LilyPond.org
Freelance IT https://www.JoyOfSource.com | Avatar® https://AvatarAcademy.com




^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2023-09-15 20:07 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-05 11:17 [bug#65755] [PATCH 0/3] Mark some packages as not supported on the hurd Christopher Baines
2023-09-05 11:35 ` [bug#65755] [PATCH 1/3] gnu: musl-cross: Remove i586-gnu from supported-systems Christopher Baines
2023-09-05 11:35   ` [bug#65755] [PATCH 2/3] gnu: linux-libre-headers: " Christopher Baines
2023-09-05 11:35   ` [bug#65755] [PATCH 3/3] gnu: skalibs: Remove i586-gnu from %supported-systems Christopher Baines
2023-09-12  7:21 ` [bug#65755] [PATCH 0/3] Mark some packages as not supported on the hurd Ludovic Courtès
2023-09-12  7:46   ` bug#65755: " Christopher Baines
2023-09-15 18:32 ` [bug#65755] This broke make check on master Janneke Nieuwenhuizen
2023-09-15 18:56   ` Christopher Baines
2023-09-15 19:43     ` [bug#65755] [PATCH 0/3] Mark some packages as not supported on the hurd Ludovic Courtès
2023-09-15 20:06       ` Janneke Nieuwenhuizen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).