GNU bug report logs - #61533
[PATCH 0/2] gnu: leptonica: Update to 1.83.1.

Previous Next

Package: guix-patches;

Reported by: Simon South <simon <at> simonsouth.net>

Date: Wed, 15 Feb 2023 16:43: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 61533 in the body.
You can then email your comments to 61533 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#61533; Package guix-patches. (Wed, 15 Feb 2023 16:43:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Simon South <simon <at> simonsouth.net>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Wed, 15 Feb 2023 16:43:01 GMT) Full text and rfc822 format available.

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

From: Simon South <simon <at> simonsouth.net>
To: guix-patches <at> gnu.org
Subject: [PATCH 0/2] gnu: leptonica: Update to 1.83.1.
Date: Wed, 15 Feb 2023 11:42:15 -0500
Here's a short patch series that updates Leptonica to 1.83.1, after first
updating its package definition to the modern style.

Tested on x864-64 and AArch64 and all seems well: Of Leptonica's 11 dependent
packages, only "ccextractor" fails to build and this is an existing failure on
both systems.

--
Simon South
simon <at> simonsouth.net


Simon South (2):
  gnu: leptonica: Use new package style.
  gnu: leptonica: Update to 1.83.1.

 gnu/packages/image.scm | 54 ++++++++++++++++++++----------------------
 1 file changed, 26 insertions(+), 28 deletions(-)


base-commit: b4d2670771b8c2b9c4aedbef0371f1d23197d209
-- 
2.39.1





Information forwarded to guix-patches <at> gnu.org:
bug#61533; Package guix-patches. (Wed, 15 Feb 2023 16:45:02 GMT) Full text and rfc822 format available.

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

From: Simon South <simon <at> simonsouth.net>
To: 61533 <at> debbugs.gnu.org
Subject: [PATCH 1/2] gnu: leptonica: Use new package style.
Date: Wed, 15 Feb 2023 11:44:10 -0500
* gnu/packages/image.scm (leptonica)[inputs]: Remove labels.
[arguments]<#:phases>: Use gexps; use "this-package-input" to locate package
input; do not explicitly return #t from phases.
---
 gnu/packages/image.scm | 50 ++++++++++++++++++++----------------------
 1 file changed, 24 insertions(+), 26 deletions(-)

diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm
index 42b7ee055e..af7f2e411b 100644
--- a/gnu/packages/image.scm
+++ b/gnu/packages/image.scm
@@ -619,33 +619,31 @@ (define-public leptonica
            libtool
            pkg-config))
     (inputs
-     `(("giflib" ,giflib)
-       ("libjpeg" ,libjpeg-turbo)
-       ("libpng" ,libpng)
-       ("libtiff" ,libtiff)
-       ("libwebp" ,libwebp)
-       ("openjpeg" ,openjpeg)
-       ("zlib" ,zlib)))
+     (list giflib
+           libjpeg-turbo
+           libpng
+           libtiff
+           libwebp
+           openjpeg
+           zlib))
     (arguments
-     '(#:phases
-       (modify-phases %standard-phases
-         (add-after 'unpack 'patch-reg-wrapper
-           (lambda _
-             (substitute* "prog/reg_wrapper.sh"
-               ((" /bin/sh ")
-                (string-append " " (which "sh") " "))
-               (("which gnuplot")
-                "true"))
-             #t))
-         (add-after 'install 'provide-absolute-giflib-reference
-           (lambda* (#:key inputs outputs #:allow-other-keys)
-             (let ((out (assoc-ref outputs "out"))
-                   (giflib (assoc-ref inputs "giflib")))
-               ;; Add an absolute reference to giflib to avoid propagation.
-               (with-directory-excursion (string-append out "/lib")
-                 (substitute* '("liblept.la" "pkgconfig/lept.pc")
-                   (("-lgif") (string-append "-L" giflib "/lib -lgif"))))
-               #t))))))
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'patch-reg-wrapper
+            (lambda _
+              (substitute* "prog/reg_wrapper.sh"
+                ((" /bin/sh ")
+                 (string-append " " (which "sh") " "))
+                (("which gnuplot")
+                 "true"))))
+          (add-after 'install 'provide-absolute-giflib-reference
+            (lambda _
+              (let ((giflib #$(this-package-input "giflib")))
+                ;; Add an absolute reference to giflib to avoid propagation.
+                (with-directory-excursion (string-append #$output "/lib")
+                  (substitute* '("liblept.la" "pkgconfig/lept.pc")
+                    (("-lgif") (string-append "-L" giflib "/lib -lgif"))))))))))
     (home-page "http://www.leptonica.com/")
     (synopsis "Library and tools for image processing and analysis")
     (description
-- 
2.39.1





Information forwarded to guix-patches <at> gnu.org:
bug#61533; Package guix-patches. (Wed, 15 Feb 2023 16:45:02 GMT) Full text and rfc822 format available.

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

From: Simon South <simon <at> simonsouth.net>
To: 61533 <at> debbugs.gnu.org
Subject: [PATCH 2/2] gnu: leptonica: Update to 1.83.1.
Date: Wed, 15 Feb 2023 11:44:11 -0500
* gnu/packages/image.scm (leptonica): Update to 1.83.1.
[arguments]<#:phases>: Update file name in "provide-absolute-giflib-reference"
phase.
---
 gnu/packages/image.scm | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm
index af7f2e411b..d458d8faf2 100644
--- a/gnu/packages/image.scm
+++ b/gnu/packages/image.scm
@@ -601,7 +601,7 @@ (define-public libtiff
 (define-public leptonica
   (package
     (name "leptonica")
-    (version "1.80.0")
+    (version "1.83.1")
     (source
      (origin
        (method git-fetch)
@@ -610,7 +610,7 @@ (define-public leptonica
              (commit version)))
        (file-name (git-file-name name version))
        (sha256
-        (base32 "12ddln72z5l3icz0i9rpsfkg5xik8fcwcn8lb0cp3jigjxi8gvkg"))))
+        (base32 "1j7qf9flb48q0aymf0yx9rypy3bs6hfjcln08zmy8qn2qcjzrmvi"))))
     (build-system gnu-build-system)
     (native-inputs
      (list gnuplot ;needed for test suite
@@ -642,7 +642,7 @@ (define-public leptonica
               (let ((giflib #$(this-package-input "giflib")))
                 ;; Add an absolute reference to giflib to avoid propagation.
                 (with-directory-excursion (string-append #$output "/lib")
-                  (substitute* '("liblept.la" "pkgconfig/lept.pc")
+                  (substitute* '("libleptonica.la" "pkgconfig/lept.pc")
                     (("-lgif") (string-append "-L" giflib "/lib -lgif"))))))))))
     (home-page "http://www.leptonica.com/")
     (synopsis "Library and tools for image processing and analysis")
-- 
2.39.1





Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Mon, 27 Feb 2023 22:37:02 GMT) Full text and rfc822 format available.

Notification sent to Simon South <simon <at> simonsouth.net>:
bug acknowledged by developer. (Mon, 27 Feb 2023 22:37:02 GMT) Full text and rfc822 format available.

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

From: Ludovic Courtès <ludo <at> gnu.org>
To: Simon South <simon <at> simonsouth.net>
Cc: 61533-done <at> debbugs.gnu.org
Subject: Re: bug#61533: [PATCH 0/2] gnu: leptonica: Update to 1.83.1.
Date: Mon, 27 Feb 2023 23:36:26 +0100
Simon South <simon <at> simonsouth.net> skribis:

> Here's a short patch series that updates Leptonica to 1.83.1, after first
> updating its package definition to the modern style.
>
> Tested on x864-64 and AArch64 and all seems well: Of Leptonica's 11 dependent
> packages, only "ccextractor" fails to build and this is an existing failure on
> both systems.

It’s not fully done yet, but qa.guix concurs:
<https://qa.guix.gnu.org/issue/61533>.  :-)

> Simon South (2):
>   gnu: leptonica: Use new package style.
>   gnu: leptonica: Update to 1.83.1.

Perfect.

Applied, thanks!

Ludo’.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 28 Mar 2023 11:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 28 days ago.

Previous Next


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