From: Efraim Flashner <efraim@flashner.co.il>
To: Greg Hogan <code@greghogan.com>
Cc: Guix Help <help-guix@gnu.org>
Subject: Re: %current-system and --system
Date: Tue, 7 Mar 2023 14:08:32 +0200 [thread overview]
Message-ID: <ZAcpQF3OqteDZFlE@3900XT> (raw)
In-Reply-To: <CA+3U0ZmGS8==Kk7=QNLFQz_y6MsNCxDkNGvFhO7PtOajcTdzow@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1686 bytes --]
On Fri, Mar 03, 2023 at 10:37:44AM -0500, Greg Hogan wrote:
> Hi Guix,
>
> From my x86_64 machine I am executing offload builds targeting an
> aarch64 machine:
>
> $ guix build --system=aarch64-linux --manifest=manifest.scm
>
> Several packages do not build for aarch64 and need to be filtered out.
> %current-target-system is #f as these are offload builds not cross
> compilation, and %current-system is reported as "x86_64-linux". How
> can I access the current "build system"?
>
> If it helps, the manifest is defined at
> https://github.com/greghogan/guix-manifest
>
> Thanks,
> Greg
Here's a (reduced) snippet I have from my home-config (and previously in
my manifest file):
(define %my-package-list
(list "git"
"git:send-email"
"git-annex")
(define package-list
(map (compose list specification->package+output)
(filter (lambda (pkg)
(member (or (%current-system)
(%current-target-system))
(package-transitive-supported-systems
(specification->package+output pkg))))
%my-package-list)))
(%current-target-system) doesn't currently work with guix-home but I
figured I'd have it ready. package-transitive-supported-systems makes it
so that git-annex, which shows as supported on aarch64-linux, isn't
added because ghc, one of its dependencies, isn't supported on
aarch64-linux.
--
Efraim Flashner <efraim@flashner.co.il> אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2023-03-07 12:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-03 15:37 %current-system and --system Greg Hogan
2023-03-07 12:08 ` Efraim Flashner [this message]
2023-03-07 16:09 ` 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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZAcpQF3OqteDZFlE@3900XT \
--to=efraim@flashner.co.il \
--cc=code@greghogan.com \
--cc=help-guix@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 external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.