GNU bug report logs - #37603
[PATCH] gnu: Add aha.

Previous Next

Package: guix-patches;

Reported by: Wiktor Żelazny <wz <at> freeshell.de>

Date: Thu, 3 Oct 2019 14:18:02 UTC

Severity: normal

Tags: patch

Merged with 37618

Done: Jakub Kądziołka <kuba <at> kadziolka.net>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 37603 in the body.
You can then email your comments to 37603 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#37603; Package guix-patches. (Thu, 03 Oct 2019 14:18:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Wiktor Żelazny <wz <at> freeshell.de>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Thu, 03 Oct 2019 14:18:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Wiktor Żelazny <wz <at> freeshell.de>
To: guix-patches <at> gnu.org
Subject: [PATCH] gnu: Add aha.
Date: Thu,  3 Oct 2019 16:15:29 +0200
From: Wiktor Żelazny <wzelazny <at> vurv.cz>

* gnu/packages/textutils.scm (aha): new variable.
---
Hi, This is the first time that I’m submitting something that uses the
git-fetch method. I tried to follow the manual. Unfortunately, it does
not explain the role of this "0.9" string. I noticed that other
contributors use various values. I left it at "0.9".
 gnu/packages/textutils.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/textutils.scm b/gnu/packages/textutils.scm
index 79cf172179..1bf5a4fb1b 100644
--- a/gnu/packages/textutils.scm
+++ b/gnu/packages/textutils.scm
@@ -17,6 +17,7 @@
 ;;; Copyright © 2018 Pierre Neidhardt <mail <at> ambrevar.xyz>
 ;;; Copyright © 2018 Meiyo Peng <meiyo.peng <at> gmail.com>
 ;;; Copyright © 2019 Yoshinori Arai <kumagusu08 <at> gmail.com>
+;;; Copyright © 2019 Wiktor Żelazny <wzelazny <at> vurv.cz>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1011,3 +1012,32 @@ instance one can add new syntax elements to markdown, etc.
 
 This package provides Python bindings.")
     (license license:bsd-3)))
+
+(define-public aha
+  (let ((commit "2592da4330b4df6d482a631f4a35543b96f4744d")
+        (revision "1"))          ;Guix package revision
+    (package
+      (name "aha")
+      (version (git-version "0.9" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+                (url "git://github.com/theZiz/aha.git")
+                (commit commit)))
+         (sha256
+          (base32
+           "0fq81ibxqg27b3860wmqd4zym2mymkr7sgvfhsyl0kb7ck367w4q"))
+         (file-name (git-file-name name version))))
+      (build-system gnu-build-system)
+      (arguments
+       '(#:phases (modify-phases %standard-phases (delete 'configure))
+         #:make-flags (list "CC=gcc"
+                            (string-append "PREFIX="
+                                           (assoc-ref %outputs "out")))
+         #:tests? #f)) ; no check target
+      (home-page "https://github.com/theZiz/aha")
+      (synopsis "Ansi HTML Adapter")
+      (description "@code{aha} converts ANSI escape sequences of a Unix terminal
+to HTML code.")
+      (license (list license:lgpl2.0+ license:mpl1.1)))))
-- 
2.23.0





Information forwarded to guix-patches <at> gnu.org:
bug#37603; Package guix-patches. (Thu, 03 Oct 2019 14:48:02 GMT) Full text and rfc822 format available.

Message #8 received at 37603 <at> debbugs.gnu.org (full text, mbox):

From: Tobias Geerinckx-Rice <me <at> tobias.gr>
To: Wiktor Żelazny <wz <at> freeshell.de>
Cc: 37603 <at> debbugs.gnu.org
Subject: Re: [bug#37603] [PATCH] gnu: Add aha.
Date: Thu, 03 Oct 2019 16:47:07 +0200
[Message part 1 (text/plain, inline)]
Wiktor,

Thanks for the patch!  This isn't a review, just an answer to your 
question:

Wiktor Żelazny 写道:
> Hi, This is the first time that I’m submitting something that 
> uses the
> git-fetch method. I tried to follow the manual. Unfortunately, 
> it does
> not explain the role of this "0.9" string. I noticed that other
> contributors use various values. I left it at "0.9".

It's not a random value; it's the last ‘real’ release, think of it 
as ‘release 0.9 + some more commits that were needed for some 
reason’.  If the project has never seen a release, ‘0.0.0’ is 
used.  You'll find that this is quite common, too.

At https://github.com/theZiz/aha/releases, we can see that the 
last release before this commit was ‘0.5’, so that's what you 
should use.

However: we prefer packaging releases, not arbitrary commits.  Why 
not package 0.5?  If it's because it's old (it is) and missing 
cool features, consider asking the author to cut a new release.

Whatever the case, please note the reason in a comment: ‘The last 
release 0.5 is missing the vital foo feature and/or crashes on 
Fridays’.

Since I'm here (still not a review! :-):

> +        (revision "1"))          ;Guix package revision

I know you probably copied this from elsewhere, but don't think 
this comment adds anything.

> +                (url "git://github.com/theZiz/aha.git")

Please use https:// instead of git://.

Kind regards,

T G-R
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#37603; Package guix-patches. (Fri, 04 Oct 2019 13:22:02 GMT) Full text and rfc822 format available.

Message #11 received at 37603 <at> debbugs.gnu.org (full text, mbox):

From: =?utf-8?q?Wiktor_=C5=BBelazny?=
 <wz <at> freeshell.de>
To: 37603 <at> debbugs.gnu.org
Subject: Re: [bug#37603] [PATCH] gnu: Add aha.
Date: Fri, 4 Oct 2019 15:18:57 +0200
[Message part 1 (text/plain, inline)]
On Thu, Oct 03, 2019 at 04:47:07PM +0200, Tobias Geerinckx-Rice wrote:

> Wiktor Żelazny 写道:
>
> > I tried to follow the manual. Unfortunately, it does not explain the
> > role of this "0.9" string.
>
> It's not a random value; it's the last ‘real’ release,

Hi Tobias,

Thank you for this explanation and for the other remarks. I noted them
down for future reference. The amended patch is on the way.

Have a nice weekend,

WŻ
[signature.asc (application/pgp-signature, inline)]

Merged 37603 37618. Request was from Ludovic Courtès <ludo <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 06 Nov 2019 14:42:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 22 Mar 2020 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 29 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.