GNU bug report logs

#78643 [PATCH 0/3] gnu: Add spectacle-ocr-screenshot.

PackageSource(s)Maintainer(s)
guix-patches PTS Buildd Popcon
Reply or subscribe to this bug. View this bug as an mbox, status mbox, or maintainer mbox

Report forwarded to sughosha@disroot.org, z572@z572.online, guix-patches@gnu.org:
bug#78643; Package guix-patches. (Fri, 30 May 2025 17:54:02 GMT) (full text, mbox, link).


Acknowledgement sent to Sughosha <sughosha@disroot.org>:
New bug report received and forwarded. Copy sent to sughosha@disroot.org, z572@z572.online, guix-patches@gnu.org. (Fri, 30 May 2025 17:54:02 GMT) (full text, mbox, link).


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

From: Sughosha <sughosha@disroot.org>
To: guix-patches@gnu.org
Cc: Sughosha <sughosha@disroot.org>
Subject: [PATCH 0/3] gnu: Add spectacle-ocr-screenshot.
Date: Fri, 30 May 2025 23:22:28 +0530
This series updates zxing-cpp and adds spectacle-ocr-screenshot. 

Sughosha (3):
  gnu: Add zint.
  gnu: zxing-cpp: Update to 2.3.0.
  gnu: Add spectacle-ocr-screenshot.

 gnu/packages/aidc.scm            | 80 +++++++++++++++++++++++---------
 gnu/packages/kde-systemtools.scm | 43 +++++++++++++++++
 2 files changed, 100 insertions(+), 23 deletions(-)


base-commit: 6659e1bfac2e9edba0edabc5aaa3941c1c413f51
-- 
2.49.0





Information forwarded to guix-patches@gnu.org:
bug#78643; Package guix-patches. (Fri, 30 May 2025 18:02:02 GMT) (full text, mbox, link).


Message #8 received at 78643@debbugs.gnu.org (full text, mbox, reply):

From: Sughosha <sughosha@disroot.org>
To: 78643@debbugs.gnu.org
Cc: Sughosha <sughosha@disroot.org>
Subject: [PATCH 1/3] gnu: Add zint.
Date: Fri, 30 May 2025 23:31:00 +0530
* gnu/packages/aidc.scm (zint): New variable.

Change-Id: Id2415cc91cceef96696fc8e70146452310f905f4
---
 gnu/packages/aidc.scm | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/gnu/packages/aidc.scm b/gnu/packages/aidc.scm
index a4816472d7..9400bb2823 100644
--- a/gnu/packages/aidc.scm
+++ b/gnu/packages/aidc.scm
@@ -46,9 +46,42 @@ (define-module (gnu packages aidc)
   #:use-module (gnu packages qt)
   #:use-module (gnu packages video)
   #:use-module (guix build-system cmake)
+  #:use-module (guix build-system qt)
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system glib-or-gtk))
 
+(define-public zint
+  (package
+    (name "zint")
+    (version "2.15.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/zint/zint")
+                    (commit version)))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "0arnpdqspyy3bxafm3lqc020bhwq3vazfnja2fk2s8c7mr9wimgr"))))
+    (build-system qt-build-system)
+    (arguments
+     (list #:qtbase qtbase
+           #:configure-flags
+           #~(list "-DZINT_QT6=ON"
+                   "-DZINT_TEST=ON"
+                   "-DZINT_UNINSTALL=OFF")))
+    (native-inputs
+     (list pkg-config qttools))
+    (inputs
+     (list libpng
+           qtsvg))
+    (synopsis "Barcode encoding library")
+    (description "Zint is a suite of programs to allow easy encoding of data in
+any of the wide range of public domain barcode standards and to allow
+integration of this capability into your own programs.")
+    (home-page "https://www.zint.org.uk/")
+    (license (list license:bsd-2 license:gpl3+))))
+
 (define-public zxing-cpp
   ;; Use the master branch as it includes unreleased build system improvements
   ;; allowing to use system libraries (instead of attempting to fetch them
-- 
2.49.0





Information forwarded to guix-patches@gnu.org:
bug#78643; Package guix-patches. (Fri, 30 May 2025 18:02:02 GMT) (full text, mbox, link).


Message #11 received at 78643@debbugs.gnu.org (full text, mbox, reply):

From: Sughosha <sughosha@disroot.org>
To: 78643@debbugs.gnu.org
Cc: Sughosha <sughosha@disroot.org>
Subject: [PATCH 2/3] gnu: zxing-cpp: Update to 2.3.0.
Date: Fri, 30 May 2025 23:31:01 +0530
* gnu/packages/aidc.scm (zxing-cpp): Update to 2.3.0.
[arguments]<#:configure-flags>: Add "-DZXING_USE_BUNDLED_ZINT=OFF",
"-DZXING_EXAMPLES=OFF" and "-DZXING_UNIT_TESTS=ON".
[native-inputs]: Add pkg-config.
[inputs]: Add zint.

Change-Id: Ib16a05a0e629609420948120870b6a031aea5bcd
---
 gnu/packages/aidc.scm | 47 ++++++++++++++++++++++---------------------
 1 file changed, 24 insertions(+), 23 deletions(-)

diff --git a/gnu/packages/aidc.scm b/gnu/packages/aidc.scm
index 9400bb2823..b4fbd2804a 100644
--- a/gnu/packages/aidc.scm
+++ b/gnu/packages/aidc.scm
@@ -83,29 +83,30 @@ (define-public zint
     (license (list license:bsd-2 license:gpl3+))))
 
 (define-public zxing-cpp
-  ;; Use the master branch as it includes unreleased build system improvements
-  ;; allowing to use system libraries (instead of attempting to fetch them
-  ;; from the Internet).
-  (let ((revision "0")
-        (commit "00783db7aa3bcf8620a301854ac71c0ceaaca0c1"))
-    (package
-      (name "zxing-cpp")
-      (version (git-version "1.2.0" revision commit))
-      (source (origin
-                (method git-fetch)
-                (uri (git-reference
-                      (url "https://github.com/nu-book/zxing-cpp")
-                      (commit commit)))
-                (file-name (git-file-name name version))
-                (sha256
-                 (base32
-                  "1yl2cpaqiv1g4nq9v0xfj1vd5faz55k4541vz6hsffvcxgn9nmc5"))))
-      (build-system cmake-build-system)
-      (native-inputs (list fmt-8 googletest))
-      (synopsis "C++ port of ZXing")
-      (description "ZXing-CPP is a barcode scanning library.")
-      (home-page "https://github.com/nu-book/zxing-cpp")
-      (license license:asl2.0))))
+  (package
+    (name "zxing-cpp")
+    (version "2.3.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/nu-book/zxing-cpp")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1hdr73fllnsp3zpmrhw6cjla39lihwg1khgvddsf4v57a0lmiy3f"))))
+    (build-system cmake-build-system)
+    (arguments
+     (list #:configure-flags
+           #~(list "-DZXING_USE_BUNDLED_ZINT=OFF"
+                   "-DZXING_EXAMPLES=OFF" ;requires stb
+                   "-DZXING_UNIT_TESTS=ON")))
+    (native-inputs (list fmt-8 googletest pkg-config))
+    (inputs (list zint))
+    (synopsis "C++ port of ZXing")
+    (description "ZXing-CPP is a barcode scanning library.")
+    (home-page "https://github.com/nu-book/zxing-cpp")
+    (license license:asl2.0)))
 
 ;;; This older variant is kept for gst-plugins-bad (see:
 ;;; https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/issues/1684).
-- 
2.49.0





Information forwarded to sughosha@disroot.org, z572@z572.online, guix-patches@gnu.org:
bug#78643; Package guix-patches. (Fri, 30 May 2025 18:02:03 GMT) (full text, mbox, link).


Message #14 received at 78643@debbugs.gnu.org (full text, mbox, reply):

From: Sughosha <sughosha@disroot.org>
To: 78643@debbugs.gnu.org
Cc: Sughosha <sughosha@disroot.org>
Subject: [PATCH 3/3] gnu: Add spectacle-ocr-screenshot.
Date: Fri, 30 May 2025 23:31:02 +0530
* gnu/packages/kde-systemtools.scm (spectacle-ocr-screenshot): New variable.

Change-Id: I387830c8beafb391275ce721191effa2dc022f2b
---
 gnu/packages/kde-systemtools.scm | 43 ++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)

diff --git a/gnu/packages/kde-systemtools.scm b/gnu/packages/kde-systemtools.scm
index 4923854a7c..0cf3855cd7 100644
--- a/gnu/packages/kde-systemtools.scm
+++ b/gnu/packages/kde-systemtools.scm
@@ -23,17 +23,21 @@
 (define-module (gnu packages kde-systemtools)
   #:use-module (guix build-system qt)
   #:use-module (guix download)
+  #:use-module (guix git-download)
   #:use-module ((guix licenses) #:prefix license:)
   #:use-module (guix packages)
   #:use-module (guix utils)
   #:use-module (guix gexp)
   #:use-module (gnu packages)
+  #:use-module (gnu packages aidc)
   #:use-module (gnu packages compression)
   #:use-module (gnu packages freedesktop)
+  #:use-module (gnu packages image)
   #:use-module (gnu packages kde)
   #:use-module (gnu packages kde-frameworks)
   #:use-module (gnu packages kde-plasma)
   #:use-module (gnu packages linux)
+  #:use-module (gnu packages ocr)
   #:use-module (gnu packages pkg-config)
   #:use-module (gnu packages qt)
   #:use-module (gnu packages glib)
@@ -447,6 +451,45 @@ (define-public spectacle
     (description "Spectacle is a screenshot taking utility for the KDE.")
     (license license:gpl2+)))
 
+(define-public spectacle-ocr-screenshot
+  (package
+    (name "spectacle-ocr-screenshot")
+    (version "0.3.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/funinkina/spectacle-ocr-screenshot")
+             (commit version)))
+       (sha256
+        (base32 "06dyvv4h4m4j8cm3f7ivcczql26rfajkmw84qh7kik71f70qvwjw"))
+       (file-name (git-file-name name version))))
+    (build-system qt-build-system)
+    (arguments
+     (list #:qtbase qtbase
+           #:tests? #f ;no tests
+           #:phases
+           #~(modify-phases %standard-phases
+               (replace 'configure
+                 (lambda _
+                   (invoke "qmake" (string-append "PREFIX=" #$output))))
+               (replace 'install
+                 (lambda _
+                   (install-file "spectacle-ocr-screenshot"
+                                 (string-append #$output "/bin")))))))
+    (native-inputs
+     (list pkg-config))
+    (inputs
+     (list leptonica
+           tesseract-ocr
+           zxing-cpp))
+    (home-page "https://github.com/funinkina/spectacle-ocr-screenshot")
+    (synopsis "Utility to extract text from Spectacle")
+    (description "This package provides an application that integrates with KDE
+Spectacle screenshot tool with Tesseract OCR to extract text from screenshots
+as well as QR codes.")
+    (license license:expat)))
+
 (define-public yakuake
   (package
     (name "yakuake")
-- 
2.49.0





Information forwarded to guix-patches@gnu.org:
bug#78643; Package guix-patches. (Sat, 14 Jun 2025 19:06:02 GMT) (full text, mbox, link).


Message #17 received at 78643@debbugs.gnu.org (full text, mbox, reply):

From: Andreas Enge <andreas@enge.fr>
To: Sughosha <sughosha@disroot.org>
Cc: 78643@debbugs.gnu.org
Subject: Re: [PATCH 1/3] gnu: Add zint.
Date: Sat, 14 Jun 2025 21:05:27 +0200
Hello,

this issue is somehow stuck in QA, so I have given it a look.

I have pushed the new package zint, with bsd-3 instead of bsd-2 as
license (it was what was mentioned in two files I checked in the backend
subdirectory).

The zxing-cpp update, however, causes build failures:
   kaidan, liblinphone, yosys-clang

Could you have a look, please, and maybe suggest a v2?

Notice also the issue
   https://issues.guix.gnu.org/78790
around a related topic.

Thanks,

Andreas





Information forwarded to guix-patches@gnu.org:
bug#78643; Package guix-patches. (Sun, 15 Jun 2025 21:31:01 GMT) (full text, mbox, link).


Message #20 received at 78643@debbugs.gnu.org (full text, mbox, reply):

From: gay@disroot.org
To: Sughosha <sughosha@disroot.org>, Andreas Enge <andreas@enge.fr>, 78643@debbugs.gnu.org
Subject: [PATCH 2/3] gnu: zxing-cpp: Update to 2.3.0.
Date: Mon, 16 Jun 2025 00:30:45 +0300
Hi, "[PATCH 6/8] gnu: zxing-cpp: Update to 2.3.0." in 
https://issues.guix.gnu.org/78790 has zxing-cpp-1.2a variable to solve 
that issue, but I can't find yosys-clang variable.




Information forwarded to guix-patches@gnu.org:
bug#78643; Package guix-patches. (Fri, 18 Jul 2025 18:18:02 GMT) (full text, mbox, link).


Message #23 received at 78643@debbugs.gnu.org (full text, mbox, reply):

From: Sughosha <sughosha@disroot.org>
To: 78643@debbugs.gnu.org
Cc: Sughosha <sughosha@disroot.org>
Subject: [PATCH v2] gnu: Add spectacle-ocr-screenshot.
Date: Fri, 18 Jul 2025 23:46:41 +0530
* gnu/packages/kde-systemtools.scm (spectacle-ocr-screenshot): New variable.

Change-Id: I387830c8beafb391275ce721191effa2dc022f2b
---
 gnu/packages/kde-systemtools.scm | 43 ++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)

diff --git a/gnu/packages/kde-systemtools.scm b/gnu/packages/kde-systemtools.scm
index 0d57a06d96..b2799712e3 100644
--- a/gnu/packages/kde-systemtools.scm
+++ b/gnu/packages/kde-systemtools.scm
@@ -23,17 +23,21 @@
 (define-module (gnu packages kde-systemtools)
   #:use-module (guix build-system qt)
   #:use-module (guix download)
+  #:use-module (guix git-download)
   #:use-module ((guix licenses) #:prefix license:)
   #:use-module (guix packages)
   #:use-module (guix utils)
   #:use-module (guix gexp)
   #:use-module (gnu packages)
+  #:use-module (gnu packages aidc)
   #:use-module (gnu packages compression)
   #:use-module (gnu packages freedesktop)
+  #:use-module (gnu packages image)
   #:use-module (gnu packages kde)
   #:use-module (gnu packages kde-frameworks)
   #:use-module (gnu packages kde-plasma)
   #:use-module (gnu packages linux)
+  #:use-module (gnu packages ocr)
   #:use-module (gnu packages pkg-config)
   #:use-module (gnu packages qt)
   #:use-module (gnu packages glib)
@@ -446,6 +450,45 @@ (define-public spectacle
     (description "Spectacle is a screenshot taking utility for the KDE.")
     (license license:gpl2+)))
 
+(define-public spectacle-ocr-screenshot
+  (package
+    (name "spectacle-ocr-screenshot")
+    (version "0.3.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/funinkina/spectacle-ocr-screenshot")
+             (commit version)))
+       (sha256
+        (base32 "06dyvv4h4m4j8cm3f7ivcczql26rfajkmw84qh7kik71f70qvwjw"))
+       (file-name (git-file-name name version))))
+    (build-system qt-build-system)
+    (arguments
+     (list #:qtbase qtbase
+           #:tests? #f ;no tests
+           #:phases
+           #~(modify-phases %standard-phases
+               (replace 'configure
+                 (lambda _
+                   (invoke "qmake" (string-append "PREFIX=" #$output))))
+               (replace 'install
+                 (lambda _
+                   (install-file "spectacle-ocr-screenshot"
+                                 (string-append #$output "/bin")))))))
+    (native-inputs
+     (list pkg-config))
+    (inputs
+     (list leptonica
+           tesseract-ocr
+           zxing-cpp))
+    (home-page "https://github.com/funinkina/spectacle-ocr-screenshot")
+    (synopsis "Utility to extract text from Spectacle")
+    (description "This package provides an application that integrates with KDE
+Spectacle screenshot tool with Tesseract OCR to extract text from screenshots
+as well as QR codes.")
+    (license license:expat)))
+
 (define-public yakuake
   (package
     (name "yakuake")
-- 
2.50.0





Information forwarded to guix-patches@gnu.org:
bug#78643; Package guix-patches. (Sat, 19 Jul 2025 11:23:02 GMT) (full text, mbox, link).


Message #26 received at submit@debbugs.gnu.org (full text, mbox, reply):

From: Z572 <z572@z572.online>
To: Sughosha via Guix-patches via <guix-patches@gnu.org>
Cc: 78643-done@debbugs.gnu.org, Sughosha <sughosha@disroot.org>
Subject: Re: [bug#78643] [PATCH v2] gnu: Add spectacle-ocr-screenshot.
Date: Sat, 19 Jul 2025 19:21:54 +0800
[Message part 1 (text/plain, inline)]
Sughosha via Guix-patches via <guix-patches@gnu.org> writes:

> * gnu/packages/kde-systemtools.scm (spectacle-ocr-screenshot): New variable.
>
> Change-Id: I387830c8beafb391275ce721191effa2dc022f2b
> ---
>  gnu/packages/kde-systemtools.scm | 43 ++++++++++++++++++++++++++++++++
>  1 file changed, 43 insertions(+)
>
> diff --git a/gnu/packages/kde-systemtools.scm b/gnu/packages/kde-systemtools.scm
> index 0d57a06d96..b2799712e3 100644
> --- a/gnu/packages/kde-systemtools.scm
> +++ b/gnu/packages/kde-systemtools.scm
> @@ -23,17 +23,21 @@
>  (define-module (gnu packages kde-systemtools)
>    #:use-module (guix build-system qt)
>    #:use-module (guix download)
> +  #:use-module (guix git-download)
>    #:use-module ((guix licenses) #:prefix license:)
>    #:use-module (guix packages)
>    #:use-module (guix utils)
>    #:use-module (guix gexp)
>    #:use-module (gnu packages)
> +  #:use-module (gnu packages aidc)
>    #:use-module (gnu packages compression)
>    #:use-module (gnu packages freedesktop)
> +  #:use-module (gnu packages image)
>    #:use-module (gnu packages kde)
>    #:use-module (gnu packages kde-frameworks)
>    #:use-module (gnu packages kde-plasma)
>    #:use-module (gnu packages linux)
> +  #:use-module (gnu packages ocr)
>    #:use-module (gnu packages pkg-config)
>    #:use-module (gnu packages qt)
>    #:use-module (gnu packages glib)
> @@ -446,6 +450,45 @@ (define-public spectacle
>      (description "Spectacle is a screenshot taking utility for the KDE.")
>      (license license:gpl2+)))
>  
> +(define-public spectacle-ocr-screenshot
> +  (package
> +    (name "spectacle-ocr-screenshot")
> +    (version "0.3.0")
> +    (source
> +     (origin
> +       (method git-fetch)
> +       (uri (git-reference
> +             (url "https://github.com/funinkina/spectacle-ocr-screenshot")
> +             (commit version)))
> +       (sha256
> +        (base32 "06dyvv4h4m4j8cm3f7ivcczql26rfajkmw84qh7kik71f70qvwjw"))
> +       (file-name (git-file-name name version))))
> +    (build-system qt-build-system)
> +    (arguments
> +     (list #:qtbase qtbase
> +           #:tests? #f ;no tests
> +           #:phases
> +           #~(modify-phases %standard-phases
> +               (replace 'configure
> +                 (lambda _
> +                   (invoke "qmake" (string-append "PREFIX=" #$output))))
> +               (replace 'install
> +                 (lambda _
> +                   (install-file "spectacle-ocr-screenshot"
> +                                 (string-append #$output "/bin")))))))
> +    (native-inputs
> +     (list pkg-config))
> +    (inputs
> +     (list leptonica
> +           tesseract-ocr
> +           zxing-cpp))
> +    (home-page "https://github.com/funinkina/spectacle-ocr-screenshot")
> +    (synopsis "Utility to extract text from Spectacle")
> +    (description "This package provides an application that integrates with KDE
> +Spectacle screenshot tool with Tesseract OCR to extract text from screenshots
> +as well as QR codes.")
> +    (license license:expat)))
> +
>  (define-public yakuake
>    (package
>      (name "yakuake")

pushed, closing.
[signature.asc (application/pgp-signature, inline)]

Reply sent to Z572 <z572@z572.online>:
You have taken responsibility. (Sat, 19 Jul 2025 11:23:02 GMT) (full text, mbox, link).


Notification sent to Sughosha <sughosha@disroot.org>:
bug acknowledged by developer. (Sat, 19 Jul 2025 11:23:03 GMT) (full text, mbox, link).


bug archived. Request was from Debbugs Internal Request <help-debbugs@gnu.org> to internal_control@debbugs.gnu.org. (Sat, 16 Aug 2025 11:24:08 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


debbugs.gnu.org maintainers <help-debbugs@gnu.org>. Last modified: Mon Sep 8 15:53:46 2025; Machine Name: wallace-server

GNU bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.