GNU bug report logs - #30765
[PATCH] gnu: qtox: Propagate qtsvg and fix misplaced comma (unquote).

Previous Next

Package: guix-patches;

Reported by: Diego Nicola Barbato <dnbarbato <at> posteo.de>

Date: Sat, 10 Mar 2018 22:12:02 UTC

Severity: normal

Tags: patch

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

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 30765 in the body.
You can then email your comments to 30765 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#30765; Package guix-patches. (Sat, 10 Mar 2018 22:12:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Diego Nicola Barbato <dnbarbato <at> posteo.de>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Sat, 10 Mar 2018 22:12:02 GMT) Full text and rfc822 format available.

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

From: Diego Nicola Barbato <dnbarbato <at> posteo.de>
To: guix-patches <at> gnu.org
Subject: [PATCH] gnu: qtox: Propagate qtsvg and fix misplaced comma (unquote).
Date: Sat, 10 Mar 2018 23:10:42 +0100
[Message part 1 (text/plain, inline)]
This patch fixes an issue where qTox failed to display some icons by
moving qtsvg to propagated-inputs.
I also took the liberty of fixing a misplaced comma (unquote).

[0001-gnu-qtox-Propagate-qtsvg-and-fix-misplaced-comma-unq.patch (text/x-patch, inline)]
From 016bd5e32c3f3aa44468b324e8c652ff44b3c1a1 Mon Sep 17 00:00:00 2001
From: Diego Nicola Barbato <dnbarbato <at> posteo.de>
Date: Sat, 10 Mar 2018 22:09:12 +0100
Subject: [PATCH] gnu: qtox: Propagate qtsvg and fix misplaced comma (unquote).

* gnu/packages/messaging.scm (qtox)[inputs]: Move qtsvg to
propagated-inputs.
[inputs]: Fix misplaced comma (unquote).
---
 gnu/packages/messaging.scm | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm
index b6323c39b..51be46d5c 100644
--- a/gnu/packages/messaging.scm
+++ b/gnu/packages/messaging.scm
@@ -875,9 +875,11 @@ instant messenger with audio and video chat capabilities.")
                (("__TIME__") "\"\"")
                (("TIMESTAMP") "\"\""))
              #t)))))
+    (propagated-inputs
+     `(("qtsvg" ,qtsvg)))
     (inputs
      `(("ffmpeg" ,ffmpeg)
-       ("filteraudio", filteraudio)
+       ("filteraudio" ,filteraudio)
        ("glib" ,glib)
        ("gtk+" ,gtk+-2)
        ("libsodium" ,libsodium)
@@ -890,7 +892,6 @@ instant messenger with audio and video chat capabilities.")
        ("openal" ,openal)
        ("qrencode" ,qrencode)
        ("qtbase" ,qtbase)
-       ("qtsvg" ,qtsvg)
        ("sqlcipher" ,sqlcipher)))
     (native-inputs
      `(("pkg-config" ,pkg-config)
-- 
2.16.2


Information forwarded to guix-patches <at> gnu.org:
bug#30765; Package guix-patches. (Mon, 12 Mar 2018 14:43:01 GMT) Full text and rfc822 format available.

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

From: ludo <at> gnu.org (Ludovic Courtès)
To: Diego Nicola Barbato <dnbarbato <at> posteo.de>
Cc: 30765 <at> debbugs.gnu.org
Subject: Re: [bug#30765] [PATCH] gnu: qtox: Propagate qtsvg and fix misplaced
 comma (unquote).
Date: Mon, 12 Mar 2018 15:42:32 +0100
Hello Diego,

Diego Nicola Barbato <dnbarbato <at> posteo.de> skribis:

> This patch fixes an issue where qTox failed to display some icons by
> moving qtsvg to propagated-inputs.
> I also took the liberty of fixing a misplaced comma (unquote).

The patch LGTM, but can you explain why propagating qtsvg allows icons
to be displayed?

In general we try to avoid propagated inputs because they “pollute” the
user’s profile, so we should make sure there’s no other solution and add
a comment explaining why we do that.

Thanks!

Ludo’.




Information forwarded to guix-patches <at> gnu.org:
bug#30765; Package guix-patches. (Mon, 12 Mar 2018 15:01:01 GMT) Full text and rfc822 format available.

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

From: Marius Bakke <mbakke <at> fastmail.com>
To: Ludovic Courtès <ludo <at> gnu.org>, Diego Nicola Barbato
 <dnbarbato <at> posteo.de>
Cc: 30765 <at> debbugs.gnu.org
Subject: Re: [bug#30765] [PATCH] gnu: qtox: Propagate qtsvg and fix misplaced
 comma (unquote).
Date: Mon, 12 Mar 2018 16:00:16 +0100
[Message part 1 (text/plain, inline)]
Ludovic Courtès <ludo <at> gnu.org> writes:

> Hello Diego,
>
> Diego Nicola Barbato <dnbarbato <at> posteo.de> skribis:
>
>> This patch fixes an issue where qTox failed to display some icons by
>> moving qtsvg to propagated-inputs.
>> I also took the liberty of fixing a misplaced comma (unquote).
>
> The patch LGTM, but can you explain why propagating qtsvg allows icons
> to be displayed?

There is some discussion about this in <https://bugs.gnu.org/29905>.

In short, the problem is that Qt icons hide under the search path
QT_PLUGIN_PATH, which is not automatically set up for dependent programs
(see <https://bugs.gnu.org/22138>).

Diego: can you try to wrap qTox as in commit
990e93fce16a83e1603b9ec28123ec3edc7ea787 instead of propagating?

TIA!
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#30765; Package guix-patches. (Thu, 15 Mar 2018 01:52:01 GMT) Full text and rfc822 format available.

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

From: Diego Nicola Barbato <dnbarbato <at> posteo.de>
To: Marius Bakke <mbakke <at> fastmail.com>
Cc: Ludovic Courtès <ludo <at> gnu.org>, 30765 <at> debbugs.gnu.org
Subject: Re: [bug#30765] [PATCH] gnu: qtox: Propagate qtsvg and fix misplaced
 comma (unquote).
Date: Thu, 15 Mar 2018 02:51:34 +0100
[Message part 1 (text/plain, inline)]
Marius Bakke <mbakke <at> fastmail.com> writes:

> Ludovic Courtès <ludo <at> gnu.org> writes:
>
>> Hello Diego,
>>
>> Diego Nicola Barbato <dnbarbato <at> posteo.de> skribis:
>>
>>> This patch fixes an issue where qTox failed to display some icons by
>>> moving qtsvg to propagated-inputs.
>>> I also took the liberty of fixing a misplaced comma (unquote).
>>
>> The patch LGTM, but can you explain why propagating qtsvg allows icons
>> to be displayed?
>
> There is some discussion about this in <https://bugs.gnu.org/29905>.
>
> In short, the problem is that Qt icons hide under the search path
> QT_PLUGIN_PATH, which is not automatically set up for dependent programs
> (see <https://bugs.gnu.org/22138>).
>
> Diego: can you try to wrap qTox as in commit
> 990e93fce16a83e1603b9ec28123ec3edc7ea787 instead of propagating?

Thanks for the feedback.  I have rewritten the patch according to your
suggestion:

[0001-gnu-qtox-Wrap-executable-and-fix-misplaced-comma-unq.patch (text/x-patch, inline)]
From 17c78d051b723b3fb9cabec724a32d151b00be68 Mon Sep 17 00:00:00 2001
From: Diego Nicola Barbato <dnbarbato <at> posteo.de>
Date: Thu, 15 Mar 2018 02:19:51 +0100
Subject: [PATCH] gnu: qtox: Wrap executable and fix misplaced comma (unquote).

* gnu/packages/messaging.scm (qtox)[arguments]: Add phase
"wrap-executable".
[inputs]: Fix misplaced comma (unquote).
---
 gnu/packages/messaging.scm | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm
index b6323c39b..ae489e158 100644
--- a/gnu/packages/messaging.scm
+++ b/gnu/packages/messaging.scm
@@ -874,10 +874,18 @@ instant messenger with audio and video chat capabilities.")
                (("__DATE__") "\"\"")
                (("__TIME__") "\"\"")
                (("TIMESTAMP") "\"\""))
-             #t)))))
+             #t))
+         ;; Ensure that icons are found at runtime.
+         (add-after 'install 'wrap-executable
+           (lambda* (#:key inputs outputs #:allow-other-keys)
+             (let ((out (assoc-ref outputs "out")))
+               (wrap-program (string-append out "/bin/qtox")
+                 `("QT_PLUGIN_PATH" prefix
+                   ,(list (string-append (assoc-ref inputs "qtsvg")
+                                         "/lib/qt5/plugins/"))))))))))
     (inputs
      `(("ffmpeg" ,ffmpeg)
-       ("filteraudio", filteraudio)
+       ("filteraudio" ,filteraudio)
        ("glib" ,glib)
        ("gtk+" ,gtk+-2)
        ("libsodium" ,libsodium)
-- 
2.16.2


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

Notification sent to Diego Nicola Barbato <dnbarbato <at> posteo.de>:
bug acknowledged by developer. (Thu, 15 Mar 2018 21:19:02 GMT) Full text and rfc822 format available.

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

From: ludo <at> gnu.org (Ludovic Courtès)
To: Diego Nicola Barbato <dnbarbato <at> posteo.de>
Cc: Marius Bakke <mbakke <at> fastmail.com>, 30765-done <at> debbugs.gnu.org
Subject: Re: [bug#30765] [PATCH] gnu: qtox: Propagate qtsvg and fix misplaced
 comma (unquote).
Date: Thu, 15 Mar 2018 22:18:14 +0100
Diego Nicola Barbato <dnbarbato <at> posteo.de> skribis:

>>From 17c78d051b723b3fb9cabec724a32d151b00be68 Mon Sep 17 00:00:00 2001
> From: Diego Nicola Barbato <dnbarbato <at> posteo.de>
> Date: Thu, 15 Mar 2018 02:19:51 +0100
> Subject: [PATCH] gnu: qtox: Wrap executable and fix misplaced comma (unquote).
>
> * gnu/packages/messaging.scm (qtox)[arguments]: Add phase
> "wrap-executable".
> [inputs]: Fix misplaced comma (unquote).

Perfect.  Applied, thanks!

Ludo’.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 13 Apr 2018 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 7 years and 74 days ago.

Previous Next


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