Bug 1181915

Summary: GCC 11: zxing-cpp package fails
Product: [openSUSE] openSUSE Tumbleweed Reporter: Martin Liška <martin.liska>
Component: BasesystemAssignee: Christophe Marin <christophe>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on:    
Bug Blocks: 1181859    

Description Martin Liška 2021-02-08 07:47:46 UTC
The package fails here:
https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:Gcc7/zxing-cpp/standard/x86_64

with:
[   28s] /home/abuild/rpmbuild/BUILD/zxing-cpp-1.1.0/core/src/Pattern.h:210:54: error: 'numeric_limits' is not a member of 'std'
[   28s]   210 |         int spaceInPixel = view.isAtLastBar() ? std::numeric_limits<int>::max() : *view.end();
[   28s]       |                                                      ^~~~~~~~~~~~~~
[   28s] /home/abuild/rpmbuild/BUILD/zxing-cpp-1.1.0/core/src/Pattern.h:210:69: error: expected primary-expression before 'int'
[   28s]   210 |         int spaceInPixel = view.isAtLastBar() ? std::numeric_limits<int>::max() : *view.end();
[   28s]       |                                                                     ^~~
[   28s] /home/abuild/rpmbuild/BUILD/zxing-cpp-1.1.0/core/src/Pattern.h:210:69: error: expected ':' before 'int'
[   28s]   210 |         int spaceInPixel = view.isAtLastBar() ? std::numeric_limits<int>::max() : *view.end();
[   28s]       |                                                                     ^~~
[   28s]       |                                                                     :
[   28s] /home/abuild/rpmbuild/BUILD/zxing-cpp-1.1.0/core/src/Pattern.h:210:69: error: expected primary-expression before 'int'
[   28s]   210 |         int spaceInPixel = view.isAtLastBar() ? std::numeric_limits<int>::max() : *view.end();
[   28s]       |                                                                     ^~~
[   28s] /home/abuild/rpmbuild/BUILD/zxing-cpp-1.1.0/core/src/Pattern.h: In function 'ZXing::PatternView ZXing::FindLeftGuard(const ZXing::PatternView&, int, Pred)':
[   28s] /home/abuild/rpmbuild/BUILD/zxing-cpp-1.1.0/core/src/Pattern.h:218:59: error: 'numeric_limits' is not a member of 'std'
[   28s]   218 |         if (window.isAtFirstBar() && isGuard(window, std::numeric_limits<int>::max()))
[   28s]       |                                                           ^~~~~~~~~~~~~~
[   28s] /home/abuild/rpmbuild/BUILD/zxing-cpp-1.1.0/core/src/Pattern.h:218:74: error: expected primary-expression before 'int'
[   28s]   218 |         if (window.isAtFirstBar() && isGuard(window, std::numeric_limits<int>::max()))
[   28s]       |                                                                          ^~~
[   28s] make[2]: *** [core/CMakeFiles/ZXing.dir/build.make:111: core/CMakeFiles/ZXing.dir/src/BitMatrix.cpp.o] Error 1
[   28s] make[2]: Leaving directory '/home/abuild/rpmbuild/BUILD/zxing-cpp-1.1.0/build'
[   28s] make[2]: *** Waiting for unfinished jobs....
Comment 1 Christophe Marin 2021-02-09 08:22:15 UTC
https://build.opensuse.org/request/show/870409
Comment 2 Christophe Marin 2021-02-21 21:00:50 UTC
Fixed
Comment 4 Swamp Workflow Management 2022-01-10 11:17:06 UTC
SUSE-FU-2022:0039-1: An update that solves one vulnerability, contains one feature and has 9 fixes is now available.

Category: feature (moderate)
Bug References: 1158377,1180479,1181915,1182969,1183655,1186871,1187173,1187982,1189813,901968
CVE References: CVE-2014-3566
JIRA References: SLE-18213
Sources used:
SUSE Linux Enterprise Workstation Extension 12-SP5 (src):    libreoffice-7.2.3.2-48.11.4, libserf-1.3.9-9.5.3, zxing-cpp-1.2.0-8.3.3
SUSE Linux Enterprise Software Development Kit 12-SP5 (src):    libreoffice-7.2.3.2-48.11.4, libserf-1.3.9-9.5.3, zxing-cpp-1.2.0-8.3.3

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 5 Swamp Workflow Management 2022-01-18 20:19:22 UTC
SUSE-FU-2022:0122-1: An update that has 6 feature fixes and contains one feature can now be installed.

Category: feature (moderate)
Bug References: 1158377,1180479,1181915,1183655,1187982,1189813
CVE References: 
JIRA References: SLE-18214
Sources used:
SUSE Linux Enterprise Workstation Extension 15-SP3 (src):    zxing-cpp-1.2.0-9.4.1
SUSE Linux Enterprise Workstation Extension 15-SP2 (src):    libreoffice-7.2.3.2-49.11.7, zxing-cpp-1.2.0-9.4.1
SUSE Linux Enterprise Module for Packagehub Subpackages 15-SP3 (src):    zxing-cpp-1.2.0-9.4.1
SUSE Linux Enterprise Module for Packagehub Subpackages 15-SP2 (src):    zxing-cpp-1.2.0-9.4.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 6 Swamp Workflow Management 2022-01-18 20:24:26 UTC
openSUSE-FU-2022:0122-1: An update that has 6 feature fixes and contains one feature can now be installed.

Category: feature (moderate)
Bug References: 1158377,1180479,1181915,1183655,1187982,1189813
CVE References: 
JIRA References: SLE-18214
Sources used:
openSUSE Leap 15.3 (src):    zxing-cpp-1.2.0-9.4.1