GNU bug report logs - #45431
[PATCH] gnu: kiwix-desktop: Fix program start.

Previous Next

Package: guix-patches;

Reported by: Michael Rohleder <mike <at> rohleder.de>

Date: Fri, 25 Dec 2020 16:37:02 UTC

Severity: normal

Tags: patch

Done: Leo Prikler <leo.prikler <at> student.tugraz.at>

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 45431 in the body.
You can then email your comments to 45431 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#45431; Package guix-patches. (Fri, 25 Dec 2020 16:37:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Michael Rohleder <mike <at> rohleder.de>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Fri, 25 Dec 2020 16:37:02 GMT) Full text and rfc822 format available.

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

From: Michael Rohleder <mike <at> rohleder.de>
To: guix-patches <at> gnu.org
Cc: Michael Rohleder <mike <at> rohleder.de>
Subject: [PATCH] gnu: kiwix-desktop: Fix program start.
Date: Fri, 25 Dec 2020 17:36:14 +0100
Fixes <https://bugs.gnu.org/45404>.

* gnu/packages/web.scm (kiwix-desktop)[arguments]: Add phase to wrap
QTWEBENGINEPROCESS_PATH.
---
 gnu/packages/web.scm | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index 8d7dfe2804..7486eb7f5b 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -7981,7 +7981,17 @@ It contains the code shared by all Kiwix ports.")
            (lambda* (#:key inputs #:allow-other-keys)
              (substitute* "kiwix-desktop.pro"
                (("webenginewidgets" all) (string-append all " printsupport")))
-             #t)))))
+             #t))
+         (add-after 'install 'wrap-qt-process-path
+           (lambda* (#:key inputs outputs #:allow-other-keys)
+             (let* ((out (assoc-ref outputs "out"))
+                    (bin (string-append out "/bin/kiwix-desktop"))
+                    (qt-process-path (string-append
+                                      (assoc-ref inputs "qtwebengine")
+                                      "/lib/qt5/libexec/QtWebEngineProcess")))
+               (wrap-program bin
+                 `("QTWEBENGINEPROCESS_PATH" = (,qt-process-path)))
+               #t))))))
     (inputs
      `(("curl" ,curl)
        ("icu4c" ,icu4c)
-- 
2.29.2





Reply sent to Leo Prikler <leo.prikler <at> student.tugraz.at>:
You have taken responsibility. (Tue, 29 Dec 2020 20:30:03 GMT) Full text and rfc822 format available.

Notification sent to Michael Rohleder <mike <at> rohleder.de>:
bug acknowledged by developer. (Tue, 29 Dec 2020 20:30:03 GMT) Full text and rfc822 format available.

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

From: Leo Prikler <leo.prikler <at> student.tugraz.at>
To: Michael Rohleder <mike <at> rohleder.de>
Cc: 45431-done <at> debbugs.gnu.org, 45404-done <at> debbugs.gnu.org
Subject: Re: [PATCH] gnu: kiwix-desktop: Fix program start.
Date: Tue, 29 Dec 2020 21:29:40 +0100
Pushed, thanks!

Small hint, if you want to use pure environments, don't forget
to expose environment variables such as DISPLAY and XAUTHORITY.

Regards,
Leo 

Am Freitag, den 25.12.2020, 17:36 +0100 schrieb Michael Rohleder:
> Fixes <https://bugs.gnu.org/45404>;.
> 
> * gnu/packages/web.scm (kiwix-desktop)[arguments]: Add phase to wrap
> QTWEBENGINEPROCESS_PATH.
> ---
>  gnu/packages/web.scm | 12 +++++++++++-
>  1 file changed, 11 insertions(+), 1 deletion(-)
> 
> diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
> index 8d7dfe2804..7486eb7f5b 100644
> --- a/gnu/packages/web.scm
> +++ b/gnu/packages/web.scm
> @@ -7981,7 +7981,17 @@ It contains the code shared by all Kiwix
> ports.")
>             (lambda* (#:key inputs #:allow-other-keys)
>               (substitute* "kiwix-desktop.pro"
>                 (("webenginewidgets" all) (string-append all "
> printsupport")))
> -             #t)))))
> +             #t))
> +         (add-after 'install 'wrap-qt-process-path
> +           (lambda* (#:key inputs outputs #:allow-other-keys)
> +             (let* ((out (assoc-ref outputs "out"))
> +                    (bin (string-append out "/bin/kiwix-desktop"))
> +                    (qt-process-path (string-append
> +                                      (assoc-ref inputs
> "qtwebengine")
> +                                      "/lib/qt5/libexec/QtWebEngineP
> rocess")))
> +               (wrap-program bin
> +                 `("QTWEBENGINEPROCESS_PATH" = (,qt-process-path)))
> +               #t))))))
>      (inputs
>       `(("curl" ,curl)
>         ("icu4c" ,icu4c)





bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 27 Jan 2021 12:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 82 days ago.

Previous Next


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