From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id SBu1AGspB2SBAgEASxT56A (envelope-from ) for ; Tue, 07 Mar 2023 13:09:15 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id IBRyO2opB2SvOgAAG6o9tA (envelope-from ) for ; Tue, 07 Mar 2023 13:09:14 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 96E36291AD for ; Tue, 7 Mar 2023 13:09:14 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pZW7b-0001RL-8o; Tue, 07 Mar 2023 07:08:47 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pZW7S-0001NN-N4 for help-guix@gnu.org; Tue, 07 Mar 2023 07:08:39 -0500 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pZW7Q-000624-Tp for help-guix@gnu.org; Tue, 07 Mar 2023 07:08:38 -0500 Received: by mail-wr1-x42a.google.com with SMTP id r18so11889155wrx.1 for ; Tue, 07 Mar 2023 04:08:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678190914; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:sender:from:to :cc:subject:date:message-id:reply-to; bh=rNY5R4/35J9OCuS+qJWnVxfVvmqcGIhEKzsOwjiiy1E=; b=KMSsEUPDgRpZAhyUxiccgLHPtsBZg6c01nLhqjupFgTjmA5QMOqjBC8qwwD2meJv7e L1E8P44vm5I+/mhz5oKbWFeJDalhbGJg1+DNUVxYTcjv8RsWdUUa+5YFE7ty7m/84eWc PtB8iSQV0gN0zVwrqVYlEiHbdPf10taoyQ0vMHmlVgFrKOGh0iiFYNhYoKc58FBfTPRU iRfQ1t9kZa68ljciG8LWu7ISjw9Bonyovpvn2tLh1lJ6xb+Y4xaD4sPWBznpYJbZ/kGg +ekLtqOpjTeHFY0cHBCFPqfuo0kDcjQHSzMNfKlHHpcPhSlYy6SLRcy8QTdI7DIkGafv aIpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678190914; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:sender :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=rNY5R4/35J9OCuS+qJWnVxfVvmqcGIhEKzsOwjiiy1E=; b=zUoknrVLXT9sh4Nuqys1qzBbKtHSZPeAGW4cD986lqZ4vKVOl2ZHQxECg4WATbQlPs baMvDjUd3WE3lG9sp3Lmm1CoVwO1QpozTVL7TmY8v+nZuqbE+jxmUzmxeabP0KV2+Vae 2nLuVCI86ytbKJRKAn6rt31gZC75SvqKlfs2tW85zdSJHo4KP3UEayBxUjCQ4N1Bsj6i S1omWT3TVWzlQwOcHaQXD9oERQBevINkup4Y8wnwiWrc43VEAYAuTe+GcRpUzc18XRtj lNFELCLoMpAKwgRra606/A6O3DyVNEAM+OtKQSHGW4AWMEmmfCy6bTbBfBz/U5KEHo3o Fulg== X-Gm-Message-State: AO0yUKU7n6xjW+yRhmYNcI7VTz/3DCBJFIeZrCPMgVewcX8LFS1ZZtpl szrIeVXP9cYl8cI3OUiJmJ0= X-Google-Smtp-Source: AK7set9ipeNBV6N/8+KcFEGQ8oMmjOWA1iRqFT1wc/RrEJDfMJuTZbIQcN+kzBBnQcRSBZkWkFJHyg== X-Received: by 2002:adf:fe10:0:b0:2c8:37a:59b8 with SMTP id n16-20020adffe10000000b002c8037a59b8mr8646694wrr.49.1678190914237; Tue, 07 Mar 2023 04:08:34 -0800 (PST) Received: from localhost ([2a02:ed3:910:9200:b62e:99ff:fef0:7bc0]) by smtp.gmail.com with ESMTPSA id j4-20020adfff84000000b002cda9aa1dc1sm12468586wrr.111.2023.03.07.04.08.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Mar 2023 04:08:33 -0800 (PST) Date: Tue, 7 Mar 2023 14:08:32 +0200 From: Efraim Flashner To: Greg Hogan Cc: Guix Help Subject: Re: %current-system and --system Message-ID: Mail-Followup-To: Greg Hogan , Guix Help References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="WtVXniFU9rp4zRHO" Content-Disposition: inline In-Reply-To: X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Received-SPF: pass client-ip=2a00:1450:4864:20::42a; envelope-from=efraim.flashner@gmail.com; helo=mail-wr1-x42a.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1678190954; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=rNY5R4/35J9OCuS+qJWnVxfVvmqcGIhEKzsOwjiiy1E=; b=CNFn4ksr88DzPJk8mo6vPiL02rtyTjC2811vdgggRzae+vXDLgX6w3nr/bQ5O4tdTkJ/bg ieWHqo4CqjRCz94OqghUswGpgSnnLCdnoSUvHZhE0OeX2LdQf/7G+H3lFMAHEtcMrmQ8As of2PLmhg6NfRr/77fu/h0ZDuPLVmpcgOB7XBsqVPJCxfTilpzBtpyN9w4EkBCaQhPwv8ci COh81HLwsOfqb8uJmuHEo19EOdJ7Eeb5gSGQaogMu0HnKkMsSOlBcKJj0+geWf5qQ+UbCQ IGEU8mIGIfWI0JAVGS2Tthv16SN+B5MG9q9JzthcRgnF399XLMI8SOnnzDIk6g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=KMSsEUPD; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1678190954; a=rsa-sha256; cv=none; b=HJo0d87yx5yxIRr8gNkv2nqO8ci33o4H6JLHl0++piYhaSyYHazFfgCPDfoVJsqiyndXnR u/9/6b9Yh7V1AgZDK0FdXYE3wgux8b96R8q4n75U1bvA0msFrmBxbYlMGSPVqbKaZDJquO HE2+Lg6DSZfVqHe6cG0pPWYd6u96lErDgDU9yC2BvWkBeZzDop8RDTXIyz6gB78vqeUvDa VNrkCm9BTxp2ffFVBY+m2yivGbn41ONvGsiItcd36WOxC330bVEVuvApA/b0ongy6LxGyy +OYeM7q5a/ENIaJBNxTabwxlOseaNmZrMDCEWcmkEiFqHUYx2FBBlJOXKs3K4A== Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=KMSsEUPD; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none X-Migadu-Spam-Score: 0.89 X-Spam-Score: 0.89 X-Migadu-Queue-Id: 96E36291AD X-Migadu-Scanner: scn1.migadu.com X-TUID: 1MTS/4acOQ5E --WtVXniFU9rp4zRHO Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Mar 03, 2023 at 10:37:44AM -0500, Greg Hogan wrote: > Hi Guix, >=20 > From my x86_64 machine I am executing offload builds targeting an > aarch64 machine: >=20 > $ guix build --system=3Daarch64-linux --manifest=3Dmanifest.scm >=20 > 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"? >=20 > If it helps, the manifest is defined at > https://github.com/greghogan/guix-manifest >=20 > 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. --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --WtVXniFU9rp4zRHO Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmQHKTkACgkQQarn3Mo9 g1H4aQ//V7xUThEaJBAjGHqm5v0FiGIJdmRabLNpmWPGOyeNNf8eZCRiAEWvSbbv AUjVMokJZT2PTTlipx6sYbr0aLUMOMsfQsHzJSJD6tqBzrG9q6hoYFnlrOP80EFK JUhCC9B6zFsP7k403aVBvCtWxqS9d2TVudHtyLa2dWc1sLlLyc47ZwVFpoOB5zCs ZuwBosFNOl52ESR1bsKIdF55TiKFDWbZh7dQ9mX1Q0CFbfXIuBI2UGxs2tkpPPcu bKKBBDagc5Dz6i11hFCcwwBX9UbWKdsBNChf085TZc9vEWfbVgL6meAYs+rk/6qD 2VzySPzxRh5CTxLlRUN/uY1aHbu7IBbaP8yE3bfuNoeDvJBugUJBUl7+wmd7oa51 N1iJLONs8Hkq4y/2NNEQ+Dc7PXcUOnZAOSHLGzVtXeafauCQuQwaytbgJPBWp+mt r1nu59VtGG4hpHHINY/zvujdArrk5fXM+yWArBQoGW6YyfiwpsdheXxzpSSo0i3i 275HCbqLJekw5YaOH0UG/y7yUqmANlDTRkfF1lI/ZWZXg9pbc2QUO+gauXvrP+Uk VormjtAscvJIX7mpBu9t5XO7SgZf3ky0DpI7D/Y775sBgCMePEycQHmv7ODK5PGs RCmAyNtWasR8EnAiGuRIJv8LHjst7+kWnmZ8z1tv/Z0ynPhqp4o= =i9zP -----END PGP SIGNATURE----- --WtVXniFU9rp4zRHO--