guix-commits
[Top][All Lists]
Advanced

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

01/01: gnu: debootstrap: Substitute chroot in 'patch-source' phase.


From: Kei Kebreau
Subject: 01/01: gnu: debootstrap: Substitute chroot in 'patch-source' phase.
Date: Fri, 8 Jun 2018 11:08:33 -0400 (EDT)

kkebreau pushed a commit to branch master
in repository guix.

commit 129948dcbda91d4449b56e3816eede249e34afb6
Author: Kei Kebreau <address@hidden>
Date:   Tue Jun 5 16:13:23 2018 -0400

    gnu: debootstrap: Substitute chroot in 'patch-source' phase.
    
    * gnu/packages/debian.scm (debootstrap)[arguments]: In 'patch-source' phase,
    substitute chroot in the debootstrap script file.
    [inputs]: Add coreutils.
---
 gnu/packages/debian.scm | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/debian.scm b/gnu/packages/debian.scm
index d3438a1..e1dd9d1 100644
--- a/gnu/packages/debian.scm
+++ b/gnu/packages/debian.scm
@@ -129,6 +129,7 @@ contains the archive keys used for that.")
          (add-after 'unpack 'patch-source
            (lambda* (#:key inputs outputs #:allow-other-keys)
              (let ((out    (assoc-ref outputs "out"))
+                   (coreutils (assoc-ref inputs "coreutils"))
                    (wget   (assoc-ref inputs "wget"))
                    (debian (assoc-ref inputs "debian-keyring"))
                    (ubuntu (assoc-ref inputs "ubuntu-keyring")))
@@ -141,6 +142,7 @@ contains the archive keys used for that.")
                (substitute* "scripts/gutsy"
                  (("/usr") ubuntu))
                (substitute* "debootstrap"
+                 (("chroot ") (string-append coreutils "/bin/chroot "))
                  (("=/usr") (string-append "=" out)))
                (substitute* "functions"
                  (("wget ") (string-append wget "/bin/wget ")))
@@ -154,7 +156,8 @@ contains the archive keys used for that.")
        #:make-flags (list (string-append "DESTDIR=" (assoc-ref %outputs 
"out")))
        #:tests? #f)) ; no tests
     (inputs
-     `(("debian-keyring" ,debian-archive-keyring)
+     `(("coreutils" ,coreutils)
+       ("debian-keyring" ,debian-archive-keyring)
        ("ubuntu-keyring" ,ubuntu-keyring)
        ("wget" ,wget)))
     ;; The following are required for debootstrap to work correctly



reply via email to

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