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

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix-patches; Reported by: Ahmad Draidi <a.r.draidi@HIDDEN>; Keywords: patch; dated Thu, 5 Sep 2024 14:52:02 UTC; Maintainer for guix-patches is guix-patches@HIDDEN.

Message received at 73045 <at> debbugs.gnu.org:


Received: (at 73045) by debbugs.gnu.org; 19 Oct 2024 06:16:47 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Oct 19 02:16:47 2024
Received: from localhost ([127.0.0.1]:41004 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1t22lb-0004nh-8n
	for submit <at> debbugs.gnu.org; Sat, 19 Oct 2024 02:16:47 -0400
Received: from rivercloud.ext.redscript.org ([181.214.58.244]:33472)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <a.r.draidi@HIDDEN>) id 1t22lS-0004nH-Gl
 for 73045 <at> debbugs.gnu.org; Sat, 19 Oct 2024 02:16:45 -0400
DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=redscript.org;
 s=mail2-ed25519-2024; t=1729318567;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:
 content-transfer-encoding:content-transfer-encoding;
 bh=kr8BwHpEyQ02NsKZWT2pN5eIZzdUZ48up9qwWgb2zmk=;
 b=/bgPyoNba2iO1KdJ7vWQo9MUHsIolejQS/PAcHct9kzCZ30GHrsTjHy73FC9SV4n6VrOFb
 /tsmsTWV/ktsTFBw==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redscript.org;
 s=mail2-rsa-2024; t=1729318567;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:
 content-transfer-encoding:content-transfer-encoding;
 bh=kr8BwHpEyQ02NsKZWT2pN5eIZzdUZ48up9qwWgb2zmk=;
 b=IbLhrPRfGRHUg8M07i50APUe9IPLrMHnXV4KHufstVmXj5aZPdGeeRyzhhxpKY0sUN8laz
 TC6Hzrojxetnti5UNKICwnv/hD6Ne++hpMrE1WLBgrw6c1kTRPKdUF//8knj96DjSeuXHq
 Fl6u/g5qplugyXAvoe9ChcPC0FggVW4=
Received: from localhost.localdomain (bba-86-99-27-195.alshamil.net.ae
 [86.99.27.195])
 by rivercloud.ext.redscript.org (OpenSMTPD) with ESMTPSA id 4e72acbb
 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); 
 Sat, 19 Oct 2024 06:16:06 +0000 (UTC)
From: Ahmad Draidi <a.r.draidi@HIDDEN>
To: 73045 <at> debbugs.gnu.org
Subject: [PATCH v2] gnu: Add ansifilter.
Date: Sat, 19 Oct 2024 10:15:29 +0400
Message-ID: <6fa9d19d7f10f099f79c282f0b42100aacb413eb.1728918574.git.a.r.draidi@HIDDEN>
X-Mailer: git-send-email 2.46.0
MIME-Version: 1.0
X-Debbugs-Cc: Ahmad Draidi <a.r.draidi@HIDDEN>, Ludovic Courtès <ludo@HIDDEN>
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 73045
Cc: Ahmad Draidi <a.r.draidi@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* 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





Information forwarded to a.r.draidi@HIDDEN, ludo@HIDDEN, guix-patches@HIDDEN:
bug#73045; Package guix-patches. Full text available.

Message received at 73045 <at> debbugs.gnu.org:


Received: (at 73045) by debbugs.gnu.org; 14 Oct 2024 11:34:50 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Oct 14 07:34:49 2024
Received: from localhost ([127.0.0.1]:35580 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1t0JLd-0003PY-Iv
	for submit <at> debbugs.gnu.org; Mon, 14 Oct 2024 07:34:49 -0400
Received: from eggs.gnu.org ([209.51.188.92]:34598)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1t0JLb-0003PA-SG
 for 73045 <at> debbugs.gnu.org; Mon, 14 Oct 2024 07:34:48 -0400
Received: from fencepost.gnu.org ([209.51.188.10])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>)
 id 1t0JLF-00049X-QB; Mon, 14 Oct 2024 07:34:25 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To:
 From; bh=VnHv3jur27v0uDPEgY0IfJZCv3k1WNCz4gyjZSM1mDw=; b=OOJshImhj/G6y16xpfD0
 IydqGRrXJFX1sp4ThIJjxZeJfjYoBo5XR89+cTzU/otJBer7OZ27fvaSnxVR88D67CkzWUoI+Xg8H
 QFHiRdOpUF4ivLmHyaQyqAobiSe8eGJPDfbSSxc5MXfGK7A2B1gt0NTm5dOzZQ6NYDR2gnoPDX1ED
 vOMsuESQj2yUT35S0PFQHMn5E44Gw038ewIZXUy7Ngs8EODGvcKG3iD4mERGLUoFFH2+8I5EN2Vi/
 1sCNBnEY4dX6xjWExYvhBRMutys0GSeEFmC7iecwLMfGRULSQ3GRXURlysklzXgsLLUvbRFKGWqiA
 lkYxuhbxkbrTAg==;
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Ahmad Draidi <a.r.draidi@HIDDEN>
Subject: Re: [bug#73045] [PATCH] gnu: Add ansifilter.
In-Reply-To: <8734lbgoaq.fsf@HIDDEN> (Ahmad Draidi's message of "Sat,
 05 Oct 2024 08:35:09 +0400")
References: <cea3e6a3d50a1d53518a83c32b2b057303b49045.1725547731.git.a.r.draidi@HIDDEN>
 <87plofpsgz.fsf@HIDDEN> <8734lbgoaq.fsf@HIDDEN>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: Tridi 23 =?utf-8?Q?Vend=C3=A9miaire?= an 233 de la
 =?utf-8?Q?R=C3=A9volution=2C?= jour du Navet
X-PGP-Key-ID: 0x090B11993D9AEBB5
X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc
X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4  0CFB 090B 1199 3D9A EBB5
X-OS: x86_64-pc-linux-gnu
Date: Mon, 14 Oct 2024 13:34:23 +0200
Message-ID: <87r08i3olc.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 73045
Cc: 73045 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi,

Ahmad Draidi <a.r.draidi@HIDDEN> skribis:

> Ludovic Court=C3=A8s <ludo@HIDDEN> writes:
>
>> Hi,
>>
>> Ahmad Draidi <a.r.draidi@HIDDEN> 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=E2=80=99.




Information forwarded to guix-patches@HIDDEN:
bug#73045; Package guix-patches. Full text available.

Message received at 73045 <at> debbugs.gnu.org:


Received: (at 73045) by debbugs.gnu.org; 5 Oct 2024 04:36:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Oct 05 00:36:49 2024
Received: from localhost ([127.0.0.1]:37111 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1swwXB-0003bw-9f
	for submit <at> debbugs.gnu.org; Sat, 05 Oct 2024 00:36:49 -0400
Received: from rainycloud.ext.redscript.org ([103.105.48.212]:56974)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <a.r.draidi@HIDDEN>) id 1swwX8-0003bd-En
 for 73045 <at> debbugs.gnu.org; Sat, 05 Oct 2024 00:36:48 -0400
Received: from Zelda (bba-92-97-254-237.alshamil.net.ae [92.97.254.237])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange ECDHE (prime256v1) server-signature RSA-PSS (2048 bits)
 server-digest SHA256) (No client certificate requested)
 by rainycloud.ext.redscript.org (Postfix) with ESMTPSA id A8AE51828;
 Sat,  5 Oct 2024 04:36:34 +0000 (UTC)
From: Ahmad Draidi <a.r.draidi@HIDDEN>
To: Ludovic =?utf-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Subject: Re: [bug#73045] [PATCH] gnu: Add ansifilter.
In-Reply-To: <87plofpsgz.fsf@HIDDEN> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?=
 =?utf-8?Q?s?= message of "Fri, 04 Oct 2024 21:40:12 +0200")
References: <cea3e6a3d50a1d53518a83c32b2b057303b49045.1725547731.git.a.r.draidi@HIDDEN>
 <87plofpsgz.fsf@HIDDEN>
Date: Sat, 05 Oct 2024 08:35:09 +0400
Message-ID: <8734lbgoaq.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 73045
Cc: 73045 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hello Ludovic,

Ludovic Court=C3=A8s <ludo@HIDDEN> writes:

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

This is really weird. Just now I downloaded the mbox from this=20
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=20
  /gnu/store/fjzyi5v42i5z6cdq89g2vhv0d8ipj9ns-ansifilter-2.21.drv

>
> Apart from that it LGTM.
>
> Thanks,
> Ludo=E2=80=99.

Thanks,
Ahmad




Information forwarded to guix-patches@HIDDEN:
bug#73045; Package guix-patches. Full text available.

Message received at 73045 <at> debbugs.gnu.org:


Received: (at 73045) by debbugs.gnu.org; 4 Oct 2024 19:40:33 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 04 15:40:33 2024
Received: from localhost ([127.0.0.1]:36626 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1swoAD-0000ut-2L
	for submit <at> debbugs.gnu.org; Fri, 04 Oct 2024 15:40:33 -0400
Received: from eggs.gnu.org ([209.51.188.92]:56580)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1swoAA-0000ud-4N
 for 73045 <at> debbugs.gnu.org; Fri, 04 Oct 2024 15:40:30 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>)
 id 1swo9u-0002pi-T8; Fri, 04 Oct 2024 15:40:14 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To:
 From; bh=RVVlYguj7p/MrUuU+GW9zkZBXIFVMPmbVtGrFFQLoMM=; b=kQbj6UkMJ/VeNVj2VYAi
 VpfZ9XEL3wVCLjyAdgzNTL3TaOphSvyoahn4jKsRSLZFceZcOCM0XA9snw1/1XyBGYdcGxc/EkaXA
 ePieFlpKOENdizqjHzbb0HYs4/oRUlthE/lHncqm8oR/f0368mlIZsvrCyPV3EEDPhmCDNgXpIETR
 PaE2Vg6FKT4BkcNDM+GwxqK5RIGVxyYOdxg6cfcPvgoscVYId8AAONiU1V0f/7LPHNFKPG7c35KnQ
 tUAKwZRyI3DnU84mTLVr9tdM+tnUsBqW4n+8IF/Xwvuac1CNLqlK1wdyAN7RsqpYz6aprnN7u5gsk
 CFI0nwL7zDEkLw==;
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Ahmad Draidi <a.r.draidi@HIDDEN>
Subject: Re: [bug#73045] [PATCH] gnu: Add ansifilter.
In-Reply-To: <cea3e6a3d50a1d53518a83c32b2b057303b49045.1725547731.git.a.r.draidi@HIDDEN>
 (Ahmad Draidi's message of "Thu, 5 Sep 2024 18:48:51 +0400")
References: <cea3e6a3d50a1d53518a83c32b2b057303b49045.1725547731.git.a.r.draidi@HIDDEN>
Date: Fri, 04 Oct 2024 21:40:12 +0200
Message-ID: <87plofpsgz.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 73045
Cc: 73045 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi,

Ahmad Draidi <a.r.draidi@HIDDEN> skribis:

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

I get:

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

Could you check?

Apart from that it LGTM.

Thanks,
Ludo=E2=80=99.




Information forwarded to guix-patches@HIDDEN:
bug#73045; Package guix-patches. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 5 Sep 2024 14:51:32 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Sep 05 10:51:32 2024
Received: from localhost ([127.0.0.1]:37815 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1smDpY-0007hf-Hj
	for submit <at> debbugs.gnu.org; Thu, 05 Sep 2024 10:51:32 -0400
Received: from lists.gnu.org ([209.51.188.17]:44904)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <a.r.draidi@HIDDEN>) id 1smDpX-0007hY-45
 for submit <at> debbugs.gnu.org; Thu, 05 Sep 2024 10:51:28 -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 <a.r.draidi@HIDDEN>)
 id 1smDoP-00084E-W8
 for guix-patches@HIDDEN; Thu, 05 Sep 2024 10:50:19 -0400
Received: from rainycloud.ext.redscript.org ([103.105.48.212])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <a.r.draidi@HIDDEN>)
 id 1smDoM-0006IV-Rr
 for guix-patches@HIDDEN; Thu, 05 Sep 2024 10:50:17 -0400
Received: from localhost.localdomain (bba-92-97-218-122.alshamil.net.ae
 [92.97.218.122])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256)
 (No client certificate requested)
 by rainycloud.ext.redscript.org (Postfix) with ESMTPSA id 08A26614;
 Thu,  5 Sep 2024 14:50:00 +0000 (UTC)
From: Ahmad Draidi <a.r.draidi@HIDDEN>
To: guix-patches@HIDDEN
Subject: [PATCH] gnu: Add ansifilter.
Date: Thu,  5 Sep 2024 18:48:51 +0400
Message-ID: <cea3e6a3d50a1d53518a83c32b2b057303b49045.1725547731.git.a.r.draidi@HIDDEN>
X-Mailer: git-send-email 2.45.2
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Received-SPF: pass client-ip=103.105.48.212;
 envelope-from=a.r.draidi@HIDDEN; helo=rainycloud.ext.redscript.org
X-Spam_score_int: -18
X-Spam_score: -1.9
X-Spam_bar: -
X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.4 (-)
X-Debbugs-Envelope-To: submit
Cc: Ahmad Draidi <a.r.draidi@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.4 (--)

* 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





Acknowledgement sent to Ahmad Draidi <a.r.draidi@HIDDEN>:
New bug report received and forwarded. Copy sent to guix-patches@HIDDEN. Full text available.
Report forwarded to guix-patches@HIDDEN:
bug#73045; Package guix-patches. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sun, 12 Jan 2025 05:45:02 UTC

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