Source: zxing-cpp
Version: 1.4.0-3
Severity: wishlist
Tags: patch

In d6dc409ef15ff7171c7f9130dff7266a7c65f053[1], upstream implemented
detection for multiple DataMatrix symbols in a single input. As
mentioned in the commit message, this needs C++20.

Patch attached.

[1] 
https://github.com/zxing-cpp/zxing-cpp/commit/d6dc409ef15ff7171c7f9130dff7266a7c65f053

-- System Information:
Debian Release: bookworm/sid
  APT prefers testing-proposed-updates
  APT policy: (501, 'testing-proposed-updates'), (501, 'testing'), (500, 
'stable-security'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.0.0-2-amd64 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled



-- 
ceterum censeo microsoftem esse delendam.
From 3af7efcab6eef37182f8544a1c4618b1da242fa3 Mon Sep 17 00:00:00 2001
From: Jakob Haufe <su...@debian.org>
Date: Sat, 14 Jan 2023 21:02:49 +0100
Subject: [PATCH] Build with C++20

---
 debian/patches/0007-enable-c++20.patch | 15 +++++++++++++++
 debian/patches/series                  |  1 +
 2 files changed, 16 insertions(+)
 create mode 100644 debian/patches/0007-enable-c++20.patch

diff --git a/debian/patches/0007-enable-c++20.patch b/debian/patches/0007-enable-c++20.patch
new file mode 100644
index 0000000..efd457f
--- /dev/null
+++ b/debian/patches/0007-enable-c++20.patch
@@ -0,0 +1,15 @@
+Description: Build with C++20
+Author: Jakob Haufe <su...@debian.org>
+Last-Update: 2023-01-14
+
+--- zxing-cpp-1.4.0.orig/CMakeLists.txt
++++ zxing-cpp-1.4.0/CMakeLists.txt
+@@ -43,7 +43,7 @@ if (BUILD_SHARED_LIBS)
+     set (CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
+ endif()
+
+-set (CMAKE_CXX_STANDARD 17)
++set (CMAKE_CXX_STANDARD 20)
+ set (CMAKE_CXX_EXTENSIONS OFF)
+
+ if (NOT (BUILD_READERS OR BUILD_WRITERS))
diff --git a/debian/patches/series b/debian/patches/series
index 01506a0..c2859a6 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -3,3 +3,4 @@
 0004-Bump-SONAME-to-2.patch
 0005-test-update-to-libfmt-v9.0.0.patch
 0006-install-examples.patch
+0007-enable-c++20.patch
-- 
2.39.0

Attachment: pgppA04EERVzy.pgp
Description: OpenPGP digital signature

Reply via email to