From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 26 16:42:04 2024 Received: (at submit) by debbugs.gnu.org; 26 Mar 2024 20:42:04 +0000 Received: from localhost ([127.0.0.1]:35180 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rpDcS-0006TY-9q for submit@debbugs.gnu.org; Tue, 26 Mar 2024 16:42:04 -0400 Received: from lists.gnu.org ([2001:470:142::17]:38024) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rpDcP-0006SV-68 for submit@debbugs.gnu.org; Tue, 26 Mar 2024 16:42:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rpDcJ-0001Z1-8x for guix-patches@gnu.org; Tue, 26 Mar 2024 16:41:56 -0400 Received: from mailtransmit05.runbox.com ([2a0c:5a00:149::26]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rpDcF-00077D-7b for guix-patches@gnu.org; Tue, 26 Mar 2024 16:41:55 -0400 Received: from mailtransmit02.runbox ([10.9.9.162] helo=aibo.runbox.com) by mailtransmit05.runbox.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1rpDc8-00HHz9-Ho for guix-patches@gnu.org; Tue, 26 Mar 2024 21:41:44 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=futurile.net; s=selector1; h=Content-Transfer-Encoding:MIME-Version: Message-ID:Date:Subject:Cc:To:From; bh=Ua3FVbkXERWQfpx2dwvi+bYDlu71YKN6VYts0sDc2fM=; b=NWQvaSzYHfVJjyi9m+giCQ2OLm YA1rYwPR15CBtljx7vI286mCUzUGCaGUgG9TlLZ9DkhnDXA/h8H48MB/9l4zUL3PbSVdQK42/r6IW DDk1w8IEgpSeiDi3aJwKCxEJjcXMbU2l3f/7D5o4Pg1Kfm63jgKFBfOOm9EBbvJ07YiOILctu2l9N bq6bT7qmKlTg4xfqAlnd1tPpt+S03VXJETNss+RAIBsOi0MnRArv8dUYrL3HwAUjZL6RqKAPVyFou y8HGZz5Zl1d9At5QFkgFi+Ho262xm/adcLNUsIyn01hxvrogKB3MnTOY49VbUBdrfskQse9aDp4uU uH7Wh7ig==; Received: from [10.9.9.72] (helo=submission01.runbox) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1rpDc8-0000FN-6c for guix-patches@gnu.org; Tue, 26 Mar 2024 21:41:44 +0100 Received: by submission01.runbox with esmtpsa [Authenticated ID (641962)] (TLS1.2:ECDHE_SECP256R1__RSA_SHA256__AES_256_GCM:256) (Exim 4.93) id 1rpDc0-009AMI-Lr; Tue, 26 Mar 2024 21:41:36 +0100 From: Steve George To: guix-patches@gnu.org Subject: [PATCH 1/1] * gnu: Add debian-devscripts. Date: Tue, 26 Mar 2024 20:41:25 +0000 Message-ID: X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: permerror client-ip=2a0c:5a00:149::26; envelope-from=steve@futurile.net; helo=mailtransmit05.runbox.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, T_SPF_PERMERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: submit Cc: Steve George 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 (-) * gnu/packages/debian.scm (debian-devscripts): New variable. Change-Id: Iff64afdb1f730f3d941617bc428a57d09c0381b2 --- gnu/packages/debian.scm | 66 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) diff --git a/gnu/packages/debian.scm b/gnu/packages/debian.scm index 1715b963a93..ecec816d872 100644 --- a/gnu/packages/debian.scm +++ b/gnu/packages/debian.scm @@ -27,6 +27,7 @@ (define-module (gnu packages debian) #:use-module (guix packages) #:use-module (guix build-system copy) #:use-module (guix build-system gnu) + #:use-module (guix build-system perl) #:use-module (guix build-system trivial) #:use-module (gnu packages autotools) #:use-module (gnu packages backup) @@ -34,6 +35,7 @@ (define-module (gnu packages debian) #:use-module (gnu packages bash) #:use-module (gnu packages compression) #:use-module (gnu packages crypto) + #:use-module (gnu packages databases) #:use-module (gnu packages dbm) #:use-module (gnu packages gettext) #:use-module (gnu packages gnupg) @@ -43,6 +45,8 @@ (define-module (gnu packages debian) #:use-module (gnu packages ncurses) #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) + #:use-module (gnu packages python) + #:use-module (gnu packages web) #:use-module (gnu packages wget) #:use-module (srfi srfi-26)) @@ -211,6 +215,68 @@ (define-public ubuntu-keyring (license (list license:public-domain ; the keys license:gpl2+)))) ; see debian/copyright +(define-public debian-devscripts + (package + (name "debian-devscripts") + (version "2.23.7") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://salsa.debian.org/debian/devscripts.git") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "031467rclglk1hdx8z2vzx5z88vpy0sk73qi8ni0sai3jx62ji75")))) + (build-system gnu-build-system) + (arguments + (list + #:tests? #f ; tests assume various Debian specific capabilities + #:phases + #~(modify-phases %standard-phases + (delete 'configure) + (delete 'build) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let ((bin (string-append (assoc-ref outputs "out") "/bin")) + (devscripts-lib (string-append (assoc-ref outputs "out") + "/lib/perl5/site_perl/Devscripts"))) + (with-directory-excursion "scripts" + (substitute* "bts.pl" (("/bin/bash") (which "bash"))) + (substitute* "bts.pl" (("/bin/rm") (which "rm"))) + (substitute* "bts.pl" (("/bin/cat") (which "cat"))) + ;; Avoid having to provide Debian's sensible-browser package + (substitute* "bts.pl" + (("my \\$browser;") "my $browser = $ENV{'BROWSER'};")) + (substitute* "bts.pl" + (("'sensible-browser',") "$browser,")) + (rename-file "bts.pl" "bts") + (install-file "bts" bin)) + (with-directory-excursion "lib/Devscripts/" + (for-each (lambda (f) (install-file f devscripts-lib)) + (find-files "./"))))))))) + (native-inputs (list perl perl-libwww perl-uri pkg-config python)) + (propagated-inputs + (list dpkg + perl-authen-sasl + perl-db-file + perl-encode + perl-file-homedir + perl-file-which + perl-ipc-run + perl-json + perl-libwww + perl-list-compare + perl-lwp-protocol-https + perl-moo + perl-uri)) + (home-page "https://tracker.debian.org/pkg/devscripts") + (synopsis "Scripts to make the life of a Debian Package maintainer easier") + (description "Scripts that assist Debian packagers. Guix developers +may find the bts command useful for interacting with GNU's debbugs server.") + (license license:gpl2))) + (define-public debootstrap (package (name "debootstrap") base-commit: 40f53e8fb5b867e3a1e8fa798328423718282aac -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 31 17:09:04 2024 Received: (at 70020) by debbugs.gnu.org; 31 Mar 2024 21:09:04 +0000 Received: from localhost ([127.0.0.1]:48708 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rr2QJ-0004dT-Id for submit@debbugs.gnu.org; Sun, 31 Mar 2024 17:09:04 -0400 Received: from mail1.fsfe.org ([217.69.89.151]:51124) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rr2QG-0004ct-B2 for 70020@debbugs.gnu.org; Sun, 31 Mar 2024 17:09:02 -0400 From: Jelle Licht DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fsfe.org; s=2021100501; t=1711919336; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=YbOtDR5ydmh+8RUvk1EqlaWzummPHRJ57tkWQKql6C4=; b=QXjRiTSEh20i9zvR+5OQ5IVU3Zi/sYqeFbPXYIVTJcY5SLVa+o/YBnzWLdISJNr/H8TI2C 7dkVdyUgPzPf4ysK0gjufNuEF78nvOGxGMmm53cDnbibyxZ9TbAZVeweFyMtX4zKe/fcQm V7x5bKI8Djkz1jdP1KDj7rq1nYrPHFw= To: Steve George , 70020@debbugs.gnu.org Subject: Re: [bug#70020] [PATCH 1/1] * gnu: Add debian-devscripts. In-Reply-To: References: Date: Sun, 31 Mar 2024 23:08:53 +0200 Message-ID: <87zfuef6sa.fsf@fsfe.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 70020 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 (-) Hi Steve, Steve George writes: > * gnu/packages/debian.scm (debian-devscripts): New variable. > > Change-Id: Iff64afdb1f730f3d941617bc428a57d09c0381b2 > --- > gnu/packages/debian.scm | 66 +++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 66 insertions(+) > > diff --git a/gnu/packages/debian.scm b/gnu/packages/debian.scm > index 1715b963a93..ecec816d872 100644 > --- a/gnu/packages/debian.scm > +++ b/gnu/packages/debian.scm > @@ -27,6 +27,7 @@ (define-module (gnu packages debian) > #:use-module (guix packages) > #:use-module (guix build-system copy) > #:use-module (guix build-system gnu) > + #:use-module (guix build-system perl) > #:use-module (guix build-system trivial) > #:use-module (gnu packages autotools) > #:use-module (gnu packages backup) > @@ -34,6 +35,7 @@ (define-module (gnu packages debian) > #:use-module (gnu packages bash) > #:use-module (gnu packages compression) > #:use-module (gnu packages crypto) > + #:use-module (gnu packages databases) > #:use-module (gnu packages dbm) > #:use-module (gnu packages gettext) > #:use-module (gnu packages gnupg) > @@ -43,6 +45,8 @@ (define-module (gnu packages debian) > #:use-module (gnu packages ncurses) > #:use-module (gnu packages perl) > #:use-module (gnu packages pkg-config) > + #:use-module (gnu packages python) > + #:use-module (gnu packages web) > #:use-module (gnu packages wget) > #:use-module (srfi srfi-26)) > > @@ -211,6 +215,68 @@ (define-public ubuntu-keyring > (license (list license:public-domain ; the keys > license:gpl2+)))) ; see debian/copyright > > +(define-public debian-devscripts > + (package > + (name "debian-devscripts") > + (version "2.23.7") > + (source > + (origin > + (method git-fetch) > + (uri (git-reference > + (url "https://salsa.debian.org/debian/devscripts.git") > + (commit (string-append "v" version)))) > + (file-name (git-file-name name version)) > + (sha256 > + (base32 > + "031467rclglk1hdx8z2vzx5z88vpy0sk73qi8ni0sai3jx62ji75")))) > + (build-system gnu-build-system) > + (arguments > + (list > + #:tests? #f ; tests assume various Debian specific capabilities > + #:phases > + #~(modify-phases %standard-phases > + (delete 'configure) > + (delete 'build) > + (replace 'install > + (lambda* (#:key outputs #:allow-other-keys) > + (let ((bin (string-append (assoc-ref outputs "out") "/bin")) > + (devscripts-lib (string-append (assoc-ref outputs "out") > + "/lib/perl5/site_perl/Devscripts"))) > + (with-directory-excursion "scripts" > + (substitute* "bts.pl" (("/bin/bash") (which "bash"))) > + (substitute* "bts.pl" (("/bin/rm") (which "rm"))) > + (substitute* "bts.pl" (("/bin/cat") (which "cat"))) > + ;; Avoid having to provide Debian's sensible-browser package > + (substitute* "bts.pl" > + (("my \\$browser;") "my $browser = $ENV{'BROWSER'};")) > + (substitute* "bts.pl" > + (("'sensible-browser',") "$browser,")) This could be separate phase, such as: (add-after 'unpack 'patch-programs ...) > + (rename-file "bts.pl" "bts") > + (install-file "bts" bin)) It seems this "only" installs bts, compared to the (huge) list of helper scripts I see listed in the repo README. IMHO not a blocker, but it should probably be reflected in either a comment or the package synopsis, name or description. Perhaps an acceptable compromise is to spin this off into just a 'bts' package? > + (with-directory-excursion "lib/Devscripts/" > + (for-each (lambda (f) (install-file f devscripts-lib)) > + (find-files "./"))))))))) This seems to not install any bash completions or manpages. IWBN to also install those, of at least make a comment w.r.t. them not being installed at this time. > + (native-inputs (list perl perl-libwww perl-uri pkg-config python)) > + (propagated-inputs > + (list dpkg > + perl-authen-sasl > + perl-db-file > + perl-encode > + perl-file-homedir > + perl-file-which > + perl-ipc-run > + perl-json > + perl-libwww > + perl-list-compare > + perl-lwp-protocol-https > + perl-moo > + perl-uri)) Would it be possible to wrap relevant scripts, in a similar manner to bioperl-minimal, and make most of these normal inputs instead of propagated-inputs? dpkg seems like something that could be patched to directly refer to a version directly in the store. > + (home-page "https://tracker.debian.org/pkg/devscripts") > + (synopsis "Scripts to make the life of a Debian Package maintainer easier") > + (description "Scripts that assist Debian packagers. Guix developers > +may find the bts command useful for interacting with GNU's debbugs server.") The description should contain full sentences. When you refer to bts, I'd use @code{bts} Texinfo markup as well. > + (license license:gpl2))) I did not check by going though all source files, but AFAICS, it's gplv2+. Or does the gplv2 refer to the devscripts files and bts.pl? In that case, a clarifying comment would be a welcome addition here. > (define-public debootstrap > (package > (name "debootstrap") > > base-commit: 40f53e8fb5b867e3a1e8fa798328423718282aac > -- > 2.41.0 Thanks, Jelle From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 01 16:53:50 2024 Received: (at submit) by debbugs.gnu.org; 1 Apr 2024 20:53:50 +0000 Received: from localhost ([127.0.0.1]:51815 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rrOf8-0008Df-1m for submit@debbugs.gnu.org; Mon, 01 Apr 2024 16:53:50 -0400 Received: from lists.gnu.org ([2001:470:142::17]:45006) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rrOf6-0008DG-IZ for submit@debbugs.gnu.org; Mon, 01 Apr 2024 16:53:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rrOex-0006LN-UT for guix-patches@gnu.org; Mon, 01 Apr 2024 16:53:39 -0400 Received: from mailtransmit04.runbox.com ([2a0c:5a00:149::25]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rrOew-00048O-0l for guix-patches@gnu.org; Mon, 01 Apr 2024 16:53:39 -0400 Received: from mailtransmit02.runbox ([10.9.9.162] helo=aibo.runbox.com) by mailtransmit04.runbox.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1rrOem-00FddN-2Q; Mon, 01 Apr 2024 22:53:28 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=futurile.net; s=selector1; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From; bh=jKXc0xk7QtjODCKjlrtBw1/jcVYMx4BZN9o/mNFBq+E=; b=oFotlq0K7zW33EiwiYM9gCjO8i ZvlcSLC/kQVHojx1D8e/K5i5NXttm/TzRK6mcdNkmiqw/n4gr2p6wRG8+yF3drhV5eJVwTf2E4+Lf hMz6spWdMDZiMyyDJn90J/An568lviMopqaN0CwO34L9ASeuvCzJcrcUJyKje+rj8pQB5WYHPGf2k /dlD1hJpH2ZBIwFnRetUSc7cPfz5/pdns8WzZMeI0ech+iXD2HsSvCb05irTeM04NzhYlfJSwhlEI clV1rf+94yUfZvwH7yizY2NEMAt1bv0DqdX0iVQtbRZuBK3cEpvkWpI6hUk0cl3gs1mTqVkvLXT7k 3ewX7w/w==; Received: from [10.9.9.72] (helo=submission01.runbox) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1rrOeW-0004Av-II; Mon, 01 Apr 2024 22:53:12 +0200 Received: by submission01.runbox with esmtpsa [Authenticated ID (641962)] (TLS1.2:ECDHE_SECP256R1__RSA_SHA256__AES_256_GCM:256) (Exim 4.93) id 1rrOeT-00CxeB-C6; Mon, 01 Apr 2024 22:53:09 +0200 From: Steve George To: 70020@debbugs.gnu.org Subject: [PATCH v2 0/1] RE: Add Debian-devscripts Date: Mon, 1 Apr 2024 21:52:14 +0100 Message-ID: X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: permerror client-ip=2a0c:5a00:149::25; envelope-from=steve@futurile.net; helo=mailtransmit04.runbox.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, T_SPF_PERMERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: submit Cc: jlicht@fsfe.org, guix-patches@gnu.org, Steve George 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 (-) Hi Jelle - thanks for taking a look at this. I need some help with one of your requests, if you are able. Stuck on: I looked at bioperl-minimal and how it's creating a list of transitive inputs. I thought I had it but I'm stuck trying to 'unquote' in a Gexp context (I think that's the problem). Do you know any way to fix this? I guess the other option is to convert to the old type quoted list that bioperl-minimal is using. Fixed: 1. Split phases 2. Set-up so additional scripts can be added later - decided not to for now 2. Install man pages (mostly - can't figure out how it's creating the bts man page) 3. Install completions (bts) 4. Rework the synopsis / description 5. Add comment about other scripts Not changed: * Left the name as-is, because I think some people will find 'bts' through the 'debian devscripts' name. But, changed the synopsis / description to clarify that it's not the massive list of scripts Debian has. * Need to double check the license from your comment, and add a Texinfo markup. Steve George (1): * gnu: Add debian-devscripts. gnu/packages/debian.scm | 104 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 104 insertions(+) base-commit: 40f53e8fb5b867e3a1e8fa798328423718282aac -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 01 16:54:00 2024 Received: (at submit) by debbugs.gnu.org; 1 Apr 2024 20:54:00 +0000 Received: from localhost ([127.0.0.1]:51823 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rrOfH-0008EE-VE for submit@debbugs.gnu.org; Mon, 01 Apr 2024 16:54:00 -0400 Received: from lists.gnu.org ([2001:470:142::17]:53422) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rrOfG-0008Dp-2A for submit@debbugs.gnu.org; Mon, 01 Apr 2024 16:53:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rrOf7-0006Pe-EF for guix-patches@gnu.org; Mon, 01 Apr 2024 16:53:49 -0400 Received: from mailtransmit05.runbox.com ([2a0c:5a00:149::26]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rrOf4-0004Ag-Tl for guix-patches@gnu.org; Mon, 01 Apr 2024 16:53:49 -0400 Received: from mailtransmit02.runbox ([10.9.9.162] helo=aibo.runbox.com) by mailtransmit05.runbox.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1rrOf2-00FXoI-Io; Mon, 01 Apr 2024 22:53:44 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=futurile.net; s=selector1; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From; bh=xA4IT5tr0q0GiJJVsf8U+8Fk+GlKurKdjPyP5+HMOM8=; b=P+hYfBaDHbu0tl2er5hsvw6hWw 3k0Li8c7EJc1OHjmUC+AAqDBHHqw2T7T+HW7+FKCucc5rHpjdvAqOitYmIZ1dLpxWsHzjwe6Ftmqy 5QwAOBIVRVGB/JXuRl+iLI/wEoTC8GRmM1yA+d8h3rf4lPilhCQ4109iVSdU9x1ZAjjVSR4b6HPXC LoubDeoAIy9zxTDmuNIH1X9800y+Jj9yEc3hcQfU3F2gEnaeF8gtLiVA8cRY/i+EjndEPyfev1vzU nf+bznwSA6+E5M/kVFR2RXWa98YqJsYD2J4sGGiZ3i/LhCaFlULEe/WudP+LYSQ0mqDPichZEalQv dw2nstdw==; Received: from [10.9.9.74] (helo=submission03.runbox) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1rrOes-0004EZ-5z; Mon, 01 Apr 2024 22:53:34 +0200 Received: by submission03.runbox with esmtpsa [Authenticated ID (641962)] (TLS1.2:ECDHE_SECP256R1__RSA_SHA256__AES_256_GCM:256) (Exim 4.93) id 1rrOef-00Cu5u-3r; Mon, 01 Apr 2024 22:53:21 +0200 From: Steve George To: 70020@debbugs.gnu.org Subject: [PATCH v2 1/1] * gnu: Add debian-devscripts. Date: Mon, 1 Apr 2024 21:52:15 +0100 Message-ID: <6ff2720d046e5b553bb655966c21a4041385ed96.1712003588.git.steve@futurile.net> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: permerror client-ip=2a0c:5a00:149::26; envelope-from=steve@futurile.net; helo=mailtransmit05.runbox.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, T_SPF_PERMERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: submit Cc: jlicht@fsfe.org, guix-patches@gnu.org, Steve George 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 (-) * gnu/packages/debian.scm (debian-devscripts): New variable. Change-Id: Iff64afdb1f730f3d941617bc428a57d09c0381b2 --- gnu/packages/debian.scm | 104 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 104 insertions(+) diff --git a/gnu/packages/debian.scm b/gnu/packages/debian.scm index 1715b963a93..88060d3395d 100644 --- a/gnu/packages/debian.scm +++ b/gnu/packages/debian.scm @@ -27,6 +27,7 @@ (define-module (gnu packages debian) #:use-module (guix packages) #:use-module (guix build-system copy) #:use-module (guix build-system gnu) + #:use-module (guix build-system perl) #:use-module (guix build-system trivial) #:use-module (gnu packages autotools) #:use-module (gnu packages backup) @@ -34,6 +35,7 @@ (define-module (gnu packages debian) #:use-module (gnu packages bash) #:use-module (gnu packages compression) #:use-module (gnu packages crypto) + #:use-module (gnu packages databases) #:use-module (gnu packages dbm) #:use-module (gnu packages gettext) #:use-module (gnu packages gnupg) @@ -43,7 +45,10 @@ (define-module (gnu packages debian) #:use-module (gnu packages ncurses) #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) + #:use-module (gnu packages python) + #:use-module (gnu packages web) #:use-module (gnu packages wget) + #:use-module (srfi srfi-1) #:use-module (srfi srfi-26)) (define-public debian-archive-keyring @@ -211,6 +216,105 @@ (define-public ubuntu-keyring (license (list license:public-domain ; the keys license:gpl2+)))) ; see debian/copyright +(define-public debian-devscripts + (package + (name "debian-devscripts") + (version "2.23.7") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://salsa.debian.org/debian/devscripts.git") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "031467rclglk1hdx8z2vzx5z88vpy0sk73qi8ni0sai3jx62ji75")))) + (build-system perl-build-system) ;; bioperl-live used perl - I was using gnu + (arguments + (let ((transitive-inputs + (map (compose package-name cadr) + (delete-duplicates + (concatenate + (map (compose package-transitive-target-inputs cadr) + (package-inputs this-package))))))) + (list + #:tests? #f ; tests assume various Debian specific capabilities + #:phases + ;; only includes the bts command as that's useful for Guix packagers + #~(modify-phases %standard-phases + (add-after 'bootstrap 'patch-programs + (lambda* (#:key inputs outputs #:allow-other-keys) + (with-directory-excursion "scripts" + (substitute* "bts.pl" (("/bin/bash") (which "bash"))) + (substitute* "bts.pl" (("/bin/rm") (which "rm"))) + (substitute* "bts.pl" (("/bin/cat") (which "cat"))) + ;; Avoid having to provide Debian's sensible-browser package + (substitute* "bts.pl" + (("my \\$browser;") "my $browser = $ENV{'BROWSER'};")) + (substitute* "bts.pl" + (("'sensible-browser',") "$browser,")) + (rename-file "bts.pl" "bts")))) + (delete 'configure) + (delete 'build) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((bin (string-append #$output "/bin")) + (bashcomp (string-append #$output + "/etc/bash_completion.d")) + (perl-lib (string-join + (cons (string-append #$output + "/lib/perl5/site_perl/Devscripts") + (map (lambda (name) + (assoc-ref %build-inputs name)) + #$transitive-inputs)) + ":")) + ;(perl-lib (string-append #$output + ; "/lib/perl5/site_perl/Devscripts")) + (doc (string-append #$output + "/share/doc/" #$name "-" #$version))) + (with-directory-excursion "scripts" + (for-each (lambda (f) (install-file f bin)) + '("bts")) + (mkdir-p bashcomp) + (copy-file "bts.bash_completion" (string-append bashcomp "/bts"))) + ;(with-directory-excursion "lib/Devscripts/" + ;(for-each (lambda (f) (install-file f perl-lib)) + ; (find-files "./"))) + (for-each (lambda (f) (install-file f doc)) + '("README"))))) + (add-after 'install 'manpage + ;; FIXME: missing the man page for bts, how is it created? + (lambda* (#:key outputs #:allow-other-keys) + (let ( (man1 (string-append #$output "/share/man/man1")) + (man5 (string-append #$output "/share/man/man5"))) + (with-directory-excursion "doc" + (invoke "make" "devscripts.1") + (install-file "devscripts.1" man1) + (install-file "devscripts.conf.5" man5))))))))) + (inputs (list dpkg perl-authen-sasl perl-db-file)) + (native-inputs (list perl perl-libwww perl-uri pkg-config python)) + (propagated-inputs + (list dpkg + perl-authen-sasl + perl-db-file + perl-encode + perl-file-homedir + perl-file-which + perl-ipc-run + perl-json + perl-libwww + perl-list-compare + perl-lwp-protocol-https + perl-moo + perl-uri)) + (home-page "https://tracker.debian.org/pkg/devscripts") + (synopsis "BTS script from Debian's devscripts") + (description "This package only provides the bts script from the Debian +devscripts archive. It's useful for Guix Developers that interacti with GNU's +debbugs server.") + (license license:gpl2))) + (define-public debootstrap (package (name "debootstrap") -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 15 05:30:58 2024 Received: (at 70020) by debbugs.gnu.org; 15 Apr 2024 09:30:58 +0000 Received: from localhost ([127.0.0.1]:36694 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rwIfx-00082e-4n for submit@debbugs.gnu.org; Mon, 15 Apr 2024 05:30:58 -0400 Received: from mailtransmit05.runbox.com ([2a0c:5a00:149::26]:46996) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rwIfv-000829-3l for 70020@debbugs.gnu.org; Mon, 15 Apr 2024 05:30:56 -0400 Received: from mailtransmit03.runbox ([10.9.9.163] helo=aibo.runbox.com) by mailtransmit05.runbox.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1rwIfb-00BUze-E8 for 70020@debbugs.gnu.org; Mon, 15 Apr 2024 11:30:35 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=futurile.net; s=selector1; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From; bh=ZcP3V23oXgIrgVOdwKBg0yeobM+DWR16EC8+NHwPaHY=; b=As98fkRkJzWlSkjKGvQXTbOSpP jzgLWIFl203BzFcdI4PtsmXCw25yW1hA9md56UQfvhMOhqTGWDXvwl7czQE/n0IjCJVjORNJ51O5A wkmmZKhBpJrE0aUTDslnAHQWHVxLOIoCeZdVIeEBb4lh0pE4cAMdHr27OQMRcSN2oDu2gmPUBJ+co yljuk8tTNxyv5WKjyHxX4jw0VZKcS8i6OhAeYkpzmbSklchL5aWpRyW0yPGGhuZXEqo21ECWxDpa9 Nh7hLM7ac5WzPjdgzcfJyAqbWdZIijzh9mkAF/DMV7lLG08f70OPocLcVenHw59VqFKG4xNRhP5g+ EwYzuyBw==; Received: from [10.9.9.72] (helo=submission01.runbox) by mailtransmit03.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1rwIfa-0003Ax-VC; Mon, 15 Apr 2024 11:30:35 +0200 Received: by submission01.runbox with esmtpsa [Authenticated ID (641962)] (TLS1.2:ECDHE_SECP256R1__RSA_SHA256__AES_256_GCM:256) (Exim 4.93) id 1rwIfP-007wMj-Tn; Mon, 15 Apr 2024 11:30:24 +0200 From: Steve George To: 70020@debbugs.gnu.org Subject: [PATCH v3 0/1] RE: Add Debian-devscripts Date: Mon, 15 Apr 2024 10:29:50 +0100 Message-ID: X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 70020 Cc: jlicht@fsfe.org, Steve George 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.7 (-) Hi, Fixed the propagated inputs; just one there now which I think is pretty reasonable. All other changes requested included from the v2. Steve George (1): gnu: Add debian-devscripts. gnu/packages/debian.scm | 151 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 151 insertions(+) base-commit: 238e4ec73e4143f3a5a85b56ca00d395cdf60197 -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 15 05:31:12 2024 Received: (at 70020) by debbugs.gnu.org; 15 Apr 2024 09:31:12 +0000 Received: from localhost ([127.0.0.1]:36699 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rwIg6-00084l-Ab for submit@debbugs.gnu.org; Mon, 15 Apr 2024 05:31:12 -0400 Received: from mailtransmit04.runbox.com ([2a0c:5a00:149::25]:55452) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rwIg1-00082K-DX for 70020@debbugs.gnu.org; Mon, 15 Apr 2024 05:31:03 -0400 Received: from mailtransmit02.runbox ([10.9.9.162] helo=aibo.runbox.com) by mailtransmit04.runbox.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1rwIfj-00Be2v-5m; Mon, 15 Apr 2024 11:30:43 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=futurile.net; s=selector1; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From; bh=LbyTK8fgAkT3qEVMDDN7ciiw44phX0rGz6z9bI5yNH8=; b=I5MwW4NgRUqgU+T7gDqe/97G4p s2fDRXtDkKGhswYEcObWrndl3XEXGYCOf8RUyNhzy9a3igOovwQSryNKhIa3+a1DqjetrpkLoKeIT i/ynt1Tc4UehoFNlBVFNruPfQqdFmqlwC4bzaDbq0Tj4SuMKg/lNcEWKrGagP9/m6nkOV0JIz2AC6 tw6x4vM5HrSEclYv/rZc150ObrrAJ3FV1lxDCntqxi0I1KMpOWwZVOJj/fPTM4SwlSAPpR0S33rRC pd9VhviqR/g083aidFH3IcHsfuS22qCZnzfuynX7GaYdOYflANRNEhaB9tgE2e2ecGVhP0Py+hziN qlw08jWQ==; Received: from [10.9.9.73] (helo=submission02.runbox) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1rwIfi-0002Jz-Rw; Mon, 15 Apr 2024 11:30:43 +0200 Received: by submission02.runbox with esmtpsa [Authenticated ID (641962)] (TLS1.2:ECDHE_SECP256R1__RSA_SHA256__AES_256_GCM:256) (Exim 4.93) id 1rwIfS-008WB8-2l; Mon, 15 Apr 2024 11:30:26 +0200 From: Steve George To: 70020@debbugs.gnu.org Subject: [PATCH v3 1/1] gnu: Add debian-devscripts. Date: Mon, 15 Apr 2024 10:29:51 +0100 Message-ID: <03f2e0ee39ee8112655feccb2a72dc4764c4412b.1713173193.git.steve@futurile.net> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 70020 Cc: jlicht@fsfe.org, Steve George 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 (-) * gnu/packages/debian.scm (debian-devscripts): New variable. Change-Id: Iff64afdb1f730f3d941617bc428a57d09c0381b2 --- gnu/packages/debian.scm | 151 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 151 insertions(+) diff --git a/gnu/packages/debian.scm b/gnu/packages/debian.scm index a88fb04feb..2c79afdc75 100644 --- a/gnu/packages/debian.scm +++ b/gnu/packages/debian.scm @@ -27,6 +27,7 @@ (define-module (gnu packages debian) #:use-module (guix packages) #:use-module (guix build-system copy) #:use-module (guix build-system gnu) + #:use-module (guix build-system perl) #:use-module (guix build-system trivial) #:use-module (gnu packages autotools) #:use-module (gnu packages backup) @@ -34,6 +35,7 @@ (define-module (gnu packages debian) #:use-module (gnu packages bash) #:use-module (gnu packages compression) #:use-module (gnu packages crypto) + #:use-module (gnu packages databases) #:use-module (gnu packages dbm) #:use-module (gnu packages gettext) #:use-module (gnu packages gnupg) @@ -43,7 +45,10 @@ (define-module (gnu packages debian) #:use-module (gnu packages ncurses) #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) + #:use-module (gnu packages python) + #:use-module (gnu packages web) #:use-module (gnu packages wget) + #:use-module (srfi srfi-1) #:use-module (srfi srfi-26)) (define-public debian-archive-keyring @@ -236,6 +241,152 @@ (define-public ubuntu-keyring (license (list license:public-domain ; the keys license:gpl2+)))) ; see debian/copyright +(define-public debian-devscripts + (package + (name "debian-devscripts") + (version "2.23.7") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://salsa.debian.org/debian/devscripts.git") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "031467rclglk1hdx8z2vzx5z88vpy0sk73qi8ni0sai3jx62ji75")))) + (build-system gnu-build-system) + (arguments + (list + #:tests? #f ; tests assume various Debian specific capabilities + #:phases + ;; only includes the bts command as that's useful for Guix packagers + #~(modify-phases %standard-phases + (add-after 'bootstrap 'patch-programs + (lambda* (#:key inputs outputs #:allow-other-keys) + (with-directory-excursion "scripts" + (substitute* "bts.pl" (("/bin/bash") (which "bash"))) + (substitute* "bts.pl" (("/bin/rm") (which "rm"))) + (substitute* "bts.pl" (("/bin/cat") (which "cat"))) + ;; Avoid having to provide Debian's sensible-browser package + (substitute* "bts.pl" + (("my \\$browser;") "my $browser = $ENV{'BROWSER'};")) + (substitute* "bts.pl" + (("'sensible-browser',") "$browser,")) + (rename-file "bts.pl" "bts")))) + (delete 'configure) + (delete 'build) + (replace 'install + (lambda* (#:key inputs outputs #:allow-other-keys) + (let* ((bindir (string-append #$output "/bin")) + (bashcomp (string-append #$output + "/etc/bash_completion.d")) + (perl-lib (string-append #$output + "/lib/perl5/site_perl/Devscripts")) + (wrap.pl + (lambda (scripts keys) + (for-each + (lambda (script) + (wrap-program script + `("PERL5LIB" ":" prefix + ,(cons + (string-append #$output + "/lib/perl5/site_perl") + (map + (lambda (key) + (string-append + (assoc-ref inputs key) + "/lib/perl5/site_perl")) + keys))))) + scripts))) + (doc (string-append #$output + "/share/doc/" #$name "-" #$version))) + (with-directory-excursion "scripts" + (for-each (lambda (f) (install-file f bindir)) + '("bts")) + (mkdir-p bashcomp) + (copy-file "bts.bash_completion" (string-append bashcomp "/bts"))) + (wrap.pl (find-files bindir) + (list "dpkg" + "perl-authen-sasl" + "perl-db-file" + "perl-encode" + "perl-encode-locale" + "perl-file-homedir" + "perl-file-listing" + "perl-file-which" + "perl-http-cookies" + "perl-http-daemon" + "perl-http-date" + "perl-http-message" + "perl-http-negotiate" + "perl-http-parser" + "perl-io-socket-ssl" + "perl-ipc-run" + "perl-json" + "perl-libwww" + "perl-list-compare" + "perl-lwp-protocol-https" + "perl-moo" + "perl-mozilla-ca" + "perl-net-http" + "perl-try-tiny" + "perl-uri" + "perl-www-robotrules")) + (with-directory-excursion "lib/Devscripts/" + (for-each (lambda (f) (install-file f perl-lib)) + (find-files "./"))) + (for-each (lambda (f) (install-file f doc)) + '("README"))))) + (add-after 'install 'manpage + ;; FIXME: missing the man page for bts, how is it created? + (lambda* (#:key outputs #:allow-other-keys) + (let ( (man1 (string-append #$output "/share/man/man1")) + (man5 (string-append #$output "/share/man/man5"))) + (with-directory-excursion "doc" + (invoke "make" "devscripts.1") + (install-file "devscripts.1" man1) + (install-file "devscripts.conf.5" man5)))))))) + (inputs + (list + bash-minimal + dpkg + perl-authen-sasl + perl-db-file + perl-encode + perl-encode-locale + perl-file-homedir + perl-file-listing + perl-file-which + perl-http-cookies + perl-http-daemon + perl-http-date + perl-http-message + perl-http-negotiate + perl-http-parser + perl-io-socket-ssl + perl-ipc-run + perl-json + perl-libwww + perl-list-compare + perl-lwp-protocol-https + perl-moo + perl-mozilla-ca + perl-net-http + perl-try-tiny + perl-uri + perl-www-robotrules)) + (native-inputs + (list perl perl-libwww perl-uri pkg-config python)) + (propagated-inputs + (list perl-lwp-protocol-https)) + (home-page "https://tracker.debian.org/pkg/devscripts") + (synopsis "BTS script from Debian's devscripts") + (description "This package only provides the bts script from the Debian +devscripts archive. It's useful for Guix Developers that interacting with GNU's +debbugs server.") + (license license:gpl2))) + (define-public debootstrap (package (name "debootstrap") -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Fri May 03 22:42:53 2024 Received: (at 70020) by debbugs.gnu.org; 4 May 2024 02:42:53 +0000 Received: from localhost ([127.0.0.1]:50644 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s35MT-0001Fv-Fm for submit@debbugs.gnu.org; Fri, 03 May 2024 22:42:53 -0400 Received: from cascadia.aikidev.net ([173.255.214.101]:52200) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s35MP-0001Fp-OA for 70020@debbugs.gnu.org; Fri, 03 May 2024 22:42:51 -0400 Received: from localhost (unknown [IPv6:2600:3c01:e000:21:7:77:0:50]) (Authenticated sender: vagrant@cascadia.debian.net) by cascadia.aikidev.net (Postfix) with ESMTPSA id BDBA21AA97; Fri, 3 May 2024 19:42:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=debian.org; s=1.vagrant.user; t=1714790537; bh=XfhFsTV3NSM8HgFejo4bMcGXK9gkfqpAiU/oFaKeYXY=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=QMYzEkcxiBqYfP+WUn+pb2+sWd3lguycUdN6M/WbSqEZEse77gnRTNFwrO1uwMq92 b01hvUlMDLJ3i9rOJt1jGUvwyOvTF7G/BLK5TiXDsEj88N4O0uTo770vDNaEHN/EbN kIkMPKZH8Mcul4odObiNSNGuAFMsn2jwxhEJDyQIDW7Kah6gvrUD9MUvuYiSYa7I6Z Cmvd1+vnR6AmCgX+ITi6Aw4INXcho09pME5If6B/NmgYrhcKqZhoSzQQYJDx1HgeSM Kd3VX8DSsMHkm7SPqKitCWO/lSEp0UwDWqk5QQocNSivpoS4Ao58WcpleEr7Zc6GIn 8U81LbMNLhdUA== From: Vagrant Cascadian To: Steve George Subject: Re: [bug#70020] [PATCH v3 1/1] gnu: Add debian-devscripts. In-Reply-To: <03f2e0ee39ee8112655feccb2a72dc4764c4412b.1713173193.git.steve@futurile.net> References: <03f2e0ee39ee8112655feccb2a72dc4764c4412b.1713173193.git.steve@futurile.net> Date: Fri, 03 May 2024 19:42:11 -0700 Message-ID: <87ikzuwb5o.fsf@wireframe> 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: 70020 Cc: 70020@debbugs.gnu.org, jlicht@fsfe.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 On 2024-04-15, Steve George wrote: > * gnu/packages/debian.scm (debian-devscripts): New variable. > > Change-Id: Iff64afdb1f730f3d941617bc428a57d09c0381b2 > --- > gnu/packages/debian.scm | 151 ++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 151 insertions(+) > > diff --git a/gnu/packages/debian.scm b/gnu/packages/debian.scm > index a88fb04feb..2c79afdc75 100644 > --- a/gnu/packages/debian.scm > +++ b/gnu/packages/debian.scm ... > +(define-public debian-devscripts > + (package > + (name "debian-devscripts") As someone who has used devscripts for years (decades?), I would find it very surprising that it includes a single script! :) It is essentially a huge grab bag of scripts (most of which I have never used) ... so I would suggest "debian-devscripts-bts" or simply "debian-bts". Or packaging more of the scripts? Not sure what would be generally useful on guix as most are very debian-specific, but I am sometimes surprised. :) > + (add-after 'install 'manpage > + ;; FIXME: missing the man page for bts, how is it created? I have not quite figured out exactly how it gets there, but according the last build on debian: https://buildd.debian.org/status/fetch.php?pkg=devscripts&arch=all&ver=2.23.7&stamp=1702422001&raw=0 it calls: pod2man --utf8 --center=" " --release="Debian Utilities" bts.pl > bts.1 Presumably this is in one of the scripts/Makefile targets: %.1: %.pl podchecker $< pod2man --utf8 --center=" " --release="Debian Utilities" $< > $@ Seems like they get pulled into SCRIPTS via a wildcard: PL_FILES := $(wildcard *.pl) SH_FILES = $(wildcard *.sh) SCRIPTS = $(patsubst %.pl,%,$(PL_FILES)) $(patsubst %.sh,%,$(SH_FILES)) So it might be possible to get the Makefile to do the right thing ... or just call pod2man (from "perl") directly since you're only packaging bts.pl... > + (synopsis "BTS script from Debian's devscripts") > + (description "This package only provides the bts script from the Debian > +devscripts archive. It's useful for Guix Developers that interacting with GNU's > +debbugs server.") > + (license license:gpl2))) This should definitely be changed to gpl2+ looking at scripts/bts.pl and debian/copyright documents some exceptions; a few of the common files might actually be a smattering of other licenses; this is where shipping only a subset is very nice. :) Hope that is helpful! :) live well, vagrant --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCZjWggwAKCRDcUY/If5cW qnGuAQDuvpApduGOHhyW5DpHWzCkFZc7wp+S3fveR6yBlkVkBQEA5TYpSCRK7gZe Lj4Eh1G4C1xtixNHDuPkfnpLqP+ZpwQ= =Eg2S -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sat May 04 03:07:39 2024 Received: (at 70020) by debbugs.gnu.org; 4 May 2024 07:07:39 +0000 Received: from localhost ([127.0.0.1]:51664 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s39Uh-0006mU-8f for submit@debbugs.gnu.org; Sat, 04 May 2024 03:07:39 -0400 Received: from cascadia.aikidev.net ([2600:3c01:e000:267:0:a171:de7:c]:51488) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s39Ub-0006mK-BK for 70020@debbugs.gnu.org; Sat, 04 May 2024 03:07:37 -0400 Received: from localhost (unknown [IPv6:2600:3c01:e000:21:7:77:0:50]) (Authenticated sender: vagrant@cascadia.debian.net) by cascadia.aikidev.net (Postfix) with ESMTPSA id DBAA21AA9F; Sat, 4 May 2024 00:07:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=debian.org; s=1.vagrant.user; t=1714806421; bh=OgmtKX+CdbxB0bcAuDNaBloMPepLgItr+KCOm4d/f5Q=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=K5NeQ6JdEn9Iro7tzqQh5F9/0YjzeoNoxfyM1f6vFzaybDTnuuhGfpuS3Nm/ntgjQ TA8m30pqNqBG06+HZuAKSd7aJLzTw5ujts2WSNgYcry+Ep5BlPkkVNzT9Y5RD7azet IJyNF5iDFZZzk6R2CgaYXvTu0jqXWDYlm7O6zZ9QcLrSv6GQlhXehU43zuLP0JjOTz W/ogesVZCZpCo1PHQ5kKb5Q04mRqajBYXEU5AAarS0E94rr+rAb+TfdT4+jE2SNBfG v6pKBRRQgZ3UFskZhKegvwrVcrZeyr4Hcj2pkPhM7j201xTnfy2bAyW8DAAFma+t1d BerjWd5qm0ssQ== From: Vagrant Cascadian To: Steve George Subject: Re: [bug#70020] [PATCH v3 1/1] gnu: Add debian-devscripts. In-Reply-To: <03f2e0ee39ee8112655feccb2a72dc4764c4412b.1713173193.git.steve@futurile.net> References: <03f2e0ee39ee8112655feccb2a72dc4764c4412b.1713173193.git.steve@futurile.net> Date: Sat, 04 May 2024 00:06:50 -0700 Message-ID: <875xvuvywl.fsf@wireframe> 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: 70020 Cc: vagrant@debian.org, 70020@debbugs.gnu.org, jlicht@fsfe.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 On 2024-04-15, Steve George wrote: > diff --git a/gnu/packages/debian.scm b/gnu/packages/debian.scm > index a88fb04feb..2c79afdc75 100644 > --- a/gnu/packages/debian.scm > +++ b/gnu/packages/debian.scm ... > + (wrap.pl (find-files bindir) > + (list "dpkg" ... > + "perl-lwp-protocol-https" ... > + (inputs > + (list ... > + perl-lwp-protocol-https ... > + (native-inputs > + (list perl perl-libwww perl-uri pkg-config python)) > + (propagated-inputs > + (list perl-lwp-protocol-https)) Despite perl-lwp-protocol-https being in inputs, propagated-inputs, and included in a perl wrapper.... ./pre-inst-env guix shell debian-devscripts -- bts --bts-server=debbugs.gnu.org show 70020 .bts-real: couldn't download http://debbugs.gnu.org/70020: 501 Protocol scheme 'https' is not supported (LWP::Protocol::https not installed) Explicitly adding perl-lwp-protocol-https to guix shell did not help... live well, vagrant --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCZjXeigAKCRDcUY/If5cW qhS2AP0fyK8NnPUfqRdQxnFLzsIreB3/CABNHVEpd8+CqRUl5AD9FUxMbAW+YB1E UjWC9IMAikL/JaMb4JuievbpIZ7XxAc= =WJEX -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Wed May 22 11:21:02 2024 Received: (at 70020) by debbugs.gnu.org; 22 May 2024 15:21:02 +0000 Received: from localhost ([127.0.0.1]:56604 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s9nm2-0004HX-60 for submit@debbugs.gnu.org; Wed, 22 May 2024 11:21:02 -0400 Received: from mail-wr1-f54.google.com ([209.85.221.54]:38754) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s9nlx-0004Gk-DS for 70020@debbugs.gnu.org; Wed, 22 May 2024 11:20:58 -0400 Received: by mail-wr1-f54.google.com with SMTP id ffacd0b85a97d-354ba9ae540so149451f8f.3 for <70020@debbugs.gnu.org>; Wed, 22 May 2024 08:20:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716391186; x=1716995986; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=ynfNZ6yhcMgMmk09dNE58yixKJRcv2ShniogG1A9ciw=; b=WR1mlUozpNPta0rXfNq+S1yqpgQKCFY77ROpG6NFsVbAaGb9HxY0Sx5IBRiG+15edM L2QR4TcYomDjn88cmHMOwpwTdhPJiYbOrCKONkCUyVeN7+6MjxzLZm71tMDa9p/iPCY9 BUEllkqdLuyDUY73tqMb8dQZDcgk7X3HwbCFrJ//Y69f0S5ro8vxUrUl2sI5iBZeSEWJ oP/rEyP0j2surC5BkUsqgjOZR47W/vWm6A9sG2zQXio2IBUq7GtF2MwYastWQS0LRhW9 BprH8B6w2f03Hu0zRO1prMi4ST/4NyLaoGMwUcQTFginDFaqoxzdjC7uNCSM2maibMYN rDbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716391186; x=1716995986; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ynfNZ6yhcMgMmk09dNE58yixKJRcv2ShniogG1A9ciw=; b=mFWP5JpZ1Zfi4kMkIP1aABGGee7+1snKGIgH+183J++u9a6gkmH9w79vFs01ysPVX6 I4jEX6mJyQrtCVqDX3xRCSP/OlTDORntb2eHdZl0TBlkm8Sk4BSq0JAAn22+aG8JeHbA J4imnm3DsQQbuL6iLjg2nbLH3JgNWVAWVekMhDtQDVc4FoOTZPSuUR/aNCVPEWiV9NfQ gc0mOtyF9vDegppgcl/OMRNzFRCwnCAgbJiyTeiGjo5qpatr87WiDeBOEBf74W2vsc52 wjbNEgf8Q0VWcdDODcng8Gno0ydcv15+eLR2GWXO+wC/6DnLr8njMWMb+fG53V74A8x8 ZYCQ== X-Forwarded-Encrypted: i=1; AJvYcCUMfOiCKaHEQwwiGrM67Bm72yUSMLV1/DfIaPRK7YEgpw9t0XtIfZwyKMhA08x/xe5xWmF6MGLqGib3z65BenAilvVNax4= X-Gm-Message-State: AOJu0YycFcibQ40g1x7kyE6q9agomQT3KYw/sSc/4wK/dlD5jo02rn5m 4U5AZqDmdIqVASwqaQi526C4MfilxuMHsLXD1qtHArgl0E95ZBWWuD4W9w== X-Google-Smtp-Source: AGHT+IGpho4O4txnpyEuoTqsfRSfqqJWR8c44GTMkmtKYo+N8y7BCktogIAV6rAI8guonquj4oh5lw== X-Received: by 2002:a05:600c:3ba3:b0:41a:bb50:92bb with SMTP id 5b1f17b1804b1-420fd223511mr18040855e9.0.1716391185885; Wed, 22 May 2024 08:19:45 -0700 (PDT) Received: from lili ([2a01:e0a:59b:9120:c865:f7ad:a866:6eca]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-41ff063d8cesm468938295e9.46.2024.05.22.08.19.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 08:19:45 -0700 (PDT) From: Simon Tournier To: Vagrant Cascadian , Steve George Subject: Re: [bug#70020] [PATCH v3 1/1] gnu: Add debian-devscripts. In-Reply-To: <875xvuvywl.fsf@wireframe> References: <03f2e0ee39ee8112655feccb2a72dc4764c4412b.1713173193.git.steve@futurile.net> <875xvuvywl.fsf@wireframe> Date: Wed, 22 May 2024 15:44:04 +0200 Message-ID: <871q5u3qsb.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 70020 Cc: vagrant@debian.org, 70020@debbugs.gnu.org, jlicht@fsfe.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 (-) Hi, Nice addition! On sam., 04 mai 2024 at 00:06, Vagrant Cascadian wrote: > ./pre-inst-env guix shell debian-devscripts -- bts --bts-server=3Ddebbu= gs.gnu.org show 70020 Is it possible to patch =E2=80=99bts=E2=80=99 to have debbugs.gnu.org as th= e default server? Cheers, simon From debbugs-submit-bounces@debbugs.gnu.org Thu May 30 18:28:47 2024 Received: (at 70020) by debbugs.gnu.org; 30 May 2024 22:28:47 +0000 Received: from localhost ([127.0.0.1]:52729 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sCoGN-0002HU-5E for submit@debbugs.gnu.org; Thu, 30 May 2024 18:28:47 -0400 Received: from mailtransmit04.runbox.com ([185.226.149.37]:36228) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sCoGK-0002H3-Lg for 70020@debbugs.gnu.org; Thu, 30 May 2024 18:28:45 -0400 Received: from mailtransmit03.runbox ([10.9.9.163] helo=aibo.runbox.com) by mailtransmit04.runbox.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1sCoDy-005fft-Bu; Fri, 31 May 2024 00:26:18 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=futurile.net; s=selector2; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From; bh=oRacRk36KVvwxkAwQBbzYs44bnUYzX17hlSQ7Sw8cjk=; b=o6WD9mQ3NyaklKy4+DtSVSCfDa rtcnMpw1eChE0hr9FKcc3tw8N+Wqf0/GxCnYsN0KhF0BDvCoQe4AtInh214/LbbL0uxGWmof9NtDq 25PY+M8zOZOgz3sjLrjt4fA33S+COifxWIjkD5N12EhVkbTI/RVJaoEtoGYhghuRXcJ5kYVf4cX/1 R7oRJYT5VYyvMZRDTHOdn64nu2eEzWRMDDCiqZAMokDmoFTaLOdIhzlHCU8EvACcmlGS08+Wo6zZ5 i8wdDVebIANGWq40IiR0bst62O/Ru0tRGGbeJUv5l+pXs8UNFioC4shCmY77WM2HnfqXfIM2p+fJf sDeA9UUQ==; Received: from [10.9.9.74] (helo=submission03.runbox) by mailtransmit03.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1sCoDy-00028Z-2g; Fri, 31 May 2024 00:26:18 +0200 Received: by submission03.runbox with esmtpsa [Authenticated ID (641962)] (TLS1.2:ECDHE_SECP256R1__RSA_SHA256__AES_256_GCM:256) (Exim 4.93) id 1sCoDi-002J4p-EP; Fri, 31 May 2024 00:26:02 +0200 From: Steve George To: 70020@debbugs.gnu.org Subject: [PATCH v4 0/1] Add debian-devscripts-bts Date: Thu, 30 May 2024 23:07:18 +0100 Message-ID: X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 70020 Cc: vagrant@debian.org, jlicht@fsfe.org, Steve George , zimon.toutoune@gmail.com 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 (-) * Renamed following Vagrant's v2 review: chose 'debian-devscripts-bts' so that potential Debian knowledgable users will find it if they search for devscripts, rather than debian-bts * General bts man page following Vagrants help - thanks! * Correctly wrapped Perl from inputs, so that imports work correctly * Patched source to default to debbugs.gnu.org - tried to provide a config file but this didn't work To test: guix shell --development guix --container --nesting --network --preserve=^TERM$ --share=/var/log/guix --share=/etc/ssl coreutils nss-certs ./pre-inst-env guix package --install mutt w3m man-db bash-completion ./pre-inst-env guix install debian-devscripts-bts@2.23.7 GUIX_PROFILE="/home/steve/.guix-profile" ; . "$GUIX_PROFILE/etc/profile" export DEBEMAIL=your@email.com bts --online --mbox show 66208 export BROWSER=w3m bts show 62262 man devscripts man bts Steve George (1): gnu: Add debian-devscripts-bts. gnu/packages/debian.scm | 159 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 159 insertions(+) base-commit: ee8ff44519650706a563da96cf22b0f64dd22c34 -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Thu May 30 18:28:48 2024 Received: (at 70020) by debbugs.gnu.org; 30 May 2024 22:28:48 +0000 Received: from localhost ([127.0.0.1]:52731 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sCoGN-0002HX-IQ for submit@debbugs.gnu.org; Thu, 30 May 2024 18:28:48 -0400 Received: from mailtransmit05.runbox.com ([185.226.149.38]:42216) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sCoGI-0002H0-Ie for 70020@debbugs.gnu.org; Thu, 30 May 2024 18:28:45 -0400 Received: from mailtransmit02.runbox ([10.9.9.162] helo=aibo.runbox.com) by mailtransmit05.runbox.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1sCoDw-005oqB-2S; Fri, 31 May 2024 00:26:16 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=futurile.net; s=selector2; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From; bh=BVPItUjPJWC1GZ/su96KHVnULB6Lya0tvGIJXMCTDNo=; b=Oxvhk9i7viRCrmu0cc0CgQ20Yg kiQ60IDuf5+nGBLyKBoP1+XrrKXFCSJLTZm4vq9MGN039774ttH9aScVzezyhZBvQk7T7YSjEXuuK JKuA6P5Kk1YW0/re1fHeDpFely8b1u/Mwmx4e8GDKTaZVoeyKt1gtBDhAseLD4qtb6OvgFOujbOz9 NMbkKzQCIzsJniAgVdot4n9Nk4T+tJ5l+XOE1NiLn9RF23XMC2bUZoqOjsHUa++3HxmapjXOj6eWf d6WEk9REh7V3iMUXUlmwBPBXXRJxqvQo94vXfQr2QX0otHRxcEtsOZaQDbLpNwdx2em8vQFdoaQ4k oo9w8BUA==; Received: from [10.9.9.73] (helo=submission02.runbox) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1sCoDq-0005pX-EM; Fri, 31 May 2024 00:26:10 +0200 Received: by submission02.runbox with esmtpsa [Authenticated ID (641962)] (TLS1.2:ECDHE_SECP256R1__RSA_SHA256__AES_256_GCM:256) (Exim 4.93) id 1sCoDj-003tXW-DX; Fri, 31 May 2024 00:26:03 +0200 From: Steve George To: 70020@debbugs.gnu.org Subject: [PATCH v4 1/1] gnu: Add debian-devscripts-bts. Date: Thu, 30 May 2024 23:07:19 +0100 Message-ID: <27df2890a4034a0bc0287625be0e4a026d8b7107.1717106237.git.steve@futurile.net> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 70020 Cc: vagrant@debian.org, jlicht@fsfe.org, Steve George , zimon.toutoune@gmail.com 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 (-) * gnu/packages/debian.scm (debian-devscripts-bts): New variable. Change-Id: Iff64afdb1f730f3d941617bc428a57d09c0381b2 --- gnu/packages/debian.scm | 159 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 159 insertions(+) diff --git a/gnu/packages/debian.scm b/gnu/packages/debian.scm index a88fb04feb..03c007b1e2 100644 --- a/gnu/packages/debian.scm +++ b/gnu/packages/debian.scm @@ -27,6 +27,7 @@ (define-module (gnu packages debian) #:use-module (guix packages) #:use-module (guix build-system copy) #:use-module (guix build-system gnu) + #:use-module (guix build-system perl) #:use-module (guix build-system trivial) #:use-module (gnu packages autotools) #:use-module (gnu packages backup) @@ -34,6 +35,7 @@ (define-module (gnu packages debian) #:use-module (gnu packages bash) #:use-module (gnu packages compression) #:use-module (gnu packages crypto) + #:use-module (gnu packages databases) #:use-module (gnu packages dbm) #:use-module (gnu packages gettext) #:use-module (gnu packages gnupg) @@ -43,7 +45,10 @@ (define-module (gnu packages debian) #:use-module (gnu packages ncurses) #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) + #:use-module (gnu packages python) + #:use-module (gnu packages web) #:use-module (gnu packages wget) + #:use-module (srfi srfi-1) #:use-module (srfi srfi-26)) (define-public debian-archive-keyring @@ -236,6 +241,160 @@ (define-public ubuntu-keyring (license (list license:public-domain ; the keys license:gpl2+)))) ; see debian/copyright +(define-public debian-devscripts-bts + (package + (name "debian-devscripts-bts") + (version "2.23.7") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://salsa.debian.org/debian/devscripts.git") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "031467rclglk1hdx8z2vzx5z88vpy0sk73qi8ni0sai3jx62ji75")))) + (build-system perl-build-system) + (arguments + (list + #:tests? #f ; tests assume various Debian specific capabilities + #:phases + ;; only includes the bts command as that's useful for Guix packagers + #~(modify-phases %standard-phases + (add-after 'unpack 'patch-programs + (lambda* (#:key inputs outputs #:allow-other-keys) + (with-directory-excursion "scripts" + (substitute* "bts.pl" (("/bin/bash") (which "bash"))) + (substitute* "bts.pl" (("/bin/rm") (which "rm"))) + (substitute* "bts.pl" (("/bin/cat") (which "cat"))) + ;; Avoid having to provide Debian's sensible-browser package + (substitute* "bts.pl" + (("my \\$browser;") "my $browser = $ENV{'BROWSER'};")) + (substitute* "bts.pl" + (("'sensible-browser',") "$browser,")) + ;; Use Guix's debbugs - patching the source as putting a config + ;; file into #$output/etc doesn't work + (substitute* "bts.pl" + (("= 'https://bugs.debian.org'") + "= 'https://debbugs.gnu.org'")) + (rename-file "bts.pl" "bts")))) + (delete 'configure) + (delete 'build) + (replace 'install + (lambda* (#:key inputs outputs #:allow-other-keys) + (let* ((bindir (string-append #$output "/bin")) + (bashcomp (string-append #$output + "/etc/bash_completion.d")) + (perl-lib (string-append #$output + "/lib/perl5/site_perl/Devscripts")) + (wrap.pl + (lambda (scripts keys) + (for-each + (lambda (script) + (wrap-program script + `("PERL5LIB" ":" prefix + ,(cons* + (getenv "PERL5LIB") + (string-append #$output + "/lib/perl5/site_perl") + (map + (lambda (key) + (string-append + (assoc-ref inputs key) + "/lib/perl5/site_perl")) + keys))))) + scripts))) + (doc (string-append #$output + "/share/doc/" #$name "-" #$version))) + (with-directory-excursion "scripts" + (for-each (lambda (f) (install-file f bindir)) + '("bts")) + (mkdir-p bashcomp) + (copy-file "bts.bash_completion" (string-append bashcomp "/bts"))) + (wrap.pl (find-files bindir) + (list "dpkg" + "perl-authen-sasl" + "perl-db-file" + "perl-encode" + "perl-encode-locale" + "perl-file-homedir" + "perl-file-listing" + "perl-file-which" + "perl-http-cookies" + "perl-http-daemon" + "perl-http-date" + "perl-http-message" + "perl-http-negotiate" + "perl-http-parser" + "perl-io-socket-ssl" + "perl-ipc-run" + "perl-json" + "perl-libwww" + "perl-list-compare" + "perl-lwp-protocol-https" + "perl-moo" + "perl-mozilla-ca" + "perl-net-http" + "perl-try-tiny" + "perl-uri" + "perl-www-robotrules")) + (with-directory-excursion "lib/Devscripts/" + (for-each (lambda (f) (install-file f perl-lib)) + (find-files "./"))) + (for-each (lambda (f) (install-file f doc)) + '("README"))))) + (add-after 'install 'manpage + (lambda* (#:key outputs #:allow-other-keys) + (let ( (man1 (string-append #$output "/share/man/man1")) + (man5 (string-append #$output "/share/man/man5"))) + (with-directory-excursion "scripts" + (invoke "pod2man" "--utf8" "--center=' '" "bts" "bts.1") + (install-file "bts.1" man1)) + (with-directory-excursion "doc" + (invoke "make" "devscripts.1") + (install-file "devscripts.1" man1) + (install-file "devscripts.conf.5" man5)))))))) + (inputs + (list + bash-minimal + dpkg + perl-authen-sasl + perl-db-file + perl-encode + perl-encode-locale + perl-file-homedir + perl-file-listing + perl-file-which + perl-http-cookies + perl-http-daemon + perl-http-date + perl-http-message + perl-http-negotiate + perl-http-parser + perl-io-socket-ssl + perl-ipc-run + perl-json + perl-libwww + perl-list-compare + perl-lwp-protocol-https + perl-moo + perl-mozilla-ca + perl-net-http + perl-try-tiny + perl-uri + perl-www-robotrules)) + (native-inputs + (list perl perl-libwww perl-uri pkg-config python)) + (propagated-inputs + (list perl-lwp-protocol-https)) + (home-page "https://tracker.debian.org/pkg/devscripts") + (synopsis "BTS script from Debian's devscripts") + (description "This package only provides the bts script from the Debian +devscripts archive. It's useful for Guix Developers that interacting with GNU's +debbugs server.") + (license license:gpl2+))) + (define-public debootstrap (package (name "debootstrap") -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Fri May 31 14:30:26 2024 Received: (at 70020-done) by debbugs.gnu.org; 31 May 2024 18:30:26 +0000 Received: from localhost ([127.0.0.1]:55345 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sD71F-0004a7-P8 for submit@debbugs.gnu.org; Fri, 31 May 2024 14:30:25 -0400 Received: from cascadia.aikidev.net ([173.255.214.101]:33524) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sD71C-0004Zs-5I for 70020-done@debbugs.gnu.org; Fri, 31 May 2024 14:30:24 -0400 Received: from localhost (unknown [IPv6:2600:3c01:e000:21:7:77:0:50]) (Authenticated sender: vagrant@cascadia.debian.net) by cascadia.aikidev.net (Postfix) with ESMTPSA id 6EA831AF5E; Fri, 31 May 2024 11:30:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=debian.org; s=1.vagrant.user; t=1717180200; bh=V+CWQpTlLopKKL+2tiiI9/Ran9DaTLA577WKiVc66Rk=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=IEcSSnnf3o1pdqBr/1ysY9cbECTTiURR+V+y+YUzvcbToM6Uh8xArrULv5Tc2EUzg YLW0zPmd/vj6D4nLMiKzmVjQS32ANhq73+Senw4++RG71MgYCpjkEz0N33N47yq1xr MGE0RX6q9wRQqLUmCrlAMNUIOHIXVYfnYw32L6dJHujwRcrkwWOdy6iegbS2QPIdew YYXydmpSY9pyXup9810CJjs5Q75j57lY6lDsHreiWuLaZEUFx9ZkB7QMeYogi1TcSz elsEyKseOCaBJOolhucQkPkquMZBIKMqcFWyRwGZXF+5+STEwnXcxw9ekzQEGXx1VL ft+A7ARyOXIFg== From: Vagrant Cascadian To: Steve George , 70020-done@debbugs.gnu.org Subject: Re: [PATCH v4 1/1] gnu: Add debian-devscripts-bts. In-Reply-To: <27df2890a4034a0bc0287625be0e4a026d8b7107.1717106237.git.steve@futurile.net> References: <27df2890a4034a0bc0287625be0e4a026d8b7107.1717106237.git.steve@futurile.net> Date: Fri, 31 May 2024 11:29:56 -0700 Message-ID: <874jadomvv.fsf@wireframe> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: 3.6 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On 2024-05-30, Steve George wrote: > * gnu/packages/debian.scm (debian-devscripts-bts): New variable. > > Change-Id: Iff64afdb1f730f3d941617bc428a57d09c0381b2 Thanks! Pushed as fba6896f625dcbeef112387fc90abe83acae1720. Content analysis details: (3.6 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_NONE SPF: sender does not publish an SPF Record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [173.255.214.101 listed in zen.spamhaus.org] X-Debbugs-Envelope-To: 70020-done Cc: jlicht@fsfe.org, zimon.toutoune@gmail.com 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: 2.6 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On 2024-05-30, Steve George wrote: > * gnu/packages/debian.scm (debian-devscripts-bts): New variable. > > Change-Id: Iff64afdb1f730f3d941617bc428a57d09c0381b2 Thanks! Pushed as fba6896f625dcbeef112387fc90abe83acae1720. Content analysis details: (2.6 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [173.255.214.101 listed in zen.spamhaus.org] 0.0 SPF_NONE SPF: sender does not publish an SPF Record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager --=-=-= Content-Type: text/plain On 2024-05-30, Steve George wrote: > * gnu/packages/debian.scm (debian-devscripts-bts): New variable. > > Change-Id: Iff64afdb1f730f3d941617bc428a57d09c0381b2 Thanks! Pushed as fba6896f625dcbeef112387fc90abe83acae1720. Made some minor changes ... there was some trailing whitespace in one of the comments that guix lint complained about... > + (description "This package only provides the bts script from the Debian > +devscripts archive. It's useful for Guix Developers that interacting with GNU's > +debbugs server.") And improved the grammar in the description: (description "This package only provides the bts script from the Debian -devscripts archive. It's useful for Guix Developers that interacting with GNU's +devscripts archive. It's useful for Guix Developers that interact with GNU's debbugs server.") live well, vagrant --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCZloXJQAKCRDcUY/If5cW qp1FAP9hNcmzTAGRbHemeoeh/cB9Ks5Azy63KYrDwCed6jhXPgEA5CDH+uLhutFp 3eChYrLFFDKlJqYV22F+deEQyr13TAM= =qD3t -----END PGP SIGNATURE----- --=-=-=-- From unknown Fri Aug 15 20:29:23 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 29 Jun 2024 11:24:09 +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