From unknown Mon Aug 18 09:01:50 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#30709] [PATCH 0/4] Add debootstrap Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 05 Mar 2018 09:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 30709 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 30709@debbugs.gnu.org Cc: Efraim Flashner X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.152024201031690 (code B ref -1); Mon, 05 Mar 2018 09:27:01 +0000 Received: (at submit) by debbugs.gnu.org; 5 Mar 2018 09:26:50 +0000 Received: from localhost ([127.0.0.1]:45099 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1esmOQ-0008F4-E6 for submit@debbugs.gnu.org; Mon, 05 Mar 2018 04:26:50 -0500 Received: from eggs.gnu.org ([208.118.235.92]:55204) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1esmON-0008Eq-6r for submit@debbugs.gnu.org; Mon, 05 Mar 2018 04:26:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1esmOH-0005os-6p for submit@debbugs.gnu.org; Mon, 05 Mar 2018 04:26:42 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:42454) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1esmOH-0005ol-3j for submit@debbugs.gnu.org; Mon, 05 Mar 2018 04:26:41 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46175) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1esmOG-0000w7-0u for guix-patches@gnu.org; Mon, 05 Mar 2018 04:26:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1esmOC-0005nV-BQ for guix-patches@gnu.org; Mon, 05 Mar 2018 04:26:40 -0500 Received: from flashner.co.il ([178.62.234.194]:39148) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1esmOC-0005nJ-33 for guix-patches@gnu.org; Mon, 05 Mar 2018 04:26:36 -0500 Received: from localhost (46-117-130-5.bb.netvision.net.il [46.117.130.5]) by flashner.co.il (Postfix) with ESMTPSA id 2E748401F6; Mon, 5 Mar 2018 09:26:35 +0000 (UTC) From: Efraim Flashner Date: Mon, 5 Mar 2018 11:26:25 +0200 Message-Id: <20180305092625.1014-1-efraim@flashner.co.il> X-Mailer: git-send-email 2.16.2 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.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: -4.0 (----) >From time to time having a debian (or ubuntu) chroot is useful, so I figured there was no reason to keep my patches for debootstrap in my GUIX_PACKAGE_PATH, so here's the patches necessary to make it work. debootstrap uses 'ar' from binutils to extract the .debs it downloads, gnupg and the keyrings to verify the binaries, and perl for the actual building. There's no perl to patch from the script, its from what is actually downloaded. With the propagated inputs, it should be possible to run 'guix environment -C -N --ad-hoc debootstrap -- debootstrap ...' Efraim Flashner (4): gnu: Add jetring. gnu: Add debian-archive-keyring. gnu: Add ubuntu-keyring. gnu: Add debootstrap. gnu/local.mk | 1 + gnu/packages/debian.scm | 170 ++++++++++++++++++++++++++++++++++++++++++= ++++++ gnu/packages/gnupg.scm | 49 +++++++++++++- 3 files changed, 219 insertions(+), 1 deletion(-) create mode 100644 gnu/packages/debian.scm --=20 2.16.2 From unknown Mon Aug 18 09:01:50 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#30709] [PATCH 1/4] gnu: Add jetring. Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 05 Mar 2018 09:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30709 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 30709@debbugs.gnu.org Cc: Efraim Flashner Received: via spool by 30709-submit@debbugs.gnu.org id=B30709.152024217131987 (code B ref 30709); Mon, 05 Mar 2018 09:30:02 +0000 Received: (at 30709) by debbugs.gnu.org; 5 Mar 2018 09:29:31 +0000 Received: from localhost ([127.0.0.1]:45104 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1esmQt-0008JR-Qi for submit@debbugs.gnu.org; Mon, 05 Mar 2018 04:29:31 -0500 Received: from flashner.co.il ([178.62.234.194]:36672) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1esmQr-0008J8-BN for 30709@debbugs.gnu.org; Mon, 05 Mar 2018 04:29:22 -0500 Received: from localhost (46-117-130-5.bb.netvision.net.il [46.117.130.5]) by flashner.co.il (Postfix) with ESMTPSA id 7A10D40221; Mon, 5 Mar 2018 09:29:15 +0000 (UTC) From: Efraim Flashner Date: Mon, 5 Mar 2018 11:29:04 +0200 Message-Id: <20180305092907.1191-1-efraim@flashner.co.il> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180305092625.1014-1-efraim@flashner.co.il> References: <20180305092625.1014-1-efraim@flashner.co.il> 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: -0.0 (/) * gnu/packages/gnupg.scm (jetring): New variable. --- gnu/packages/gnupg.scm | 49 ++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 48 insertions(+), 1 deletion(-) diff --git a/gnu/packages/gnupg.scm b/gnu/packages/gnupg.scm index eeab5c5af..d6b41da2d 100644 --- a/gnu/packages/gnupg.scm +++ b/gnu/packages/gnupg.scm @@ -4,7 +4,7 @@ ;;; Copyright © 2014 Eric Bavier ;;; Copyright © 2014, 2015, 2016 Mark H Weaver ;;; Copyright © 2015 Paul van der Walt -;;; Copyright © 2015, 2016, 2017 Efraim Flashner +;;; Copyright © 2015, 2016, 2017, 2018 Efraim Flashner ;;; Copyright © 2015, 2016, 2017 Ricardo Wurmus ;;; Copyright © 2016 Christopher Allan Webber ;;; Copyright © 2016, 2017 ng0 @@ -929,3 +929,50 @@ keyring content. Parcimonie is a daemon that fetches one key at a time using the Tor network, waits a bit, changes the Tor circuit being used, and starts over.") (license license:gpl1+))) + +(define-public jetring + (package + (name "jetring") + (version "0.25") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://debian/pool/main/j/" name "/" + name "_" version ".tar.xz")) + (sha256 + (base32 + "0shcnnw0h31b08vmnvf18ni33dg40w18wv9smb69vkklz3h4jhpw")))) + (build-system gnu-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + (delete 'configure) ; no configure script + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (man (string-append out "/share/man"))) + (for-each (lambda (file) + (install-file file (string-append out "/bin/"))) + '("jetring-accept" "jetring-apply" "jetring-build" + "jetring-checksum" "jetring-diff" "jetring-explode" + "jetring-gen" "jetring-review" "jetring-signindex")) + (for-each (lambda (file) + (install-file file (string-append man "/man1/"))) + (find-files "." ".*\\.1$")) + (install-file "jetring.7" (string-append man "/man7/")) + #t)))) + #:tests? #f)) ; no test phase + (native-inputs `(("gnupg" ,gnupg))) + (inputs `(("perl" ,perl))) + (home-page "https://joeyh.name/code/jetring/") + (synopsis "Gpg keyring maintenance using changesets") + (description + "Jetring is a collection of tools that allow for gpg keyrings to be +maintained using changesets. It was developed with the Debian keyring in mind, +and aims to solve the problem that a gpg keyring is a binary blob that's hard +for multiple people to collaboratively edit. +With jetring, changesets can be submitted, reviewed to see exactly what they +will do, applied, and used to build a keyring. The origin of every change made +to the keyring is available for auditing, and gpg signatures can be used to +further secure things.") + (license license:gpl2+))) -- 2.16.2 From unknown Mon Aug 18 09:01:50 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#30709] [PATCH 2/4] gnu: Add debian-archive-keyring. Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 05 Mar 2018 09:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30709 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 30709@debbugs.gnu.org Cc: Efraim Flashner Received: via spool by 30709-submit@debbugs.gnu.org id=B30709.152024217131994 (code B ref 30709); Mon, 05 Mar 2018 09:30:02 +0000 Received: (at 30709) by debbugs.gnu.org; 5 Mar 2018 09:29:31 +0000 Received: from localhost ([127.0.0.1]:45109 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1esmR1-0008Js-Ar for submit@debbugs.gnu.org; Mon, 05 Mar 2018 04:29:31 -0500 Received: from flashner.co.il ([178.62.234.194]:36678) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1esmQt-0008JD-Lm for 30709@debbugs.gnu.org; Mon, 05 Mar 2018 04:29:26 -0500 Received: from localhost (46-117-130-5.bb.netvision.net.il [46.117.130.5]) by flashner.co.il (Postfix) with ESMTPSA id DE91640238; Mon, 5 Mar 2018 09:29:17 +0000 (UTC) From: Efraim Flashner Date: Mon, 5 Mar 2018 11:29:05 +0200 Message-Id: <20180305092907.1191-2-efraim@flashner.co.il> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180305092907.1191-1-efraim@flashner.co.il> References: <20180305092625.1014-1-efraim@flashner.co.il> <20180305092907.1191-1-efraim@flashner.co.il> 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: -0.0 (/) * gnu/packages/debian.scm (debian-archive-keyring): New variable. * gnu/local.mk (GNU_SYSTEM_MODULES): Add it. --- gnu/local.mk | 1 + gnu/packages/debian.scm | 62 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 gnu/packages/debian.scm diff --git a/gnu/local.mk b/gnu/local.mk index d091a89b8..38a2afe91 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -120,6 +120,7 @@ GNU_SYSTEM_MODULES = \ %D%/packages/datastructures.scm \ %D%/packages/dav.scm \ %D%/packages/dc.scm \ + %D%/packages/debian.scm \ %D%/packages/debug.scm \ %D%/packages/dejagnu.scm \ %D%/packages/dico.scm \ diff --git a/gnu/packages/debian.scm b/gnu/packages/debian.scm new file mode 100644 index 000000000..70131ff45 --- /dev/null +++ b/gnu/packages/debian.scm @@ -0,0 +1,62 @@ +;;; Copyright © 2018 Efraim Flashner +;;; +;;; 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 . + +(define-module (gnu packages debian) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (guix download) + #:use-module (guix packages) + #:use-module (guix build-system gnu) + #:use-module (gnu packages gnupg)) + +(define-public debian-archive-keyring + (package + (name "debian-archive-keyring") + (version "2017.7") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://debian/pool/main/d/" name "/" + name "_" version ".tar.xz")) + (sha256 + (base32 + "1pdwgipfi0y4svhxlw8arhq792f1g3vlmw4raphizy7sa65vd4ca")))) + (build-system gnu-build-system) + (arguments + '(#:test-target "verify-results" + #:parallel-build? #f ; has race conditions + #:phases + (modify-phases %standard-phases + (delete 'configure) ; no configure script + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (apt (string-append out "/etc/apt/trusted.gpg.d/")) + (key (string-append out "/share/keyrings/"))) + (install-file "keyrings/debian-archive-keyring.gpg" key) + (install-file "keyrings/debian-archive-removed-keys.gpg" key) + (for-each (lambda (file) + (install-file file apt)) + (find-files "trusted.gpg" "\\.gpg$"))) + #t))))) + (native-inputs + `(("gnupg" ,gnupg) + ("jetring" ,jetring))) + (home-page "https://packages.qa.debian.org/d/debian-archive-keyring.html") + (synopsis "GnuPG archive keys of the Debian archive") + (description + "The Debian project digitally signs its Release files. This package +contains the archive keys used for that.") + (license (list license:public-domain ; the keys + license:gpl2+)))) ; see debian/copyright -- 2.16.2 From unknown Mon Aug 18 09:01:50 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#30709] [PATCH 3/4] gnu: Add ubuntu-keyring. Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 05 Mar 2018 09:30:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30709 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 30709@debbugs.gnu.org Cc: Efraim Flashner Received: via spool by 30709-submit@debbugs.gnu.org id=B30709.152024217132001 (code B ref 30709); Mon, 05 Mar 2018 09:30:03 +0000 Received: (at 30709) by debbugs.gnu.org; 5 Mar 2018 09:29:31 +0000 Received: from localhost ([127.0.0.1]:45111 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1esmR1-0008Jz-KB for submit@debbugs.gnu.org; Mon, 05 Mar 2018 04:29:31 -0500 Received: from flashner.co.il ([178.62.234.194]:36688) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1esmQv-0008JG-Co for 30709@debbugs.gnu.org; Mon, 05 Mar 2018 04:29:26 -0500 Received: from localhost (46-117-130-5.bb.netvision.net.il [46.117.130.5]) by flashner.co.il (Postfix) with ESMTPSA id B21D34027C; Mon, 5 Mar 2018 09:29:19 +0000 (UTC) From: Efraim Flashner Date: Mon, 5 Mar 2018 11:29:06 +0200 Message-Id: <20180305092907.1191-3-efraim@flashner.co.il> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180305092907.1191-1-efraim@flashner.co.il> References: <20180305092625.1014-1-efraim@flashner.co.il> <20180305092907.1191-1-efraim@flashner.co.il> MIME-Version: 1.0 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: -0.0 (/) * gnu/packages/debian.scm (ubuntu-keyring): New variable. --- gnu/packages/debian.scm | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/gnu/packages/debian.scm b/gnu/packages/debian.scm index 70131ff45..5eda5e849 100644 --- a/gnu/packages/debian.scm +++ b/gnu/packages/debian.scm @@ -18,6 +18,9 @@ #:use-module (guix download) #:use-module (guix packages) #:use-module (guix build-system gnu) + #:use-module (guix build-system trivial) + #:use-module (gnu packages base) + #:use-module (gnu packages compression) #:use-module (gnu packages gnupg)) (define-public debian-archive-keyring @@ -60,3 +63,43 @@ contains the archive keys used for that.") (license (list license:public-domain ; the keys license:gpl2+)))) ; see debian/copyright + +(define-public ubuntu-keyring + (package + (name "ubuntu-keyring") + (version "2018.02.28") + (source + (origin + (method url-fetch) + (uri (string-append "https://launchpad.net/ubuntu/+archive/primary/" + "+files/" name "_" version ".tar.gz")) + (sha256 + (base32 + "1zj3012cz7rlx9pm39wnwa0lmi1h38n6bkgbz81vnmcsvqsc9a3a")))) + (build-system trivial-build-system) + (arguments + `(#:modules ((guix build utils)) + #:builder (begin + (use-modules (guix build utils)) + (let* ((out (assoc-ref %outputs "out")) + (apt (string-append out "/etc/apt/trusted.gpg.d/")) + (key (string-append out "/share/keyrings/"))) + (setenv "PATH" (string-append + (assoc-ref %build-inputs "gzip") "/bin:" + (assoc-ref %build-inputs "tar") "/bin")) + (invoke "tar" "xvf" (assoc-ref %build-inputs "source")) + (for-each (lambda (file) + (install-file file key) + (install-file file apt)) + (find-files "." "\\.gpg$"))) + #t))) + (native-inputs + `(("tar" ,tar) + ("gzip" ,gzip))) + (home-page "https://launchpad.net/ubuntu/+source/ubuntu-keyring") + (synopsis "GnuPG keys of the Ubuntu archive") + (description + "The Ubuntu project digitally signs its Release files. This package +contains the archive keys used for that.") + (license (list license:public-domain ; the keys + license:gpl2+)))) ; see debian/copyright -- 2.16.2 From unknown Mon Aug 18 09:01:50 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#30709] [PATCH 4/4] gnu: Add debootstrap. Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 05 Mar 2018 09:30:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30709 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 30709@debbugs.gnu.org Cc: Efraim Flashner Received: via spool by 30709-submit@debbugs.gnu.org id=B30709.152024217232008 (code B ref 30709); Mon, 05 Mar 2018 09:30:04 +0000 Received: (at 30709) by debbugs.gnu.org; 5 Mar 2018 09:29:32 +0000 Received: from localhost ([127.0.0.1]:45113 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1esmR1-0008K6-SW for submit@debbugs.gnu.org; Mon, 05 Mar 2018 04:29:32 -0500 Received: from flashner.co.il ([178.62.234.194]:36694) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1esmQx-0008JI-4R for 30709@debbugs.gnu.org; Mon, 05 Mar 2018 04:29:27 -0500 Received: from localhost (46-117-130-5.bb.netvision.net.il [46.117.130.5]) by flashner.co.il (Postfix) with ESMTPSA id 71CD7402BE; Mon, 5 Mar 2018 09:29:21 +0000 (UTC) From: Efraim Flashner Date: Mon, 5 Mar 2018 11:29:07 +0200 Message-Id: <20180305092907.1191-4-efraim@flashner.co.il> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180305092907.1191-1-efraim@flashner.co.il> References: <20180305092625.1014-1-efraim@flashner.co.il> <20180305092907.1191-1-efraim@flashner.co.il> MIME-Version: 1.0 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: -0.0 (/) * gnu/packages/debian.scm (debootstrap): New variable. --- gnu/packages/debian.scm | 67 ++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 66 insertions(+), 1 deletion(-) diff --git a/gnu/packages/debian.scm b/gnu/packages/debian.scm index 5eda5e849..15dcd64e8 100644 --- a/gnu/packages/debian.scm +++ b/gnu/packages/debian.scm @@ -16,12 +16,15 @@ (define-module (gnu packages debian) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix download) + #:use-module (guix git-download) #:use-module (guix packages) #:use-module (guix build-system gnu) #:use-module (guix build-system trivial) #:use-module (gnu packages base) #:use-module (gnu packages compression) - #:use-module (gnu packages gnupg)) + #:use-module (gnu packages gnupg) + #:use-module (gnu packages perl) + #:use-module (gnu packages wget)) (define-public debian-archive-keyring (package @@ -103,3 +106,65 @@ contains the archive keys used for that.") contains the archive keys used for that.") (license (list license:public-domain ; the keys license:gpl2+)))) ; see debian/copyright + +(define-public debootstrap + (package + (name "debootstrap") + (version "1.0.93") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://anonscm.debian.org/cgit/d-i/debootstrap.git") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1jxq91602a152c56l2f8kzkiszp26cziqddcs4v695bcif72kfz6")))) + (build-system gnu-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (delete 'configure) + (delete 'build) + (add-after 'unpack 'patch-source + (lambda* (#:key inputs outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out")) + (debian (assoc-ref %build-inputs "debian")) + (ubuntu (assoc-ref %build-inputs "ubuntu"))) + (substitute* "scripts/sid" + (("/usr") debian)) + (substitute* "scripts/gutsy" + (("/usr") ubuntu)) + (substitute* "debootstrap" + (("=/usr") (string-append "=" out)) + (("@VERSION@") ,version)) + (substitute* "functions" + (("wget ") (string-append (which "wget") " "))) + #t))) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (copy-recursively "scripts" + (string-append out "/share/debootstrap/scripts")) + (install-file "functions" (string-append out "/share/debootstrap")) + (install-file "debootstrap" (string-append out "/sbin")) + (install-file "debootstrap.8" (string-append out "/share/man/man8")) + #t)))) + #:tests? #f)) ; no tests + (inputs + `(("debian" ,debian-archive-keyring) + ("ubuntu" ,ubuntu-keyring) + ("wget" ,wget))) + ;; The following are required for debootstrap to work correctly + (propagated-inputs + `(("binutils" ,binutils) + ("gnupg" ,gnupg) + ("perl" ,perl))) + (home-page "https://anonscm.debian.org/cgit/d-i/debootstrap.git") + (synopsis "Bootstrap a basic Debian system") + (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.") + (license license:gpl2))) -- 2.16.2 From unknown Mon Aug 18 09:01:50 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#30709] [PATCH 1/4] gnu: Add jetring. Resent-From: Marius Bakke Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 10 Mar 2018 09:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30709 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Efraim Flashner , 30709@debbugs.gnu.org Cc: Efraim Flashner Received: via spool by 30709-submit@debbugs.gnu.org id=B30709.152067415929005 (code B ref 30709); Sat, 10 Mar 2018 09:30:02 +0000 Received: (at 30709) by debbugs.gnu.org; 10 Mar 2018 09:29:19 +0000 Received: from localhost ([127.0.0.1]:53084 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1euaoZ-0007Xk-5r for submit@debbugs.gnu.org; Sat, 10 Mar 2018 04:29:19 -0500 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:47273) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1euaoX-0007Xc-EB for 30709@debbugs.gnu.org; Sat, 10 Mar 2018 04:29:17 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 2DC6721264; Sat, 10 Mar 2018 04:29:17 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Sat, 10 Mar 2018 04:29:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=MWYSDZqFAIvZ+sP973cqPt75nrb6m72JH7LN5xDWfrU=; b=SPNmQ7ne xLsYDRosml5Thz3sqvr3qdh4VPn9lHgSQ4jptLcxXsU3yCR05+2LfkOcGR71fJuy Z9HLYzX7Q6McoOw0O7JZIg7z2la2ZhLzx0Nxbe9jJXaxU+5rt+0DBdAC8D/xMHXP yLNkm3YozY6/XMUfB3h24e7so2A/Y75X4NLajTi87POXneIODsgbs73QE71q0ppB jRETRORxL8oCIIhX4aC3rn8/2qIS0/vJn/osTjD0cYuyFsr0dAhtCTI1jxLq0YaH /huuQxwYqhStVz8EzhWVX9A457hehigf2EnOUVJPCjwLsAzjGDByn6Kz/z4JjFVQ Ynzf63lG6morUA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=MWYSDZqFAIvZ+sP973cqPt75nrb6m 72JH7LN5xDWfrU=; b=EmGZ7gwpYR/O3Vc/4rNTObeNyKOHNY9OOg/3Wr9e21Fwc jJGWZlrnKRLiFYHKr+hN/m+iMKpymlnbyTYnekOzFJXtvfGWxXRhrU//s1MIzDOU AhSBMNOg0qph7JkqeYBAMd8CJeXVNV8RB+t1j3NpehHHh6jwft+MBadZ469oT9XK N1pLPzWfk46Nx30Jj3xIDXsLhu81+AJMAnIrV6Aaf0HCpW091mtrjxkQ6cMwDb7y pLxpre4tDWbRMT05M4Ob4Z6yg3S4Sw0cXSuH7XWArC2+RX25cEqEwv+zcSJ7+dyU gwqfXMugV/LC7T78CfLOKxyHUGPtVXdT8D6zXL3LQ== X-ME-Sender: Received: from localhost (unknown [185.3.5.222]) by mail.messagingengine.com (Postfix) with ESMTPA id A3FC42418D; Sat, 10 Mar 2018 04:29:16 -0500 (EST) From: Marius Bakke In-Reply-To: <20180305092907.1191-1-efraim@flashner.co.il> References: <20180305092625.1014-1-efraim@flashner.co.il> <20180305092907.1191-1-efraim@flashner.co.il> User-Agent: Notmuch/0.26 (https://notmuchmail.org) Emacs/25.3.1 (x86_64-pc-linux-gnu) Date: Sat, 10 Mar 2018 10:29:14 +0100 Message-ID: <87ina4jn2t.fsf@fastmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) 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: -0.7 (/) --=-=-= Content-Type: text/plain Efraim Flashner writes: > * gnu/packages/gnupg.scm (jetring): New variable. [...] > + (build-system gnu-build-system) > + (arguments > + '(#:phases > + (modify-phases %standard-phases > + (delete 'configure) ; no configure script > + (replace 'install > + (lambda* (#:key outputs #:allow-other-keys) > + (let* ((out (assoc-ref outputs "out")) > + (man (string-append out "/share/man"))) > + (for-each (lambda (file) > + (install-file file (string-append out "/bin/"))) > + '("jetring-accept" "jetring-apply" "jetring-build" > + "jetring-checksum" "jetring-diff" "jetring-explode" > + "jetring-gen" "jetring-review" "jetring-signindex")) > + (for-each (lambda (file) > + (install-file file (string-append man "/man1/"))) > + (find-files "." ".*\\.1$")) > + (install-file "jetring.7" (string-append man "/man7/")) > + #t)))) > + #:tests? #f)) ; no test phase > + (native-inputs `(("gnupg" ,gnupg))) What is GnuPG used for here? I would assume it was a "normal" input. > + (inputs `(("perl" ,perl))) > + (home-page "https://joeyh.name/code/jetring/") > + (synopsis "Gpg keyring maintenance using changesets") s/Gpg/GnuPG/ > + (description > + "Jetring is a collection of tools that allow for gpg keyrings to be > +maintained using changesets. It was developed with the Debian keyring in mind, > +and aims to solve the problem that a gpg keyring is a binary blob that's hard > +for multiple people to collaboratively edit. \n > +With jetring, changesets can be submitted, reviewed to see exactly what they > +will do, applied, and used to build a keyring. The origin of every change made > +to the keyring is available for auditing, and gpg signatures can be used to > +further secure things.") s/to further secure things/for integrity guarantees/ (IMO) It would be good with an explanation of what a changeset is or how it works, but LGTM either way. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAlqjpWoACgkQoqBt8qM6 VPrF3Qf/Q+oQH5pZb6yqSe2q+9EHvBiYmoIMQCYChMJt0cQohLkJbO/7GK4kxRa5 rzcHTJCAJPfVxb+OGGB/Eai3pZMCxdy+/aVQxqS0RrHa9TSjzVskOZ1+vkedKCzG qzfDFkMdT4LR/E/rL3mW7jrom7pBMavN4+ervtFsl6Nmde7JYa26SB7HjG3KrjdP Qjtp6NhHngR32JF4iEMPpGmRfsDh6bJfrSwomRvIwZrFIJVWLSXdmvLKegNy2U2Z nbmpqiIlYvfcVrd9CNturBTj6K+mYn0G7IiLK4sp/XgvCw8jqamOelvQshDWZauy Dbr6xXeEf/Ta+T2CxwWSvtxARLrY6w== =TAaw -----END PGP SIGNATURE----- --=-=-=-- From unknown Mon Aug 18 09:01:50 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#30709] [PATCH 2/4] gnu: Add debian-archive-keyring. Resent-From: Marius Bakke Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 10 Mar 2018 09:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30709 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Efraim Flashner , 30709@debbugs.gnu.org Cc: Efraim Flashner Received: via spool by 30709-submit@debbugs.gnu.org id=B30709.152067422529208 (code B ref 30709); Sat, 10 Mar 2018 09:31:02 +0000 Received: (at 30709) by debbugs.gnu.org; 10 Mar 2018 09:30:25 +0000 Received: from localhost ([127.0.0.1]:53090 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1euapb-0007ay-Hb for submit@debbugs.gnu.org; Sat, 10 Mar 2018 04:30:25 -0500 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:47793) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1euapW-0007an-CU for 30709@debbugs.gnu.org; Sat, 10 Mar 2018 04:30:22 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 3B5DA2152C; Sat, 10 Mar 2018 04:30:18 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Sat, 10 Mar 2018 04:30:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=rzA83l3bu4OAj9Nejq+EWdjP6F2IQIxVkHDf+8NuDGM=; b=qYhpEJhj Yw1YvWCVmScPFENCQM/1+Dia7eWn/twR9NV8ZiqSocTfetGv4iXytzGCNVWugh+w x/h++23HJMZa/AtGGFPsuMTJgO9M4CuaQnZEOOEnTog7yZ6QeqGp35gDDMCp+jfT nP/UqLVKQYKQ3zF6NxUGnEtpF1Zrt9uYM53mnkE3J2LrUjZLOHzL1geCq5rFxewc 6rQGWoBF4DZHa/bG+T7kT1jEOVMZyMfTNHkP6p/FNklrEdJLKT3C5fqANlogoiYk OM40nkxPhvfrvumavsGrVet4bdga038v6hz0diKJi7elbDmZCr+WtRNF7l1/fJlf kfobvl1+WFaG8A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=rzA83l3bu4OAj9Nejq+EWdjP6F2IQ IxVkHDf+8NuDGM=; b=PWuhSY6O0tRyszOkjPcIWdI2qnlGPBVLz+xIOR8ss+qjg DQ3X2Q4aZPpql/bXVZ9QvYayDa+/W0uKh8r+FGyYa8Wtk5+OIt4mN38o39ZpB2Dt z8EGrTFMR2V4y5bMIF+lwxDCKyi+Zw92SavLL/5X1Ibj/EMqTddnKUkASszc/NWw 2DJCqHRi9Xw5reYxRXrPlDYaEe5NHBMVjAUutlZzTEiKa2R1W/ahfQ6FgpRA2WyB PyOjz3r/ibaZ0AdfKLVPvc0QkdKpMh83uAt36o8ZhmOqY5EaCbW9s+bSFGpF+Zef KbkHVgz08M8vPE6nYabaqhrgZKffh4Bk60NSkhW6Q== X-ME-Sender: Received: from localhost (unknown [185.3.5.222]) by mail.messagingengine.com (Postfix) with ESMTPA id 90763240B6; Sat, 10 Mar 2018 04:30:17 -0500 (EST) From: Marius Bakke In-Reply-To: <20180305092907.1191-2-efraim@flashner.co.il> References: <20180305092625.1014-1-efraim@flashner.co.il> <20180305092907.1191-1-efraim@flashner.co.il> <20180305092907.1191-2-efraim@flashner.co.il> User-Agent: Notmuch/0.26 (https://notmuchmail.org) Emacs/25.3.1 (x86_64-pc-linux-gnu) Date: Sat, 10 Mar 2018 10:30:14 +0100 Message-ID: <87fu58jn15.fsf@fastmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) 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: -0.7 (/) --=-=-= Content-Type: text/plain Efraim Flashner writes: > * gnu/packages/debian.scm (debian-archive-keyring): New variable. > * gnu/local.mk (GNU_SYSTEM_MODULES): Add it. LGTM. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAlqjpaYACgkQoqBt8qM6 VPpjdggAhO7WC0O2O19jSJqw78C2j9xr9Sg7XWde08KuFGjE52shG9XwJQudNmhR 3M36/z7wICg6cXipDhvy9DeCmr91lFXVsB9cfTYOFPGDmAodF4pSXJSkwSkjI/ca v+ZaL24I32uqZXGfeb6f3pqvl268w7pfg3uA9ygtawd56JYQKpoef+dIDUvPeTaH IehQZ+VUCgN/E9WKszo8LNL/CdkGiqG9THp5pYwB2mYeT80UkBtg0be3cgR0CyWj VibdDw8VbuBlIsEgt+SQ4HO1gDEr0Fb7gpfSQIwWWS21s0vECMKt3IhdsBNexTsm tNks9uOKibIAPIPXONKJ/CJoNSsFcw== =82S1 -----END PGP SIGNATURE----- --=-=-=-- From unknown Mon Aug 18 09:01:50 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#30709] [PATCH 3/4] gnu: Add ubuntu-keyring. Resent-From: Marius Bakke Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 10 Mar 2018 09:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30709 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Efraim Flashner , 30709@debbugs.gnu.org Cc: Efraim Flashner Received: via spool by 30709-submit@debbugs.gnu.org id=B30709.152067440429544 (code B ref 30709); Sat, 10 Mar 2018 09:34:01 +0000 Received: (at 30709) by debbugs.gnu.org; 10 Mar 2018 09:33:24 +0000 Received: from localhost ([127.0.0.1]:53096 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1euasW-0007gS-C0 for submit@debbugs.gnu.org; Sat, 10 Mar 2018 04:33:24 -0500 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:53085) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1euasV-0007gJ-7q for 30709@debbugs.gnu.org; Sat, 10 Mar 2018 04:33:23 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 1FE0F213EF; Sat, 10 Mar 2018 04:33:23 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Sat, 10 Mar 2018 04:33:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=9FKR8N+j76eCqnshwlaPY/BYDbFdIla+qx4CjIv0slw=; b=Ths/S1B/ AGIxZty+/P/j2eIty4sOFLvYp0nYu/xY6qQv3kz6Ei2ItRPXnYYfzKFMVtd/GbbH BuKP/RbuJvdqWso9wTSqNdtEEP4u0ZqAf+ffJq5P/zTWyrIALP7lJ68nSHm82Yc+ WlTg+PAoUkm9Egh9ppVGhew+4bSS9aCJCJdb5NzqtiswWk6vKqa/0bbAKpXLZ9Jn cbSNh/9Rw5jCXgUXkPNmWYoraK5vrsD4Z4E7RGnm1/1h35fEwtnjSOAIlfdmopQE kA+S+ntp3l5VbbGryDQZjqpnV21rEHFuqN7urEMqLyMnwdnptO+FkuiCPmIXz/5d UEibSaNmGcYkHQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=9FKR8N+j76eCqnshwlaPY/BYDbFdI la+qx4CjIv0slw=; b=cq5iybrC4lp7/HBprW0rOTj7PoxAetdp9Z6CEU8chLegi h2HBkaLmXi7ldAM9JLIYTcr4awNtNZx56KLvkZ1puLGu+5kgBZJ0JnTTBoOFz+i5 3VdS2+NWAKi/jLxXSF8p1BEwRyES+S/HgkN/PTSX02SwaPMaLTO5UcIRZi1cm/Au qpu9sasAZ3HMrkJZ6VulJqtssXmzLHD3JzqgLFmmp81sBr4tLvI1eLHGYzODRB3V DU1mOdhs6d3zIlskP/9FYBPZe/vVl6MZEVOO3kwAtl/V5fxDzz5h5VFq9UyJJY1L 8/zDJKb0b/DrRTqdlAMDNx9Fm8ps8s0HxoJqmT3jA== X-ME-Sender: Received: from localhost (unknown [185.3.5.222]) by mail.messagingengine.com (Postfix) with ESMTPA id A86A02418B; Sat, 10 Mar 2018 04:33:22 -0500 (EST) From: Marius Bakke In-Reply-To: <20180305092907.1191-3-efraim@flashner.co.il> References: <20180305092625.1014-1-efraim@flashner.co.il> <20180305092907.1191-1-efraim@flashner.co.il> <20180305092907.1191-3-efraim@flashner.co.il> User-Agent: Notmuch/0.26 (https://notmuchmail.org) Emacs/25.3.1 (x86_64-pc-linux-gnu) Date: Sat, 10 Mar 2018 10:33:21 +0100 Message-ID: <87d10cjmvy.fsf@fastmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) 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: -0.7 (/) --=-=-= Content-Type: text/plain Efraim Flashner writes: > * gnu/packages/debian.scm (ubuntu-keyring): New variable. [...] > + (build-system trivial-build-system) > + (arguments > + `(#:modules ((guix build utils)) > + #:builder (begin > + (use-modules (guix build utils)) > + (let* ((out (assoc-ref %outputs "out")) > + (apt (string-append out "/etc/apt/trusted.gpg.d/")) > + (key (string-append out "/share/keyrings/"))) > + (setenv "PATH" (string-append > + (assoc-ref %build-inputs "gzip") "/bin:" > + (assoc-ref %build-inputs "tar") "/bin")) > + (invoke "tar" "xvf" (assoc-ref %build-inputs "source")) > + (for-each (lambda (file) > + (install-file file key) > + (install-file file apt)) > + (find-files "." "\\.gpg$"))) > + #t))) Why is having the same files in out/share/keyrings and out/etc/apt/trusted.gpg.d necessary? (this was perhaps the case with the Debian keyring too?) --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAlqjpmEACgkQoqBt8qM6 VPrauQf/T/HSuTQJMBEKxNJiLSm4Kd8n9GZ+69qiZToxc1bD5q4vB+RvRwca9RuK 58atyUU+Hiriycnl7FdULfuJeSogUhEtc1VwLX22bj7T3q2wTJlH3rmB5Tv9FSk2 ya5DW1+HGSgmYnhbblgcUmohhoPRCr+xQvFrK1SKtjQWwWQ7GKEiXDAgTV35lgvS pTnqvPEz9oy1gGjHHHpvgXMxklR1uxbtpT5mEghHfK0USz4rji5QpBQoJUPRwaTN SNTs9NFV0NTkZu6yftK3X2+h5HELmNjKUtbkUNDzKGC7GW4LUWKRpUCpB38H95cL UVMhqApSHYrO05wHs6nHk+RIALrfPQ== =Ep28 -----END PGP SIGNATURE----- --=-=-=-- From unknown Mon Aug 18 09:01:50 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#30709] [PATCH 4/4] gnu: Add debootstrap. Resent-From: Marius Bakke Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 10 Mar 2018 09:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30709 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Efraim Flashner , 30709@debbugs.gnu.org Cc: Efraim Flashner Received: via spool by 30709-submit@debbugs.gnu.org id=B30709.152067532031086 (code B ref 30709); Sat, 10 Mar 2018 09:49:02 +0000 Received: (at 30709) by debbugs.gnu.org; 10 Mar 2018 09:48:40 +0000 Received: from localhost ([127.0.0.1]:53113 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eub7I-00085K-6q for submit@debbugs.gnu.org; Sat, 10 Mar 2018 04:48:40 -0500 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:47773) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eub7D-000858-SZ for 30709@debbugs.gnu.org; Sat, 10 Mar 2018 04:48:38 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id A4C342103B; Sat, 10 Mar 2018 04:48:35 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Sat, 10 Mar 2018 04:48:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=Chsj5zBZntfVxl3xzIZKyXz9Au42M6JhgkVW4fAZ4oY=; b=bgzevOvx TcQ2hJaew8vOfzf62j6K0ziu6UreF+0Y3w3n9dvgWRaTl0ULSG6pPDa1yeGZXzGG vad1w9ahDKjjFCtdlzjVN/Wd373xvMhO3zHlQPXORlKuUCmJ+6pplg1oCabTJbJ4 loXcf/7UGA+m3HGks0wgMezE/EbtjLpS2sU2a/jwyBj77I+DhkuIRam+mSXtg30B UIC0Ny0s0Vc0EPbZ+yoSbyXYHcR+RkcnytaeL28SRxymeCVtNC8J1cTLLSG9Z1RB wQF1DA0kxpQQ+qivtgBrAE4KwHUvvWbn/wqd7irgtC6TV5FV8GKRXnP0VpwzArrV qrISkqvAsEpq2g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=Chsj5zBZntfVxl3xzIZKyXz9Au42M 6JhgkVW4fAZ4oY=; b=id0bG/2SWmp2GaqdKmUMCskVzapL6v72Y83jUJZJTb0s/ YGWrz+pI0DP5HjjoCUIwu04NKYJT+j20eVq0BwJ+LUkmQSiEfwqRVdsZhoEOu/BQ gD0gcRFbh3ytiLJv7WbmbJk+STBU6YTYBf1NnrUn5A0OQ2cMFmPzt8TSaDZ8gVaB d+b6KJ5ZDmjt1iGUoO8p/QOB/AgLMpjx6L7zihv5YQO7/+LPla8Z2vUR2MueDG+Q X8HeoU70fHQL0qKsmD7QqY5kss5//303XtLyKpuLxLtS8tQ+zoXDyMuJ66PU2zo9 lTvJ64/aGZnGr8QXfdyosZge5k+BaMPh5Y8hLjWIw== X-ME-Sender: Received: from localhost (unknown [185.3.5.222]) by mail.messagingengine.com (Postfix) with ESMTPA id DA6E624038; Sat, 10 Mar 2018 04:48:34 -0500 (EST) From: Marius Bakke In-Reply-To: <20180305092907.1191-4-efraim@flashner.co.il> References: <20180305092625.1014-1-efraim@flashner.co.il> <20180305092907.1191-1-efraim@flashner.co.il> <20180305092907.1191-4-efraim@flashner.co.il> User-Agent: Notmuch/0.26 (https://notmuchmail.org) Emacs/25.3.1 (x86_64-pc-linux-gnu) Date: Sat, 10 Mar 2018 10:48:32 +0100 Message-ID: <87a7vgjm6n.fsf@fastmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) 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: -0.7 (/) --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Efraim Flashner writes: > * gnu/packages/debian.scm (debootstrap): New variable. Thanks for packaging this! I've worked on this too, and actually packaged 'dpkg' separately. Yet somehow I did not need to package the keyrings (I guess it is necessary to work offline?). Some comments inline, and my dpkg and debootstrap patches attached for comparison. Feel free to take inspiration from both. > +(define-public debootstrap > + (package > + (name "debootstrap") > + (version "1.0.93") > + (source > + (origin > + (method git-fetch) > + (uri (git-reference > + (url "https://anonscm.debian.org/cgit/d-i/debootstrap.git") > + (commit version))) > + (file-name (git-file-name name version)) Why use the git downloader here? > + (sha256 > + (base32 > + "1jxq91602a152c56l2f8kzkiszp26cziqddcs4v695bcif72kfz6")))) > + (build-system gnu-build-system) > + (arguments > + `(#:phases > + (modify-phases %standard-phases > + (delete 'configure) > + (delete 'build) > + (add-after 'unpack 'patch-source > + (lambda* (#:key inputs outputs #:allow-other-keys) > + (let ((out (assoc-ref outputs "out")) > + (debian (assoc-ref %build-inputs "debian")) > + (ubuntu (assoc-ref %build-inputs "ubuntu"))) Use (assoc-ref inputs "debian") instead of accessing the global %build-inputs. I'd also call them "debian-keyring" and "ubuntu-keyring" to make it clearer what's going on down below. > + (substitute* "scripts/sid" > + (("/usr") debian)) > + (substitute* "scripts/gutsy" > + (("/usr") ubuntu)) > + (substitute* "debootstrap" > + (("=/usr") (string-append "=" out)) > + (("@VERSION@") ,version)) If you don't delete the build phase, @VERSION@ should be automatically expanded to the correct value, methinks. > + (substitute* "functions" > + (("wget ") (string-append (which "wget") " "))) > + #t))) > + (replace 'install > + (lambda* (#:key outputs #:allow-other-keys) > + (let ((out (assoc-ref outputs "out"))) > + (copy-recursively "scripts" > + (string-append out "/share/debootstrap/scripts")) > + (install-file "functions" (string-append out "/share/debootstrap")) > + (install-file "debootstrap" (string-append out "/sbin")) > + (install-file "debootstrap.8" (string-append out "/share/man/man8")) > + #t)))) Similarly, passing DESTDIR in #:make-flags should make this unnecessary. > + #:tests? #f)) ; no tests > + (inputs > + `(("debian" ,debian-archive-keyring) > + ("ubuntu" ,ubuntu-keyring) > + ("wget" ,wget))) > + ;; The following are required for debootstrap to work correctly > + (propagated-inputs > + `(("binutils" ,binutils) > + ("gnupg" ,gnupg) > + ("perl" ,perl))) > + (home-page "https://anonscm.debian.org/cgit/d-i/debootstrap.git") > + (synopsis "Bootstrap a basic Debian system") > + (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.") > + (license license:gpl2))) I have not tried this debootstrap, but when testing the attached patch, I found that debootstrap would fail on the first attempt, but simply trying again made everything work. Did you experience this? Note that I did not propagate binutils, perhaps that was the problem. Or the confusion between Guix dpkg and the debootstrapped dpkg. Behold... --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: attachment; filename=0001-gnu-Add-dpkg.patch Content-Transfer-Encoding: quoted-printable From=2062795e10a95f393ab3a65d649ef3a30ccd8fece2 Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Fri, 5 Jan 2018 15:58:45 +0100 Subject: [PATCH] gnu: Add dpkg. * gnu/packages/package-management.scm (dpkg): New public variable. =2D-- gnu/packages/package-management.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/package-management.scm b/gnu/packages/package-man= agement.scm index 7eba74e96..451af238c 100644 =2D-- a/gnu/packages/package-management.scm +++ b/gnu/packages/package-management.scm @@ -5,6 +5,7 @@ ;;; Copyright =C2=A9 2017 Oleg Pykhalov ;;; Copyright =C2=A9 2017 Roel Janssen ;;; Copyright =C2=A9 2017 Tobias Geerinckx-Rice +;;; Copyright =C2=A9 2018 Marius Bakke ;;; ;;; This file is part of GNU Guix. ;;; @@ -46,6 +47,7 @@ #:use-module (gnu packages gettext) #:use-module (gnu packages lisp) #:use-module (gnu packages texinfo) + #:use-module (gnu packages ncurses) #:use-module (gnu packages nettle) #:use-module (gnu packages perl) #:use-module (gnu packages perl-check) @@ -349,6 +351,28 @@ out) and returning a package that uses that as its 'so= urce'." ;;; Other tools. ;;; =20 +(define-public dpkg + (package + (name "dpkg") + (version "1.19.0.4") + (source (origin + (method url-fetch) + (uri (string-append "mirror://debian/pool/main/d/dpkg/dpkg_" + version ".tar.xz")) + (sha256 + (base32 "02lrwrkl2g1jwj71088rwswx07a1zq1jkq7193lbvy8jj2qnp9= lq")))) + (build-system gnu-build-system) + (inputs + `(("ncurses" ,ncurses) + ("perl" ,perl))) + (home-page "https://wiki.debian.org/Teams/Dpkg") + (synopsis "Debian package manager") + (description + "@command{dpkg} is a low-level package management tool, primarily dev= eloped +for use in Debian. It can install, remove and show information about @fil= e{.deb} +packages.") + (license gpl2+))) + (define-public nix (package (name "nix") =2D-=20 2.16.2 --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: attachment; filename=0002-gnu-Add-debootstrap.patch Content-Transfer-Encoding: quoted-printable From=207e4ec4b1e8ad602c797d192dc6c5f573664c50d4 Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Fri, 5 Jan 2018 16:45:19 +0100 Subject: [PATCH] gnu: Add debootstrap. * gnu/packages/debootstrap.scm: New file. * gnu/local.mk (GNU_SYSTEM_MODULES): Register it. =2D-- gnu/local.mk | 1 + gnu/packages/debootstrap.scm | 81 ++++++++++++++++++++++++++++++++++++++++= ++++ 2 files changed, 82 insertions(+) create mode 100644 gnu/packages/debootstrap.scm diff --git a/gnu/local.mk b/gnu/local.mk index fb4babfdb..cf4e23117 100644 =2D-- a/gnu/local.mk +++ b/gnu/local.mk @@ -119,6 +119,7 @@ GNU_SYSTEM_MODULES =3D \ %D%/packages/dav.scm \ %D%/packages/dc.scm \ %D%/packages/debug.scm \ + %D%/packages/debootstrap.scm \ %D%/packages/dejagnu.scm \ %D%/packages/dico.scm \ %D%/packages/dictionaries.scm \ diff --git a/gnu/packages/debootstrap.scm b/gnu/packages/debootstrap.scm new file mode 100644 index 000000000..e2a19ba2b =2D-- /dev/null +++ b/gnu/packages/debootstrap.scm @@ -0,0 +1,81 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright =C2=A9 2018 Marius Bakke +;;; +;;; 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 . + +(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=3D" (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 propa= gate 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 sys= tem +into a subdirectory of another, already installed system. It does not req= uire +an installation CD, just access to a Debian repository. It can also be us= ed to +create a rootfs for a machine of a different architecture, which is known = as +\"cross-debootstrapping\".") + (license license:gpl2+))) =2D-=20 2.16.2 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAlqjqfAACgkQoqBt8qM6 VPryaQgAydgHXXLG9rWz5UJggGpyMoO2zmCSF41SQRR31p/PfEBKqa/qd72qclAD Cm4lkDvpbIKFjYavwlsDJokTPEfWIVrUXBpY6BdEOH8S36239mdOaKING1o04HFv nftna7ZdtrvkZ5UFObYa33qaOR3pZWtSxiPeyJ9MVglodLtYjkHlzdb2sM+biK8L DB3uryxcPanThkH1FGEC9fjUFbD1e54vo6eMBJhxEkECmjZYVbikJxmyHb2c2U+k jtZ/K2kCDAnW9X9uYpVlQyJPB4EeYuKx0jQAREPuh5esYATxw6iwZY9hK6aQE4VB Heze6TqQZv8fFT3qFls7S//yzcqnZA== =5ljc -----END PGP SIGNATURE----- --==-=-=-- From unknown Mon Aug 18 09:01:50 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#30709] [PATCH 1/4] gnu: Add jetring. Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 11 Mar 2018 10:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30709 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Marius Bakke Cc: 30709@debbugs.gnu.org Received: via spool by 30709-submit@debbugs.gnu.org id=B30709.152076307329141 (code B ref 30709); Sun, 11 Mar 2018 10:12:01 +0000 Received: (at 30709) by debbugs.gnu.org; 11 Mar 2018 10:11:13 +0000 Received: from localhost ([127.0.0.1]:54690 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1euxwf-0007Zw-3v for submit@debbugs.gnu.org; Sun, 11 Mar 2018 06:11:13 -0400 Received: from flashner.co.il ([178.62.234.194]:56758) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1euxwd-0007Zc-4N for 30709@debbugs.gnu.org; Sun, 11 Mar 2018 06:11:11 -0400 Received: from localhost (46-117-130-5.bb.netvision.net.il [46.117.130.5]) by flashner.co.il (Postfix) with ESMTPSA id 2AC0B40102; Sun, 11 Mar 2018 10:11:05 +0000 (UTC) Date: Sun, 11 Mar 2018 12:11:04 +0200 From: Efraim Flashner Message-ID: <20180311101104.GA4066@macbook41> References: <20180305092625.1014-1-efraim@flashner.co.il> <20180305092907.1191-1-efraim@flashner.co.il> <87ina4jn2t.fsf@fastmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="LZvS9be/3tNcYl/X" Content-Disposition: inline In-Reply-To: <87ina4jn2t.fsf@fastmail.com> User-Agent: Mutt/1.9.3 (2018-01-21) 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: -0.0 (/) --LZvS9be/3tNcYl/X Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Mar 10, 2018 at 10:29:14AM +0100, Marius Bakke wrote: > Efraim Flashner writes: >=20 > > * gnu/packages/gnupg.scm (jetring): New variable. >=20 > [...] >=20 > > + (build-system gnu-build-system) > > + (arguments > > + '(#:phases > > + (modify-phases %standard-phases > > + (delete 'configure) ; no configure script > > + (replace 'install > > + (lambda* (#:key outputs #:allow-other-keys) > > + (let* ((out (assoc-ref outputs "out")) > > + (man (string-append out "/share/man"))) > > + (for-each (lambda (file) > > + (install-file file (string-append out "/bin= /"))) > > + '("jetring-accept" "jetring-apply" "jetring-b= uild" > > + "jetring-checksum" "jetring-diff" "jetring-= explode" > > + "jetring-gen" "jetring-review" "jetring-sig= nindex")) > > + (for-each (lambda (file) > > + (install-file file (string-append man "/man= 1/"))) > > + (find-files "." ".*\\.1$")) > > + (install-file "jetring.7" (string-append man "/man7/")) > > + #t)))) > > + #:tests? #f)) ; no test phase > > + (native-inputs `(("gnupg" ,gnupg))) >=20 > What is GnuPG used for here? I would assume it was a "normal" input. >=20 It's used in jetring-build, and assumably in other scripts. It would probably be best to wrap jetring with gnupg. > > + (inputs `(("perl" ,perl))) > > + (home-page "https://joeyh.name/code/jetring/") > > + (synopsis "Gpg keyring maintenance using changesets") >=20 > s/Gpg/GnuPG/ >=20 > > + (description > > + "Jetring is a collection of tools that allow for gpg keyrings to = be > > +maintained using changesets. It was developed with the Debian keyring= in mind, > > +and aims to solve the problem that a gpg keyring is a binary blob that= 's hard > > +for multiple people to collaboratively edit. >=20 > \n >=20 > > +With jetring, changesets can be submitted, reviewed to see exactly wha= t they > > +will do, applied, and used to build a keyring. The origin of every ch= ange made > > +to the keyring is available for auditing, and gpg signatures can be us= ed to > > +further secure things.") >=20 > s/to further secure things/for integrity guarantees/ (IMO) >=20 > It would be good with an explanation of what a changeset is or how it > works, but LGTM either way. --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --LZvS9be/3tNcYl/X Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAlqlALUACgkQQarn3Mo9 g1HgCg//Q/TiNIXB2HchiEgsR5idxUWpPHnc06ODv9dO4TkM2LHdRbui4HcO6DR5 3rS3KWD5adoDGgEn+VNB/3ew6Kzj2LCNgQeymIhsd5NM1KHN3pQ2j4DAxOBhfm44 X3iuLbkXSn9lsJrMovkKISEz/TfGtLN1ZSqOwwvEdYykI2ydzvnY0fzLynzQXjuT 3Tzu7NQAD7nI5R3P+UKKQPbIGhuBU2QAdwwH60v61Lview+V1jwihqqfpvVuOaec SFECQBHBw1L3NBwwjNZ52pdz8wH1g67X/5rj0DsqwqpfsIuA4QStqrmg3ayYWu9d W3eQUmTIR/eRE7JWE5/1WM6VD3VHz01qhX/VqYzI95WNzilznEe5ggBg3zfUrvXg k8uhZTG4yuXPoh9PyjIDsWYyZMNcYJruFR92VITb4oGFx5aqVcJ9Bas+xMRDn7Ph EGlRhF477amrEaQWbIh/jAHfAOLyPHM8iW6HlTG9ESfQvKZZdJp4XlJHOSoGkLs5 c5tdxI5Gx6vJFLkBGmKMN1isik4MwdTEdlrIqdmfnt5kKN2vmgFxnHc1dsn9KWQW PrNlYOB6VEnElYcJqtlac9degAc7WazXPc2HmUz96swMSCy8EPL04htSIOSot8aE GzwYjrzUjQyh+Is8Jm4Rg/hQTf5wwrpXuqpNnGdTv2pJ4gD2J4g= =gleN -----END PGP SIGNATURE----- --LZvS9be/3tNcYl/X-- From unknown Mon Aug 18 09:01:50 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#30709] [PATCH 3/4] gnu: Add ubuntu-keyring. Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 12 Mar 2018 18:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30709 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Marius Bakke Cc: 30709@debbugs.gnu.org Received: via spool by 30709-submit@debbugs.gnu.org id=B30709.152088014131985 (code B ref 30709); Mon, 12 Mar 2018 18:43:02 +0000 Received: (at 30709) by debbugs.gnu.org; 12 Mar 2018 18:42:21 +0000 Received: from localhost ([127.0.0.1]:57509 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1evSOr-0008Jp-G8 for submit@debbugs.gnu.org; Mon, 12 Mar 2018 14:42:21 -0400 Received: from flashner.co.il ([178.62.234.194]:39864) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1evSOp-0008Jb-DE for 30709@debbugs.gnu.org; Mon, 12 Mar 2018 14:42:19 -0400 Received: from localhost (46-117-130-5.bb.netvision.net.il [46.117.130.5]) by flashner.co.il (Postfix) with ESMTPSA id 2049540139; Mon, 12 Mar 2018 18:42:12 +0000 (UTC) Date: Mon, 12 Mar 2018 20:42:11 +0200 From: Efraim Flashner Message-ID: <20180312184211.GA1184@macbook41> References: <20180305092625.1014-1-efraim@flashner.co.il> <20180305092907.1191-1-efraim@flashner.co.il> <20180305092907.1191-3-efraim@flashner.co.il> <87d10cjmvy.fsf@fastmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ReaqsoxgOBHFXBhH" Content-Disposition: inline In-Reply-To: <87d10cjmvy.fsf@fastmail.com> User-Agent: Mutt/1.9.3 (2018-01-21) 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: -0.0 (/) --ReaqsoxgOBHFXBhH Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Mar 10, 2018 at 10:33:21AM +0100, Marius Bakke wrote: > Efraim Flashner writes: >=20 > > * gnu/packages/debian.scm (ubuntu-keyring): New variable. >=20 > [...] >=20 > > + (build-system trivial-build-system) > > + (arguments > > + `(#:modules ((guix build utils)) > > + #:builder (begin > > + (use-modules (guix build utils)) > > + (let* ((out (assoc-ref %outputs "out")) > > + (apt (string-append out "/etc/apt/trusted.gp= g.d/")) > > + (key (string-append out "/share/keyrings/"))) > > + (setenv "PATH" (string-append > > + (assoc-ref %build-inputs "gzip")= "/bin:" > > + (assoc-ref %build-inputs "tar") = "/bin")) > > + (invoke "tar" "xvf" (assoc-ref %build-inputs "sou= rce")) > > + (for-each (lambda (file) > > + (install-file file key) > > + (install-file file apt)) > > + (find-files "." "\\.gpg$"))) > > + #t))) >=20 > Why is having the same files in out/share/keyrings and > out/etc/apt/trusted.gpg.d necessary? >=20 > (this was perhaps the case with the Debian keyring too?) This wasn't actually the case for the Debian keyring, I was more careful about installing the keyring files to the correct directories. I've gone ahead and fixed the Ubuntu ones. $ apt-file show debian-archive-keyring debian-archive-keyring: /etc/apt/trusted.gpg.d/debian-archive-jessie-automa= tic.gpg debian-archive-keyring: /etc/apt/trusted.gpg.d/debian-archive-jessie-securi= ty-automatic.gpg debian-archive-keyring: /etc/apt/trusted.gpg.d/debian-archive-jessie-stable= =2Egpg debian-archive-keyring: /etc/apt/trusted.gpg.d/debian-archive-squeeze-autom= atic.gpg debian-archive-keyring: /etc/apt/trusted.gpg.d/debian-archive-squeeze-stabl= e.gpg debian-archive-keyring: /etc/apt/trusted.gpg.d/debian-archive-wheezy-automa= tic.gpg debian-archive-keyring: /etc/apt/trusted.gpg.d/debian-archive-wheezy-stable= =2Egpg debian-archive-keyring: /usr/share/doc/debian-archive-keyring/README debian-archive-keyring: /usr/share/doc/debian-archive-keyring/changelog.gz debian-archive-keyring: /usr/share/doc/debian-archive-keyring/copyright debian-archive-keyring: /usr/share/keyrings/debian-archive-keyring.gpg debian-archive-keyring: /usr/share/keyrings/debian-archive-removed-keys.gpg $ tree /gnu/store/af8qx6kva04fzxm13sbjb998h1sqbrrz-debian-archive-keyring-2= 017.7/ /gnu/store/af8qx6kva04fzxm13sbjb998h1sqbrrz-debian-archive-keyring-2017.7/ |-- etc | `-- apt | `-- trusted.gpg.d | |-- debian-archive-jessie-automatic.gpg | |-- debian-archive-jessie-security-automatic.gpg | |-- debian-archive-jessie-stable.gpg | |-- debian-archive-stretch-automatic.gpg | |-- debian-archive-stretch-security-automatic.gpg | |-- debian-archive-stretch-stable.gpg | |-- debian-archive-wheezy-automatic.gpg | `-- debian-archive-wheezy-stable.gpg `-- share `-- keyrings |-- debian-archive-keyring.gpg `-- debian-archive-removed-keys.gpg $ apt-file show ubuntu-keyring ubuntu-keyring: /usr/share/doc/ubuntu-keyring/README.gz ubuntu-keyring: /usr/share/doc/ubuntu-keyring/changelog.gz ubuntu-keyring: /usr/share/doc/ubuntu-keyring/copyright ubuntu-keyring: /usr/share/keyrings/ubuntu-archive-keyring.gpg ubuntu-keyring: /usr/share/keyrings/ubuntu-archive-removed-keys.gpg ubuntu-keyring: /usr/share/keyrings/ubuntu-master-keyring.gpg $ tree /gnu/store/iayj7kvhd7y6dl50gf6i63calgirj6ry-ubuntu-keyring-2018.02.2= 8/ /gnu/store/iayj7kvhd7y6dl50gf6i63calgirj6ry-ubuntu-keyring-2018.02.28/ |-- etc | `-- apt | `-- trusted.gpg.d | |-- ubuntu-cloud-keyring.gpg | |-- ubuntu-cloud-removed-keys.gpg | |-- ubuntu-cloudimage-keyring.gpg | |-- ubuntu-cloudimage-removed-keys.gpg | |-- ubuntu-dbgsym-keyring.gpg | |-- ubuntu-dbgsym-removed-keys.gpg | |-- ubuntu-keyring-2012-archive.gpg | |-- ubuntu-keyring-2012-cdimage.gpg | |-- ubuntu-keyring-2012-cloud-archive.gpg | `-- ubuntu-keyring-2016-dbgsym.gpg `-- share `-- keyrings |-- ubuntu-archive-keyring.gpg |-- ubuntu-archive-removed-keys.gpg `-- ubuntu-master-keyring.gpg --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --ReaqsoxgOBHFXBhH Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAlqmyf8ACgkQQarn3Mo9 g1GPyg/9G9LABRg0LhV024B8dkD4tpXn4+eVZnPH2I6idoT1qfTMBg25TgD8GFKo gOvIJ868eCBrk5MbS1lj4C3XZ2ogl3Y03JBl5baQcbwIhiUURQl+cKdg7Ypk8Itf V35jatwN42VjYdWlRJB0E9pgYu83VWh+0kXjKJe8UuelyTn9MrRuSRNXmU0AcRMS xChNa0OLJc9Ou6kKhM6br6JAwjKuOTdDMOnUVD8rAgB0qbke08lin06Df5KRMM/4 sLxhWl/jebjkaddzGpcaSg6FC0w+2VrkpXwx8p2PkKaCTK8S09p2TvYMT5QIO1Yo o/UwhefyDi1vkuAsruhZnn6AjqwfwOMn9nVQr/+s4ow/oR6TI0VO0k1MY4Ec5BF4 IefDthrjV44FusFOZ0lLQ4/0d5Gb637ibs7wa/Wclg4GeoEiBtP2PFydW4E5iOo7 CINFnJtvjAc/2kZ2zF+8AA/cPean2vIdP5DcLDKphuNNnc/mRiwxfXzPCzoEbdrH IZzrHna0ynGNpiH7R0KlWXH4tJKtFEZqCuMs3Op1gzor0AyIMjnMlf9niUCTVrx4 73BXD4EpzCZgVKMb8i8wSxmkpkOD+aKkatEvu9FS41VlSp5IPKAUu3EBKbMR6f/D w8IwkX0MzhJVthUtydn5AxmIPuq/gR9jkWTIxXvhwT7uxlBY2oc= =lZMl -----END PGP SIGNATURE----- --ReaqsoxgOBHFXBhH-- From unknown Mon Aug 18 09:01:50 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: Efraim Flashner Subject: bug#30709: closed (patch pushed) Message-ID: References: <20180322124537.GE20703@macbook41> <20180305092625.1014-1-efraim@flashner.co.il> X-Gnu-PR-Message: they-closed 30709 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 30709@debbugs.gnu.org Date: Thu, 22 Mar 2018 12:46:01 +0000 Content-Type: multipart/mixed; boundary="----------=_1521722761-1623-1" This is a multi-part message in MIME format... ------------=_1521722761-1623-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #30709: [PATCH 0/4] Add debootstrap 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 30709@debbugs.gnu.org. --=20 30709: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D30709 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1521722761-1623-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 30709-done) by debbugs.gnu.org; 22 Mar 2018 12:45:47 +0000 Received: from localhost ([127.0.0.1]:46918 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eyzbG-0000Pj-QW for submit@debbugs.gnu.org; Thu, 22 Mar 2018 08:45:46 -0400 Received: from flashner.co.il ([178.62.234.194]:33610) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eyzbE-0000PU-HJ for 30709-done@debbugs.gnu.org; Thu, 22 Mar 2018 08:45:44 -0400 Received: from localhost (46-117-130-5.bb.netvision.net.il [46.117.130.5]) by flashner.co.il (Postfix) with ESMTPSA id 8D946403EE for <30709-done@debbugs.gnu.org>; Thu, 22 Mar 2018 12:45:38 +0000 (UTC) Date: Thu, 22 Mar 2018 14:45:37 +0200 From: Efraim Flashner To: 30709-done@debbugs.gnu.org Subject: patch pushed Message-ID: <20180322124537.GE20703@macbook41> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="yH1ZJFh+qWm+VodA" Content-Disposition: inline User-Agent: Mutt/1.9.3 (2018-01-21) X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 30709-done 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: -0.0 (/) --yH1ZJFh+qWm+VodA Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Pushed, closing this bug --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --yH1ZJFh+qWm+VodA Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAlqzpWwACgkQQarn3Mo9 g1H/kA/8Cp+jbNOCE2OmDHvJ5Qq4/HlUsQdL1czG42zXbHe1k2D2m874S42wv9cJ 3vBjdNGYEglowsQHr3XQK9uZvN8LtMmPYNTS60ngLGbNbYW9zL4sXmztsNqAezYA flxUIYv8zGB1VU5UI2egHDNf+qpFqBCTuWLUYvewtPK4eTJL34zX6RHkDlsbft1e 7kPbUw7tIPnaIe2J1jb91t4rWQky3Ag4kB+d0pVHqXlNczrhswXQjeE2mD2qSKEW gNo7v9a4i8wJOvgcAU9KqQ5VnXAnHXSYhgjEJe32MX1VefXpq8MlHghRVUssPQDz iemDR8nW8VC6e4/PCAsdbJ7c7+2Xt4mz8Uvojow8dLkBz1BWsPkgl1hQU4oBdOFP gLDtXKnMlY5mnJRYfyMkfFQ0/Lu2qpVYa1rSyR91UaLG6t3TTunjU6pYoQOAUVAj yPR4TETPW8xn2M1qgNjhsQfDgskwj25pn0bWrfH4qTmw/YCF263I8xEXEJ7BcS6j DJqOvGtZmYPaDo0BM6TEE/T2Y6bAbjh+vpBUEl8t2GCupManGFVtifAXroU0qDqp 0Mul9J2A648Tr3L6G5ipvNDJdueyc6TqOpZQfUvaa4oScoOjLP+6ZRAf5J73t5bp pko+a+Jpt1ZdQW1ilxR54RR/Ckq/tNNh2UlzpHlLXxyXArxlk+M= =sJ7X -----END PGP SIGNATURE----- --yH1ZJFh+qWm+VodA-- ------------=_1521722761-1623-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 5 Mar 2018 09:26:50 +0000 Received: from localhost ([127.0.0.1]:45099 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1esmOQ-0008F4-E6 for submit@debbugs.gnu.org; Mon, 05 Mar 2018 04:26:50 -0500 Received: from eggs.gnu.org ([208.118.235.92]:55204) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1esmON-0008Eq-6r for submit@debbugs.gnu.org; Mon, 05 Mar 2018 04:26:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1esmOH-0005os-6p for submit@debbugs.gnu.org; Mon, 05 Mar 2018 04:26:42 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:42454) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1esmOH-0005ol-3j for submit@debbugs.gnu.org; Mon, 05 Mar 2018 04:26:41 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46175) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1esmOG-0000w7-0u for guix-patches@gnu.org; Mon, 05 Mar 2018 04:26:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1esmOC-0005nV-BQ for guix-patches@gnu.org; Mon, 05 Mar 2018 04:26:40 -0500 Received: from flashner.co.il ([178.62.234.194]:39148) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1esmOC-0005nJ-33 for guix-patches@gnu.org; Mon, 05 Mar 2018 04:26:36 -0500 Received: from localhost (46-117-130-5.bb.netvision.net.il [46.117.130.5]) by flashner.co.il (Postfix) with ESMTPSA id 2E748401F6; Mon, 5 Mar 2018 09:26:35 +0000 (UTC) From: Efraim Flashner To: guix-patches@gnu.org Subject: [PATCH 0/4] Add debootstrap Date: Mon, 5 Mar 2018 11:26:25 +0200 Message-Id: <20180305092625.1014-1-efraim@flashner.co.il> X-Mailer: git-send-email 2.16.2 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit Cc: Efraim Flashner 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: -4.0 (----) >From time to time having a debian (or ubuntu) chroot is useful, so I figured there was no reason to keep my patches for debootstrap in my GUIX_PACKAGE_PATH, so here's the patches necessary to make it work. debootstrap uses 'ar' from binutils to extract the .debs it downloads, gnupg and the keyrings to verify the binaries, and perl for the actual building. There's no perl to patch from the script, its from what is actually downloaded. With the propagated inputs, it should be possible to run 'guix environment -C -N --ad-hoc debootstrap -- debootstrap ...' Efraim Flashner (4): gnu: Add jetring. gnu: Add debian-archive-keyring. gnu: Add ubuntu-keyring. gnu: Add debootstrap. gnu/local.mk | 1 + gnu/packages/debian.scm | 170 ++++++++++++++++++++++++++++++++++++++++++= ++++++ gnu/packages/gnupg.scm | 49 +++++++++++++- 3 files changed, 219 insertions(+), 1 deletion(-) create mode 100644 gnu/packages/debian.scm --=20 2.16.2 ------------=_1521722761-1623-1--