[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
162/227: gnu: zxing-cpp: Update to 1.2.0-0.00783db.
From: |
guix-commits |
Subject: |
162/227: gnu: zxing-cpp: Update to 1.2.0-0.00783db. |
Date: |
Thu, 11 Nov 2021 12:30:34 -0500 (EST) |
apteryx pushed a commit to branch core-updates-frozen
in repository guix.
commit 222b461878179dbe3b5fdce8cb59cf6841579df7
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Wed Oct 27 22:44:58 2021 -0400
gnu: zxing-cpp: Update to 1.2.0-0.00783db.
* gnu/packages/aidc.scm (zxing-cpp): Update to 1.2.0-0.00783db.
[version]: Use git-version.
[source]: Adjust accordingly.
[native-inputs]: Replace googletest-source by the regular googletest
package.
Add fmt.
[arguments]: Remove field.
(zxing-cpp-1.2): New variable.
* gnu/packages/gstreamer.scm (gst-plugins-bad): Skip failing test.
[inputs]: Use zxing-cpp-1.2.
---
gnu/packages/aidc.scm | 86 ++++++++++++++++++++++++----------------------
gnu/packages/gstreamer.scm | 9 +++--
2 files changed, 52 insertions(+), 43 deletions(-)
diff --git a/gnu/packages/aidc.scm b/gnu/packages/aidc.scm
index 21fc195..ac85dca 100644
--- a/gnu/packages/aidc.scm
+++ b/gnu/packages/aidc.scm
@@ -38,54 +38,58 @@
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages python)
#:use-module (gnu packages python-xyz)
+ #:use-module (gnu packages pretty-print)
#:use-module (gnu packages qt)
#:use-module (gnu packages video)
#:use-module (guix build-system cmake)
#:use-module (guix build-system gnu))
(define-public zxing-cpp
- (package
+ ;; 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
+ `(("fmt" ,fmt)
+ ("googletest" ,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))))
+
+;;; This older variant is kept for gst-plugins-bad (see:
+;;; https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/issues/1684).
+(define-public zxing-cpp-1.2
+ (package/inherit zxing-cpp
(name "zxing-cpp")
- (version "1.0.8")
- (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 "011sq8wcjfxbnd8sj6bf2fgkamlp8gj6q835g61c952npvwsnl71"))))
- (native-inputs
- `(("googletest-source" ,(package-source googletest))))
- (build-system cmake-build-system)
- (arguments
- `(#:out-of-source? #f
- #:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'unpack-googletest
- ;; Copy the googletest sources to where the CMake build expects
them.
- (lambda* (#:key inputs #:allow-other-keys)
- (let ((source (assoc-ref inputs "googletest-source"))
- (target "test/unit/googletest-src"))
- (mkdir-p target)
- (copy-recursively source target)
- ;; Disable downloading via ExternalProject.
- (substitute* "test/unit/CMakeLists.txt.in"
- (("ExternalProject_Add\\(") "message("))
- #t)))
- (replace 'check
- (lambda _
- (with-directory-excursion "test/unit"
- (invoke "cmake" ".")
- (invoke "make")
- (invoke "./ZXingUnitTest"))
- #t)))))
- (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)))
+ (version "1.2.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
+ "1gjj9c7h634rrmmgzbc7cxjqsxdq0paj6113k02ncjm1s9abk7ik"))))
+ ;; Disable tests to avoid bundled dependencies.
+ (arguments '(#:tests? #f
+ #:configure-flags '("-DBUILD_BLACKBOX_TESTS=OFF")))
+ (native-inputs '())))
(define-public barcode
(package
diff --git a/gnu/packages/gstreamer.scm b/gnu/packages/gstreamer.scm
index 2ee9fdc..a4c7967 100644
--- a/gnu/packages/gstreamer.scm
+++ b/gnu/packages/gstreamer.scm
@@ -775,7 +775,12 @@ model to base your own plug-in on, here it is.")
;;
https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/issues/932
((".*elements/curlhttpsrc\\.c.*") "")
;;
https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/issues/1412
- ((".*elements/dtls\\.c.*") "")))))
+ ((".*elements/dtls\\.c.*") ""))
+ (substitute* "tests/check/elements/zxing.c"
+ ;; zxing 1.2.0 seemingly changed the type representation of
+ ;; the EAN_13 structure; disable it.
+ ((".*\"EAN_13\".*")
+ "")))))
(add-before 'check 'pre-check
(lambda _
;; Tests require a running X server.
@@ -898,7 +903,7 @@ model to base your own plug-in on, here it is.")
("wpebackend-fdo" ,wpebackend-fdo)
;; ("wpewebkit" ,wpewebkit)
("zbar" ,zbar)
- ("zxing" ,zxing-cpp)))
+ ("zxing" ,zxing-cpp-1.2)))
(home-page "https://gstreamer.freedesktop.org/")
(synopsis "Plugins for the GStreamer multimedia library")
(description
- 157/227: gnu: python-dateutil: Update to 2.8.2., (continued)
- 157/227: gnu: python-dateutil: Update to 2.8.2., guix-commits, 2021/11/11
- 116/227: gnu: mesa: Update to 21.2.4., guix-commits, 2021/11/11
- 129/227: gnu: libsoup: Update to 3.0.1., guix-commits, 2021/11/11
- 120/227: gnu: mit-krb5: Absorb 1.19.2 graft., guix-commits, 2021/11/11
- 138/227: profiles: Add a gdk-pixbuf-loaders-cache-file hook., guix-commits, 2021/11/11
- 141/227: gnu: librsvg: Preserve the loaders.cache file., guix-commits, 2021/11/11
- 147/227: gnu: nss: Update to 3.71., guix-commits, 2021/11/11
- 153/227: gnu: boost: Update to 1.77.0., guix-commits, 2021/11/11
- 154/227: gnu: python-dbusmock: Update to 0.24.0., guix-commits, 2021/11/11
- 158/227: gnu: gdk-pixbuf: Remove obsolete jasper support., guix-commits, 2021/11/11
- 162/227: gnu: zxing-cpp: Update to 1.2.0-0.00783db.,
guix-commits <=
- 163/227: gnu: python-numpy: Update to 1.21.3 and cleanup., guix-commits, 2021/11/11
- 128/227: gnu: libsoup: Reverse inheritance relationship with libsoup-minimal., guix-commits, 2021/11/11
- 130/227: gnu: webkitgtk: Use libsoup 3 and build with GCC., guix-commits, 2021/11/11
- 118/227: gnu: cmake-bootstrap: Update to 3.21.3., guix-commits, 2021/11/11
- 122/227: gnu: heimdal: Fix build., guix-commits, 2021/11/11
- 126/227: gnu: glib-networking: Update to 2.70.rc., guix-commits, 2021/11/11
- 127/227: gnu: vala: Update to 0.54.2., guix-commits, 2021/11/11
- 136/227: gnu: gtk: Add the generate-gdk-pixbuf-loaders-cache-file phase., guix-commits, 2021/11/11
- 137/227: build: glib-or-gtk: Generate the gdk-pixbuf-loaders cache file in a phase., guix-commits, 2021/11/11
- 139/227: gnu: gdk-pixbuf: Add a search path for the loaders cache file., guix-commits, 2021/11/11