From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id MNOVKiz0HGZWJAEAe85BDQ:P1 (envelope-from ) for ; Mon, 15 Apr 2024 11:32:28 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id MNOVKiz0HGZWJAEAe85BDQ (envelope-from ) for ; Mon, 15 Apr 2024 11:32:28 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=futurile.net header.s=selector1 header.b=I5MwW4Ng; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1713173548; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=LbyTK8fgAkT3qEVMDDN7ciiw44phX0rGz6z9bI5yNH8=; b=jqLWdeSS3vw/JeSQLC/xZ1aDO1po0uvRvj1VlH+OMDMoNkGR3dSmYRt7A1Jd9NcteQ2acq hcWhLlZdBQ4Uu7+sbSOcH1kfz3foy66Zy2zUiZfgIvcKPnL49zJVBGnEeJySM2kANLMY5B wvhD2Gcvuxuv3EbDFV4tXk69QXT0HZwcU5zql91+Hg2YZbQtxStAuc/P3DvcnD9yBK8Ik1 Tc0Oi5IOXdy4k9By4qYWRFmhr/MO3ghKjzYcwXSRR5VO93gUN9DZGeG5p65hSlqhC0UdQj yTysKJEEz4COlg7/A8O33y49nxG59HZWkkOaeg82yyX3gbSLYSaSU4WGl9I+jg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1713173548; a=rsa-sha256; cv=none; b=CwYEiLfuD/AO4Ia+Npz6qXd6he4m8irJuEmOgjZrStI2YgQRlJiIRo3e7yA3uJZCcOUSI7 dvJ6SEVVayuW7mkKTeN1rzIFMHqtoGLNyLaLnbKT5zgicaaTDEbvbyRzOpch34Bi7RI+FB mNMbvXszWVVSel9wgtMdGzILOUEeLGe2+wW73iA5AhfFmrsPKhvu8JU82GiRzKt5AC6/1g XDlQoGDJI/zcpkTs3EQ5AnDLCst4ejcsnqXNEZZj/X7XejV5eKC8QSvkE/vO+t9zAJVuvX 8sMt9V93DIKf1Znhx4aCOU/gproFO8f0Zsuuv6YKKxGDqAobERxzSWnn0XVH+Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=futurile.net header.s=selector1 header.b=I5MwW4Ng; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 48D49337A1 for ; Mon, 15 Apr 2024 11:32:28 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rwIh2-0007bq-5C; Mon, 15 Apr 2024 05:32:04 -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 1rwIh0-0007TY-6C for guix-patches@gnu.org; Mon, 15 Apr 2024 05:32:02 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rwIgp-0003KK-PZ for guix-patches@gnu.org; Mon, 15 Apr 2024 05:32:00 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rwIh1-0008DC-AH for guix-patches@gnu.org; Mon, 15 Apr 2024 05:32:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#70020] [PATCH v3 1/1] gnu: Add debian-devscripts. Resent-From: Steve George Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 15 Apr 2024 09:32:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70020 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 70020@debbugs.gnu.org Cc: jlicht@fsfe.org, Steve George Received: via spool by 70020-submit@debbugs.gnu.org id=B70020.171317347231109 (code B ref 70020); Mon, 15 Apr 2024 09:32:03 +0000 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 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -0.97 X-Spam-Score: -0.97 X-Migadu-Queue-Id: 48D49337A1 X-Migadu-Scanner: mx12.migadu.com X-TUID: uGtDFonhrRHh * 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