From unknown Mon Aug 18 00:07:23 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#57314 <57314@debbugs.gnu.org> To: bug#57314 <57314@debbugs.gnu.org> Subject: Status: [PATCH] guix system: Use standard cross and native build options. Reply-To: bug#57314 <57314@debbugs.gnu.org> Date: Mon, 18 Aug 2025 07:07:23 +0000 retitle 57314 [PATCH] guix system: Use standard cross and native build opti= ons. reassign 57314 guix-patches submitter 57314 Thiago Jung Bauermann severity 57314 normal tag 57314 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 21 02:11:59 2022 Received: (at submit) by debbugs.gnu.org; 21 Aug 2022 06:11:59 +0000 Received: from localhost ([127.0.0.1]:33695 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oPeBj-00080x-7m for submit@debbugs.gnu.org; Sun, 21 Aug 2022 02:11:59 -0400 Received: from lists.gnu.org ([209.51.188.17]:60924) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oPeBg-00080p-ML for submit@debbugs.gnu.org; Sun, 21 Aug 2022 02:11:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41432) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oPeBX-0003T6-Hz for guix-patches@gnu.org; Sun, 21 Aug 2022 02:11:49 -0400 Received: from mx.kolabnow.com ([212.103.80.153]:45796) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oPeBR-0005i1-Q6 for guix-patches@gnu.org; Sun, 21 Aug 2022 02:11:46 -0400 Received: from localhost (unknown [127.0.0.1]) by mx.kolabnow.com (Postfix) with ESMTP id F3CBE41883 for ; Sun, 21 Aug 2022 08:11:34 +0200 (CEST) Authentication-Results: ext-mx-out003.mykolab.com (amavisd-new); dkim=pass (4096-bit key) reason="pass (just generated, assumed good)" header.d=kolabnow.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h= content-transfer-encoding:content-type:content-type:mime-version :message-id:date:date:subject:subject:from:from:received :received:received; s=dkim20160331; t=1661062294; x=1662876695; bh=N+HMLU1ZjGuk7PZV86aEjW7sHKOXvoPZBajKpYnZDeM=; b=EbS9iJHijy7n rUuAOD1ymQRqmPuxk+JPtf/cmEajsqFBhymhNItIRR3ffAidcbF8VdZYHKgvoAcM 3eEY2D/q4vDnUGuCU4/7yvxPM591EhL7Z116MrCHSl/FwiEE5f1XmR6qrukqZ7T4 vIYU+1/+WAsy19F55iUnTeStPrQcJ0Oc0VBAEpaJTO6xXjQZrl7C04D0pkEAnXii Qc5a1euUasy8RpgW1ae/PR8RC71iD/5E4FSlO201Ca6K6hLxLG//MZ21gT/N5VD0 gG7vGwJMuYrczUmObUq9iaG/P1VwR2okZTmAa+C/FRZ0Eq2wSCtCC7wuxOhjOPaH Yj4bV8z8Ps1nkvf7iKRhkEe7mIJFg2OOOUz8/6gnXTyUhaGLQZi1lliqVfYWx2c4 wDgajhAUNDhjwHtUfqmNXKgHqfRYrQ74LSU4eDKAQFgljJUNHuhM/vmSh3xVrj5w XzsYticSGq/3z0H3sazhhrXAm9zxyDMfbHBtwoO97PUnC0PuYooQzFxQ58rMieiY PkZytVg7HDZNY+Tr3UZ9Ju7CRAfb1kYuBY0agXmM5V3c8WMddwvV9A+ObbxoYQq7 mXwuX6IYtcHrXWVzhAmvoG56AJO44o8+kmt2D9dlhs1DusrYUjI0fshOPHCctV0U tU28VspcLD9fHJ2lOH7KqMYotIiicK0= X-Virus-Scanned: amavisd-new at mykolab.com X-Spam-Flag: NO X-Spam-Score: -1.9 X-Spam-Level: X-Spam-Status: No, score=-1.9 tagged_above=-10 required=5 tests=[BAYES_00=-1.9] autolearn=ham autolearn_force=no Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out003.mykolab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id b2BCozpD_Rhc for ; Sun, 21 Aug 2022 08:11:34 +0200 (CEST) Received: from int-mx001.mykolab.com (unknown [10.9.13.1]) by mx.kolabnow.com (Postfix) with ESMTPS id B86A440F97 for ; Sun, 21 Aug 2022 08:11:33 +0200 (CEST) Received: from ext-subm003.mykolab.com (unknown [10.9.6.3]) by int-mx001.mykolab.com (Postfix) with ESMTPS id 80622156; Sun, 21 Aug 2022 08:11:33 +0200 (CEST) From: Thiago Jung Bauermann To: guix-patches@gnu.org Subject: [PATCH] guix system: Use standard cross and native build options. Date: Sun, 21 Aug 2022 03:11:24 -0300 Message-Id: <20220821061125.47120-1-bauermann@kolabnow.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=212.103.80.153; envelope-from=bauermann@kolabnow.com; helo=mx.kolabnow.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit Cc: Thiago Jung Bauermann X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) This change prevents guix system from erroring out with an ugly backtrace when it's passed an invalid value to the “--system” or “--target” option. It also adds the “--list-systems” and “--list-targets” options. The manual section about guix system doesn't mention the “--target” option, so add it there. * guix/scripts/system (show-help): Call show-cross-build-options-help and show-native-build-options-help. (%options): Remove own implementation of “system” and “target” options and use the ones in %standard-cross-build-options and %standard-native-build-options. * doc/guix.texi (Invoking guix system): Document “--target” option. --- doc/guix.texi | 5 +++++ guix/scripts/system.scm | 16 +++++++--------- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/doc/guix.texi b/doc/guix.texi index 023b48ae3507..e8f05ffdeb51 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -37533,6 +37533,11 @@ Installation Image}). Attempt to build for @var{system} instead of the host system type. This works as per @command{guix build} (@pxref{Invoking guix build}). +@item --target=@var{triplet} +Cross-build for @var{triplet}, which must be a valid GNU triplet, such +as @code{"aarch64-linux-gnu"} (@pxref{Specifying target triplets, GNU +configuration triplets,, autoconf, Autoconf}). + @item --derivation @itemx -d Return the derivation file name of the given operating system without diff --git a/guix/scripts/system.scm b/guix/scripts/system.scm index be6e83994100..443e9d3282fc 100644 --- a/guix/scripts/system.scm +++ b/guix/scripts/system.scm @@ -1046,6 +1046,10 @@ (define (show-help) for 'describe' and 'list-generations', list installed packages matching REGEXP")) (newline) + (show-cross-build-options-help) + (newline) + (show-native-build-options-help) + (newline) (display (G_ " -h, --help display this help and exit")) (display (G_ " @@ -1136,14 +1140,6 @@ (define %options (let ((level (string->number* arg))) (alist-cons 'verbosity level (alist-delete 'verbosity result))))) - (option '(#\s "system") #t #f - (lambda (opt name arg result) - (alist-cons 'system arg - (alist-delete 'system result eq?)))) - (option '("target") #t #f - (lambda (opt name arg result) - (alist-cons 'target arg - (alist-delete 'target result eq?)))) (option '(#\r "root") #t #f (lambda (opt name arg result) (alist-cons 'gc-root arg result))) @@ -1153,7 +1149,9 @@ (define %options (option '(#\I "list-installed") #f #t (lambda (opt name arg result) (alist-cons 'list-installed (or arg "") result))) - %standard-build-options)) + (append %standard-build-options + %standard-cross-build-options + %standard-native-build-options))) (define %default-options ;; Alist of default option values. From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 30 02:56:52 2022 Received: (at 57314-done) by debbugs.gnu.org; 30 Aug 2022 06:56:53 +0000 Received: from localhost ([127.0.0.1]:34547 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oSvB6-0004LU-Lp for submit@debbugs.gnu.org; Tue, 30 Aug 2022 02:56:52 -0400 Received: from eggs.gnu.org ([209.51.188.92]:47020) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oSvB4-0004LG-Pa for 57314-done@debbugs.gnu.org; Tue, 30 Aug 2022 02:56:51 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:49874) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oSvAy-0006BC-3s; Tue, 30 Aug 2022 02:56:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=UKUSHHAIqEFagTvIMpqaTEVOw8fQwF8G0b3zMkZs7cg=; b=BQlPIYSfIUOUCfJVXW1X 7pUpk3tGsUQR/n9uF5a5VE5n/rYZ9isqhLRxByqXuzF373DHr5KvEMwtVhdWQCXhAmDQQvgjehOaY WK5onCcIbcld1GNy+f3gKOmhOJrCOrdH76eSpiwjmCvX7xDkl/5Yy4T7W+Dxs/WJbfJVgqKjBMjce OY6FAGPogZKpKgv49U4GZMCYwD+IAk6eXHOehAKloc05zmQ51Lz8/hYASoPFZo49m/GxOO87jgfar PuaH3WocMRacAxpWGN5HoU6Pci/VXSFouOOJp5E/2hlTvPdo6//o0rt/60TKeEjCpYxX0H+1i2dzC uzZjjfVRZP3HHA==; Received: from [176.32.26.22] (port=33911 helo=meije) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oSvAx-0006SO-FV; Tue, 30 Aug 2022 02:56:43 -0400 From: Mathieu Othacehe To: Thiago Jung Bauermann Subject: Re: bug#57314: [PATCH] guix system: Use standard cross and native build options. References: <20220821061125.47120-1-bauermann@kolabnow.com> Date: Tue, 30 Aug 2022 08:56:40 +0200 In-Reply-To: <20220821061125.47120-1-bauermann@kolabnow.com> (Thiago Jung Bauermann's message of "Sun, 21 Aug 2022 03:11:24 -0300") Message-ID: <87zgfmqkwn.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 57314-done Cc: 57314-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hello Thiago, > This change prevents guix system from erroring out with an ugly backtrace > when it's passed an invalid value to the =E2=80=9C--system=E2=80=9D or = =E2=80=9C--target=E2=80=9D > option. It also adds the =E2=80=9C--list-systems=E2=80=9D and =E2=80=9C--= list-targets=E2=80=9D options. > > The manual section about guix system doesn't mention the =E2=80=9C--targe= t=E2=80=9D option, > so add it there. Looks nice, pushed! Thanks, Mathieu From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 31 01:16:45 2022 Received: (at 57314-done) by debbugs.gnu.org; 31 Aug 2022 05:16:45 +0000 Received: from localhost ([127.0.0.1]:37952 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oTG5l-00044A-1W for submit@debbugs.gnu.org; Wed, 31 Aug 2022 01:16:45 -0400 Received: from mx.kolabnow.com ([212.103.80.153]:47706) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oTG5j-00043y-Iy for 57314-done@debbugs.gnu.org; Wed, 31 Aug 2022 01:16:44 -0400 Received: from localhost (unknown [127.0.0.1]) by mx.kolabnow.com (Postfix) with ESMTP id 0B66D4197D; Wed, 31 Aug 2022 07:16:38 +0200 (CEST) Authentication-Results: ext-mx-out003.mykolab.com (amavisd-new); dkim=pass (4096-bit key) reason="pass (just generated, assumed good)" header.d=kolabnow.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h= content-transfer-encoding:content-type:content-type:mime-version :message-id:in-reply-to:date:date:subject:subject:from:from :references:received:received:received; s=dkim20160331; t= 1661922997; x=1663737398; bh=5IXtOTeu6qrYtJlRghakvJbbz/dK5prWeFa IjRMdlFk=; b=QvJpLNeh5sfX0LN2nP57TwjCpCkjPfnHp3MZ7NDhTC75zcKpAFc N6NnOrmvKJFwvvgEgHsot8aCgNCYNn3iJejotP5tyDM2VZcMF0lbaCxWbo4Qv4l0 BaM3N+XBzh9RCjFC6rq7Nk146xLmOMDTqznhE5hlyDu2a/f+W69whCZLc760rqoF qWtVjiNXtlTpU2tdItTOsudOZbRZa1/Uu2eSwVcKgyprMRimzWKtZUm4CfXTlje6 BPc9nF8+xsPD6tlHB2i1A2OWqKwX0SXnimg3NmpJdYaOrLzF4f5Ug6zWgM2ZHaz3 L1MA7WgbMrnPRDBn4XkMtiCtJ9fOtZ872gDoFg+MbEtICZMNS5RxxJ5xNLlr6dFr 6JWwz5SBCnETjMwieBElvj6GdMi0kU1f2bWqePqtFG1toawgiRbRDzyAnRA9calk 4FjT32oHsL91yxOplCA2UqTsI5g6r/7vV+sVYCkQv6VHae90+F4X2btyn4j2bdVI d2lfBy8FqxZPeUAfEKeMh5XJl/UbekzYUnyH6J5XyRmVKbNGbOxm5/zpvcQsF1s5 IegckXKeOglLptCwf9ylB4eHVXnsgLhZrCF1PplVl4Ait8MwGeMZEiXFqt1xIcTB uE14ofpJDNC+1TMK+VCT9sHhY786zXBV/o1eB4vs0VSrCEclZ1GotgNI= X-Virus-Scanned: amavisd-new at mykolab.com X-Spam-Flag: NO X-Spam-Score: -1.9 X-Spam-Level: X-Spam-Status: No, score=-1.9 tagged_above=-10 required=5 tests=[BAYES_00=-1.9] autolearn=ham autolearn_force=no Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out003.mykolab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jffBMD7ojLh9; Wed, 31 Aug 2022 07:16:37 +0200 (CEST) Received: from int-mx003.mykolab.com (unknown [10.9.13.3]) by mx.kolabnow.com (Postfix) with ESMTPS id DE99A408C5; Wed, 31 Aug 2022 07:16:36 +0200 (CEST) Received: from ext-subm002.mykolab.com (unknown [10.9.6.2]) by int-mx003.mykolab.com (Postfix) with ESMTPS id 99E0A2005; Wed, 31 Aug 2022 07:16:36 +0200 (CEST) References: <20220821061125.47120-1-bauermann@kolabnow.com> <87zgfmqkwn.fsf@gnu.org> From: Thiago Jung Bauermann To: Mathieu Othacehe Subject: Re: bug#57314: [PATCH] guix system: Use standard cross and native build options. Date: Wed, 31 Aug 2022 02:16:03 -0300 In-reply-to: <87zgfmqkwn.fsf@gnu.org> Message-ID: <87bks1ouvj.fsf@kolabnow.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 57314-done Cc: 57314-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello Mathieu, Mathieu Othacehe writes: > Hello Thiago, > >> This change prevents guix system from erroring out with an ugly backtrace >> when it's passed an invalid value to the =E2=80=9C--system=E2=80=9D or = =E2=80=9C--target=E2=80=9D >> option. It also adds the =E2=80=9C--list-systems=E2=80=9D and =E2=80=9C-= -list-targets=E2=80=9D options. >> >> The manual section about guix system doesn't mention the =E2=80=9C--targ= et=E2=80=9D option, >> so add it there. > > Looks nice, pushed! Thank you! --=20 Thiago From unknown Mon Aug 18 00:07:23 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 28 Sep 2022 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator