From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id YOysBrP9WGYlEwEAqHPOHw:P1 (envelope-from ) for ; Fri, 31 May 2024 00:29:07 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id YOysBrP9WGYlEwEAqHPOHw (envelope-from ) for ; Fri, 31 May 2024 00:29:07 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=futurile.net header.s=selector2 header.b=Oxvhk9i7; dmarc=none; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1717108147; 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=BVPItUjPJWC1GZ/su96KHVnULB6Lya0tvGIJXMCTDNo=; b=m8i3iR7le3lU4OFNl6H2uGGSP/GA2JHlpn6bUbV91J9N0LJe8UnBsylL+A+He4mWT2E78O Vgi+1Xx9Ptr/xMUqXX5L6iZg9aE9OFMxMWVo6xrR6kIb0J5NlwpySbDmrK+Si5Ub8idSU8 I3WFU6CE6PAwNXEE0oTRyM7KlCIRT1kmE/vzPpxVR/LuvRx2Lt/w9gd18QWzsDfMkS8Xig Ua6IvF6dX/ohJou0s+QXp8cyzgTCnlRfViYXkHocDZVytX4SVBwHUP61z4hpdqGfT5Gte/ eQpx76cEbB5V2fZC1o/6fdDOMBp8LJEqZ7F7rPUWluySmYKesa8t6zRYKEAXCg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1717108147; a=rsa-sha256; cv=none; b=fdm0RYD3cL+t1kj6sEo7RnramKEyau5388qyA3dAJR74d51ulEryFFFBO8UorYNULj9Tmm FlzgTLmoBiq/0EDCWdz/MlFB/+r4NB4vAgGhDQzEY0g5R0B8UrDvOuQOFmfFvY9lanp7ZN BgB3jCO62g8GnN7NT5AvRQdnSSwAWxY4TTnK/fa+Llz85HtcgQE8ECkORvC7/R5E/Uuwg9 fqLcb/bqhCsvQBU1hl8H2v2LjBt+f/ySYAwaTkaMmIFK7dEss7ETnMUFbScwlr9g1ck+yi TYRjmZ5Mqslja8wbcAR3oC4OYgd9pWFcgvF8FuK9xVMDhkhwApbXFBmXl/qIig== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=futurile.net header.s=selector2 header.b=Oxvhk9i7; dmarc=none; 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" 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 8281F640F8 for ; Fri, 31 May 2024 00:29:06 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sCoGT-00079M-0A; Thu, 30 May 2024 18:28:53 -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 1sCoGS-000798-3a for guix-patches@gnu.org; Thu, 30 May 2024 18:28:52 -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 1sCoGR-0000bE-ST for guix-patches@gnu.org; Thu, 30 May 2024 18:28:51 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sCoGc-0002IX-H4 for guix-patches@gnu.org; Thu, 30 May 2024 18:29:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#70020] [PATCH v4 1/1] gnu: Add debian-devscripts-bts. Resent-From: Steve George Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 30 May 2024 22:29:02 +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: vagrant@debian.org, jlicht@fsfe.org, Steve George , zimon.toutoune@gmail.com Received: via spool by 70020-submit@debbugs.gnu.org id=B70020.17171081288784 (code B ref 70020); Thu, 30 May 2024 22:29:02 +0000 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 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-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.65 X-Spam-Score: 0.65 X-Migadu-Queue-Id: 8281F640F8 X-Migadu-Scanner: mx11.migadu.com X-TUID: 0Ehb6w9Acz1T * 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