Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package unittest-cpp for openSUSE:Factory checked in at 2022-08-30 14:50:09 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/unittest-cpp (Old) and /work/SRC/openSUSE:Factory/.unittest-cpp.new.2083 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "unittest-cpp" Tue Aug 30 14:50:09 2022 rev:2 rq:1000149 version:2.0.0 Changes: -------- --- /work/SRC/openSUSE:Factory/unittest-cpp/unittest-cpp.changes 2018-03-18 21:44:28.838500506 +0100 +++ /work/SRC/openSUSE:Factory/.unittest-cpp.new.2083/unittest-cpp.changes 2022-08-30 14:50:54.632339436 +0200 @@ -1,0 +2,9 @@ +Sun Aug 28 14:52:43 UTC 2022 - antoine.belv...@opensuse.org + +- Add unittest-cpp-2.0.0-gcc12.patch: Fix build with GCC 12. +- Remove unittest-cpp-2.0.0.tar.xz: It is created at build time + from obscpio. +- Remove unused project.diff. +- Refresh spec file. + +------------------------------------------------------------------- @@ -22,0 +32 @@ + Old: ---- unittest-cpp-2.0.0.tar.xz New: ---- unittest-cpp-2.0.0-gcc12.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ unittest-cpp.spec ++++++ --- /var/tmp/diff_new_pack.Zw8v1X/_old 2022-08-30 14:50:55.144340742 +0200 +++ /var/tmp/diff_new_pack.Zw8v1X/_new 2022-08-30 14:50:55.148340752 +0200 @@ -1,7 +1,7 @@ # # spec file for package unittest-cpp # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,25 +12,27 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # -Name: unittest-cpp %define lname libUnitTest++-2_0_0 +Name: unittest-cpp Version: 2.0.0 Release: 0 Summary: A unit testing framework for C++ License: MIT Group: Development/Libraries/C and C++ -Url: https://github.com/unittest-cpp +URL: https://github.com/unittest-cpp Source: %{name}-%{version}.tar.xz # PATCH-FIX-UPSTREAM correct lib64 install pathes Patch1: fix-install.patch Patch2: shared.patch +# PATCH-FIX-UPSTREAM unittest-cpp-2.0.0-gcc12.patch -- Fix build with GCC 12 (https://github.com/unittest-cpp/unittest-cpp/pull/185) +Patch3: unittest-cpp-2.0.0-gcc12.patch BuildRequires: cmake -BuildRequires: pkgconfig BuildRequires: gcc-c++ +BuildRequires: pkgconfig %description UnitTest++ is a unit testing framework for C++. It was designed @@ -60,9 +62,7 @@ application that use %{name}. %prep -%setup -q -%patch1 -p1 -%patch2 -p1 +%autosetup -p1 %build %cmake @@ -79,12 +79,11 @@ %postun -n %{lname} -p /sbin/ldconfig %files -n %{lname} -%defattr(-,root,root) %{_libdir}/libUnitTest++-2*.so %files devel -%defattr(-,root,root) -%doc AUTHORS LICENSE README.md +%license LICENSE +%doc AUTHORS README.md %{_includedir}/UnitTest++ %{_libdir}/pkgconfig/UnitTest++.pc %{_libdir}/cmake/ ++++++ unittest-cpp-2.0.0-gcc12.patch ++++++ >From f361c2a1034c02ba8059648f9a04662d6e2b5553 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich <sly...@gmail.com> Date: Tue, 23 Nov 2021 08:44:06 +0000 Subject: [PATCH] tests/TestTestRunner.cpp: avoid referencing yet unitialized member On recent gcc-12 snapshot build fails as: [ 52%] Building CXX object CMakeFiles/TestUnitTest++.dir/tests/TestTestRunner.cpp.o unittest-cpp/tests/TestTestRunner.cpp: In constructor '{anonymous}::FixtureBase::FixtureBase()': unittest-cpp/tests/TestTestRunner.cpp:48:19: error: member '{anonymous}::FixtureBase::reporter' is used uninitialized [-Werror=uninitialized] 48 | : runner(reporter) | ^~~~~~~~ cc1plus: all warnings being treated as errors On https://gcc.gnu.org/PR103375 Andrew suggested to match order of class members to avoid picking a member reference to yet unconstructed object. --- tests/TestTestRunner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/TestTestRunner.cpp b/tests/TestTestRunner.cpp index 86c672d..eb7a918 100644 --- a/tests/TestTestRunner.cpp +++ b/tests/TestTestRunner.cpp @@ -60,8 +60,8 @@ namespace return result; } - TestRunner runner; RecordingReporter reporter; + TestRunner runner; }; struct TestRunnerFixture : public FixtureBase