From unknown Tue Jun 17 20:11:10 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#36057 <36057@debbugs.gnu.org> To: bug#36057 <36057@debbugs.gnu.org> Subject: Status: Fix for debootstrap Reply-To: bug#36057 <36057@debbugs.gnu.org> Date: Wed, 18 Jun 2025 03:11:10 +0000 retitle 36057 Fix for debootstrap reassign 36057 guix-patches submitter 36057 Vagrant Cascadian severity 36057 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 02 14:52:50 2019 Received: (at submit) by debbugs.gnu.org; 2 Jun 2019 18:52:50 +0000 Received: from localhost ([127.0.0.1]:40873 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hXVb8-0001Mn-1d for submit@debbugs.gnu.org; Sun, 02 Jun 2019 14:52:50 -0400 Received: from eggs.gnu.org ([209.51.188.92]:46281) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hXVb5-0001MX-2b for submit@debbugs.gnu.org; Sun, 02 Jun 2019 14:52:48 -0400 Received: from lists.gnu.org ([209.51.188.17]:45409) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hXVaz-00066d-T4 for submit@debbugs.gnu.org; Sun, 02 Jun 2019 14:52:41 -0400 Received: from eggs.gnu.org ([209.51.188.92]:60663) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hXVay-0005fw-E9 for guix-patches@gnu.org; Sun, 02 Jun 2019 14:52:41 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hXVax-00065J-0r for guix-patches@gnu.org; Sun, 02 Jun 2019 14:52:40 -0400 Received: from cascadia.aikidev.net ([2600:3c01:e000:267:0:a171:de7:c]:57506) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hXVaw-00064B-OY for guix-patches@gnu.org; Sun, 02 Jun 2019 14:52:38 -0400 Received: from localhost (unknown [IPv6:2600:3c01:e000:21:21:21:0:100b]) (Authenticated sender: vagrant@cascadia.debian.net) by cascadia.aikidev.net (Postfix) with ESMTPSA id 7503A1AA54 for ; Sun, 2 Jun 2019 11:52:32 -0700 (PDT) From: Vagrant Cascadian To: guix-patches@gnu.org Subject: Fix for debootstrap Date: Sun, 02 Jun 2019 11:52:27 -0700 Message-ID: <87zhmz251w.fsf@yucca> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2600:3c01:e000:267:0:a171:de7:c X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit 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 (---) --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain The attached patch includes a fix so that debootstrap can be run in a single patch. Currently, this fails: debootstrap --arch=amd64 buster $(mktemp -d) http://deb.debian.org/debian With this in the log: /gnu/store/ah0rr88xmn28f32whhpbdcxwind0c74z-debootstrap-1.0.114/share/debootstrap/functions: line 1056: chroot: command not found /gnu/store/ah0rr88xmn28f32whhpbdcxwind0c74z-debootstrap-1.0.114/share/debootstrap/functions: line 1062: grep: command not found /gnu/store/ah0rr88xmn28f32whhpbdcxwind0c74z-debootstrap-1.0.114/share/debootstrap/functions: line 1062: head: command not found /gnu/store/ah0rr88xmn28f32whhpbdcxwind0c74z-debootstrap-1.0.114/share/debootstrap/functions: line 1062: cut: command not found /gnu/store/ah0rr88xmn28f32whhpbdcxwind0c74z-debootstrap-1.0.114/share/debootstrap/functions: line 1062: sed: command not found The workaround documented in the package description is to use --foreign-arch and then follow up with a chroot call into to the newly created chroot and finish up running /debootstrap/debootstrap, but this fails for other reasons as well (/bin/sh in /debootstrap/debootstrap is set to /gnu/store.../bin/sh which isn't present in the Debian chroot)... and is a bit cumbersome for the end-user. I *think* the best fix for this is to fix the hard-coded PATH in several places places to also include $PATH, which I've proposed upstream: https://bugs.debian.org/929889 The attached patch approximates the proposed upstream patch for guix, and works for me so you can do a single call to debootstrap without the complicated chroot /debootstrap/debootstrap PATH-setting dance. live well, vagrant --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-gnu-debootstrap-Workaround-for-PATH-issues.patch Content-Transfer-Encoding: quoted-printable From=20bb00c031e0037eb8edd9db2ab06f630109237d0a Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian Date: Sun, 2 Jun 2019 11:34:33 -0700 Subject: [PATCH] gnu: debootstrap: Workaround for PATH issues. * gnu/packages/debian (debootstrap): [arguments]: Substitute PATH to include $PATH. [description]: Remove obsolete workaround from description. =2D-- gnu/packages/debian.scm | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/gnu/packages/debian.scm b/gnu/packages/debian.scm index 1b401bc946..f94f49c51b 100644 =2D-- a/gnu/packages/debian.scm +++ b/gnu/packages/debian.scm @@ -154,6 +154,11 @@ contains the archive keys used for that.") (("/usr") ubuntu)) (substitute* "debootstrap" (("=3D/usr") (string-append "=3D" out))) + ;; Ensure PATH works both in guix and within the debian chr= oot + ;; workaround for: https://bugs.debian.org/929889 + (substitute* "functions" + (("PATH=3D/sbin:/usr/sbin:/bin:/usr/bin") + "PATH=3D$PATH:/sbin:/usr/sbin:/bin:/usr/bin")) (substitute* (find-files "scripts" ".") (("/usr/share/zoneinfo") (string-append tzdata "/share/zo= neinfo"))) #t))) @@ -184,9 +189,5 @@ contains the archive keys used for that.") (description "Debootstrap is used to create a Debian base system from scratch, without requiring the availability of @code{dpkg} or @code{apt}. It does this by downloading .deb files from a mirror site, and carefully =2Dunpacking them into a directory which can eventually be chrooted into. =2D =2DIt is recommended to run @code{debootstrap --foreign --arch=3D...} and t= hen =2D@code{chroot} into the directory, set the PATH and run @code{debootstrap =2D--second-stage} after.") +unpacking them into a directory which can eventually be chrooted into.") (license license:gpl2))) =2D-=20 2.20.1 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCXPQa6wAKCRDcUY/If5cW qiYzAQDME6cMcKU0+gdSLxXAZc5b3EbCMzyU/2pH+RcuuimZDgEAszaDSrarksys FJTDzNW1AHPy9JNMOvfJMr0hJqOrUQc= =TLtR -----END PGP SIGNATURE----- --==-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 05 11:16:39 2019 Received: (at 36057) by debbugs.gnu.org; 5 Jun 2019 15:16:39 +0000 Received: from localhost ([127.0.0.1]:47900 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hYXeZ-0003TJ-Ik for submit@debbugs.gnu.org; Wed, 05 Jun 2019 11:16:39 -0400 Received: from eggs.gnu.org ([209.51.188.92]:53865) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hYXeX-0003T2-Ch for 36057@debbugs.gnu.org; Wed, 05 Jun 2019 11:16:37 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:55442) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hYXeR-0008Ge-SU; Wed, 05 Jun 2019 11:16:31 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=57162 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hYXeR-0007VA-Ee; Wed, 05 Jun 2019 11:16:31 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Vagrant Cascadian Subject: Re: [bug#36057] Fix for debootstrap References: <87zhmz251w.fsf@yucca> Date: Wed, 05 Jun 2019 17:16:30 +0200 In-Reply-To: <87zhmz251w.fsf@yucca> (Vagrant Cascadian's message of "Sun, 02 Jun 2019 11:52:27 -0700") Message-ID: <877ea012r5.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 36057 Cc: 36057@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 (---) Hi Vagrant, Vagrant Cascadian skribis: > From bb00c031e0037eb8edd9db2ab06f630109237d0a Mon Sep 17 00:00:00 2001 > From: Vagrant Cascadian > Date: Sun, 2 Jun 2019 11:34:33 -0700 > Subject: [PATCH] gnu: debootstrap: Workaround for PATH issues. > > * gnu/packages/debian (debootstrap): > [arguments]: Substitute PATH to include $PATH. > [description]: Remove obsolete workaround from description. It LGTM, and I think we can trust your judgment anyway. ;-) Thank you, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 05 12:58:14 2019 Received: (at 36057-done) by debbugs.gnu.org; 5 Jun 2019 16:58:14 +0000 Received: from localhost ([127.0.0.1]:48064 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hYZEr-00086G-Pn for submit@debbugs.gnu.org; Wed, 05 Jun 2019 12:58:14 -0400 Received: from cascadia.aikidev.net ([173.255.214.101]:40152) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hYZEp-00085n-4y for 36057-done@debbugs.gnu.org; Wed, 05 Jun 2019 12:58:11 -0400 Received: from localhost (unknown [IPv6:2600:3c01:e000:21:21:21:0:100b]) (Authenticated sender: vagrant@cascadia.debian.net) by cascadia.aikidev.net (Postfix) with ESMTPSA id EDAB01ABD5; Wed, 5 Jun 2019 09:58:04 -0700 (PDT) From: Vagrant Cascadian To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: [bug#36057] Fix for debootstrap In-Reply-To: <877ea012r5.fsf@gnu.org> References: <87zhmz251w.fsf@yucca> <877ea012r5.fsf@gnu.org> Date: Wed, 05 Jun 2019 09:58:01 -0700 Message-ID: <878sug0y1y.fsf@yucca> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36057-done Cc: 36057-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 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2019-06-05, Ludovic Court=C3=A8s wrote: > Vagrant Cascadian skribis: > >> From bb00c031e0037eb8edd9db2ab06f630109237d0a Mon Sep 17 00:00:00 2001 >> From: Vagrant Cascadian >> Date: Sun, 2 Jun 2019 11:34:33 -0700 >> Subject: [PATCH] gnu: debootstrap: Workaround for PATH issues. >> >> * gnu/packages/debian (debootstrap): >> [arguments]: Substitute PATH to include $PATH. >> [description]: Remove obsolete workaround from description. > > It LGTM, and I think we can trust your judgment anyway. ;-) Ok, pushed to master! live well, vagrant --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCXPf0mQAKCRDcUY/If5cW qnkCAP4xeBd+MO0siHi2ZyTvwCIie7Zjcxz4X0/G2y9osZbf3QD/bxcHoUb+xo3j ELcCnkF0RG/WgxTyJnh33eZz9OxgEwk= =oP+m -----END PGP SIGNATURE----- --=-=-=-- From unknown Tue Jun 17 20:11:10 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 04 Jul 2019 11:24:06 +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