GNU bug report logs - #29136
[PATCH 0/5] gnu: calibre: Update to 3.11.1.

Previous Next

Package: guix-patches;

Reported by: Brendan Tildesley <brendan.tildesley <at> openmailbox.org>

Date: Fri, 3 Nov 2017 15:43:01 UTC

Severity: normal

Tags: patch

Done: Marius Bakke <mbakke <at> fastmail.com>

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 29136 in the body.
You can then email your comments to 29136 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#29136; Package guix-patches. (Fri, 03 Nov 2017 15:43:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Brendan Tildesley <brendan.tildesley <at> openmailbox.org>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Fri, 03 Nov 2017 15:43:01 GMT) Full text and rfc822 format available.

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

From: Brendan Tildesley <brendan.tildesley <at> openmailbox.org>
To: guix-patches <at> gnu.org
Subject: [PATCH 0/5] gnu: calibre: Update to 3.11.1.
Date: Sat, 4 Nov 2017 02:42:07 +1100
This updates Calibre to 3.11.1, adds two new inputs python2-dukpy, and
optipng, and fixes the build script to install a mimetype file, which I
missed when I initially packaged 3.6.0.
Calibre has had a huge number of changes since 3.6.0, but everything
seems to build just fine without any changes to [arguments].
The builder complains about not being able to make /homeless-shelter,
something in the Nix code I think, but when I set  a HOME, it changed
nothing in the resulting built package so I just left it.
I know nothing about the setuptools and shim wrapper stuff mentioned in
the FIXME.






Information forwarded to guix-patches <at> gnu.org:
bug#29136; Package guix-patches. (Fri, 03 Nov 2017 15:45:02 GMT) Full text and rfc822 format available.

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

From: Brendan Tildesley <brendan.tildesley <at> openmailbox.org>
To: 29136 <at> debbugs.gnu.org
Subject: [PATCH 1/5] gnu: calibre: Update to 3.11.1.
Date: Sat,  4 Nov 2017 02:43:59 +1100
* gnu/packages/ebook.scm (calibre): Update to 3.11.1.
---
 gnu/packages/ebook.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/ebook.scm b/gnu/packages/ebook.scm
index 4bcaa0abf..da7c9dc0f 100644
--- a/gnu/packages/ebook.scm
+++ b/gnu/packages/ebook.scm
@@ -72,7 +72,7 @@
 (define-public calibre
   (package
     (name "calibre")
-    (version "3.6.0")
+    (version "3.11.1")
     (source
       (origin
         (method url-fetch)
@@ -81,7 +81,7 @@
                             version ".tar.xz"))
         (sha256
          (base32
-          "0vp2nds4b5xbchsh1rpc1q7093gd26dnw7mgbnax97dcchvlc4sc"))
+          "0kwza7iyyyfhq476z5fk9962iyd0qpgmzm1k36nqcy8sfjbk8mrl"))
         ;; Remove non-free or doubtful code, see
         ;; https://lists.gnu.org/archive/html/guix-devel/2015-02/msg00478.html
         (modules '((guix build utils)))
-- 
2.14.3





Information forwarded to guix-patches <at> gnu.org:
bug#29136; Package guix-patches. (Fri, 03 Nov 2017 15:45:02 GMT) Full text and rfc822 format available.

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

From: Brendan Tildesley <brendan.tildesley <at> openmailbox.org>
To: 29136 <at> debbugs.gnu.org
Subject: [PATCH 2/5] gnu: Add python-dukpy, python2-dukpy.
Date: Sat,  4 Nov 2017 02:44:00 +1100
gnu/packages/python.scm (python-dukpy, python2-dukpy): New variables.
---
 gnu/packages/python.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index e8a733919..664adfd58 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -44,6 +44,7 @@
 ;;; Copyright © 2017 Kei Kebreau <kkebreau <at> posteo.net>
 ;;; Copyright © 2017 Rutger Helling <rhelling <at> mykolab.com>
 ;;; Copyright © 2017 Muriithi Frederick Muriuki <fredmanglis <at> gmail.com>
+;;; Copyright © 2017 Brendan Tildesley <brendan.tildesley <at> openmailbox.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -16871,3 +16872,26 @@ executed more than a given number of times during a given period.")
 
 (define-public python2-ratelimiter
   (package-with-python2 python-ratelimiter))
+
+(define-public python-dukpy
+  (package
+    (name "python-dukpy")
+    (version "0.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "https://github.com/kovidgoyal/dukpy/archive/v"
+                           version ".tar.gz"))
+       (sha256
+        (base32
+         "0pj39rfwlzivqm5hkrsza7gssg6ggpxlq5ivc8f3h7x5pfgc6y6c"))))
+    (build-system python-build-system)
+    (home-page "https://github.com/kovidgoyal/dukpy")
+    (synopsis "Run JavaScript in python")
+    (description
+     "dukpy is a JavaScript runtime environment for Python using the duktape
+embeddable JavaScript engine.")
+    (license license:expat)))
+
+(define-public python2-dukpy
+  (package-with-python2 python-dukpy))
-- 
2.14.3





Information forwarded to guix-patches <at> gnu.org:
bug#29136; Package guix-patches. (Fri, 03 Nov 2017 15:45:03 GMT) Full text and rfc822 format available.

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

From: Brendan Tildesley <brendan.tildesley <at> openmailbox.org>
To: 29136 <at> debbugs.gnu.org
Subject: [PATCH 3/5] gnu: calibre: Add python2-dukpy as an input.
Date: Sat,  4 Nov 2017 02:44:01 +1100
* gnu/packages/ebook.scm (calibre)[inputs]: Add python2-dukpy. dukpy was
  unbundled from Calibre, so we need to to use the Guix version.
---
 gnu/packages/ebook.scm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gnu/packages/ebook.scm b/gnu/packages/ebook.scm
index da7c9dc0f..a8c6f5975 100644
--- a/gnu/packages/ebook.scm
+++ b/gnu/packages/ebook.scm
@@ -126,6 +126,7 @@
        ("python2-dateutil" ,python2-dateutil)
        ("python2-dbus" ,python2-dbus)
        ("python2-dnspython" ,python2-dnspython)
+       ("python2-dukpy" ,python2-dukpy)
        ("python2-feedparser" ,python2-feedparser)
        ("python2-html5-parser" ,python2-html5-parser)
        ("python2-lxml" ,python2-lxml)
-- 
2.14.3





Information forwarded to guix-patches <at> gnu.org:
bug#29136; Package guix-patches. (Fri, 03 Nov 2017 15:45:03 GMT) Full text and rfc822 format available.

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

From: Brendan Tildesley <brendan.tildesley <at> openmailbox.org>
To: 29136 <at> debbugs.gnu.org
Subject: [PATCH 4/5] gnu: calibre: Add optipng as an input.
Date: Sat,  4 Nov 2017 02:44:02 +1100
* gnu/packages/ebook.scm (calibre)[inputs]: Add optipng.
---
 gnu/packages/ebook.scm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gnu/packages/ebook.scm b/gnu/packages/ebook.scm
index a8c6f5975..659ec57d5 100644
--- a/gnu/packages/ebook.scm
+++ b/gnu/packages/ebook.scm
@@ -116,6 +116,7 @@
        ("libusb" ,libusb)
        ("libxrender" ,libxrender)
        ("openssl" ,openssl)
+       ("optipng" ,optipng)
        ("podofo" ,podofo)
        ("poppler" ,poppler)
        ("python" ,python-2)
-- 
2.14.3





Information forwarded to guix-patches <at> gnu.org:
bug#29136; Package guix-patches. (Fri, 03 Nov 2017 15:45:04 GMT) Full text and rfc822 format available.

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

From: Brendan Tildesley <brendan.tildesley <at> openmailbox.org>
To: 29136 <at> debbugs.gnu.org
Subject: [PATCH 5/5] gnu: calibre: Install mimetypes.
Date: Sat,  4 Nov 2017 02:44:03 +1100
* gnu/packages/ebook.scm (calibre)[arguments]: Install mimetypes xml file.
---
 gnu/packages/ebook.scm | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/ebook.scm b/gnu/packages/ebook.scm
index 659ec57d5..5c392cc75 100644
--- a/gnu/packages/ebook.scm
+++ b/gnu/packages/ebook.scm
@@ -183,7 +183,12 @@
                        (find-files (string-append
                                     (assoc-ref inputs "font-liberation")
                                     "/share/fonts/truetype")))
-             #t)))))
+             #t))
+         (add-after 'install-font-liberation 'install-mimetypes
+           (lambda* (#:key outputs #:allow-other-keys)
+             (install-file "resources/calibre-mimetypes.xml"
+                           (string-append (assoc-ref outputs "out")
+                                          "/share/mime/packages")))))))
     (home-page "http://calibre-ebook.com/")
     (synopsis "E-book library management software")
     (description "Calibre is an ebook library manager.  It can view, convert
-- 
2.14.3





Information forwarded to guix-patches <at> gnu.org:
bug#29136; Package guix-patches. (Sun, 05 Nov 2017 16:00:02 GMT) Full text and rfc822 format available.

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

From: Marius Bakke <mbakke <at> fastmail.com>
To: Brendan Tildesley <brendan.tildesley <at> openmailbox.org>,
 29136 <at> debbugs.gnu.org
Subject: Re: [bug#29136] [PATCH 2/5] gnu: Add python-dukpy, python2-dukpy.
Date: Sun, 05 Nov 2017 16:58:58 +0100
[Message part 1 (text/plain, inline)]
Brendan Tildesley <brendan.tildesley <at> openmailbox.org> writes:

> gnu/packages/python.scm (python-dukpy, python2-dukpy): New variables.

[...]

> +    (description
> +     "dukpy is a JavaScript runtime environment for Python using the duktape
> +embeddable JavaScript engine.")
> +    (license license:expat)))

'errors.c' is actually GPL3.  I added it.
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#29136; Package guix-patches. (Sun, 05 Nov 2017 16:07:02 GMT) Full text and rfc822 format available.

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

From: Marius Bakke <mbakke <at> fastmail.com>
To: Brendan Tildesley <brendan.tildesley <at> openmailbox.org>,
 29136 <at> debbugs.gnu.org
Subject: Re: [bug#29136] [PATCH 5/5] gnu: calibre: Install mimetypes.
Date: Sun, 05 Nov 2017 17:06:08 +0100
[Message part 1 (text/plain, inline)]
Brendan Tildesley <brendan.tildesley <at> openmailbox.org> writes:

> * gnu/packages/ebook.scm (calibre)[arguments]: Install mimetypes xml file.
> ---
>  gnu/packages/ebook.scm | 7 ++++++-
>  1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/gnu/packages/ebook.scm b/gnu/packages/ebook.scm
> index 659ec57d5..5c392cc75 100644
> --- a/gnu/packages/ebook.scm
> +++ b/gnu/packages/ebook.scm
> @@ -183,7 +183,12 @@
>                         (find-files (string-append
>                                      (assoc-ref inputs "font-liberation")
>                                      "/share/fonts/truetype")))
> -             #t)))))
> +             #t))
> +         (add-after 'install-font-liberation 'install-mimetypes
> +           (lambda* (#:key outputs #:allow-other-keys)
> +             (install-file "resources/calibre-mimetypes.xml"
> +                           (string-append (assoc-ref outputs "out")
> +                                          "/share/mime/packages")))))))

(install-file ...) has an unspecified return value, so I added a #t here.
[signature.asc (application/pgp-signature, inline)]

Reply sent to Marius Bakke <mbakke <at> fastmail.com>:
You have taken responsibility. (Sun, 05 Nov 2017 16:08:02 GMT) Full text and rfc822 format available.

Notification sent to Brendan Tildesley <brendan.tildesley <at> openmailbox.org>:
bug acknowledged by developer. (Sun, 05 Nov 2017 16:08:04 GMT) Full text and rfc822 format available.

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

From: Marius Bakke <mbakke <at> fastmail.com>
To: Brendan Tildesley <brendan.tildesley <at> openmailbox.org>,
 29136-done <at> debbugs.gnu.org
Subject: Re: [bug#29136] [PATCH 0/5] gnu: calibre: Update to 3.11.1.
Date: Sun, 05 Nov 2017 17:07:28 +0100
[Message part 1 (text/plain, inline)]
Brendan Tildesley <brendan.tildesley <at> openmailbox.org> writes:

> This updates Calibre to 3.11.1, adds two new inputs python2-dukpy, and
> optipng, and fixes the build script to install a mimetype file, which I
> missed when I initially packaged 3.6.0.

Applied all five patches!  Thank you for maintaining this package :)
[signature.asc (application/pgp-signature, inline)]

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

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

Previous Next


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