From 42960f9e4c91c066aad16c57be99d828c165e39750d225023c84da175ceb2100 Mon Sep 17 00:00:00 2001 From: Adam Majer Date: Mon, 9 Dec 2019 12:54:22 +0000 Subject: [PATCH] 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 --- ...missing-includes-of-stdexcept-header.patch | 98 +++++++++++++++++++ zxing-cpp.changes | 6 ++ zxing-cpp.spec | 3 +- 3 files changed, 106 insertions(+), 1 deletion(-) create mode 100644 add-missing-includes-of-stdexcept-header.patch diff --git a/add-missing-includes-of-stdexcept-header.patch b/add-missing-includes-of-stdexcept-header.patch new file mode 100644 index 0000000..f4f10bd --- /dev/null +++ b/add-missing-includes-of-stdexcept-header.patch @@ -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 ++ + 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 + #include ++#include + + 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 ++#include + + 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 ++#include + + 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 ++#include + + 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 + #include + #include ++#include + + 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 + #include + #include ++#include + + 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 ++ + namespace ZXing { + namespace QRCode { + diff --git a/zxing-cpp.changes b/zxing-cpp.changes index 67bec2b..129652e 100644 --- a/zxing-cpp.changes +++ b/zxing-cpp.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Dec 5 08:57:46 UTC 2019 - Martin Liška + +- Add add-missing-includes-of-stdexcept-header.patch + in order to fix boo#1158377. + ------------------------------------------------------------------- Thu May 23 12:11:25 UTC 2019 - Jan Engelhardt diff --git a/zxing-cpp.spec b/zxing-cpp.spec index 9b33ff9..9e03cea 100644 --- a/zxing-cpp.spec +++ b/zxing-cpp.spec @@ -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++