Package: yaml-cpp / 0.8.0+dfsg-9

Metadata

Package Version Patches format
yaml-cpp 0.8.0+dfsg-9 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
1035.patch | (download)

CMakeLists.txt | 1 1 + 0 - 0 !
test/CMakeLists.txt | 17 12 + 5 - 0 !
2 files changed, 13 insertions(+), 5 deletions(-)

 [patch] update cmakelists to use system googletest if available.

There is no need to use the embedded gtest code copy in Linux systems, if they already provide the googletest framework system-wide.
Search for it, and fallback to the embedded one if the system one is not detected.

This patch has been also contributed by Simon Quigley <tsimonq2@debian.org>

1216.patch | (download)

test/CMakeLists.txt | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 [patch] fix testsuite with gcc-13
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

cd /<<PKGBUILDDIR>>/build-static/test && /usr/bin/c++ -DYAML_CPP_STATIC_DEFINE -I/<<PKGBUILDDIR>>/test/integration -I/<<PKGBUILDDIR>>/test -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/include -isystem /usr/src/googletest/googlemock/include -isystem /usr/src/googletest/googlemock -isystem /usr/src/googletest/googletest/include -isystem /usr/src/googletest/googletest -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fdebug-prefix-map=/<<PKGBUILDDIR>>=/usr/src/yaml-cpp-0.8.0+dfsg-1~build1 -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu++14 -Wno-variadic-macros -Wno-sign-compare -DGTEST_HAS_PTHREAD=1 -MD -MT test/CMakeFiles/yaml-cpp-tests.dir/binary_test.cpp.o -MF CMakeFiles/yaml-cpp-tests.dir/binary_test.cpp.o.d -o CMakeFiles/yaml-cpp-tests.dir/binary_test.cpp.o -c /<<PKGBUILDDIR>>/test/binary_test.cpp
/<<PKGBUILDDIR>>/test/binary_test.cpp: In member function virtual void BinaryTest_DecodingNoCrashOnNegative_Test::TestBody():
/<<PKGBUILDDIR>>/test/binary_test.cpp:11:38: error: narrowing conversion of -58 from int to char [-Wnarrowing]
   11 |   std::string input{-58, -1, -99, 109};
      |                                      ^

1211.patch | (download)

CMakeLists.txt | 5 3 + 2 - 0 !
1 file changed, 3 insertions(+), 2 deletions(-)

 [patch] specify cmake policy range to avoid deprecation warning

CMake 3.27 started issuing a deprecation warning for any
cmake_minimum_required() call that specified a minimum
version older than 3.5. Specifying a version range instead of
a simple minimum version avoids that warning without
raising the minimum supported CMake version. The NEW
policy behavior will be used for all policies introduced up to
CMake 3.14 with this change.

1171.patch | (download)

test/CMakeLists.txt | 1 1 + 0 - 0 !
1 file changed, 1 insertion(+)

 [patch] don't install embedded copy of gtest

Goole Test itself documents the `INSTALL_GTEST` option as something that projects embedding it should set to `OFF`. Leaving it on means that projects downstream from libraries that embed it are likely to encounter conflicting copies. This is particularly annoying because GTest does not maintain anything like a stable API, and so causes builds to fail if include paths pick up an inappropriately installed copy ahead of the one that the code wanted.

Fixes #488

1351.patch | (download)

CMakeLists.txt | 6 3 + 3 - 0 !
test/CMakeLists.txt | 1 0 + 1 - 0 !
2 files changed, 3 insertions(+), 4 deletions(-)

 [patch 1/2] [cmake] require minimum cmake version 3.5

Soon CMake 4.0 will be released. It requires that projects
set a minimum required CMake version of 3.5. There is a
workaround with an additional flag, but it would is better
to increase the minimum required version.