GNU bug report logs - #35878
[PATCH] gnu: Add chafa.

Previous Next

Package: guix-patches;

Reported by: guy fleury iteriteka <hoonandon <at> gmail.com>

Date: Fri, 24 May 2019 09:33:01 UTC

Severity: normal

Tags: patch

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

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 35878 in the body.
You can then email your comments to 35878 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#35878; Package guix-patches. (Fri, 24 May 2019 09:33:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to guy fleury iteriteka <hoonandon <at> gmail.com>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Fri, 24 May 2019 09:33:02 GMT) Full text and rfc822 format available.

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

From: guy fleury iteriteka <hoonandon <at> gmail.com>
To: guix-patches <at> gnu.org
Cc: guy fleury iteriteka <hoonandon <at> gmail.com>
Subject: [PATCH] gnu: Add chafa.
Date: Fri, 24 May 2019 11:33:07 +0200
* gnu/packages/image-viewers.scm(chaffa): New variable.
---
 gnu/packages/image-viewers.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/image-viewers.scm b/gnu/packages/image-viewers.scm
index 82b44a4..fc94242 100644
--- a/gnu/packages/image-viewers.scm
+++ b/gnu/packages/image-viewers.scm
@@ -9,6 +9,7 @@
 ;;; Copyright © 2017 nee <nee-git <at> hidamari.blue>
 ;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice <me <at> tobias.gr>
 ;;; Copyright © 2018, 2019 Ricardo Wurmus <rekado <at> elephly.net>
+;;; Copyright © 2019 Guy Fleury Iteriteka <hoonandon <at> gmail.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -429,3 +430,28 @@ imaging.  It supports several HDR and LDR image formats, and it can:
 a comic and manga reader.  It supports a variety of container formats
 including CBZ, CB7, CBT, LHA.")
     (license license:gpl2+)))
+
+(define-public chafa
+  (package
+    (name "chafa")
+    (version "1.0.1")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "https://hpjansson.org/chafa/releases/chafa-"
+                                  version ".tar.xz"))
+              (sha256
+               (base32
+                "00cf2z52az0z6bzc3hfm4l8infipy5ck410wqmbaybd2csjr3m29"))))
+    (build-system gnu-build-system)
+    (native-inputs
+     `(("pkg-config" ,pkg-config)))
+    (inputs
+     `(("glib"        ,glib)
+       ("imagemagick" ,imagemagick)))
+    (synopsis "Terminal Graphics for the 21st Century")
+    (description
+     "Chafa is a command-line utility that converts all kinds of images, 
+including animated GIFs, into ANSI/Unicode character output that can be 
+displayed in a terminal.")
+    (home-page "https://hpjansson.org/chafa/")
+    (license license:lgpl3+)))
-- 
2.21.0





Information forwarded to guix-patches <at> gnu.org:
bug#35878; Package guix-patches. (Mon, 27 May 2019 14:53:02 GMT) Full text and rfc822 format available.

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

From: Ludovic Courtès <ludo <at> gnu.org>
To: guy fleury iteriteka <hoonandon <at> gmail.com>
Cc: 35878 <at> debbugs.gnu.org
Subject: Re: [bug#35878] [PATCH] gnu: Add chafa.
Date: Mon, 27 May 2019 16:52:33 +0200
[Message part 1 (text/plain, inline)]
Hi,

guy fleury iteriteka <hoonandon <at> gmail.com> skribis:

> * gnu/packages/image-viewers.scm(chaffa): New variable.

I’d suggest the changes below.

Additionally, this code detects SSE4.1 and related instruction set
extensions at configuration time.  As a result, I think the resulting
code may not run on all x86_64 machines.

Could you investigate this and see how we can get a generic binary?

Thanks,
Ludo’.

[Message part 2 (text/x-patch, inline)]
diff --git a/gnu/packages/image-viewers.scm b/gnu/packages/image-viewers.scm
index fc94242ac6..d947f2d7eb 100644
--- a/gnu/packages/image-viewers.scm
+++ b/gnu/packages/image-viewers.scm
@@ -446,12 +446,12 @@ including CBZ, CB7, CBT, LHA.")
     (native-inputs
      `(("pkg-config" ,pkg-config)))
     (inputs
-     `(("glib"        ,glib)
+     `(("glib" ,glib)
        ("imagemagick" ,imagemagick)))
-    (synopsis "Terminal Graphics for the 21st Century")
+    (synopsis "Convert images to ANSI/Unicode characters")
     (description
-     "Chafa is a command-line utility that converts all kinds of images, 
-including animated GIFs, into ANSI/Unicode character output that can be 
+     "Chafa is a command-line utility that converts all kinds of images,
+including animated GIFs, into ANSI/Unicode character output that can be
 displayed in a terminal.")
     (home-page "https://hpjansson.org/chafa/")
     (license license:lgpl3+)))

Information forwarded to guix-patches <at> gnu.org:
bug#35878; Package guix-patches. (Wed, 29 May 2019 07:45:02 GMT) Full text and rfc822 format available.

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

From: guy fleury iteriteka <hoonandon <at> gmail.com>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 35878 <at> debbugs.gnu.org
Subject: Re: [bug#35878] [PATCH] gnu: Add chafa.
Date: Wed, 29 May 2019 09:44:50 +0200
[Message part 1 (text/plain, inline)]
Hi,

I will try!
Le 27 mai 2019 16:52, "Ludovic Courtès" <ludo <at> gnu.org> a écrit :

> Hi,
>
> guy fleury iteriteka <hoonandon <at> gmail.com> skribis:
>
> > * gnu/packages/image-viewers.scm(chaffa): New variable.
>
> I’d suggest the changes below.
>
> Additionally, this code detects SSE4.1 and related instruction set
> extensions at configuration time.  As a result, I think the resulting
> code may not run on all x86_64 machines.
>
> Could you investigate this and see how we can get a generic binary?
>
> Thanks,
> Ludo’.
>
>
[Message part 2 (text/html, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#35878; Package guix-patches. (Sat, 29 Jun 2019 15:24:01 GMT) Full text and rfc822 format available.

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

From: guy fleury iteriteka <hoonandon <at> gmail.com>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 35878 <at> debbugs.gnu.org
Subject: Re: [bug#35878] [PATCH] gnu: Add chafa.
Date: Sat, 29 Jun 2019 17:23:48 +0200
[Message part 1 (text/plain, inline)]
Hello Ludovic,

Sorry for taking so long time.
I discus with the developper upstream. Here is what he tells me:
---------------------------------
Even if it builds SSE support, it will only be used at runtime if the
platform supports it. It uses CPUID internally to detect the CPU
capabilities when run.
-------------------------------

He will also add a note to clarify things in the next release!

Thanks.
Le 29 mai 2019 09:44, "guy fleury iteriteka" <hoonandon <at> gmail.com> a écrit :

> Hi,
>
> I will try!
> Le 27 mai 2019 16:52, "Ludovic Courtès" <ludo <at> gnu.org> a écrit :
>
>> Hi,
>>
>> guy fleury iteriteka <hoonandon <at> gmail.com> skribis:
>>
>> > * gnu/packages/image-viewers.scm(chaffa): New variable.
>>
>> I’d suggest the changes below.
>>
>> Additionally, this code detects SSE4.1 and related instruction set
>> extensions at configuration time.  As a result, I think the resulting
>> code may not run on all x86_64 machines.
>>
>> Could you investigate this and see how we can get a generic binary?
>>
>> Thanks,
>> Ludo’.
>>
>>
[Message part 2 (text/html, inline)]

Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Tue, 02 Jul 2019 15:21:01 GMT) Full text and rfc822 format available.

Notification sent to guy fleury iteriteka <hoonandon <at> gmail.com>:
bug acknowledged by developer. (Tue, 02 Jul 2019 15:21:02 GMT) Full text and rfc822 format available.

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

From: Ludovic Courtès <ludo <at> gnu.org>
To: guy fleury iteriteka <hoonandon <at> gmail.com>
Cc: 35878-done <at> debbugs.gnu.org
Subject: Re: [bug#35878] [PATCH] gnu: Add chafa.
Date: Tue, 02 Jul 2019 17:19:51 +0200
Hi guy,

guy fleury iteriteka <hoonandon <at> gmail.com> skribis:

> Sorry for taking so long time.
> I discus with the developper upstream. Here is what he tells me:
> ---------------------------------
> Even if it builds SSE support, it will only be used at runtime if the
> platform supports it. It uses CPUID internally to detect the CPU
> capabilities when run.
> -------------------------------

Oh indeed, I see that ‘chafa-features.h’ does the right thing.

Applied, thanks for checking!

Ludo’.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 31 Jul 2019 11:24:07 GMT) Full text and rfc822 format available.

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

Previous Next


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