guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/01: gnu: debootstrap: Workaround for PATH issues.


From: guix-commits
Subject: 01/01: gnu: debootstrap: Workaround for PATH issues.
Date: Wed, 5 Jun 2019 12:56:05 -0400 (EDT)

vagrantc pushed a commit to branch master
in repository guix.

commit 90041e9c28e71ee9736b5e9942625460f7deacd2
Author: Vagrant Cascadian <address@hidden>
Date:   Sun Jun 2 11:34:33 2019 -0700

    gnu: debootstrap: Workaround for PATH issues.
    
    * gnu/packages/debian (debootstrap):
      [arguments]: Substitute PATH to include $PATH.
      [description]: Remove obsolete workaround from description.
---
 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 1b401bc..f94f49c 100644
--- 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"
                  (("=/usr") (string-append "=" out)))
+               ;; Ensure PATH works both in guix and within the debian chroot
+               ;; workaround for: https://bugs.debian.org/929889
+               (substitute* "functions"
+                 (("PATH=/sbin:/usr/sbin:/bin:/usr/bin")
+                  "PATH=$PATH:/sbin:/usr/sbin:/bin:/usr/bin"))
                (substitute* (find-files "scripts" ".")
                  (("/usr/share/zoneinfo") (string-append tzdata 
"/share/zoneinfo")))
                #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
-unpacking them into a directory which can eventually be chrooted into.
-
-It is recommended to run @code{debootstrap --foreign --arch=...} and then
address@hidden into the directory, set the PATH and run @code{debootstrap
---second-stage} after.")
+unpacking them into a directory which can eventually be chrooted into.")
     (license license:gpl2)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]