From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id cObODEuNsV+rRgAA0tVLHw (envelope-from ) for ; Sun, 15 Nov 2020 20:19:23 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 4NytCEuNsV84HgAAB5/wlQ (envelope-from ) for ; Sun, 15 Nov 2020 20:19:23 +0000 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 77FEF9404C4 for ; Sun, 15 Nov 2020 20:19:22 +0000 (UTC) Received: from localhost ([::1]:37634 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1keOUa-0006Qi-Cw for larch@yhetil.org; Sun, 15 Nov 2020 15:19:20 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:60332) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1keOUI-0006OT-Ut for guix-patches@gnu.org; Sun, 15 Nov 2020 15:19:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42689) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1keOUI-00049y-Lt for guix-patches@gnu.org; Sun, 15 Nov 2020 15:19:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1keOUI-0004UG-Hu for guix-patches@gnu.org; Sun, 15 Nov 2020 15:19:02 -0500 Subject: bug#44625: [PATCH] gnu: Add b4. Resent-From: Christopher Baines Original-Sender: "Debbugs-submit" Resent-To: guix-patches@gnu.org Resent-Date: Sun, 15 Nov 2020 20:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 44625 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Kyle Meyer Cc: 44625-done@debbugs.gnu.org Mail-Followup-To: 44625@debbugs.gnu.org, mail@cbaines.net, kyle@kyleam.com Received: via spool by 44625-done@debbugs.gnu.org id=D44625.160547150017189 (code D ref 44625); Sun, 15 Nov 2020 20:19:02 +0000 Received: (at 44625-done) by debbugs.gnu.org; 15 Nov 2020 20:18:20 +0000 Received: from localhost ([127.0.0.1]:54233 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1keOTc-0004TB-0C for submit@debbugs.gnu.org; Sun, 15 Nov 2020 15:18:20 -0500 Received: from mira.cbaines.net ([212.71.252.8]:42432) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1keOTa-0004T3-4V for 44625-done@debbugs.gnu.org; Sun, 15 Nov 2020 15:18:19 -0500 Received: from localhost (188.30.135.14.threembb.co.uk [188.30.135.14]) by mira.cbaines.net (Postfix) with ESMTPSA id 45DBD27BBF4; Sun, 15 Nov 2020 20:18:17 +0000 (GMT) Received: from capella (localhost [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id 8c050096; Sun, 15 Nov 2020 20:18:14 +0000 (UTC) References: <20201114003906.25111-1-kyle@kyleam.com> User-agent: mu4e 1.4.13; emacs 27.1 From: Christopher Baines In-reply-to: <20201114003906.25111-1-kyle@kyleam.com> Date: Sun, 15 Nov 2020 20:18:14 +0000 Message-ID: <87d00ez855.fsf@cbaines.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) 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" X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: -0.61 X-TUID: v6yU+MiNmT0i --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Kyle Meyer writes: > * gnu/packages/version-control.scm (b4): New variable. > --- > > b4 is focused on lore.kernel.org public-inbox archives, but it's useful= for > any public-inbox [1] instance, including yhetil.org/guix-patches :). H= ere's > an example with a recent multi-patch thread that involves multiple vers= ions. > > $ # in the guix repo > $ git config b4.attestation-policy off > $ git config b4.midmask https://yhetil.org/guix-patches/%s > $ b4 am 20201028165112.28575-1-zimon.toutoune@gmail.com > > The end result is a filtered mbox with the v2 patches. Also, because t= he > sender helpfully included the base commit, `b4 am' will use that inform= ation > in the instructions that it outputs. > > If the above sounds useful to you but you'd prefer to work in Emacs, you > might be interested in piem (), whi= ch > includes a transient (i.e magit-popup's successor) interface to b4. > > [1] https://public-inbox.org/ n> > gnu/packages/version-control.scm | 41 ++++++++++++++++++++++++++++++++ > 1 file changed, 41 insertions(+) > > diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-cont= rol.scm > index 16c70bd1a7..de7c961cea 100644 > --- a/gnu/packages/version-control.scm > +++ b/gnu/packages/version-control.scm > @@ -2301,6 +2301,47 @@ (define-public grokmirror > based on a manifest file published by servers.") > (license license:gpl3+))) >=20=20 > +(define-public b4 > + (package > + (name "b4") > + (version "0.5.2") > + (source > + (origin > + (method git-fetch) > + (uri (git-reference > + (url "https://git.kernel.org/pub/scm/utils/b4/b4.git") > + (commit (string-append "v" version)))) > + (file-name (string-append name "-" version "-checkout")) > + (sha256 > + (base32 "1w11fiyspyncz2m7njrjfylgzch4azi7560ngd8i733wvjjhg3mj"))= )) > + (build-system python-build-system) > + (arguments > + `(#:tests? #f ; No tests. > + #:phases > + (modify-phases %standard-phases > + (add-after 'install 'install-manpages > + (lambda* (#:key outputs #:allow-other-keys) > + (let ((man (string-append (assoc-ref outputs "out") > + "/man/man5/"))) > + (mkdir-p man) > + (for-each (lambda (file) (install-file file man)) > + (find-files "man" "\\.[1-8]$"))) > + #t))))) > + (inputs > + `(("python-requests" ,python-requests))) > + (home-page "https://git.kernel.org/pub/scm/utils/b4/b4.git") > + (synopsis "Tool for working with patches in public-inbox archives") > + (description "The @code{b4} command is designed to make it easier to > +participate in patch-based workflows for projects that have public-inbox > +archives. Features include > +@itemize > +@item downloading a thread's mbox given a message ID > +@item processing an mbox so that is ready to be fed to @code{git-am} > +@item creating templated replies for processed patches and pull requests > +@item submitting cryptographic attestation for patches. > +@end itemize") > + (license license:gpl2+))) > + > (define-public git-annex-remote-rclone > (package > (name "git-annex-remote-rclone") > > base-commit: 4e9b2e8ba26dd601df67f112852237d5df2f3341 Thanks Kyle, I tweaked the formatting of the description, just adding a newline as I thought it looked better, and pushed this to master as 3b77ba78684e201382b1c28f2618252205891568. Thanks again, Chris --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKlBAEBCgCPFiEEPonu50WOcg2XVOCyXiijOwuE9XcFAl+xjQZfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcRHG1haWxAY2Jh aW5lcy5uZXQACgkQXiijOwuE9Xesyg//QwokDmkrxeJbtDXEKILvcO03jQlP31BJ TtozIsZxa8KmXAisfPzi50B3G1zXfBvvV7LRuJdoycjU4pwk3606JCm9/ANcNPA8 bkYPIRa9EzceD8l35DNz6/rcS3hcakD9iE7A+ZzYJFhP2SKg51YDluRXkdKAOpac iWQdcynuSOv35tqIZbCQogJKUW0ojKHO0miKs74r3V6eJP+x9LwIJRUIa0X1a59J yD02ACXAANKlXMbZWRNMOis7Jn6NwaFT80pwt3jgdXF6MW6FB1YqyxnUBHWyyxsn ZNOVgwKolW4zCkrJmjIIUNbf8ksFmp96rKQ80QxtcmbgGDtMyL3E+/5U+lDVvjIP PcWKPQ5OmY2x9X3VTy0ieueZjglVWMbrqWc7qtfchhXmv1VhI6v1eWabZkqaELXF GdJkt19Oiu6loOq5TLq0IjXwf5HR64XSjHJUDDLBf/o/Cx/11/Qj2ydg4j0kJqkA Ae5ZcReVYPeO+G+WjRPIX3GD/rDrpuGWdtFp2RRtW3nBacZp1rBlrvKKBKYa+BkB 08QDiIkFnY2JQOwCA2y17O9YZT2LL0yRcxL4Kf2Z1eXlzjDnt8/aHLXOC2rPbEnv /XhKP5JBDfdeJDjr5Tmo0OFlMga9LV70QPfpB0kQIg/bgRZbwTlw2rps0qlXzJ4B 3Qq/1MvCdPY= =TatH -----END PGP SIGNATURE----- --=-=-=--