forked from pool/zxing-cpp
Accepting request 754291 from home:marxin:branches:devel:libraries:c_c++
- Add add-missing-includes-of-stdexcept-header.patch in order to fix boo#1158377. OBS-URL: https://build.opensuse.org/request/show/754291 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/zxing-cpp?expand=0&rev=7
This commit is contained in:
parent
d10ddc8048
commit
42960f9e4c
98
add-missing-includes-of-stdexcept-header.patch
Normal file
98
add-missing-includes-of-stdexcept-header.patch
Normal file
@ -0,0 +1,98 @@
|
||||
diff --git a/core/src/datamatrix/DMBitMatrixParser.cpp b/core/src/datamatrix/DMBitMatrixParser.cpp
|
||||
index 4b8e94a..f4402d6 100644
|
||||
--- a/core/src/datamatrix/DMBitMatrixParser.cpp
|
||||
+++ b/core/src/datamatrix/DMBitMatrixParser.cpp
|
||||
@@ -22,6 +22,8 @@
|
||||
#include "DecodeStatus.h"
|
||||
#include "ByteArray.h"
|
||||
|
||||
+#include <stdexcept>
|
||||
+
|
||||
namespace ZXing {
|
||||
namespace DataMatrix {
|
||||
|
||||
diff --git a/core/src/oned/ODCode128Writer.cpp b/core/src/oned/ODCode128Writer.cpp
|
||||
index fc3cac3..eb7bb2c 100644
|
||||
--- a/core/src/oned/ODCode128Writer.cpp
|
||||
+++ b/core/src/oned/ODCode128Writer.cpp
|
||||
@@ -21,6 +21,7 @@
|
||||
|
||||
#include <list>
|
||||
#include <numeric>
|
||||
+#include <stdexcept>
|
||||
|
||||
namespace ZXing {
|
||||
namespace OneD {
|
||||
diff --git a/core/src/oned/ODCode39Writer.cpp b/core/src/oned/ODCode39Writer.cpp
|
||||
index 30b5aba..e8472db 100644
|
||||
--- a/core/src/oned/ODCode39Writer.cpp
|
||||
+++ b/core/src/oned/ODCode39Writer.cpp
|
||||
@@ -20,6 +20,7 @@
|
||||
#include "ZXContainerAlgorithms.h"
|
||||
|
||||
#include <array>
|
||||
+#include <stdexcept>
|
||||
|
||||
namespace ZXing {
|
||||
namespace OneD {
|
||||
diff --git a/core/src/oned/ODCode93Writer.cpp b/core/src/oned/ODCode93Writer.cpp
|
||||
index 8ad8ca5..90970a5 100644
|
||||
--- a/core/src/oned/ODCode93Writer.cpp
|
||||
+++ b/core/src/oned/ODCode93Writer.cpp
|
||||
@@ -21,6 +21,7 @@
|
||||
#include "ZXTestSupport.h"
|
||||
|
||||
#include <array>
|
||||
+#include <stdexcept>
|
||||
|
||||
namespace ZXing {
|
||||
namespace OneD {
|
||||
diff --git a/core/src/oned/ODITFWriter.cpp b/core/src/oned/ODITFWriter.cpp
|
||||
index c33fba8..62c3f15 100644
|
||||
--- a/core/src/oned/ODITFWriter.cpp
|
||||
+++ b/core/src/oned/ODITFWriter.cpp
|
||||
@@ -18,6 +18,7 @@
|
||||
#include "oned/ODWriterHelper.h"
|
||||
|
||||
#include <array>
|
||||
+#include <stdexcept>
|
||||
|
||||
namespace ZXing {
|
||||
namespace OneD {
|
||||
diff --git a/core/src/pdf417/PDFCodewordDecoder.cpp b/core/src/pdf417/PDFCodewordDecoder.cpp
|
||||
index 1a15247..c96c60b 100644
|
||||
--- a/core/src/pdf417/PDFCodewordDecoder.cpp
|
||||
+++ b/core/src/pdf417/PDFCodewordDecoder.cpp
|
||||
@@ -20,6 +20,7 @@
|
||||
#include <vector>
|
||||
#include <numeric>
|
||||
#include <limits>
|
||||
+#include <stdexcept>
|
||||
|
||||
namespace ZXing {
|
||||
namespace Pdf417 {
|
||||
diff --git a/core/src/pdf417/PDFEncoder.cpp b/core/src/pdf417/PDFEncoder.cpp
|
||||
index 2d32147..1942fcd 100644
|
||||
--- a/core/src/pdf417/PDFEncoder.cpp
|
||||
+++ b/core/src/pdf417/PDFEncoder.cpp
|
||||
@@ -21,6 +21,7 @@
|
||||
#include <array>
|
||||
#include <cmath>
|
||||
#include <vector>
|
||||
+#include <stdexcept>
|
||||
|
||||
namespace ZXing {
|
||||
namespace Pdf417 {
|
||||
diff --git a/core/src/qrcode/QRWriter.cpp b/core/src/qrcode/QRWriter.cpp
|
||||
index c48e4b0..a480acc 100644
|
||||
--- a/core/src/qrcode/QRWriter.cpp
|
||||
+++ b/core/src/qrcode/QRWriter.cpp
|
||||
@@ -22,6 +22,8 @@
|
||||
#include "BitMatrix.h"
|
||||
#include "CharacterSet.h"
|
||||
|
||||
+#include <stdexcept>
|
||||
+
|
||||
namespace ZXing {
|
||||
namespace QRCode {
|
||||
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Dec 5 08:57:46 UTC 2019 - Martin Liška <mliska@suse.cz>
|
||||
|
||||
- Add add-missing-includes-of-stdexcept-header.patch
|
||||
in order to fix boo#1158377.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu May 23 12:11:25 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package zxing-cpp
|
||||
#
|
||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2019 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -27,6 +27,7 @@ URL: https://github.com/nu-book/zxing-cpp/
|
||||
Source0: https://github.com/nu-book/zxing-cpp/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM
|
||||
Patch1: fix-library-installation-and-versioning.patch
|
||||
Patch2: add-missing-includes-of-stdexcept-header.patch
|
||||
BuildRequires: cmake
|
||||
BuildRequires: gcc-c++
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user