diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
| commit | b590c8d7572b727d565cc0b8ff660d43569845de (patch) | |
| tree | 06f7a4102ea4e845df8b66660f252920d52952f9 /dev-cpp/yaml-cpp/files | |
| parent | 24f9cbfc4c34fdb6a6e03311674414e881ceab47 (diff) | |
| download | baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.gz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.xz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.zip | |
Adding metadata
Diffstat (limited to 'dev-cpp/yaml-cpp/files')
7 files changed, 193 insertions, 0 deletions
diff --git a/dev-cpp/yaml-cpp/files/yaml-cpp-0.8.0-cmake2.patch b/dev-cpp/yaml-cpp/files/yaml-cpp-0.8.0-cmake2.patch new file mode 100644 index 000000000000..220dc5452772 --- /dev/null +++ b/dev-cpp/yaml-cpp/files/yaml-cpp-0.8.0-cmake2.patch @@ -0,0 +1,39 @@ +https://bugs.gentoo.org/957557 +From c9371de7836d113c0b14bfa15ca70f00ebb3ac6f Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Christoph=20Gr=C3=BCninger?= <foss@grueninger.de> +Date: Mon, 24 Mar 2025 08:32:25 +0100 +Subject: [PATCH] [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. +--- + CMakeLists.txt | 6 +++--- + test/CMakeLists.txt | 1 - + 2 files changed, 3 insertions(+), 4 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 7e8a528d8..0df533a5a 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,5 +1,6 @@ +-# 3.5 is actually available almost everywhere, but this a good minimum +-cmake_minimum_required(VERSION 3.4) ++# 3.5 is actually available almost everywhere. ++# 3.30 as the upper policy limit avoids CMake deprecation warnings. ++cmake_minimum_required(VERSION 3.5...3.30) + + # enable MSVC_RUNTIME_LIBRARY target property + # see https://cmake.org/cmake/help/latest/policy/CMP0091.html +diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt +index 1c60c07c5..6949d29c1 100644 +--- a/test/CMakeLists.txt ++++ b/test/CMakeLists.txt +@@ -3,6 +3,5 @@ find_package(Threads REQUIRED) + set(gtest_force_shared_crt ON CACHE BOOL "" FORCE) + set(BUILD_MOCK ON CACHE BOOL "" FORCE) +-set(CMAKE_POLICY_DEFAULT_CMP0048 NEW) + + if(YAML_USE_SYSTEM_GTEST) + find_package(GTest) diff --git a/dev-cpp/yaml-cpp/files/yaml-cpp-0.8.0-gcc13.patch b/dev-cpp/yaml-cpp/files/yaml-cpp-0.8.0-gcc13.patch new file mode 100644 index 000000000000..f024b797eb47 --- /dev/null +++ b/dev-cpp/yaml-cpp/files/yaml-cpp-0.8.0-gcc13.patch @@ -0,0 +1,32 @@ +Fix test https://bugs.gentoo.org/917243 + +From fcbb8193b94921e058be7b563aea053531e5b2d9 Mon Sep 17 00:00:00 2001 +From: Gianfranco Costamagna <costamagnagianfranco@yahoo.it> +Date: Sat, 19 Aug 2023 21:36:16 +0200 +Subject: [PATCH] Fix testsuite with gcc-13 (#1216) +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}; + | ^ +--- + test/CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt +index 351b03f81..c9e7f041b 100644 +--- a/test/CMakeLists.txt ++++ b/test/CMakeLists.txt +@@ -33,7 +33,7 @@ target_include_directories(yaml-cpp-tests + target_compile_options(yaml-cpp-tests + PRIVATE + $<$<CXX_COMPILER_ID:Clang>:-Wno-c99-extensions -Wno-variadic-macros -Wno-sign-compare> +- $<$<CXX_COMPILER_ID:GNU>:-Wno-variadic-macros -Wno-sign-compare>) ++ $<$<CXX_COMPILER_ID:GNU>:-Wno-variadic-macros -Wno-sign-compare -Wno-narrowing>) + target_link_libraries(yaml-cpp-tests + PRIVATE + Threads::Threads diff --git a/dev-cpp/yaml-cpp/files/yaml-cpp-0.8.0-gtest.patch b/dev-cpp/yaml-cpp/files/yaml-cpp-0.8.0-gtest.patch new file mode 100644 index 000000000000..5386f8ec7c2f --- /dev/null +++ b/dev-cpp/yaml-cpp/files/yaml-cpp-0.8.0-gtest.patch @@ -0,0 +1,30 @@ +diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt +index c9e7f04..58973ea 100644 +--- a/test/CMakeLists.txt ++++ b/test/CMakeLists.txt +@@ -1,15 +1,10 @@ + find_package(Threads REQUIRED) ++find_package(GTest REQUIRED CONFIG) + + set(gtest_force_shared_crt ON CACHE BOOL "" FORCE) + set(BUILD_MOCK ON CACHE BOOL "" FORCE) + set(CMAKE_POLICY_DEFAULT_CMP0048 NEW) + +-add_subdirectory( +- "${CMAKE_CURRENT_SOURCE_DIR}/gtest-1.11.0" +- "${CMAKE_CURRENT_BINARY_DIR}/prefix") +- +-include_directories(SYSTEM "${CMAKE_CURRENT_SOURCE_DIR}/gtest-1.11.0/googletest/include") +- + set(test-new-api-pattern "new-api/*.cpp") + set(test-source-pattern "*.cpp" "integration/*.cpp" "node/*.cpp") + if (CMAKE_VERSION VERSION_GREATER 3.11) +@@ -38,7 +33,7 @@ target_link_libraries(yaml-cpp-tests + PRIVATE + Threads::Threads + yaml-cpp +- gmock) ++ GTest::gmock) + + set_property(TARGET yaml-cpp-tests PROPERTY CXX_STANDARD_REQUIRED ON) + if (NOT DEFINED CMAKE_CXX_STANDARD) diff --git a/dev-cpp/yaml-cpp/files/yaml-cpp-0.8.0-include-cstdint.patch b/dev-cpp/yaml-cpp/files/yaml-cpp-0.8.0-include-cstdint.patch new file mode 100644 index 000000000000..d017b43fa440 --- /dev/null +++ b/dev-cpp/yaml-cpp/files/yaml-cpp-0.8.0-include-cstdint.patch @@ -0,0 +1,33 @@ +https://github.com/jbeder/yaml-cpp/pull/1310 + +From: Christopher Fore <csfore@posteo.net> +Date: Wed, 14 Aug 2024 21:02:32 -0400 +Subject: [PATCH] emitterutils: Explicitly include <cstdint> + +GCC 15 will no longer include it by default, resulting in build +failures in projects that do not explicitly include it. + +Error: +src/emitterutils.cpp:221:11: error: 'uint16_t' was not declared in this scope + 221 | std::pair<uint16_t, uint16_t> EncodeUTF16SurrogatePair(int codePoint) { + | ^~~~~~~~ +src/emitterutils.cpp:13:1: note: 'uint16_t' is defined in header '<cstdint>'; +this is probably fixable by adding '#include <cstdint>' + 12 | #include "yaml-cpp/null.h" + +++ |+#include <cstdint> + 13 | #include "yaml-cpp/ostream_wrapper.h" + +Tests pass. + +Closes: #1307 +See-also: https://gcc.gnu.org/pipermail/gcc-cvs/2024-August/407124.html +See-also: https://bugs.gentoo.org/937412 +Signed-off-by: Christopher Fore <csfore@posteo.net> +--- a/src/emitterutils.cpp ++++ b/src/emitterutils.cpp +@@ -1,4 +1,5 @@ + #include <algorithm> ++#include <cstdint> + #include <iomanip> + #include <sstream> + diff --git a/dev-cpp/yaml-cpp/files/yaml-cpp-0.9.0-cmakever.patch b/dev-cpp/yaml-cpp/files/yaml-cpp-0.9.0-cmakever.patch new file mode 100644 index 000000000000..0d6b98dc273a --- /dev/null +++ b/dev-cpp/yaml-cpp/files/yaml-cpp-0.9.0-cmakever.patch @@ -0,0 +1,10 @@ +https://github.com/jbeder/yaml-cpp/pull/1400 + +--- a/test/cmake/CMakeLists.txt ++++ b/test/cmake/CMakeLists.txt +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 3.5) ++cmake_minimum_required(VERSION 3.5...3.30) + project(yaml-cpp-consumer LANGUAGES CXX) + + find_package(yaml-cpp CONFIG REQUIRED) diff --git a/dev-cpp/yaml-cpp/files/yaml-cpp-0.9.0-cxxstd.patch b/dev-cpp/yaml-cpp/files/yaml-cpp-0.9.0-cxxstd.patch new file mode 100644 index 000000000000..b499af84e6c9 --- /dev/null +++ b/dev-cpp/yaml-cpp/files/yaml-cpp-0.9.0-cxxstd.patch @@ -0,0 +1,25 @@ +dev-cpp/gtest requires c++ 17+ +https://github.com/jbeder/yaml-cpp/pull/1374 + +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -105,7 +105,7 @@ target_include_directories(yaml-cpp + if (NOT DEFINED CMAKE_CXX_STANDARD) + set_target_properties(yaml-cpp + PROPERTIES +- CXX_STANDARD 11) ++ CXX_STANDARD 17) + endif() + + if(YAML_CPP_MAIN_PROJECT) +--- a/test/CMakeLists.txt ++++ b/test/CMakeLists.txt +@@ -49,7 +49,7 @@ target_link_libraries(yaml-cpp-tests + + set_property(TARGET yaml-cpp-tests PROPERTY CXX_STANDARD_REQUIRED ON) + if (NOT DEFINED CMAKE_CXX_STANDARD) +- set_target_properties(yaml-cpp-tests PROPERTIES CXX_STANDARD 11) ++ set_target_properties(yaml-cpp-tests PROPERTIES CXX_STANDARD 17) + endif() + + diff --git a/dev-cpp/yaml-cpp/files/yaml-cpp-0.9.0-precision.patch b/dev-cpp/yaml-cpp/files/yaml-cpp-0.9.0-precision.patch new file mode 100644 index 000000000000..8fecc8c28aa1 --- /dev/null +++ b/dev-cpp/yaml-cpp/files/yaml-cpp-0.9.0-precision.patch @@ -0,0 +1,24 @@ +https://github.com/jbeder/yaml-cpp/pull/1401 + +From 8d58b447fa7cafc3b9fdb5d4ca3e80239c111198 Mon Sep 17 00:00:00 2001 +From: Simon Gene Gottlieb <simon@gottliebtfreitag.de> +Date: Wed, 11 Feb 2026 17:55:43 +0100 +Subject: [PATCH] fix: floating point conversion on x86 (32bit) + +--- + src/fptostring.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/fptostring.cpp b/src/fptostring.cpp +index e1722aeed..9176d73bd 100644 +--- a/src/fptostring.cpp ++++ b/src/fptostring.cpp +@@ -28,7 +28,7 @@ namespace fp_formatting { + * assert(buffer[1] == '2'); + * assert(buffer[2] == '3'); + */ +-int ConvertToChars(char* begin, char* end, size_t value, int width=1) { ++int ConvertToChars(char* begin, char* end, uint64_t value, int width=1) { + // precondition of this function (will trigger in debug build) + assert(width >= 1); + assert(end >= begin); // end must be after begin |
