From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 15 13:01:49 2021 Received: (at submit) by debbugs.gnu.org; 15 Jul 2021 17:01:50 +0000 Received: from localhost ([127.0.0.1]:49607 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m44k9-0006yl-Fc for submit@debbugs.gnu.org; Thu, 15 Jul 2021 13:01:49 -0400 Received: from lists.gnu.org ([209.51.188.17]:41362) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m44k6-0006w6-Fg for submit@debbugs.gnu.org; Thu, 15 Jul 2021 13:01:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58614) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m44k5-0001qk-Iu for guix-patches@gnu.org; Thu, 15 Jul 2021 13:01:46 -0400 Received: from mail-4316.protonmail.ch ([185.70.43.16]:31895) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m44k3-0008Ny-1W for guix-patches@gnu.org; Thu, 15 Jul 2021 13:01:45 -0400 Date: Thu, 15 Jul 2021 17:01:38 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1626368499; bh=X18AAyNfbnZZf3NDbk+HyUMpjVgXzyYGhVp1U3VQNnQ=; h=Date:To:From:Reply-To:Subject:From; b=vqNYjUnQh3yNsMUwEiac2IIpka7rjOPlIT1wtovtHyssW5iA4LBwq+XI48E/q5jRh TDdUbiionmMs8j7VQyscGaLUXs7INagIGrjlTG2WNLrgFdt4EjrBempRGZ9rZbW+02 /d6UAdqM/SI+im7yd9wjDGgP3oFa6FNfDbKYLMqo= To: "guix-patches@gnu.org" From: phodina Subject: [PATCH] Add git-issues Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch Received-SPF: pass client-ip=185.70.43.16; envelope-from=phodina@protonmail.com; helo=mail-4316.protonmail.ch X-Spam_score_int: -1 X-Spam_score: -0.2 X-Spam_bar: / X-Spam_report: (-0.2 / 5.0 requ) DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.6 (/) X-Debbugs-Envelope-To: submit 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: , Reply-To: phodina Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) >From dbfbc69932b29dd5b3a6bed2de3f67d89bc50bfa Mon Sep 17 00:00:00 2001 From: Petr Hodina Date: Thu, 15 Jul 2021 18:58:40 +0200 Subject: [PATCH] gnu: Add git-issues diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-contro= l.scm index 7c1dbe8b26..47768fdc05 100644 --- a/gnu/packages/version-control.scm +++ b/gnu/packages/version-control.scm @@ -1267,6 +1267,31 @@ subcommands helps automate some parts of the flow to= make working with it a lot easier.") (license license:bsd-2))) +(define-public git-issues +(package + (name "git-issues") + (version "67aacad35888b4c51e2d7be35c86fef137874f12") + (source (origin + (method git-fetch) + (uri +=09 (git-reference +=09=09(url "https://github.com/dspinellis/git-issue") +=09=09(commit version))) + (sha256 + (base32 + "1z6dpwbikmiq5acpbji4kvmxqc2jw995rfk5703k5mvp5ps9a29q")))) + (build-system gnu-build-system) + (arguments + '(#:tests? #f + #:make-flags (list (string-append "PREFIX=3D"(assoc-ref %outputs "ou= t"))) + #:phases (modify-phases %standard-phases +=09=09(delete 'configure) +=09=09(delete 'build)))) + (synopsis "Git-based decentralized issue management") + (description "This is a minimalist decentralized issue management system= based on Git, offering (optional) biderectional integration with GitHub an= d GitLab issue management. It has the following advantages over other syste= ms.") + (home-page "https://github.com/dspinellis/git-issue") + (license license:gpl2))) + (define-public stgit (package (name "stgit") -- 2.31.1 From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 17 05:41:11 2021 Received: (at 49581) by debbugs.gnu.org; 17 Jul 2021 09:41:12 +0000 Received: from localhost ([127.0.0.1]:52854 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m4gop-0007ZI-Mn for submit@debbugs.gnu.org; Sat, 17 Jul 2021 05:41:11 -0400 Received: from ns13.heimat.it ([46.4.214.66]:54638) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m4gom-0007Z2-NP for 49581@debbugs.gnu.org; Sat, 17 Jul 2021 05:41:10 -0400 Received: from localhost (ip6-localhost [127.0.0.1]) by ns13.heimat.it (Postfix) with ESMTP id 193A63021BA; Sat, 17 Jul 2021 09:40:51 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at ns13.heimat.it Received: from ns13.heimat.it ([127.0.0.1]) by localhost (ns13.heimat.it [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Cc-F780N3hDH; Sat, 17 Jul 2021 09:39:59 +0000 (UTC) Received: from bourrache.mug.xelera.it (unknown [93.56.171.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by ns13.heimat.it (Postfix) with ESMTPSA id 43ECE3021B9; Sat, 17 Jul 2021 09:39:49 +0000 (UTC) Received: from roquette.mug.biscuolo.net (roquette [10.38.2.14]) by bourrache.mug.xelera.it (Postfix) with SMTP id D379E10E5404; Sat, 17 Jul 2021 11:39:48 +0200 (CEST) Received: (nullmailer pid 15308 invoked by uid 1000); Sat, 17 Jul 2021 09:39:48 -0000 From: Giovanni Biscuolo To: phodina , 49581@debbugs.gnu.org Subject: Re: [bug#49581] [PATCH] Add git-issues In-Reply-To: Organization: Xelera.eu References: Date: Sat, 17 Jul 2021 11:39:48 +0200 Message-ID: <87eebxjn2z.fsf@xelera.eu> 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: 49581 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; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello phodina, thank you for your patch! phodina via Guix-patches via writes: [...] > +(define-public git-issues > +(package > + (name "git-issues") > + (version "67aacad35888b4c51e2d7be35c86fef137874f12") Upstream does not publish releases (does not tag branches): could you please just add a comment, it could be useful to other Guix developers, also to remember to check if things will change in the future. [...] > + (license license:gpl2))) The source code of the main script [1] states the license is gpl3+: =C2=ABversion 3 of the License, or (at your option) any later version.=C2=BB Can you please submit an updated version of your patch? Thanks! Gio' [1] https://github.com/dspinellis/git-issue/blob/master/git-issue.sh =2D-=20 Giovanni Biscuolo Xelera IT Infrastructures --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJABAEBCgAqFiEERcxjuFJYydVfNLI5030Op87MORIFAmDypWQMHGdAeGVsZXJh LmV1AAoJENN9DqfOzDkS2KwP/1VZVChnZlDifvnRHF6GNK1oPESKSUhqb8M61WK4 E2oWpFFL0cUxtsePT9zhN2iPV9pcml4xEWdavftLoLMHG/UGRFKXbR7WaNTi3go9 DyUvt+d9pkNnZ59oWj11X2smItjPN0NgN+jd09hlk4HZyoHh5ZLXehWLKR2u2Dsh PcyQa1JM9d+CVn47ULsspqbBWwNCx6GX/5d915LR7lVKwvmd59cixVJHwV8IoHyZ u7NKs7F+H/vrl5awyRXaJzo3wWPOT6ubS9RNaySk6Q4/a5PyPbgNXLeGXCGMRiRh DkEOXXxsSO0OyZEyMwFTAeH8mKgouUtwxZ6GbKxl6viRUWMCahz3vHHJJBrztVIC a3JFXbFDU1yAOa+2JAGjH1Lmh77gJOYAVigb39lF3VQZYaqQOnU7zDU5w9C2fDrK 1miYe3/z5ZQPxWScjdvHSOO0Jfab3LD8jzd3TLDI/HqqjOY/VhG0cPYcncVrBhQf Cqk6eH0sCK2aUs2oJ18Tdq+G7UYOqYgkqxdtxMw4lgTSyL6niDCUplQEGAhF3QXd 8op3Iio/pca6BpPHWKRfL4+VRiYJs9W8kkA72Lrrhb0AZpyfgqBCJD7/VDaTpuDC sPqnpM7vt9VbV4KZ5+Nw05dYzRmr8mOSfHXzQmtuHnU/sM5G+HwdNxsYJL26x1vf 4Ucl =5uvc -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 17 06:23:37 2021 Received: (at 49581) by debbugs.gnu.org; 17 Jul 2021 10:23:37 +0000 Received: from localhost ([127.0.0.1]:52884 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m4hTt-00005c-Dk for submit@debbugs.gnu.org; Sat, 17 Jul 2021 06:23:37 -0400 Received: from tobias.gr ([80.241.217.52]:50308) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m4hTq-00005T-Qf for 49581@debbugs.gnu.org; Sat, 17 Jul 2021 06:23:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=2018; bh=M/ZZQk+A0Y/aD 6pzpxohK0RO4wixS0S4nzXXoE3Pgg8=; h=references:in-reply-to:subject:cc: to:from:date; d=tobias.gr; b=JklGAkq5EtPm45XzPTJI204bxQvAGxHe+VXqaQh7X KhmCbgcs8EwCm84HRjJ1pvn8Fk3BzjMeDeSUJHOrosQbN448z1p8VB/90ZonQEY1U/T3/n /m0Em1e3QfJYEjRpUcHfEKx1vhPED0saaKi44coXgNDz+NEUbaqkpGiYJSEv3X08djsjzZ w0h0EU6a7w5jxzYLG2OK9vS78KmeX/1tfMtTf4MyM8jQeq34kFw+BVIex5zHb/csq85qra KOWIDDhn+DPiYOqZxJ53QZoqFr62woU3ZrZkB7TqC/jCnUj7bQg+CKk+pObHEIaM80oGuq XqSpL25kSJrCGvNI+gDDQ== Received: by submission.tobias.gr (OpenSMTPD) with ESMTP id b7971d01; Sat, 17 Jul 2021 10:23:29 +0000 (UTC) MIME-Version: 1.0 Date: Sat, 17 Jul 2021 12:23:29 +0200 From: Tobias Geerinckx-Rice To: phodina Subject: Re: [bug#49581] [PATCH] Add git-issues In-Reply-To: References: Message-ID: Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 49581 Cc: 49581@debbugs.gnu.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 Petr, In addition to what Gio' wrote: On 2021-07-15 19:01, phodina via Guix-patches via wrote: > + (description "This is a minimalist decentralized issue management > system based on Git, offering (optional) biderectional integration 'optional bidirectional'. > with GitHub and GitLab issue management. It has the following > advantages over other systems.") If what came next wasn't too promotional, you can write 'features' instead, and use @enumerate to list [a subset of] them. Otherwise the description's rather short. Kind regards, T G-R Sent from a Web browser. Excuse or enjoy my brevity. From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 17 08:25:40 2021 Received: (at 49581) by debbugs.gnu.org; 17 Jul 2021 12:25:40 +0000 Received: from localhost ([127.0.0.1]:52925 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m4jNz-0005F2-Vc for submit@debbugs.gnu.org; Sat, 17 Jul 2021 08:25:40 -0400 Received: from mail-40134.protonmail.ch ([185.70.40.134]:53945) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m4jNw-0005Em-1f for 49581@debbugs.gnu.org; Sat, 17 Jul 2021 08:25:38 -0400 Date: Sat, 17 Jul 2021 12:25:28 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1626524729; bh=8oFFeRe0hA1VCVhQWMk36LaNh0Zhcj4tRmigmNttTBY=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=OtIZ7KLm1nFKjkndf3fD214ptZUS57vsLx3rOvO4Eu3BuVsKXLrh94knjt8mjWot4 VYYfFmzl3f2QmPCTNVz3VENA+3HUrcH9D1+28QzKNm8/2EJvxgfjzNRQcVOwH5U/f7 spICuP4t08ZWtXz9IDbmG8RUQvzAPvGaQpMFKdH8= To: Tobias Geerinckx-Rice From: phodina Subject: Re: [bug#49581] [PATCH] Add git-issues Message-ID: In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 49581 Cc: 49581@debbugs.gnu.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: , Reply-To: phodina Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Tobias & Giovanni, thanks for the suggestions. Here's the fixed patch Kind regards Petr --- index 7c1dbe8b26..91af0badcb 100644 --- a/gnu/packages/version-control.scm +++ b/gnu/packages/version-control.scm @@ -1267,6 +1267,40 @@ subcommands helps automate some parts of the flow to= make working with it a lot easier.") (license license:bsd-2))) +(define-public git-issues +(package + (name "git-issues") + (version "67aacad35888b4c51e2d7be35c86fef137874f12") ; no tags + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/dspinellis/git-issue") + (commit version))) + (sha256 + (base32 + "1z6dpwbikmiq5acpbji4kvmxqc2jw995rfk5703k5mvp5ps9a29q")))) + (build-system gnu-build-system) + (arguments + '(#:tests? #f + #:make-flags (list (string-append "PREFIX=3D"(assoc-ref %outputs "ou= t"))) + #:phases (modify-phases %standard-phases + (delete 'configure) + (delete 'build)))) + (synopsis "Git-based decentralized issue management") + (description "This is a minimalist decentralized issue management system +based on Git, offering (optional) biderectional integration with GitHub +and GitLab issue management. +It has the following advantages over other systems: +@enumerate +@item No backend, no dependencies +@item Decentralized asynchronous management +@item Transparent text file format +@item Git-based +@end enumerate +") + (home-page "https://github.com/dspinellis/git-issue") + (license license:gpl3))) + (define-public stgit (package (name "stgit") -- 2.31.1 From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 18 04:31:56 2021 Received: (at 49581) by debbugs.gnu.org; 18 Sep 2021 08:31:56 +0000 Received: from localhost ([127.0.0.1]:33498 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mRVlL-0000UX-Uo for submit@debbugs.gnu.org; Sat, 18 Sep 2021 04:31:56 -0400 Received: from mail-4322.protonmail.ch ([185.70.43.22]:49587) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mRVlJ-0000U6-L0 for 49581@debbugs.gnu.org; Sat, 18 Sep 2021 04:31:55 -0400 Date: Sat, 18 Sep 2021 08:31:45 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1631953906; bh=xbkslNjeF8dpMgpOMsEkGZkzxVtVgb/2FC5dFVitoQc=; h=Date:To:From:Cc:Reply-To:Subject:From; b=ZoIR1p2H5640TAKl/9o7lgEifyqfbCufFsCANp+2+Gcc+nBXXXMbRGbdNqNVy1yMK 2LJoUrFviY2T6nv8ZrEtI4yvdAiOKemJ2UKHlmu3sjRPGDpZ0AjWkO8kayfHdh+Lky BrgovFIHiaLAc+/mdPt+iOMfhhiaVmDUyejUWrMg= To: Tobias Geerinckx-Rice From: phodina Subject: [PATCH v3] gnu: Add git-issues. Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch X-Spam-Score: 2.0 (++) 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: * gnu/packages/version-control.scm (git-issues): New variable. diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm index 7c1dbe8b26..cff1190094 100644 --- a/gnu/packages/version-control.scm +++ b/gnu/packages/version-control.scm @@ -3 [...] Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [185.70.43.22 listed in wl.mailspike.net] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (phodina[at]protonmail.com) 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: yoctocell.xyz (xyz)] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record X-Debbugs-Envelope-To: 49581 Cc: 49581@debbugs.gnu.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: , Reply-To: phodina Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) * gnu/packages/version-control.scm (git-issues): New variable. diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-contro= l.scm index 7c1dbe8b26..cff1190094 100644 --- a/gnu/packages/version-control.scm +++ b/gnu/packages/version-control.scm @@ -39,6 +39,7 @@ ;;; Copyright =C2=A9 2021 LibreMiami ;;; Copyright =C2=A9 2021 Xinglu Chen ;;; Copyright =C2=A9 2021 Fran=C3=A7ois J. +;;; Copyright =C2=A9 2021 Petr Hodina ;;; ;;; This file is part of GNU Guix. ;;; @@ -1267,6 +1268,36 @@ subcommands helps automate some parts of the flow to= make working with it a lot easier.") (license license:bsd-2))) +(define-public git-issues + (let ((commit "67aacad35888b4c51e2d7be35c86fef137874f12") + (revision "1")) + (package + (name "git-issues") + (version commit) + (source (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/dspinellis/git-issue") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1z6dpwbikmiq5acpbji4kvmxqc2jw995rfk5703k5mvp5ps9a29q"))= )) + (build-system gnu-build-system) + (arguments + '(#:tests? #f + #:make-flags (list (string-append "PREFIX=3D"(assoc-ref %outputs = "out"))) + #:phases (modify-phases %standard-phases + (delete 'configure) + (delete 'build)))) + (synopsis "Git-based decentralized issue management") + (description "Git-issues provide a minimalist decentralized issue +management system based on Git, offering (optional) bidirectional integrat= ion +with GitHub and GitLab issue management.") + (home-page "https://github.com/dspinellis/git-issue") + (license license:gpl3+)))) + (define-public stgit (package (name "stgit") -- 2.32.0 From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 22 18:15:12 2021 Received: (at 49581) by debbugs.gnu.org; 22 Sep 2021 22:15:12 +0000 Received: from localhost ([127.0.0.1]:52057 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTAW6-00069e-Sd for submit@debbugs.gnu.org; Wed, 22 Sep 2021 18:15:12 -0400 Received: from out1.migadu.com ([91.121.223.63]:52935) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTAW1-00067y-6D for 49581@debbugs.gnu.org; Wed, 22 Sep 2021 18:15:01 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mgsn.dev; s=key1; t=1632348895; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ppndtU8pYVNXjTTdfPbC5CzF+91cFUzivkYtZ00YkoU=; b=cfdZ7ohO/3Kj0CU20d0whhIVBJYtoW7WqTH7fpmezE1yuVmzSog1HeUx/2pVujv1q6A17Z vEYx/Eb6PBA9qZZgph/ZLQV6sry+L5sml4bCP8AAtJraA6srmxroVrg/MNXDnMswhIOB8L G+67RzYooggLkOXpeO9448vKkqlY7h4= From: Sarah Morgensen To: phodina Subject: Re: [bug#49581] [PATCH v3] gnu: Add git-issues. References: Date: Wed, 22 Sep 2021 15:14:53 -0700 In-Reply-To: (phodina@protonmail.com's message of "Sat, 18 Sep 2021 08:31:45 +0000 (4 days, 9 hours, 54 minutes ago)") Message-ID: <86v92sw942.fsf@mgsn.dev> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: iskarian@mgsn.dev X-Spam-Score: 1.3 (+) 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: Hello Petr, Thanks for your updated patch. This looks like a great tool. After making the changes below, I gave it a try, and I might use it myself when I can't use fossil! I was unable to apply your patch with `git am'; I had to guess which commit it was based on and manually apply it. In the future, please configure your git to include the base commit with Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [91.121.223.63 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [91.121.223.63 listed in wl.mailspike.net] 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: yoctocell.xyz (xyz)] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record X-Debbugs-Envelope-To: 49581 Cc: Tobias Geerinckx-Rice , 49581@debbugs.gnu.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 (+) Hello Petr, Thanks for your updated patch. This looks like a great tool. After making the changes below, I gave it a try, and I might use it myself when I can't use fossil! I was unable to apply your patch with `git am'; I had to guess which commit it was based on and manually apply it. In the future, please configure your git to include the base commit with git config --local format.useautobase whenAble or use the `--base' command line option: git format-patch --base=3Da916d50566 phodina writes: > * gnu/packages/version-control.scm (git-issues): New variable. > > diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-cont= rol.scm > index 7c1dbe8b26..cff1190094 100644 > --- a/gnu/packages/version-control.scm > +++ b/gnu/packages/version-control.scm > @@ -39,6 +39,7 @@ > ;;; Copyright =C2=A9 2021 LibreMiami > ;;; Copyright =C2=A9 2021 Xinglu Chen > ;;; Copyright =C2=A9 2021 Fran=C3=A7ois J. > +;;; Copyright =C2=A9 2021 Petr Hodina > ;;; > ;;; This file is part of GNU Guix. > ;;; > @@ -1267,6 +1268,36 @@ subcommands helps automate some parts of the flow = to make working with it a > lot easier.") > (license license:bsd-2))) > > +(define-public git-issues The name should be "git-issue" since that's the name of the project and the command. > + (let ((commit "67aacad35888b4c51e2d7be35c86fef137874f12") > + (revision "1")) > + (package > + (name "git-issues") > + (version commit) > + (source (origin > + (method git-fetch) > + (uri > + (git-reference > + (url "https://github.com/dspinellis/git-issue") > + (commit version))) > + (file-name (git-file-name name version)) > + (sha256 > + (base32 > + "1z6dpwbikmiq5acpbji4kvmxqc2jw995rfk5703k5mvp5ps9a29q"= )))) > + (build-system gnu-build-system) > + (arguments > + '(#:tests? #f Please add a comment explaining why tests are disabled. For example, I attempted to run the tests and found that they must be run in a git repository, and that a global user.name and user.email must be configured. > + #:make-flags (list (string-append "PREFIX=3D"(assoc-ref %output= s "out"))) Please add a space after "PREFIX=3D" and wrap the line. > + #:phases (modify-phases %standard-phases > + (delete 'configure) > + (delete 'build)))) > + (synopsis "Git-based decentralized issue management") > + (description "Git-issues provide a minimalist decentralized issue > +management system based on Git, offering (optional) bidirectional integr= ation > +with GitHub and GitLab issue management.") This is a bit short. How about: --8<---------------cut here---------------start------------->8--- (description "@command{git-issue} provides a minimalist decentralized issue management system based on Git, offering (optional) bidirectional integration with GitHub and GitLab issue management. Issues are stored as simple text files, so no special tools are required to access your data, and issues are changed and shared through Git, so no special infrastructure is necessary to manage your data.") --8<---------------cut here---------------end--------------->8--- > + (home-page "https://github.com/dspinellis/git-issue") > + (license license:gpl3+)))) > + > (define-public stgit > (package > (name "stgit") > -- > 2.32.0 Additionally, it looks like git-issue depends on several tools: cat, curl, grep, git, find, jq, and sed, at least. These should probably be included in inputs and substituted in the script, perhaps with: --8<---------------cut here---------------start------------->8--- (add-before 'install 'patch-paths (lambda* (#:key inputs #:allow-other-keys) (define (input-file input file) (string-append (assoc-ref inputs input) "/" file)) (substitute* '("git-issue.sh" "lib/git-issue/import-export.sh" "scripts/replacerefs.sh") (("\\bcat\\b") (input-file "coreutils" "bin/cat")) (("\\bcurl\\b") (input-file "curl" "bin/curl")) (("\\bdate\\b") (input-file "coreutils" "bin/date")) (("\\bgit\\b") (input-file "git-minimal" "bin/git")) (("\\bgrep\\b") (input-file "grep" "bin/grep")) (("\\bfind\\b") (input-file "findutils" "bin/find")) (("\\bjq\\b") (input-file "jq" "bin/jq")) (("\\bsed\\b") (input-file "sed" "bin/sed")) ;; Substitute back any usage examples. (("((usage|Example): )/gnu/store/[^/]+/bin/(\\w+)" all start exec) (string-append start exec))))) --8<---------------cut here---------------end--------------->8--- I may have missed a few utilities, though. Thank you! -- Sarah From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 23 03:15:58 2021 Received: (at 49581) by debbugs.gnu.org; 23 Sep 2021 07:15:58 +0000 Received: from localhost ([127.0.0.1]:52542 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTIxa-0000Iv-Cx for submit@debbugs.gnu.org; Thu, 23 Sep 2021 03:15:58 -0400 Received: from out2.migadu.com ([188.165.223.204]:40244) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTIxX-0000Il-1R for 49581@debbugs.gnu.org; Thu, 23 Sep 2021 03:15:57 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mgsn.dev; s=key1; t=1632381353; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=DBWzjp8fMwjGpvZe3Iuls7R/dZ6oGTiBrf3HaHy2Vyg=; b=IT2KTx6cPT4mKHKshwCJcyRH9aeNfalJ3oKHQRLT4WyTNK62ynxgjXkCVra5TTwq2GVoKT 8TKL2IZa0pU0a+hoPfqnXnIF4OqBDN1/sXX+wZr8ZmDPJVyWJQs5iYws5orWvzHZ6jigeX 7Rt6Jap9n/yy7NJTqVu10F8MKXJGLIQ= From: Sarah Morgensen To: phodina Subject: Re: [bug#49581] [PATCH v3] gnu: Add git-issues. References: <86v92sw942.fsf@mgsn.dev> Date: Thu, 23 Sep 2021 00:15:50 -0700 In-Reply-To: <86v92sw942.fsf@mgsn.dev> (Sarah Morgensen's message of "Wed, 22 Sep 2021 15:14:53 -0700 (7 hours, 33 minutes, 32 seconds ago)") Message-ID: <86ilyrwymx.fsf@mgsn.dev> MIME-Version: 1.0 Content-Type: text/plain X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: iskarian@mgsn.dev X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 49581 Cc: Tobias Geerinckx-Rice , 49581@debbugs.gnu.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 again, Sarah Morgensen writes: > Additionally, it looks like git-issue depends on several tools: cat, > curl, grep, git, find, jq, and sed, at least. These should probably be > included in inputs and substituted in the script, perhaps with: > > (add-before 'install 'patch-paths > (lambda* (#:key inputs #:allow-other-keys) > (define (input-file input file) > (string-append (assoc-ref inputs input) "/" file)) > > (substitute* '("git-issue.sh" > "lib/git-issue/import-export.sh" > "scripts/replacerefs.sh") > (("\\bcat\\b") (input-file "coreutils" "bin/cat")) > (("\\bcurl\\b") (input-file "curl" "bin/curl")) > (("\\bdate\\b") (input-file "coreutils" "bin/date")) > (("\\bgit\\b") (input-file "git-minimal" "bin/git")) > (("\\bgrep\\b") (input-file "grep" "bin/grep")) > (("\\bfind\\b") (input-file "findutils" "bin/find")) > (("\\bjq\\b") (input-file "jq" "bin/jq")) > (("\\bsed\\b") (input-file "sed" "bin/sed")) > ;; Substitute back any usage examples. > (("((usage|Example): )/gnu/store/[^/]+/bin/(\\w+)" > all start exec) > (string-append start exec))))) > > I may have missed a few utilities, though. I belatedly realized you could also use 'wrap-program', which is probably less error-prone. For example (untested, and not very pretty): --8<---------------cut here---------------start------------->8--- (let ((out (assoc-ref outputs "out")) (paths (map (lambda (input) (string-append (assoc-ref inputs input) "/bin")) '("coreutils" "curl" "findutils" "git-minimal" "grep" "jq" "sed"))) (for-each (lambda (program) (wrap-program (string-append out "/" program) `("PATH" prefix ,paths))) '("bin/git-issue" "lib/git-issue/import-export.sh")))) --8<---------------cut here---------------end--------------->8--- Thinking about it, I'm not sure if the bash autocompletion script ("etc/bash_completion.d/git-issue") should be wrapped as well. Hope that helps, -- Sarah From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 01 16:22:09 2021 Received: (at 49581) by debbugs.gnu.org; 1 Nov 2021 20:22:10 +0000 Received: from localhost ([127.0.0.1]:36234 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mhdog-0007c0-SA for submit@debbugs.gnu.org; Mon, 01 Nov 2021 16:22:09 -0400 Received: from mail-4316.protonmail.ch ([185.70.43.16]:11251) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mhdoc-0007bP-PC for 49581@debbugs.gnu.org; Mon, 01 Nov 2021 16:22:01 -0400 Date: Mon, 01 Nov 2021 20:21:43 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1635798108; bh=MCTsGRI1sYY6qZIciQpMkDmjabCW1texkQlu8IJ5Jn4=; h=Date:To:From:Cc:Reply-To:Subject:From; b=KV4uwvBp+IzVytJR0k7DWkCVN9F1QO+MiAnh+aUymJNx1RL0ElB/NkQJCBr+QhQLk jyYXAYoHYinSxhkijvC4pa6zZzAe8wW398ftjsQdA1vBFJbyuDy4XjIyVgEs6Zn/i2 Ry9xTQkwOQNU1ZLHqqXr0SxCJmiHWwtqTABi5hsc= To: Sarah Morgensen From: phodina Subject: Re: [bug#49581] [PATCH v4] gnu: Add git-issues. Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 49581 Cc: Tobias Geerinckx-Rice , 49581@debbugs.gnu.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: , Reply-To: phodina Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi, Thanks Sarah for the feedback and tips on how to wrap the programs in the s= hell script. In fact the patch is almost done, but I couldn't figure out the correct pro= cedure for the map on line 1324. I get that the list of strings should be m= apped into paths to the binaries, but after struggling I gave up and found = book about Scheme to learn first. So here is the patch with the minor issue. Hope this utility helps. --8<---------------cut here---------------start------------->8--- Subject: [PATCH v4] gnu: Add git-issue. * gnu/packages/version-control.scm (git-issue): New variable. diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-contro= l.scm index 064212db9f..c685f2f4b5 100644 --- a/gnu/packages/version-control.scm +++ b/gnu/packages/version-control.scm @@ -41,6 +41,7 @@ ;;; Copyright =C2=A9 2021 Fran=C3=A7ois J. ;;; Copyright =C2=A9 2021 Julien Lepiller ;;; Copyright =C2=A9 2021 jgart +;;; Copyright =C2=A9 2021 Petr Hodina ;;; ;;; This file is part of GNU Guix. ;;; @@ -96,6 +97,7 @@ (define-module (gnu packages version-control) #:use-module (gnu packages groff) #:use-module (gnu packages guile) #:use-module (gnu packages guile-xyz) + #:use-module (gnu packages haskell-apps) #:use-module (gnu packages image) #:use-module (gnu packages linux) #:use-module (gnu packages mail) @@ -1277,6 +1279,75 @@ (define-public git-flow lot easier.") (license license:bsd-2))) +(define-public git-issue + (let ((commit "67aacad35888b4c51e2d7be35c86fef137874f12") + (revision "1")) + (package + (name "git-issue") + (version (git-version "0.0" revision commit)) + (source (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/dspinellis/git-issue") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1z6dpwbikmiq5acpbji4kvmxqc2jw995rfk5703k5mvp5ps9a29q"))= )) + (build-system gnu-build-system) + (arguments + '(#:make-flags (list (string-append "PREFIX=3D" (assoc-ref %outputs= "out"))) + #:phases + (modify-phases %standard-phases + (delete 'configure) + (delete 'build) + (add-before 'check 'setup-env + (lambda _ + (setenv "HOME" (getenv "TMPDIR")) + (invoke "git" "config" "--global" "user.email" "test") + (invoke "git" "config" "--global" "user.name" "Test") + (substitute* "test.sh" + (("! git diff") "git diff") + (("#!/bin/sh") (string-append "#!" (which "bash"))) + (("gi=3D.*") (string-append "gi=3D" (getcwd) "/git-issue.= sh\n"))) + (substitute* "Makefile" + (("shellcheck -x") "shellcheck --exclude=3DSC2001,SC3043,= SC3003 -x")))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "make" "test")))) + (add-before 'install 'patch-paths + (lambda* (#:key build-inputs #:allow-other-keys) + (let ((out (assoc-ref %outputs "out")) + (paths (map + (lambda (input) + (string-append (assoc-ref build-inputs inpu= t) "/bin")) + '("coreutils" "curl" "findutils" + "git-minimal" "grep" "jq" "sed")))) + (for-each + (lambda (program) + (wrap-program + (string-append out "/" program) + `("PATH" prefix ,paths))) + '("bin/git-issue" "lib/git-issue/import-export.sh"))))))= )) + (native-inputs `(("shellcheck" ,shellcheck))) + (inputs `(("bash-minimal" ,bash-minimal) + ("git" ,git) + ("coreutils" ,coreutils) + ("grep" ,grep) + ("curl" ,curl) + ("findutils" ,findutils) + ("sed" ,sed) + ("util-linux" ,util-linux) + ("jq" ,jq))) + (synopsis "Git-based decentralized issue management") + (description "Git-issue provide a minimalist decentralized issue +management system based on Git, offering (optional) bidirectional +integration with GitHub and GitLab issue management.") + (home-page "https://github.com/dspinellis/git-issue") + (license license:gpl3+)))) + (define-public stgit (package (name "stgit") -- 2.33.1 From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 22 12:38:22 2022 Received: (at 49581) by debbugs.gnu.org; 22 Nov 2022 17:38:22 +0000 Received: from localhost ([127.0.0.1]:52459 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oxXDy-0003U0-0a for submit@debbugs.gnu.org; Tue, 22 Nov 2022 12:38:22 -0500 Received: from ns13.heimat.it ([46.4.214.66]:46888) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oxXDs-0003Th-V6 for 49581@debbugs.gnu.org; Tue, 22 Nov 2022 12:38:21 -0500 Received: from localhost (ip6-localhost [127.0.0.1]) by ns13.heimat.it (Postfix) with ESMTP id 6948E30022D; Tue, 22 Nov 2022 17:38:10 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at ns13.heimat.it Received: from ns13.heimat.it ([127.0.0.1]) by localhost (ns13.heimat.it [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QCdBhjeCTv5H; Tue, 22 Nov 2022 17:38:08 +0000 (UTC) Received: from bourrache.mug.xelera.it (unknown [93.56.161.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by ns13.heimat.it (Postfix) with ESMTPSA id 5653330022C; Tue, 22 Nov 2022 17:38:08 +0000 (UTC) Received: from roquette.mug.biscuolo.net (roquette [10.38.2.14]) by bourrache.mug.xelera.it (Postfix) with SMTP id 99CF320A3510; Tue, 22 Nov 2022 18:38:07 +0100 (CET) Received: (nullmailer pid 8487 invoked by uid 1000); Tue, 22 Nov 2022 17:38:07 -0000 From: Giovanni Biscuolo To: phodina , Sarah Morgensen Subject: Re: [bug#49581] [PATCH v4] gnu: Add git-issues. In-Reply-To: Organization: Xelera.eu References: Date: Tue, 22 Nov 2022 18:38:06 +0100 Message-ID: <87k03mvqip.fsf@xelera.eu> 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: 49581 Cc: Tobias Geerinckx-Rice , 49581@debbugs.gnu.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 Content-Transfer-Encoding: quoted-printable Hello phodina and Sarah, please do you have some updates on this patch? I can help testing if needed, tomorrow I'm going to test the v4 (the last one) of your patch and will provide some feedback Thanks! Gio' =2D-=20 Giovanni Biscuolo Xelera IT Infrastructures --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJABAEBCgAqFiEERcxjuFJYydVfNLI5030Op87MORIFAmN9CP4MHGdAeGVsZXJh LmV1AAoJENN9DqfOzDkSx0wQAKVX2qVYSdNQgfvOI+uSiKXyrNQaQGhloFWO4FTQ saiPY3qM8BV7Ai8l7ai1GI12BuDzSpqKF2/udCZEziSIuwrvaeN3TQ+4ZQx9XadO bL55Cqiim7kMgs6gn03qFby46LG8OrqHsjI6fxOtYEjH9eIz942kmyU8X6jTL2// 8jwFUw2xqNlUh+++tgqMad8aAJ1KCPS1HHcG4MHaGvvW868elNMxckXYG9FtPlPQ LY5+heHS8UDqoUEc7d0k7UjvEqe/LEAaG0jsRoQP7+XrkG0bTOx5R1GbZryAM/3Q ay5CJwnNhJUsvg+0MvsiEE2q4pIgs7I05k6m9k4qeja3XBfjYeu8C14+bek52Bet Ip75YtC6qVJ7ideBhki1jR1RBZjTTbg9OMAOC6TV81slO4J8KhwwHzbdyG2uOOEb OcMuuCjlGw4mvJ75iabtDVPHQvDDz5fW2WCxD4l3DMaVuRXx/EfgHYAHzlJnEA2i DTr8DlwsPVVgP4vPc7RzuBm5XxH2oWhWhB8FoqLseJSwjszNrizT8c/SH7mHOEED DEJwVd6JIdvyxzPxNzOkCgjetrF2w1FZn8cL1p4tjxSwojP0wqVUxPlFrZDD7rkW 4SChum8pJvd9UiNHr04S2wRlAD4/lWiAkmDhEyQqzSOHHce/xzIjGuIPySobrxL+ yAuj =WEXL -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Mon May 29 10:35:48 2023 Received: (at 49581) by debbugs.gnu.org; 29 May 2023 14:35:49 +0000 Received: from localhost ([127.0.0.1]:58699 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q3dyO-000113-BM for submit@debbugs.gnu.org; Mon, 29 May 2023 10:35:48 -0400 Received: from mail1.fsfe.org ([217.69.89.151]:56664) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q3dyL-00010m-U9 for 49581@debbugs.gnu.org; Mon, 29 May 2023 10:35:47 -0400 From: jlicht@fsfe.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fsfe.org; s=2021100501; t=1685370942; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=SSBvfZDfHhWHE8gLTP+U2T4WBy3t8ll19vbB4+Lub3w=; b=uZMXrOkc8opmh4A4BGhHDhMOjVfYpMabs57CFndw97qUFAmlQN8t97Dc/etQYMhlCF9bmr PWVScYNoqn+VZrGe5KDz1YZr6D1CNO3zQWXFCBtxE5fDBcTM01qAYl/PTLjCkOZooTA18F /Qo3XhRLT/JUrkFs9/+SmRYVKljImPw= To: 49581@debbugs.gnu.org Subject: [PATCH v5] gnu: Add git-issue. Date: Mon, 29 May 2023 16:35:42 +0200 Message-Id: <051ea586df11c135a2a535b6bfad3ab0b73b0e8e.1685370938.git.jlicht@fsfe.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 49581 Cc: Jelle Licht , phodina 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 (-) From: phodina * gnu/packages/version-control.scm (git-issue): New variable. Co-authored-by: Jelle Licht --- Changes in v5: - Update to latest commit of upstream - Use gexp-style inputs - Pass custom #:test-target instead of replacing check phase - Use search-input-file where possible - Autoload shellcheck to prevent module import cycle - Use user-installed git, instead of hardcoding reference gnu/packages/version-control.scm | 68 ++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm index 1db0931ac3..4eff59e516 100644 --- a/gnu/packages/version-control.scm +++ b/gnu/packages/version-control.scm @@ -42,6 +42,7 @@ ;;; Copyright © 2021 Julien Lepiller ;;; Copyright © 2021 Guillaume Le Vaillant ;;; Copyright © 2021 jgart +;;; Copyright © 2021 Petr Hodina ;;; Copyright © 2021 Foo Chuan Wei ;;; Copyright © 2022 Jai Vetrivelan ;;; Copyright © 2022 Maxime Devos @@ -140,6 +141,8 @@ (define-module (gnu packages version-control) #:use-module (gnu packages textutils) #:use-module (gnu packages time) #:use-module (gnu packages tls) + ;; Using autoload to avoid a cycle. + #:autoload (gnu packages haskell-apps) (shellcheck) #:use-module (gnu packages) #:use-module (ice-9 match) #:use-module (srfi srfi-1) @@ -1365,6 +1368,71 @@ (define-public git-flow lot easier.") (license license:bsd-2))) +(define-public git-issue + (let ((commit "4d2bc4173bf803d74bf2ae54f892bd08754f1b48") + (revision "1")) + (package + (name "git-issue") + (version (git-version "0.0" revision commit)) + (source (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/dspinellis/git-issue") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0jmx8wjvvxkd3y5im2h96d13dnbpds66djf96b6s23jwfbr7dlsz")))) + (build-system gnu-build-system) + (arguments + (list + #:make-flags #~(list (string-append "PREFIX=" #$output)) + #:test-target "test" + #:phases + #~(modify-phases %standard-phases + (delete 'configure) + (delete 'build) + (add-before 'check 'setup-env + (lambda* (#:key inputs native-inputs #:allow-other-keys) + (setenv "HOME" (getenv "TMPDIR")) + (invoke "git" "config" "--global" "user.email" "test") + (invoke "git" "config" "--global" "user.name" "Test") + (substitute* "test.sh" + (("! git diff") "false") + (("#!/bin/sh") + (string-append + "#!" + (search-input-file (or native-inputs inputs) "/bin/sh")))) + (substitute* "Makefile" + (("shellcheck -x") + "shellcheck --exclude=SC2001,SC2294,SC3043,SC3003 -x")))) + (add-after 'install 'patch-paths + (lambda* (#:key inputs outputs #:allow-other-keys) + (let ((path (map + (lambda (program) + (dirname + (search-input-file inputs + (string-append "/bin/" program)))) + '("jq" "curl" "grep" "cat" "find")))) + (wrap-program (search-input-file outputs "bin/git-issue") + `("PATH" prefix ,path)))))))) + (native-inputs (list shellcheck git-minimal bash-minimal util-linux)) + (inputs (list bash-minimal + coreutils + curl + findutils + grep + jq + sed)) + (synopsis + "Git-based decentralized issue management") + (description "Git-issue provide a minimalist decentralized issue +management system based on Git, offering (optional) bidirectional +integration with GitHub and GitLab issue management.") + (home-page "https://github.com/dspinellis/git-issue") + (license license:gpl3+)))) + (define-public stgit (package (name "stgit") base-commit: cf78f5b54975679df97c3015a541114d8278f417 -- 2.40.1