GNU bug report logs - #44853
[PATCH] gnu: Add qpdfview.

Previous Next

Package: guix-patches;

Reported by: Timotej Lazar <timotej.lazar <at> araneo.si>

Date: Tue, 24 Nov 2020 18:59:01 UTC

Severity: normal

Tags: patch

Done: Leo Famulari <leo <at> famulari.name>

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 44853 in the body.
You can then email your comments to 44853 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#44853; Package guix-patches. (Tue, 24 Nov 2020 18:59:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Timotej Lazar <timotej.lazar <at> araneo.si>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Tue, 24 Nov 2020 18:59:01 GMT) Full text and rfc822 format available.

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

From: Timotej Lazar <timotej.lazar <at> araneo.si>
To: guix-patches <at> gnu.org
Cc: Timotej Lazar <timotej.lazar <at> araneo.si>
Subject: [PATCH] gnu: Add qpdfview.
Date: Tue, 24 Nov 2020 19:58:45 +0100
* gnu/packages/pdf.scm (qpdfview): New variable.
---
 gnu/packages/pdf.scm | 39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm
index 1899501122..1861851b72 100644
--- a/gnu/packages/pdf.scm
+++ b/gnu/packages/pdf.scm
@@ -54,6 +54,7 @@
   #:use-module (gnu packages bash)
   #:use-module (gnu packages check)
   #:use-module (gnu packages compression)
+  #:use-module (gnu packages cups)
   #:use-module (gnu packages curl)
   #:use-module (gnu packages djvu)
   #:use-module (gnu packages fontutils)
@@ -806,6 +807,44 @@ program capable of converting PDF into other formats.")
    (license (list license:asl2.0 license:clarified-artistic))
    (home-page "http://qpdf.sourceforge.net/")))
 
+(define-public qpdfview
+  (package
+    (name "qpdfview")
+    (version "0.4.18")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "https://launchpad.net/qpdfview/"
+                           "trunk/" version "/+download/"
+                           "qpdfview-" version ".tar.gz"))
+       (sha256
+        (base32 "0v1rl126hvblajnph2hkansgi0s8vjdc5yxrm4y3faa0lxzjwr6c"))))
+    (build-system gnu-build-system)
+    (native-inputs
+     `(("pkg-config" ,pkg-config)))
+    (inputs
+     `(("cups" ,cups)
+       ("djvulibre" ,djvulibre)
+       ("libspectre" ,libspectre)
+       ("poppler-qt5" ,poppler-qt5)
+       ("qtbase" ,qtbase)
+       ("qtsvg" ,qtsvg)))
+    (arguments
+     '(#:phases
+       (modify-phases %standard-phases
+         (replace 'configure
+           (lambda _
+             (substitute* "qpdfview.pri"
+               (("/usr") (assoc-ref %outputs "out")))
+             (invoke "qmake" "qpdfview.pro"))))))
+    (home-page "https://launchpad.net/qpdfview")
+    (synopsis "Tabbed document viewer")
+    (description "@command{qpdfview} is a document viewer for PDF, PS and DJVU
+files.  It uses the Qt toolkit and features persistent per-file settings,
+configurable toolbars and shortcuts, continuous and multi‐page layouts,
+SyncTeX support, and rudimentary support for annotations and forms.")
+    (license license:gpl2+)))
+
 (define-public xournal
   (package
     (name "xournal")
-- 
2.28.0





Information forwarded to guix-patches <at> gnu.org:
bug#44853; Package guix-patches. (Wed, 25 Nov 2020 03:14:01 GMT) Full text and rfc822 format available.

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

From: Leo Famulari <leo <at> famulari.name>
To: Timotej Lazar <timotej.lazar <at> araneo.si>
Cc: 44853 <at> debbugs.gnu.org
Subject: Re: [bug#44853] [PATCH] gnu: Add qpdfview.
Date: Tue, 24 Nov 2020 22:13:09 -0500
[Message part 1 (text/plain, inline)]
On Tue, Nov 24, 2020 at 07:58:45PM +0100, Timotej Lazar wrote:
> * gnu/packages/pdf.scm (qpdfview): New variable.

Thanks!

I noticed that, on my Debian system, the user interface was not
displaying any icons.

I fixed it for myself by making the package use the 'qt-wrap' phase from
the Qt build system fixed this, which adds a wrapper for the
XDG_DATA_DIRS, XDG_CONFIG_DIRS, QT_PLUGIN_PATH, and QML2_IMPORT_PATH
environment variables.

I've attached a patch that does this. Can you check that it still works
for you?
[0001-gnu-Add-qpdfview.patch (text/plain, attachment)]
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#44853; Package guix-patches. (Wed, 25 Nov 2020 18:36:02 GMT) Full text and rfc822 format available.

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

From: Timotej Lazar <timotej.lazar <at> araneo.si>
To: Leo Famulari <leo <at> famulari.name>
Cc: 44853 <at> debbugs.gnu.org
Subject: Re: [bug#44853] [PATCH] gnu: Add qpdfview.
Date: Wed, 25 Nov 2020 19:35:51 +0100
Leo Famulari <leo <at> famulari.name> [2020-11-24 22:13:09-0500]:
> I noticed that, on my Debian system, the user interface was not
> displaying any icons.

Turns out it happens for me too, but I didn’t notice because I have
qtsvg installed in my profile.

> I fixed it for myself by making the package use the 'qt-wrap' phase

This makes sense. I suppose we should wrap all Qt programs like this. I
tried your patch and it works, but the same icon theme is used
regardless of what I choose in LXQt appearance settings.

I think the problem is with the 'qt-wrap phase, which uses "=" instead
of "suffix" for wrapping variables. Changing this in qt-build-sytem.scm
gives me correct icons. Now that I think about it, "prefix" might be
better to ensure the correct versions of plugins are used at runtime;
both options work for me.

Thanks!
Timotej




Information forwarded to guix-patches <at> gnu.org:
bug#44853; Package guix-patches. (Wed, 25 Nov 2020 20:34:02 GMT) Full text and rfc822 format available.

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

From: Leo Famulari <leo <at> famulari.name>
To: Timotej Lazar <timotej.lazar <at> araneo.si>
Cc: 44853 <at> debbugs.gnu.org
Subject: Re: [bug#44853] [PATCH] gnu: Add qpdfview.
Date: Wed, 25 Nov 2020 15:33:06 -0500
On Wed, Nov 25, 2020 at 07:35:51PM +0100, Timotej Lazar wrote:
> This makes sense. I suppose we should wrap all Qt programs like this. I
> tried your patch and it works, but the same icon theme is used
> regardless of what I choose in LXQt appearance settings.

Hm, that's not ideal.

> I think the problem is with the 'qt-wrap phase, which uses "=" instead
> of "suffix" for wrapping variables. Changing this in qt-build-sytem.scm
> gives me correct icons. Now that I think about it, "prefix" might be
> better to ensure the correct versions of plugins are used at runtime;
> both options work for me.

Can you send the patch for qt-build-system? There are only 166 users of
it currently, so we can update it on the master branch. I don't really
know much about it, so I can't judge which is the best way to change it.




Reply sent to Leo Famulari <leo <at> famulari.name>:
You have taken responsibility. (Wed, 25 Nov 2020 20:39:01 GMT) Full text and rfc822 format available.

Notification sent to Timotej Lazar <timotej.lazar <at> araneo.si>:
bug acknowledged by developer. (Wed, 25 Nov 2020 20:39:01 GMT) Full text and rfc822 format available.

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

From: Leo Famulari <leo <at> famulari.name>
To: Timotej Lazar <timotej.lazar <at> araneo.si>
Cc: 44853-done <at> debbugs.gnu.org
Subject: Re: [bug#44853] [PATCH] gnu: Add qpdfview.
Date: Wed, 25 Nov 2020 15:38:24 -0500
On Wed, Nov 25, 2020 at 07:35:51PM +0100, Timotej Lazar wrote:
> Leo Famulari <leo <at> famulari.name> [2020-11-24 22:13:09-0500]:
> > I noticed that, on my Debian system, the user interface was not
> > displaying any icons.
> 
> Turns out it happens for me too, but I didn’t notice because I have
> qtsvg installed in my profile.

I pushed my version of your patch as cbcd520e1a71d75513a1c47d046142b2ff33ad56




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 24 Dec 2020 12:24:06 GMT) Full text and rfc822 format available.

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

Previous Next


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