From unknown Sun Jun 22 22:45:55 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#58576] [PATCH] system: image: Define correct docker image arch when cross building Resent-From: Thiago Jung Bauermann Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 17 Oct 2022 01:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 58576 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 58576@debbugs.gnu.org Cc: Thiago Jung Bauermann X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.166597015219082 (code B ref -1); Mon, 17 Oct 2022 01:30:02 +0000 Received: (at submit) by debbugs.gnu.org; 17 Oct 2022 01:29:12 +0000 Received: from localhost ([127.0.0.1]:46611 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1okEwJ-0004xh-SM for submit@debbugs.gnu.org; Sun, 16 Oct 2022 21:29:12 -0400 Received: from lists.gnu.org ([209.51.188.17]:47230) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1okEwH-0004xa-PI for submit@debbugs.gnu.org; Sun, 16 Oct 2022 21:29:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37690) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1okEwD-0004kA-0p for guix-patches@gnu.org; Sun, 16 Oct 2022 21:29:06 -0400 Received: from mx.kolabnow.com ([212.103.80.155]:53664) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1okEw9-0000ZN-V3 for guix-patches@gnu.org; Sun, 16 Oct 2022 21:29:03 -0400 Received: from localhost (unknown [127.0.0.1]) by mx.kolabnow.com (Postfix) with ESMTP id E7A70B13A; Mon, 17 Oct 2022 03:28:59 +0200 (CEST) Authentication-Results: ext-mx-out001.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=1665970139; x=1667784540; bh=DRuz0sx+C6jH1OHEuX9jvZZIBVCA7I+S54Ry9KNWb/Q=; b=fd1FZmWlnvan EMPQ2qcymC2L7HwxqTBtRzeVZzpFop0kSp3R7nof+YFHJQsZFGTvcRH/guNwjiDf vJDrsC+2TZrFhAC8oH72iMLRZiq5+yTV+BEs5OiuahXH4AgP/ZgJH4/Rqood2PDQ 4U9L9BapfBkTrCZ8f+kj3RXzpPXs58hFiw6/LLDjUeJ0PK4yWLo/Sh3Cbbf5CsZi x9wCfuhP1ffJ9Iu+GbUqiZvyAWiCWmi0fRPLCIdMe2BuGuTi+dJh/oMzwnQM3xzM fr0Fbx260KjKDeBf4dIHKbfnMHt+58sVq6BOwFN+6lO7ywFBiyRC85sLKJ7WN+9C NqulE34ePfDl7UPp4aEw3zOG3YxwXrHj0U9egzlVQCsSXstEbUVAHwO/8JbF6LKd OSzo/za9tWXUaeUQ2dnC13yVHr1u8h/uaq05NNKph0T0JTDJfKMViEv/WSxIbRiH jOsyIJMx2IfwYj/lyOE1tY47p9ez0Zeyg0Ctb3BQOWksDRWoR9drz6ebGsPTUv03 36aJCzuS6oER01H1S16E+1j4jqL+ROzacZ9og955iJO4zwLveigtS+ktHQtYyG/O +Ae/NEE2EieV/joyh+cXMNRY18zpDz3zW7yR5duAQ/cUOp4Sn3y0sv/vVONZS9Eu T3S77zZSLM5KmkBR7wXoz9LgfU7OZSc= 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=4 tests=[BAYES_00=-1.9] autolearn=no autolearn_force=no Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out001.mykolab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eOYeDU7qBxeM; Mon, 17 Oct 2022 03:28:59 +0200 (CEST) Received: from int-mx002.mykolab.com (unknown [10.9.13.2]) by mx.kolabnow.com (Postfix) with ESMTPS id 81998B137; Mon, 17 Oct 2022 03:28:58 +0200 (CEST) Received: from ext-subm002.mykolab.com (unknown [10.9.6.2]) by int-mx002.mykolab.com (Postfix) with ESMTPS id 40AD42367; Mon, 17 Oct 2022 03:28:58 +0200 (CEST) From: Thiago Jung Bauermann Date: Sun, 16 Oct 2022 22:28:43 -0300 Message-Id: <20221017012843.29975-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.155; 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 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) 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 (--) From: Thiago Jung Bauermann Cross-building a docker image with: $ guix system image --image-type=docker --target=aarch64-linux-gnu os.scm results in an image where the architecture declared in its config.json is the host architecture rather than the target one. The binaries are correctly cross-compiled, so the image can be loaded and used despite the warning message shown by docker: $ docker load -i vcal7bvsqcijchifhqdvprpd1niqh8sk-docker-image.tar.gz Loaded image: guix:latest $ docker create guix:latest WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested 40f06aa869ed690489c4a3824a7f7721bd4bf453b85f25ac7199266939fe2fba $ echo $? 0 This is fixed by passing the correct triplet to the build-docker-image function. * gnu/system/image.scm (system-docker-image) Add ‘image-target’ variable. [builder]: Pass ‘#:system’ argument to ‘build-docker-image’. --- gnu/system/image.scm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gnu/system/image.scm b/gnu/system/image.scm index 5fc0d55d9a14..c6d7d13f6daf 100644 --- a/gnu/system/image.scm +++ b/gnu/system/image.scm @@ -652,6 +652,9 @@ (define shared-network? shared-network?) (list boot-program))) (substitutable? (image-substitutable? image)) + (image-target (or (%current-target-system) + (and=> (image-platform image) platform-target) + (nix-system->gnu-triplet))) (register-closures? (has-guix-service-type? os)) (schema (and register-closures? (local-file (search-path %load-path @@ -705,6 +708,7 @@ (define builder #:entry-point '(#$boot-program #$os) #:compressor '(#+(file-append gzip "/bin/gzip") "-9n") #:creation-time (make-time time-utc 0 1) + #:system #$image-target #:transformations `((,image-root -> "")))))))) (computed-file name builder From unknown Sun Jun 22 22:45:55 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#58576] [PATCH] system: image: Define correct docker image arch when cross building Resent-From: Mathieu Othacehe Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 17 Oct 2022 07:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58576 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Thiago Jung Bauermann Cc: Thiago Jung Bauermann , 58576@debbugs.gnu.org Received: via spool by 58576-submit@debbugs.gnu.org id=B58576.166599330412219 (code B ref 58576); Mon, 17 Oct 2022 07:56:01 +0000 Received: (at 58576) by debbugs.gnu.org; 17 Oct 2022 07:55:04 +0000 Received: from localhost ([127.0.0.1]:47124 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1okKxj-0003Az-JB for submit@debbugs.gnu.org; Mon, 17 Oct 2022 03:55:04 -0400 Received: from eggs.gnu.org ([209.51.188.92]:59102) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1okKxh-0003AQ-Qs for 58576@debbugs.gnu.org; Mon, 17 Oct 2022 03:55:02 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:59798) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1okKxb-0005MG-SB; Mon, 17 Oct 2022 03:54:55 -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=qSO9aqP1P50KNIwELQRn1oq+Fp23rgUESowpWjcFM+c=; b=PzQCtgC9An30E4LoA+dT dzcR1VYdsAkmJCYUbi7yz3nLrhRZTks92riBmXHe++jhU7e0pjj+/7d0lQo0Pw104phosFQO1Z0P8 neynewtgivudver70sxHicVU0J4EYWgzNlVMTMDHS54i8WFbvysozHUWQdON0LCDBtf27GKAGRsFc zfXVeaavGbJAupVhajrTs1XdvS2zFIrOrghBndFwVbZpTP6rx/Zt1rnrJlSeOLrbrsA7gQitZ4BVO XZNj/QOH0XLHdvUOMkZoAGOEZoVCqYc3HMjVahbXBmOx5G1APIEXqMJuCn/VaaMJKaOwvDQRT0s3g 4uu9tvp/feDAFQ==; Received: from 2a02-8429-81d2-3d01-94c9-8097-ea5c-2775.rev.sfr.net ([2a02:8429:81d2:3d01:94c9:8097:ea5c:2775]:40672 helo=meije) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1okKxa-0000GK-Su; Mon, 17 Oct 2022 03:54:55 -0400 From: Mathieu Othacehe References: <20221017012843.29975-1-bauermann@kolabnow.com> Date: Mon, 17 Oct 2022 09:54:51 +0200 In-Reply-To: <20221017012843.29975-1-bauermann@kolabnow.com> (Thiago Jung Bauermann's message of "Sun, 16 Oct 2022 22:28:43 -0300") Message-ID: <87pmeqnaus.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) 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, Thanks for this patch! > + (image-target (or (%current-target-system) > + (and=> (image-platform image) platform-target) > + (nix-system->gnu-triplet))) There's the following snippet in "system-image" that is trying to do the right thing (and it is not easy) with the "target" value. --8<---------------cut here---------------start------------->8--- ;; The image platform definition may provide the appropriate "system" ;; architecture for the image. If we are already running on this system, ;; the image can be built natively. If we are running on a different ;; system, then we need to cross-compile, using the "target" provided by the ;; image definition. (define system (and=> platform platform-system)) (define target (cond ;; No defined platform, let's use the user defined ;; system/target parameters. ((not platform) (%current-target-system)) ;; The current system is the same as the platform system, no ;; need to cross-compile. ((and system (string=? system (%current-system))) #f) ;; If there is a user defined target let's override the ;; platform target. Otherwise, we can cross-compile to the ;; platform target. (else (or (%current-target-system) (and=> platform platform-target))))) --8<---------------cut here---------------end--------------->8--- The rationale is that the user supplied %current-target-system is always overriding the image platform field. Then, %current-target-system is set to the "target" value defined above. It makes me think that you could use %current-target-system directly as the "image-target" value. WDYT? Mathieu From unknown Sun Jun 22 22:45:55 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#58576] [PATCH] system: image: Define correct docker image arch when cross building Resent-From: Thiago Jung Bauermann Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 27 Oct 2022 00:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58576 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Mathieu Othacehe Cc: Thiago Jung Bauermann , 58576@debbugs.gnu.org Received: via spool by 58576-submit@debbugs.gnu.org id=B58576.166682897117080 (code B ref 58576); Thu, 27 Oct 2022 00:03:01 +0000 Received: (at 58576) by debbugs.gnu.org; 27 Oct 2022 00:02:51 +0000 Received: from localhost ([127.0.0.1]:55552 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1onqMF-0004RP-Cg for submit@debbugs.gnu.org; Wed, 26 Oct 2022 20:02:51 -0400 Received: from mx.kolabnow.com ([212.103.80.154]:49348) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1onqMC-0004RB-QS for 58576@debbugs.gnu.org; Wed, 26 Oct 2022 20:02:50 -0400 Received: from localhost (unknown [127.0.0.1]) by mx.kolabnow.com (Postfix) with ESMTP id 1746619EB; Thu, 27 Oct 2022 02:02:43 +0200 (CEST) Authentication-Results: ext-mx-out001.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= 1666828962; x=1668643363; bh=IpZbI58Qs1VPpEjFQJZm6INeclhhKaft+QF nbqn6jTY=; b=xUkaWuB4iSVn7KckK5G0zn3rtijScJel6XUH1c93Yb3jTWtn1aA qGS2QVRXpWESCXdW7YBJq8B8gpQAUvM50k+xxJcfW6Is0UfzfSEGGjP0hV/ZmvGH rkm61wvXuFxXmpmIUEFiFxZA0WYvpewuDgkGojf75ytZhi98upanO/dz2iT0xEZG u2iEkp0B4UC6LG2YjlX/6UoADz6GBwN+g9gysyecfm4bSDKU9Gny+AsCp5H0yWVU 1AN5phGYyx9a5+ERkGzbiH4p3POop4MyWKO3zJBLLn7SSv3nYY0AWOKW1vJE5lNz SvwotVxD04IM25ZaK2LrvpyHdc3FxwoBR/IpCvO2jardn2gIai+cX7GRX24qVyQ/ h1bQrmoScNZWem8FPGsjB06SSHrEb9Lk6PUCOQgCGVytV8J1RXh29uqDX2+e1tE/ MUrslyzA13OiUHA6wwPNPGz26nnPf5P0Wkt/QoP4yP6BpRjVERo3fKDHiuFE0Mrs 7h22QzJ0NlokDgfZ/bawcLAvLxQpRsH8ju9RbFMxWFg7pZl7O7RwmRO0W2pu7Qwb OyzNp4s9chVNIXwwdMJmkGdxX0GGS8yaJkmlDyuXQ4vJxJ3HX4WZrgnq/91IReLX FXQWgEB9AJS1ThedTJL5oflmCCQU+bPHj1CiE15uTC44PTHZYDsMoLPs= X-Virus-Scanned: amavisd-new at mykolab.com X-Spam-Flag: NO X-Spam-Score: -1.899 X-Spam-Level: X-Spam-Status: No, score=-1.899 tagged_above=-10 required=4 tests=[BAYES_00=-1.9, URIBL_BLOCKED=0.001] autolearn=no autolearn_force=no Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out001.mykolab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NxiBQCwDGg-4; Thu, 27 Oct 2022 02:02:42 +0200 (CEST) Received: from int-mx001.mykolab.com (unknown [10.9.13.1]) by mx.kolabnow.com (Postfix) with ESMTPS id AF30414FA; Thu, 27 Oct 2022 02:02:41 +0200 (CEST) Received: from ext-subm003.mykolab.com (unknown [10.9.6.3]) by int-mx001.mykolab.com (Postfix) with ESMTPS id 54D3981F; Thu, 27 Oct 2022 02:02:41 +0200 (CEST) References: <20221017012843.29975-1-bauermann@kolabnow.com> <87pmeqnaus.fsf@gnu.org> From: Thiago Jung Bauermann Date: Wed, 26 Oct 2022 20:47:15 -0300 In-reply-to: <87pmeqnaus.fsf@gnu.org> Message-ID: <87tu3qgmlg.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-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, Thank you for reviewing my patch! Sorry for the delay, I've been traveling. Mathieu Othacehe writes: > Hello Thiago, > > Thanks for this patch! > >> + (image-target (or (%current-target-system) >> + (and=3D> (image-platform image) platform-tar= get) >> + (nix-system->gnu-triplet))) > > There's the following snippet in "system-image" that is trying to do the > right thing (and it is not easy) with the "target" value. > > ;; The image platform definition may provide the appropriate "system" > ;; architecture for the image. If we are already running on this syste= m, > ;; the image can be built natively. If we are running on a different > ;; system, then we need to cross-compile, using the "target" provided b= y the > ;; image definition. > (define system (and=3D> platform platform-system)) > (define target (cond > ;; No defined platform, let's use the user defined > ;; system/target parameters. > ((not platform) > (%current-target-system)) > ;; The current system is the same as the platform syste= m, no > ;; need to cross-compile. > ((and system > (string=3D? system (%current-system))) > #f) > ;; If there is a user defined target let's override the > ;; platform target. Otherwise, we can cross-compile to = the > ;; platform target. > (else > (or (%current-target-system) > (and=3D> platform platform-target))))) > > The rationale is that the user supplied %current-target-system is always > overriding the image platform field. Then, %current-target-system is set > to the "target" value defined above. > > It makes me think that you could use %current-target-system directly as > the "image-target" value. WDYT? I don't think =E2=80=9C%current-target-system=E2=80=9D can be used directly= as the =E2=80=9Cimage-target=E2=80=9D value because for native builds it will be #= f and my understanding is that =E2=80=9Cbuild-docker-image=E2=80=9D would throw an e= rror when receiving #f for the =E2=80=9C#:system=E2=80=9D argument. So I still need the or expression above, but I can drop the middle expression that calls =E2=80=9Cplatform-target=E2=80=9D because it's redund= ant with the snippet you posted above. Thank you for pointing it out. I'll send a v2 with the change. --=20 Thanks Thiago From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 03 12:10:35 2022 Received: (at control) by debbugs.gnu.org; 3 Nov 2022 16:10:36 +0000 Received: from localhost ([127.0.0.1]:50077 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oqcnb-0000dM-NE for submit@debbugs.gnu.org; Thu, 03 Nov 2022 12:10:35 -0400 Received: from mira.cbaines.net ([212.71.252.8]:41672) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oqcnY-0000dC-Gd for control@debbugs.gnu.org; Thu, 03 Nov 2022 12:10:34 -0400 Received: from localhost (93-63-133-243.ip27.fastwebnet.it [93.63.133.243]) by mira.cbaines.net (Postfix) with ESMTPSA id 739F827BBE9 for ; Thu, 3 Nov 2022 16:10:27 +0000 (GMT) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id 9e3d1bb8 for ; Thu, 3 Nov 2022 16:10:22 +0000 (UTC) From: Christopher Baines To: control@debbugs.gnu.org Subject: tag 58576 moreinfo Date: Thu, 03 Nov 2022 16:10:22 +0000 Message-ID: <87edukdno1.fsf@cbaines.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: control 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 (-) tags 58576 + moreinfo quit From unknown Sun Jun 22 22:45:55 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#58576] [PATCH v2] system: image: Define correct docker image arch when cross building Resent-From: Thiago Jung Bauermann Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 04 Nov 2022 01:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58576 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: moreinfo patch To: 58576@debbugs.gnu.org Cc: Mathieu Othacehe , Thiago Jung Bauermann Received: via spool by 58576-submit@debbugs.gnu.org id=B58576.16675269221312 (code B ref 58576); Fri, 04 Nov 2022 01:56:02 +0000 Received: (at 58576) by debbugs.gnu.org; 4 Nov 2022 01:55:22 +0000 Received: from localhost ([127.0.0.1]:51137 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oqlvW-0000L6-Gz for submit@debbugs.gnu.org; Thu, 03 Nov 2022 21:55:22 -0400 Received: from mx.kolabnow.com ([212.103.80.154]:36328) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oqlvR-0000Km-QY for 58576@debbugs.gnu.org; Thu, 03 Nov 2022 21:55:21 -0400 Received: from localhost (unknown [127.0.0.1]) by mx.kolabnow.com (Postfix) with ESMTP id 41C042232; Fri, 4 Nov 2022 02:55:11 +0100 (CET) Authentication-Results: ext-mx-out001.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 :references:in-reply-to:message-id:date:date:subject:subject :from:from:received:received:received; s=dkim20160331; t= 1667526910; x=1669341311; bh=1+IJcU3xOls+/l+S7ze/Q96HxEH2gmr0pEl GIr31ezo=; b=OegGjUzvgPUPGC3RinF92UhbwlGs+2EicEHiQqRgMPQPR92cX4S 7WIxljElXzdJVnKz96J7vfIswk9olqRYZur6p1NXsoMZc+1jitIom1+JbrURKjFQ ohHVDZ/9+DGKO+FR9QVGFGuE49ShZ2rqMUHBb/DE9Kb8XvVYWdQ2niKPt33Ek3q9 lmS7Sn3OkHzssP/FlML+Rcrav8Eoj6XD/5RkDUujllDtshH77S3K0CC3zgRS/K0H XiGtdbMuL/mX2ve6NvsIjOB6vl8IsgbSOY6R99PpV/MEfkZfewexIS8JHMHIF6/c kS3SvaC40vTevPfzXibPm9D8AzeLqKvXlFZh1V4tlJrqjAGj0SSYV/Qa0nXZ+WyY LBv0pN6QHaaMWr6Qm5JNqeVi7b4PsGfJxSDV8CDgg+GFwRLPqSIJejHCl100UGdp nhT68+0vfLdrg6x9TLoYcOwmitI3A6cZ3TJJrEU2lwdBNVnaJ0lR0NkQIs1BPD5A X11vssQUZLEF8CLiiT+3E/HtdPYVyg7cch4CveXsYEKMD0bhP9CAX1qG9IgMJYnc UNbIRtekZhEcBEE+TBp+hUCgwmdgzMXf1lLguxDEqI65RXOeIetQ9pATFLqp1RJt Qm3/AqLamegWtNJpT5xUG2cU7dGm33KokG1m1CD4SUWrK+u/KTY97PnA= 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=4 tests=[BAYES_00=-1.9] autolearn=no autolearn_force=no Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out001.mykolab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Hka-94rUrrkK; Fri, 4 Nov 2022 02:55:10 +0100 (CET) Received: from int-mx001.mykolab.com (unknown [10.9.13.1]) by mx.kolabnow.com (Postfix) with ESMTPS id ED52D213E; Fri, 4 Nov 2022 02:55:09 +0100 (CET) Received: from ext-subm002.mykolab.com (unknown [10.9.6.2]) by int-mx001.mykolab.com (Postfix) with ESMTPS id AE801BD2; Fri, 4 Nov 2022 02:55:09 +0100 (CET) From: Thiago Jung Bauermann Date: Thu, 3 Nov 2022 22:54:56 -0300 Message-Id: <20221104015456.1059014-1-bauermann@kolabnow.com> In-Reply-To: <87tu3qgmlg.fsf@kolabnow.com> References: <87tu3qgmlg.fsf@kolabnow.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) 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 (-) Cross-building a docker image with: $ guix system image --image-type=docker --target=aarch64-linux-gnu os.scm results in an image where the architecture declared in its config.json is the host architecture rather than the target one. The binaries are correctly cross-compiled, so the image can be loaded and used despite the warning message shown by docker: $ docker load -i vcal7bvsqcijchifhqdvprpd1niqh8sk-docker-image.tar.gz Loaded image: guix:latest $ docker create guix:latest WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested 40f06aa869ed690489c4a3824a7f7721bd4bf453b85f25ac7199266939fe2fba $ echo $? 0 This is fixed by passing the correct triplet to the build-docker-image function. * gnu/system/image.scm (system-docker-image) Add ‘image-target’ variable. [builder]: Pass ‘#:system’ argument to ‘build-docker-image’. --- Hello, This is v2 of the patch. The only difference is that the expression defining ‘image-target’ doesn't try to get the target from the image's platform field, since its caller ‘system-image’ already does that (thanks to Mathieu for pointing it out). gnu/system/image.scm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gnu/system/image.scm b/gnu/system/image.scm index 5fc0d55d9a14..f07a4a52174f 100644 --- a/gnu/system/image.scm +++ b/gnu/system/image.scm @@ -652,6 +652,8 @@ (define shared-network? shared-network?) (list boot-program))) (substitutable? (image-substitutable? image)) + (image-target (or (%current-target-system) + (nix-system->gnu-triplet))) (register-closures? (has-guix-service-type? os)) (schema (and register-closures? (local-file (search-path %load-path @@ -705,6 +707,7 @@ (define builder #:entry-point '(#$boot-program #$os) #:compressor '(#+(file-append gzip "/bin/gzip") "-9n") #:creation-time (make-time time-utc 0 1) + #:system #$image-target #:transformations `((,image-root -> "")))))))) (computed-file name builder From unknown Sun Jun 22 22:45:55 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Thiago Jung Bauermann Subject: bug#58576: closed (Re: [PATCH v2] system: image: Define correct docker image arch when cross building) Message-ID: References: <87iljvjh5f.fsf@gnu.org> <20221017012843.29975-1-bauermann@kolabnow.com> X-Gnu-PR-Message: they-closed 58576 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: moreinfo patch Reply-To: 58576@debbugs.gnu.org Date: Fri, 04 Nov 2022 07:48:01 +0000 Content-Type: multipart/mixed; boundary="----------=_1667548081-4051-1" This is a multi-part message in MIME format... ------------=_1667548081-4051-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #58576: [PATCH] system: image: Define correct docker image arch when cross = building which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 58576@debbugs.gnu.org. --=20 58576: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D58576 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1667548081-4051-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 58576-done) by debbugs.gnu.org; 4 Nov 2022 07:47:06 +0000 Received: from localhost ([127.0.0.1]:51541 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oqrPu-00010S-CJ for submit@debbugs.gnu.org; Fri, 04 Nov 2022 03:47:06 -0400 Received: from eggs.gnu.org ([209.51.188.92]:35518) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oqrPr-0000zp-1r for 58576-done@debbugs.gnu.org; Fri, 04 Nov 2022 03:47:04 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oqrPj-0005bt-Gh; Fri, 04 Nov 2022 03:46:56 -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=IKZro8EArXekNfIs/0AyGpDZyD2iO+FOqg3z6cE4hJs=; b=KJ+PB/Ay/q56xb8TJDtJ mRW5nsTeoYrb8WWJaqy4i6PS0j/WkgwDFJ6hzduhu9KRUGukVQMVDqPZ6EHZqw22CQ/obDU4+YVzO qQd0I1aIaIN4398L6Zx11lnwf7twHkO5cVnrMHHhj1d3FNTZigoQr1AjNhC3zKNmVEmOEH/G0ecKc d7QKG4fgO4ihlAShKy+r9K1wdFxya9ufd+Y9ydLkg7FtbtoQzloguX6VnDub6nWWym7JhC/7P4Yf7 3Xyf8q6h8wOv+9i3PQKMsWrIoO9Q17iZF2FtD1VpC0jYaerR0gBpicgYTFkha+koDi0h0gn2MfoTa ZKwUEvoqlkkRFg==; Received: from 2a02-8429-81d2-3d01-94c9-8097-ea5c-2775.rev.sfr.net ([2a02:8429:81d2:3d01:94c9:8097:ea5c:2775] helo=meije) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oqrPi-0002qF-At; Fri, 04 Nov 2022 03:46:55 -0400 From: Mathieu Othacehe To: Thiago Jung Bauermann Subject: Re: [PATCH v2] system: image: Define correct docker image arch when cross building References: <87tu3qgmlg.fsf@kolabnow.com> <20221104015456.1059014-1-bauermann@kolabnow.com> Date: Fri, 04 Nov 2022 08:46:52 +0100 In-Reply-To: <20221104015456.1059014-1-bauermann@kolabnow.com> (Thiago Jung Bauermann's message of "Thu, 3 Nov 2022 22:54:56 -0300") Message-ID: <87iljvjh5f.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (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: 58576-done Cc: 58576-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, > * gnu/system/image.scm (system-docker-image) Add =E2=80=98image-target=E2= =80=99 variable. > [builder]: Pass =E2=80=98#:system=E2=80=99 argument to =E2=80=98build-doc= ker-image=E2=80=99. Applied as a75deb884468db0ce2c35e23a61f1a14c9be958e. Thanks, Mathieu ------------=_1667548081-4051-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 17 Oct 2022 01:29:12 +0000 Received: from localhost ([127.0.0.1]:46611 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1okEwJ-0004xh-SM for submit@debbugs.gnu.org; Sun, 16 Oct 2022 21:29:12 -0400 Received: from lists.gnu.org ([209.51.188.17]:47230) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1okEwH-0004xa-PI for submit@debbugs.gnu.org; Sun, 16 Oct 2022 21:29:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37690) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1okEwD-0004kA-0p for guix-patches@gnu.org; Sun, 16 Oct 2022 21:29:06 -0400 Received: from mx.kolabnow.com ([212.103.80.155]:53664) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1okEw9-0000ZN-V3 for guix-patches@gnu.org; Sun, 16 Oct 2022 21:29:03 -0400 Received: from localhost (unknown [127.0.0.1]) by mx.kolabnow.com (Postfix) with ESMTP id E7A70B13A; Mon, 17 Oct 2022 03:28:59 +0200 (CEST) Authentication-Results: ext-mx-out001.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=1665970139; x=1667784540; bh=DRuz0sx+C6jH1OHEuX9jvZZIBVCA7I+S54Ry9KNWb/Q=; b=fd1FZmWlnvan EMPQ2qcymC2L7HwxqTBtRzeVZzpFop0kSp3R7nof+YFHJQsZFGTvcRH/guNwjiDf vJDrsC+2TZrFhAC8oH72iMLRZiq5+yTV+BEs5OiuahXH4AgP/ZgJH4/Rqood2PDQ 4U9L9BapfBkTrCZ8f+kj3RXzpPXs58hFiw6/LLDjUeJ0PK4yWLo/Sh3Cbbf5CsZi x9wCfuhP1ffJ9Iu+GbUqiZvyAWiCWmi0fRPLCIdMe2BuGuTi+dJh/oMzwnQM3xzM fr0Fbx260KjKDeBf4dIHKbfnMHt+58sVq6BOwFN+6lO7ywFBiyRC85sLKJ7WN+9C NqulE34ePfDl7UPp4aEw3zOG3YxwXrHj0U9egzlVQCsSXstEbUVAHwO/8JbF6LKd OSzo/za9tWXUaeUQ2dnC13yVHr1u8h/uaq05NNKph0T0JTDJfKMViEv/WSxIbRiH jOsyIJMx2IfwYj/lyOE1tY47p9ez0Zeyg0Ctb3BQOWksDRWoR9drz6ebGsPTUv03 36aJCzuS6oER01H1S16E+1j4jqL+ROzacZ9og955iJO4zwLveigtS+ktHQtYyG/O +Ae/NEE2EieV/joyh+cXMNRY18zpDz3zW7yR5duAQ/cUOp4Sn3y0sv/vVONZS9Eu T3S77zZSLM5KmkBR7wXoz9LgfU7OZSc= 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=4 tests=[BAYES_00=-1.9] autolearn=no autolearn_force=no Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out001.mykolab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eOYeDU7qBxeM; Mon, 17 Oct 2022 03:28:59 +0200 (CEST) Received: from int-mx002.mykolab.com (unknown [10.9.13.2]) by mx.kolabnow.com (Postfix) with ESMTPS id 81998B137; Mon, 17 Oct 2022 03:28:58 +0200 (CEST) Received: from ext-subm002.mykolab.com (unknown [10.9.6.2]) by int-mx002.mykolab.com (Postfix) with ESMTPS id 40AD42367; Mon, 17 Oct 2022 03:28:58 +0200 (CEST) From: Thiago Jung Bauermann To: guix-patches@gnu.org Subject: [PATCH] system: image: Define correct docker image arch when cross building Date: Sun, 16 Oct 2022 22:28:43 -0300 Message-Id: <20221017012843.29975-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.155; 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 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 (--) From: Thiago Jung Bauermann Cross-building a docker image with: $ guix system image --image-type=docker --target=aarch64-linux-gnu os.scm results in an image where the architecture declared in its config.json is the host architecture rather than the target one. The binaries are correctly cross-compiled, so the image can be loaded and used despite the warning message shown by docker: $ docker load -i vcal7bvsqcijchifhqdvprpd1niqh8sk-docker-image.tar.gz Loaded image: guix:latest $ docker create guix:latest WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested 40f06aa869ed690489c4a3824a7f7721bd4bf453b85f25ac7199266939fe2fba $ echo $? 0 This is fixed by passing the correct triplet to the build-docker-image function. * gnu/system/image.scm (system-docker-image) Add ‘image-target’ variable. [builder]: Pass ‘#:system’ argument to ‘build-docker-image’. --- gnu/system/image.scm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gnu/system/image.scm b/gnu/system/image.scm index 5fc0d55d9a14..c6d7d13f6daf 100644 --- a/gnu/system/image.scm +++ b/gnu/system/image.scm @@ -652,6 +652,9 @@ (define shared-network? shared-network?) (list boot-program))) (substitutable? (image-substitutable? image)) + (image-target (or (%current-target-system) + (and=> (image-platform image) platform-target) + (nix-system->gnu-triplet))) (register-closures? (has-guix-service-type? os)) (schema (and register-closures? (local-file (search-path %load-path @@ -705,6 +708,7 @@ (define builder #:entry-point '(#$boot-program #$os) #:compressor '(#+(file-append gzip "/bin/gzip") "-9n") #:creation-time (make-time time-utc 0 1) + #:system #$image-target #:transformations `((,image-root -> "")))))))) (computed-file name builder ------------=_1667548081-4051-1-- From unknown Sun Jun 22 22:45:55 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#58576] [PATCH v2] system: image: Define correct docker image arch when cross building Resent-From: Thiago Jung Bauermann Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 05 Nov 2022 03:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58576 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: moreinfo patch To: Mathieu Othacehe Cc: 58576-done@debbugs.gnu.org Received: via spool by 58576-done@debbugs.gnu.org id=D58576.166761750630029 (code D ref 58576); Sat, 05 Nov 2022 03:06:01 +0000 Received: (at 58576-done) by debbugs.gnu.org; 5 Nov 2022 03:05:06 +0000 Received: from localhost ([127.0.0.1]:55250 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1or9UY-0007oH-4T for submit@debbugs.gnu.org; Fri, 04 Nov 2022 23:05:06 -0400 Received: from mx.kolabnow.com ([212.103.80.154]:54208) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1or9UW-0007ni-BV for 58576-done@debbugs.gnu.org; Fri, 04 Nov 2022 23:05:05 -0400 Received: from localhost (unknown [127.0.0.1]) by mx.kolabnow.com (Postfix) with ESMTP id A62B1211B; Sat, 5 Nov 2022 04:04:58 +0100 (CET) Authentication-Results: ext-mx-out001.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= 1667617498; x=1669431899; bh=d1922Wh17f6rS731XpqQKv/nabFXmCsDpyW B/BqKJY8=; b=cSefa423+FDjn4BXd/0u4U4eiAZfizQJBTuqIRwQblaYTTKu1DC ALQrDoFUMRTXjNTcBOeOsSMOpuqn7k4D9PwP+XrXhtCc+DIcTI8/LQKYNDW0bgY8 e5MlcALVOt3kOmeMX/kvQfOOHPfUdvR/Lim/7SsbWujZTb2ibiY6+XyHGqeDXug5 nh8HYo7QsUp0bF5abbXNSTxM7M4R+gE0jWaQMpwNyI/eOp2VoXhCe29cpiYIc6rJ td5oO1fVGhsim7tVViOGxp+nqPeNyxcx6Duq+MvxJ0OSoFM5UT14bnU8rzI3k/mG BB51GkBWSmZq3BbZommbqzatSGIrMHZb8w84gGPoW0f5odZiKhQdjeppW5Pkc65y GpJS2nxy83jJvWieVNH+wO64gl48bcYxO49kDzkYK/Tc/1m3POTBm2l1ObqCakBN 9u0pIRkygRqpBBQHzeruxYqhjXoib5/x3+sK8pe9guWnBjxiYPSJ3u5s5Sy9IOeT Thr/btcc83PZfm3Uba/ia3P+20cEES+t8Vs7ZVCy2cjEF0WZ2s3lnzLnNV7DHAyr q048je0oRm0OC3aZUEZvWk0Xjp/BhCZFC0tIaV8HKmIGM7iFp8ux4IfvzgpaBfR6 MJvv+xc3hYQG2hCSumcNxRxVKdKWJmI67z/6hwXrYLbrO0nZqi4heIp8= 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=4 tests=[BAYES_00=-1.9] autolearn=no autolearn_force=no Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out001.mykolab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wV1dlABdZ8FC; Sat, 5 Nov 2022 04:04:58 +0100 (CET) Received: from int-mx001.mykolab.com (unknown [10.9.13.1]) by mx.kolabnow.com (Postfix) with ESMTPS id F0B971DD4; Sat, 5 Nov 2022 04:04:56 +0100 (CET) Received: from ext-subm001.mykolab.com (unknown [10.9.6.1]) by int-mx001.mykolab.com (Postfix) with ESMTPS id 77322B37; Sat, 5 Nov 2022 04:04:56 +0100 (CET) References: <87tu3qgmlg.fsf@kolabnow.com> <20221104015456.1059014-1-bauermann@kolabnow.com> <87iljvjh5f.fsf@gnu.org> From: Thiago Jung Bauermann Date: Sat, 05 Nov 2022 00:04:32 -0300 In-reply-to: <87iljvjh5f.fsf@gnu.org> Message-ID: <877d0a6qzy.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-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: >> * gnu/system/image.scm (system-docker-image) Add =E2=80=98image-target= =E2=80=99 variable. >> [builder]: Pass =E2=80=98#:system=E2=80=99 argument to =E2=80=98build-do= cker-image=E2=80=99. > > Applied as a75deb884468db0ce2c35e23a61f1a14c9be958e. Thank you! --=20 Thanks Thiago