GNU bug report logs - #73045
[PATCH] gnu: Add ansifilter.

Previous Next

Package: guix-patches;

Reported by: Ahmad Draidi <a.r.draidi <at> redscript.org>

Date: Thu, 5 Sep 2024 14:52:02 UTC

Severity: normal

Tags: patch

Done: Ahmad Draidi <a.r.draidi <at> redscript.org>

To reply to this bug, email your comments to 73045 AT debbugs.gnu.org.
There is no need to reopen the bug first.

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#73045; Package guix-patches. (Thu, 05 Sep 2024 14:52:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ahmad Draidi <a.r.draidi <at> redscript.org>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Thu, 05 Sep 2024 14:52:02 GMT) Full text and rfc822 format available.

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

From: Ahmad Draidi <a.r.draidi <at> redscript.org>
To: guix-patches <at> gnu.org
Cc: Ahmad Draidi <a.r.draidi <at> redscript.org>
Subject: [PATCH] gnu: Add ansifilter.
Date: Thu,  5 Sep 2024 18:48:51 +0400
* gnu/packages/pretty-print.scm (ansifilter): New variable.

Change-Id: I12e86080f5f39c52ea1def6084b9a5e6cc7af92c
---
 gnu/packages/pretty-print.scm | 43 +++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)

diff --git a/gnu/packages/pretty-print.scm b/gnu/packages/pretty-print.scm
index d8ff1664b4..baf1ec4f7d 100644
--- a/gnu/packages/pretty-print.scm
+++ b/gnu/packages/pretty-print.scm
@@ -124,6 +124,49 @@ (define-public a2ps
 special cases, such as pretty-printing @samp{-help} output.")
     (license gpl3+)))
 
+(define-public ansifilter
+  (package
+    (name "ansifilter")
+    (version "2.21")
+    (outputs (list "out" "gui"))
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://gitlab.com/saalen/ansifilter")
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0gnxf0mnb8pfgpx2324gbwyz7dh4xh5jvnigg768rs7dh329w48l"))))
+    (build-system gnu-build-system)
+    (arguments
+     (list
+      #:tests? #f ;no tests
+      #:phases #~(modify-phases %standard-phases
+                   (delete 'configure) ;no configure script
+                   (add-after 'build 'build-gui
+                     (lambda* (#:key outputs #:allow-other-keys)
+                       (invoke "make" "gui")))
+                   (replace 'install
+                     (lambda* (#:key outputs #:allow-other-keys)
+                       (let ((out (assoc-ref outputs "out")))
+                         (invoke "make" "install"
+                                 (string-append "PREFIX=" out)))))
+                   (add-after 'install 'install-gui
+                     (lambda* (#:key outputs #:allow-other-keys)
+                       (let ((gui (assoc-ref outputs "gui")))
+                         (mkdir-p (string-append gui "/bin"))
+                         (invoke "make" "install-gui"
+                                 (string-append "PREFIX=" gui))))))))
+    (inputs (list qtbase-5))
+    (home-page "http://andre-simon.de/doku/ansifilter/en/ansifilter.html")
+    (synopsis "ANSI sequence filter")
+    (description
+     "Ansifilter handles text files containing ANSI terminal escape codes.
+The command sequences may be stripped or be interpreted to generate formatted
+output (HTML, RTF, TeX, LaTeX, BBCode, Pango).")
+    (license gpl3+)))
+
 (define-public trueprint
   (package
     (name "trueprint")

base-commit: 993d6d2e7be4dac738629c76a51058f4dc5bc449
-- 
2.45.2





Information forwarded to guix-patches <at> gnu.org:
bug#73045; Package guix-patches. (Fri, 04 Oct 2024 19:41:02 GMT) Full text and rfc822 format available.

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

From: Ludovic Courtès <ludo <at> gnu.org>
To: Ahmad Draidi <a.r.draidi <at> redscript.org>
Cc: 73045 <at> debbugs.gnu.org
Subject: Re: [bug#73045] [PATCH] gnu: Add ansifilter.
Date: Fri, 04 Oct 2024 21:40:12 +0200
Hi,

Ahmad Draidi <a.r.draidi <at> redscript.org> skribis:

> * gnu/packages/pretty-print.scm (ansifilter): New variable.
>
> Change-Id: I12e86080f5f39c52ea1def6084b9a5e6cc7af92c

I get:

  r:sha256 hash mismatch for /gnu/store/dshvl4cylvc4cjaxy3s7bqrq06s87nh7-ansifilter-2.21-checkout:
    expected hash: 0gnxf0mnb8pfgpx2324gbwyz7dh4xh5jvnigg768rs7dh329w48l
    actual hash:   1pvx4l0k8dw642yisf1wahdqcfw36ny6v3v1lcshvxiqxmwrna3d

Could you check?

Apart from that it LGTM.

Thanks,
Ludo’.




Information forwarded to guix-patches <at> gnu.org:
bug#73045; Package guix-patches. (Sat, 05 Oct 2024 04:37:01 GMT) Full text and rfc822 format available.

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

From: Ahmad Draidi <a.r.draidi <at> redscript.org>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 73045 <at> debbugs.gnu.org
Subject: Re: [bug#73045] [PATCH] gnu: Add ansifilter.
Date: Sat, 05 Oct 2024 08:35:09 +0400
Hello Ludovic,

Ludovic Courtès <ludo <at> gnu.org> writes:

> Hi,
>
> Ahmad Draidi <a.r.draidi <at> redscript.org> skribis:
>
>> * gnu/packages/pretty-print.scm (ansifilter): New variable.
>>
>> Change-Id: I12e86080f5f39c52ea1def6084b9a5e6cc7af92c
>
> I get:
>
>   r:sha256 hash mismatch for 
>   /gnu/store/dshvl4cylvc4cjaxy3s7bqrq06s87nh7-ansifilter-2.21-checkout:
>     expected hash: 
>     0gnxf0mnb8pfgpx2324gbwyz7dh4xh5jvnigg768rs7dh329w48l
>     actual hash: 
>     1pvx4l0k8dw642yisf1wahdqcfw36ny6v3v1lcshvxiqxmwrna3d
>
> Could you check?

This is really weird. Just now I downloaded the mbox from this 
issue and did:

 git pull
 git reset --hard origin/master
 git am ~/Downloads/73045-0.mbox

And then inside a guix shell:

 ./bootstrap && ./configure && ./pre-inst-env make
 ./pre-inst-env guix build ansifilter --check

And can see it builds successfully.

 successfully built 
 /gnu/store/fjzyi5v42i5z6cdq89g2vhv0d8ipj9ns-ansifilter-2.21.drv

>
> Apart from that it LGTM.
>
> Thanks,
> Ludo’.

Thanks,
Ahmad




Information forwarded to guix-patches <at> gnu.org:
bug#73045; Package guix-patches. (Mon, 14 Oct 2024 11:35:02 GMT) Full text and rfc822 format available.

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

From: Ludovic Courtès <ludo <at> gnu.org>
To: Ahmad Draidi <a.r.draidi <at> redscript.org>
Cc: 73045 <at> debbugs.gnu.org
Subject: Re: [bug#73045] [PATCH] gnu: Add ansifilter.
Date: Mon, 14 Oct 2024 13:34:23 +0200
Hi,

Ahmad Draidi <a.r.draidi <at> redscript.org> skribis:

> Ludovic Courtès <ludo <at> gnu.org> writes:
>
>> Hi,
>>
>> Ahmad Draidi <a.r.draidi <at> redscript.org> skribis:
>>
>>> * gnu/packages/pretty-print.scm (ansifilter): New variable.
>>>
>>> Change-Id: I12e86080f5f39c52ea1def6084b9a5e6cc7af92c
>>
>> I get:
>>
>>   r:sha256 hash mismatch for
>> /gnu/store/dshvl4cylvc4cjaxy3s7bqrq06s87nh7-ansifilter-2.21-checkout:
>>     expected hash:
>> 0gnxf0mnb8pfgpx2324gbwyz7dh4xh5jvnigg768rs7dh329w48l
>>     actual hash:
>> 1pvx4l0k8dw642yisf1wahdqcfw36ny6v3v1lcshvxiqxmwrna3d
>>
>> Could you check?
>
> This is really weird. Just now I downloaded the mbox from this issue
> and did:
>
>  git pull
>  git reset --hard origin/master
>  git am ~/Downloads/73045-0.mbox

Perhaps the source was still in your store though.

What if you run: ./pre-inst-env guix build -S ansifilter --check -K
?

Ludo’.




Information forwarded to a.r.draidi <at> redscript.org, ludo <at> gnu.org, guix-patches <at> gnu.org:
bug#73045; Package guix-patches. (Sat, 19 Oct 2024 06:17:02 GMT) Full text and rfc822 format available.

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

From: Ahmad Draidi <a.r.draidi <at> redscript.org>
To: 73045 <at> debbugs.gnu.org
Cc: Ahmad Draidi <a.r.draidi <at> redscript.org>
Subject: [PATCH v2] gnu: Add ansifilter.
Date: Sat, 19 Oct 2024 10:15:29 +0400
* gnu/packages/pretty-print.scm (ansifilter): New variable.

Change-Id: I12e86080f5f39c52ea1def6084b9a5e6cc7af92c
---

Hello Ludo,

You were right. The source must have been cached in my store.

I updated the hash and built the package successfully.

Thanks!
Ahmad

 gnu/packages/pretty-print.scm | 43 +++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)

diff --git a/gnu/packages/pretty-print.scm b/gnu/packages/pretty-print.scm
index 621dc8bf9c..02ab137e59 100644
--- a/gnu/packages/pretty-print.scm
+++ b/gnu/packages/pretty-print.scm
@@ -124,6 +124,49 @@ (define-public a2ps
 special cases, such as pretty-printing @samp{-help} output.")
     (license gpl3+)))
 
+(define-public ansifilter
+  (package
+    (name "ansifilter")
+    (version "2.21")
+    (outputs (list "out" "gui"))
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://gitlab.com/saalen/ansifilter")
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1pvx4l0k8dw642yisf1wahdqcfw36ny6v3v1lcshvxiqxmwrna3d"))))
+    (build-system gnu-build-system)
+    (arguments
+     (list
+      #:tests? #f ;no tests
+      #:phases #~(modify-phases %standard-phases
+                   (delete 'configure) ;no configure script
+                   (add-after 'build 'build-gui
+                     (lambda* (#:key outputs #:allow-other-keys)
+                       (invoke "make" "gui")))
+                   (replace 'install
+                     (lambda* (#:key outputs #:allow-other-keys)
+                       (let ((out (assoc-ref outputs "out")))
+                         (invoke "make" "install"
+                                 (string-append "PREFIX=" out)))))
+                   (add-after 'install 'install-gui
+                     (lambda* (#:key outputs #:allow-other-keys)
+                       (let ((gui (assoc-ref outputs "gui")))
+                         (mkdir-p (string-append gui "/bin"))
+                         (invoke "make" "install-gui"
+                                 (string-append "PREFIX=" gui))))))))
+    (inputs (list qtbase-5))
+    (home-page "http://andre-simon.de/doku/ansifilter/en/ansifilter.html")
+    (synopsis "ANSI sequence filter")
+    (description
+     "Ansifilter handles text files containing ANSI terminal escape codes.
+The command sequences may be stripped or be interpreted to generate formatted
+output (HTML, RTF, TeX, LaTeX, BBCode, Pango).")
+    (license gpl3+)))
+
 (define-public trueprint
   (package
     (name "trueprint")

base-commit: 6757bfdfc0b22a1e23a3d33566155550182244fc
-- 
2.46.0





Reply sent to Ahmad Draidi <a.r.draidi <at> redscript.org>:
You have taken responsibility. (Sun, 25 May 2025 12:07:02 GMT) Full text and rfc822 format available.

Notification sent to Ahmad Draidi <a.r.draidi <at> redscript.org>:
bug acknowledged by developer. (Sun, 25 May 2025 12:07:02 GMT) Full text and rfc822 format available.

Message #22 received at 73045-done <at> debbugs.gnu.org (full text, mbox):

From: Ahmad Draidi <a.r.draidi <at> redscript.org>
To: 73045-done <at> debbugs.gnu.org
Date: Sun, 25 May 2025 16:05:52 +0400
Migrated to Codeberg here: https://codeberg.org/guix/guix/pulls/2





This bug report was last modified 21 days ago.

Previous Next


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