unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
blob e2a19ba2bdadd1cbfccedfcd429f42d08417acec 3626 bytes (raw)
name: gnu/packages/debootstrap.scm 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
 
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2018 Marius Bakke <mbakke@fastmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.

(define-module (gnu packages debootstrap)
  #:use-module (guix packages)
  #:use-module (guix download)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (guix build-system gnu)
  #:use-module (gnu packages package-management)
  #:use-module (gnu packages perl)
  #:use-module (gnu packages wget)
  #:use-module (gnu packages))

(define-public debootstrap
  (package
    (name "debootstrap")
    (version "1.0.93")
    (source (origin
              (method url-fetch)
              (uri (string-append "mirror://debian/pool/main/d/debootstrap/"
                                  "debootstrap_" version ".tar.gz"))
              (sha256
               (base32
                "1nyp9fwb7xrk1vin81dmgx2g9rb52yg4gwz4rcx97gamw4mlvbfd"))))
    (build-system gnu-build-system)
    (arguments
     `(#:make-flags (list (string-append "DESTDIR=" (assoc-ref %outputs "out")))
       #:tests? #f                    ;no tests
       #:phases (modify-phases %standard-phases
                  (add-after 'unpack 'fix-Makefile
                    (lambda _
                      (substitute* "Makefile"
                        (("/usr") "")
                        (("-o root -g root") "")
                        (("chown root.*") "\n"))
                      #t))
                  (add-after 'fix-Makefile 'patch-paths
                    (lambda* (#:key inputs outputs #:allow-other-keys)
                      (let ((out (assoc-ref outputs "out"))
                            (dpkg (assoc-ref inputs "dpkg"))
                            (wget (assoc-ref inputs "wget")))
                      (substitute* "debootstrap"
                        (("/usr/share/debootstrap")
                         (string-append out "/share/debootstrap"))
                        (("/usr/bin/dpkg") (string-append dpkg "/bin/dpkg")))
                      (substitute* "functions"
                        (("wget ") (string-append wget "/bin/wget ")))
                      #t)))
                  (delete 'configure))))
    (inputs
     `(("wget" ,wget)))
    ;; The bootstrapping scripts contain many references to these packages, some
    ;; of which referring to the target system.  For simplicity just propagate them
    ;; instead of adding absolute references.
    (propagated-inputs
     `(("dpkg" ,dpkg)
       ("perl" ,perl)))
    (home-page "https://wiki.debian.org/Debootstrap")
    (synopsis "Bootstrap a Debian or Ubuntu system")
    (description
     "@command{debootstrap} is a tool which will install a Debian base system
into a subdirectory of another, already installed system.  It does not require
an installation CD, just access to a Debian repository.  It can also be used to
create a rootfs for a machine of a different architecture, which is known as
\"cross-debootstrapping\".")
    (license license:gpl2+)))

debug log:

solving e2a19ba2b ...
found e2a19ba2b in https://yhetil.org/guix-patches/87a7vgjm6n.fsf@fastmail.com/

applying [1/1] https://yhetil.org/guix-patches/87a7vgjm6n.fsf@fastmail.com/
diff --git a/gnu/packages/debootstrap.scm b/gnu/packages/debootstrap.scm
new file mode 100644
index 000000000..e2a19ba2b

Checking patch gnu/packages/debootstrap.scm...
Applied patch gnu/packages/debootstrap.scm cleanly.

index at:
100644 e2a19ba2bdadd1cbfccedfcd429f42d08417acec	gnu/packages/debootstrap.scm

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).