summaryrefslogtreecommitdiff
path: root/dev-cpp/yaml-cpp/files
diff options
context:
space:
mode:
Diffstat (limited to 'dev-cpp/yaml-cpp/files')
-rw-r--r--dev-cpp/yaml-cpp/files/yaml-cpp-0.8.0-cmake.patch32
-rw-r--r--dev-cpp/yaml-cpp/files/yaml-cpp-0.9.0-cmakever.patch10
-rw-r--r--dev-cpp/yaml-cpp/files/yaml-cpp-0.9.0-cxxstd.patch25
-rw-r--r--dev-cpp/yaml-cpp/files/yaml-cpp-0.9.0-precision.patch24
4 files changed, 59 insertions, 32 deletions
diff --git a/dev-cpp/yaml-cpp/files/yaml-cpp-0.8.0-cmake.patch b/dev-cpp/yaml-cpp/files/yaml-cpp-0.8.0-cmake.patch
deleted file mode 100644
index 52c6321983d7..000000000000
--- a/dev-cpp/yaml-cpp/files/yaml-cpp-0.8.0-cmake.patch
+++ /dev/null
@@ -1,32 +0,0 @@
-https://bugs.gentoo.org/951842
-https://github.com/jbeder/yaml-cpp/pull/1211
-
-From 8153a1add19018f65527faad3c4d3941705baf39 Mon Sep 17 00:00:00 2001
-From: Craig Scott <craig.scott@crascit.com>
-Date: Wed, 16 Aug 2023 15:55:44 +1000
-Subject: [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.
----
- CMakeLists.txt | 5 +++--
- 1 file changed, 3 insertions(+), 2 deletions(-)
-
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index 46dc18059..1ae92e2b7 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, but this a good minimum.
-+# 3.14 as the upper policy limit avoids CMake deprecation warnings.
-+cmake_minimum_required(VERSION 3.4...3.14)
-
- # enable MSVC_RUNTIME_LIBRARY target property
- # see https://cmake.org/cmake/help/latest/policy/CMP0091.html
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..d017b11d0ac1
--- /dev/null
+++ b/dev-cpp/yaml-cpp/files/yaml-cpp-0.9.0-cxxstd.patch
@@ -0,0 +1,25 @@
+dev-cpp/gtest requires c++ 14+
+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 14)
+ 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 14)
+ 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