From: Christopher Baines <mail@cbaines.net>
To: 64762@debbugs.gnu.org
Subject: bug#64762: Guix sometimes doesn't support most packages for i686-linux and armhf-linux
Date: Fri, 21 Jul 2023 12:42:43 +0100 [thread overview]
Message-ID: <87o7k5wkox.fsf@cbaines.net> (raw)
In-Reply-To: <87sf9hwrk8.fsf@cbaines.net>
[-- Attachment #1: Type: text/plain, Size: 2078 bytes --]
Christopher Baines <mail@cbaines.net> writes:
> To confirm that this is an issue with the supported systems as reported
> by Guix, I had the data service print out the transitive supported
> systems for the guix package:
>
> debug: Starting getting derivations for (i686-linux . #f)
> looking at guix package (supported systems: (), system supported: #f, target supported: #t
> debug: Finished getting derivations for (i686-linux . #f), took 12 seconds
>
> debug: Starting getting derivations for (armhf-linux . #f)
> looking at guix package (supported systems: (), system supported: #f, target supported: #t
> debug: Finished getting derivations for (armhf-linux . #f), took 41 seconds
I realised that this could be non-deterministic because the order in
which the data service processes derivations is non-deterministic, from
the order of the systems returned by (guix platforms).
That led me to a reproducer:
(use-modules (gnu packages) (guix packages) (gnu packages package-management))
(fold-packages (lambda (pkg result)
(package-transitive-supported-systems pkg "i586-gnu")
#f)
#f)
(peek "guix package supported systems" (package-transitive-supported-systems guix "i686-linux"))
If you look at the %final-inputs packages, there's an issue with libc:
(use-modules (ice-9 match)
(gnu packages) (guix packages) (gnu packages package-management)
(gnu packages commencement))
(fold-packages (lambda (pkg result)
(package-transitive-supported-systems pkg "i586-gnu")
#f)
#f)
(for-each
(match-lambda
((name pkg rest ...)
(peek name
(package-transitive-supported-systems
pkg
"i686-linux"))))
(%final-inputs "i686-linux"))
I think this could be because %final-inputs is cached based on system,
but doesn't seem to use system. Setting %current-system to system seems
to help, so I've sent a patch for that [1].
1: https://issues.guix.gnu.org/64763
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 987 bytes --]
next prev parent reply other threads:[~2023-07-21 11:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-21 9:02 bug#64762: Guix sometimes doesn't support most packages for i686-linux and armhf-linux Christopher Baines
2023-07-21 11:42 ` Christopher Baines [this message]
2023-08-21 14:55 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87o7k5wkox.fsf@cbaines.net \
--to=mail@cbaines.net \
--cc=64762@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).