* [meta-openembedded][PATCH 02/20] jansson: Add patch for CMake 4+ compatibility
2025-07-08 19:56 [meta-openembedded][PATCH 01/20] cannelloni: Upgrade 1.1.0 -> 2.0.0 to allow CMake 4+ compatibility Alper Ak
@ 2025-07-08 19:56 ` Alper Ak
2025-07-08 19:56 ` [meta-openembedded][PATCH 03/20] cjson: " Alper Ak
` (18 subsequent siblings)
19 siblings, 0 replies; 30+ messages in thread
From: Alper Ak @ 2025-07-08 19:56 UTC (permalink / raw)
To: openembedded-devel; +Cc: Alper Ak
Fix:
| CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
| Compatibility with CMake < 3.5 has been removed from CMake.
|
| Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
| to tell CMake that the project requires at least <min> but has been updated
| to work with policies introduced by <max> or earlier.
|
| Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
|
|
| -- Configuring incomplete, errors occurred!
Signed-off-by: Alper Ak <alperyasinak1@gmail.com>
---
.../0002-allow-build-with-cmake-4.patch | 38 +++++++++++++++++++
.../jansson/jansson_2.14.1.bb | 1 +
2 files changed, 39 insertions(+)
create mode 100644 meta-oe/recipes-extended/jansson/jansson/0002-allow-build-with-cmake-4.patch
diff --git a/meta-oe/recipes-extended/jansson/jansson/0002-allow-build-with-cmake-4.patch b/meta-oe/recipes-extended/jansson/jansson/0002-allow-build-with-cmake-4.patch
new file mode 100644
index 0000000000..5264f26f81
--- /dev/null
+++ b/meta-oe/recipes-extended/jansson/jansson/0002-allow-build-with-cmake-4.patch
@@ -0,0 +1,38 @@
+From 5d7b2ced666b4fbccd0da6e06d504ae2960575c8 Mon Sep 17 00:00:00 2001
+From: Alper Ak <alperyasinak1@gmail.com>
+Date: Tue, 8 Jul 2025 14:54:08 +0300
+Subject: [PATCH] cmake: Set minimum required version to 3.5 for CMake 4+
+ compatibility
+
+| CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
+| Compatibility with CMake < 3.5 has been removed from CMake.
+|
+| Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
+| to tell CMake that the project requires at least <min> but has been updated
+| to work with policies introduced by <max> or earlier.
+|
+| Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
+|
+|
+| -- Configuring incomplete, errors occurred!
+
+Upstream-Status: Backport [https://github.com/akheron/jansson/commit/96d160df90016066d04d493d1d69639474ba4f20]
+
+Signed-off-by: Alper Ak <alperyasinak1@gmail.com>
+---
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 72f9762..d07412e 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-cmake_minimum_required (VERSION 3.1)
++cmake_minimum_required (VERSION 3.5)
+ project(jansson C)
+
+ # Options
+--
+2.43.0
+
diff --git a/meta-oe/recipes-extended/jansson/jansson_2.14.1.bb b/meta-oe/recipes-extended/jansson/jansson_2.14.1.bb
index 715b1af5c5..e0916759c6 100644
--- a/meta-oe/recipes-extended/jansson/jansson_2.14.1.bb
+++ b/meta-oe/recipes-extended/jansson/jansson_2.14.1.bb
@@ -7,6 +7,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=d9911525d4128bee234ee2d3ccaa2537"
SRC_URI = "https://github.com/akheron/${BPN}/releases/download/v${PV}/${BP}.tar.bz2 \
file://0001-Honour-multilib-paths.patch \
file://0001-Only-export-symbols-starting-with-json_-and-jansson_.patch \
+ file://0002-allow-build-with-cmake-4.patch \
"
SRC_URI[sha256sum] = "6bd82d3043dadbcd58daaf903d974891128d22aab7dada5d399cb39094af49ce"
--
2.43.0
^ permalink raw reply related [flat|nested] 30+ messages in thread* [meta-openembedded][PATCH 03/20] cjson: Add patch for CMake 4+ compatibility
2025-07-08 19:56 [meta-openembedded][PATCH 01/20] cannelloni: Upgrade 1.1.0 -> 2.0.0 to allow CMake 4+ compatibility Alper Ak
2025-07-08 19:56 ` [meta-openembedded][PATCH 02/20] jansson: Add patch for " Alper Ak
@ 2025-07-08 19:56 ` Alper Ak
2025-07-08 19:56 ` [meta-openembedded][PATCH 04/20] hiredis: Upgrade 1.2.0 -> 1.3.0 to allow " Alper Ak
` (17 subsequent siblings)
19 siblings, 0 replies; 30+ messages in thread
From: Alper Ak @ 2025-07-08 19:56 UTC (permalink / raw)
To: openembedded-devel; +Cc: Alper Ak
Fix:
| CMake Error at CMakeLists.txt:2 (cmake_minimum_required):
| Compatibility with CMake < 3.5 has been removed from CMake.
|
| Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
| to tell CMake that the project requires at least <min> but has been updated
| to work with policies introduced by <max> or earlier.
|
| Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
|
|
| -- Configuring incomplete, errors occurred!
Signed-off-by: Alper Ak <alperyasinak1@gmail.com>
---
.../cjson/0001-allow-build-with-cmake-4.patch | 41 +++++++++++++++++++
.../recipes-devtools/cjson/cjson_1.7.18.bb | 2 +-
2 files changed, 42 insertions(+), 1 deletion(-)
create mode 100644 meta-oe/recipes-devtools/cjson/cjson/0001-allow-build-with-cmake-4.patch
diff --git a/meta-oe/recipes-devtools/cjson/cjson/0001-allow-build-with-cmake-4.patch b/meta-oe/recipes-devtools/cjson/cjson/0001-allow-build-with-cmake-4.patch
new file mode 100644
index 0000000000..7bd608ca0a
--- /dev/null
+++ b/meta-oe/recipes-devtools/cjson/cjson/0001-allow-build-with-cmake-4.patch
@@ -0,0 +1,41 @@
+From 8622490d650ba4d107561a0e8f3cf881fa0247c7 Mon Sep 17 00:00:00 2001
+From: Alper Ak <alperyasinak1@gmail.com>
+Date: Tue, 8 Jul 2025 15:09:11 +0300
+Subject: [PATCH] cmake: Set minimum required version to 3.5 for CMake 4+
+ compatibility
+
+Fix:
+
+| CMake Error at CMakeLists.txt:2 (cmake_minimum_required):
+| Compatibility with CMake < 3.5 has been removed from CMake.
+|
+| Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
+| to tell CMake that the project requires at least <min> but has been updated
+| to work with policies introduced by <max> or earlier.
+|
+| Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
+|
+|
+| -- Configuring incomplete, errors occurred!
+
+Upstream-Status: Submitted [https://github.com/DaveGamble/cJSON/pull/935]
+
+Signed-off-by: Alper Ak <alperyasinak1@gmail.com>
+---
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 36a6cb5..9428da5 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1,5 +1,5 @@
+ set(CMAKE_LEGACY_CYGWIN_WIN32 0)
+-cmake_minimum_required(VERSION 3.0)
++cmake_minimum_required(VERSION 3.5)
+
+ project(cJSON
+ VERSION 1.7.18
+--
+2.43.0
+
diff --git a/meta-oe/recipes-devtools/cjson/cjson_1.7.18.bb b/meta-oe/recipes-devtools/cjson/cjson_1.7.18.bb
index 33c8c28531..7ece0065ba 100644
--- a/meta-oe/recipes-devtools/cjson/cjson_1.7.18.bb
+++ b/meta-oe/recipes-devtools/cjson/cjson_1.7.18.bb
@@ -6,10 +6,10 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=218947f77e8cb8e2fa02918dc41c50d0"
SRC_URI = "git://github.com/DaveGamble/cJSON.git;branch=master;protocol=https \
file://run-ptest \
+ file://0001-allow-build-with-cmake-4.patch \
"
SRCREV = "acc76239bee01d8e9c858ae2cab296704e52d916"
-
inherit cmake pkgconfig ptest
RDEPENDS:${PN}-ptest += "cmake"
--
2.43.0
^ permalink raw reply related [flat|nested] 30+ messages in thread* [meta-openembedded][PATCH 04/20] hiredis: Upgrade 1.2.0 -> 1.3.0 to allow CMake 4+ compatibility
2025-07-08 19:56 [meta-openembedded][PATCH 01/20] cannelloni: Upgrade 1.1.0 -> 2.0.0 to allow CMake 4+ compatibility Alper Ak
2025-07-08 19:56 ` [meta-openembedded][PATCH 02/20] jansson: Add patch for " Alper Ak
2025-07-08 19:56 ` [meta-openembedded][PATCH 03/20] cjson: " Alper Ak
@ 2025-07-08 19:56 ` Alper Ak
2025-07-08 19:56 ` [meta-openembedded][PATCH 05/20] libebml: Add patch for " Alper Ak
` (16 subsequent siblings)
19 siblings, 0 replies; 30+ messages in thread
From: Alper Ak @ 2025-07-08 19:56 UTC (permalink / raw)
To: openembedded-devel; +Cc: Alper Ak
Changelog:
https://github.com/redis/hiredis/releases/tag/v1.3.0
Fix:
| CMake Error at CMakeLists.txt:1 (CMAKE_MINIMUM_REQUIRED):
| Compatibility with CMake < 3.5 has been removed from CMake.
|
| Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
| to tell CMake that the project requires at least <min> but has been updated
| to work with policies introduced by <max> or earlier.
|
| Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
|
|
| -- Configuring incomplete, errors occurred!
Signed-off-by: Alper Ak <alperyasinak1@gmail.com>
---
.../hiredis/{hiredis_1.2.0.bb => hiredis_1.3.0.bb} | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
rename meta-oe/recipes-extended/hiredis/{hiredis_1.2.0.bb => hiredis_1.3.0.bb} (96%)
diff --git a/meta-oe/recipes-extended/hiredis/hiredis_1.2.0.bb b/meta-oe/recipes-extended/hiredis/hiredis_1.3.0.bb
similarity index 96%
rename from meta-oe/recipes-extended/hiredis/hiredis_1.2.0.bb
rename to meta-oe/recipes-extended/hiredis/hiredis_1.3.0.bb
index 8678447cf5..0cf03bfcda 100644
--- a/meta-oe/recipes-extended/hiredis/hiredis_1.2.0.bb
+++ b/meta-oe/recipes-extended/hiredis/hiredis_1.3.0.bb
@@ -8,8 +8,7 @@ SRC_URI = " \
git://github.com/redis/hiredis;protocol=https;branch=master \
file://run-ptest \
"
-SRCREV = "60e5075d4ac77424809f855ba3e398df7aacefe8"
-
+SRCREV = "ccad7ebaf99310957004661d1c5f82d2a33ebd10"
inherit cmake ptest
--
2.43.0
^ permalink raw reply related [flat|nested] 30+ messages in thread* [meta-openembedded][PATCH 05/20] libebml: Add patch for CMake 4+ compatibility
2025-07-08 19:56 [meta-openembedded][PATCH 01/20] cannelloni: Upgrade 1.1.0 -> 2.0.0 to allow CMake 4+ compatibility Alper Ak
` (2 preceding siblings ...)
2025-07-08 19:56 ` [meta-openembedded][PATCH 04/20] hiredis: Upgrade 1.2.0 -> 1.3.0 to allow " Alper Ak
@ 2025-07-08 19:56 ` Alper Ak
2025-07-08 19:56 ` [meta-openembedded][PATCH 06/20] qhull: " Alper Ak
` (15 subsequent siblings)
19 siblings, 0 replies; 30+ messages in thread
From: Alper Ak @ 2025-07-08 19:56 UTC (permalink / raw)
To: openembedded-devel; +Cc: Alper Ak
Fix:
| CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
| Compatibility with CMake < 3.5 has been removed from CMake.
|
| Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
| to tell CMake that the project requires at least <min> but has been updated
| to work with policies introduced by <max> or earlier.
|
| Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
|
|
| -- Configuring incomplete, errors occurred!
Signed-off-by: Alper Ak <alperyasinak1@gmail.com>
---
.../0001-allow-build-with-cmake-4.patch | 40 +++++++++++++++++++
.../recipes-mkv/libebml/libebml_1.4.5.bb | 5 ++-
2 files changed, 43 insertions(+), 2 deletions(-)
create mode 100644 meta-multimedia/recipes-mkv/libebml/libebml/0001-allow-build-with-cmake-4.patch
diff --git a/meta-multimedia/recipes-mkv/libebml/libebml/0001-allow-build-with-cmake-4.patch b/meta-multimedia/recipes-mkv/libebml/libebml/0001-allow-build-with-cmake-4.patch
new file mode 100644
index 0000000000..f62d412ac4
--- /dev/null
+++ b/meta-multimedia/recipes-mkv/libebml/libebml/0001-allow-build-with-cmake-4.patch
@@ -0,0 +1,40 @@
+From b54451a2cc63672284c7768ecf5562214826ea50 Mon Sep 17 00:00:00 2001
+From: Alper Ak <alperyasinak1@gmail.com>
+Date: Tue, 8 Jul 2025 17:15:08 +0300
+Subject: [PATCH] cmake: Set minimum required version to 3.5 for CMake 4+
+ compatibility
+
+Fix:
+
+| CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
+| Compatibility with CMake < 3.5 has been removed from CMake.
+|
+| Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
+| to tell CMake that the project requires at least <min> but has been updated
+| to work with policies introduced by <max> or earlier.
+|
+| Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
+|
+|
+| -- Configuring incomplete, errors occurred!
+
+Upstream-Status: Backport [https://github.com/Matroska-Org/libebml/commit/cc63f6b3ed2007a3ef04206a26f9ad5a657331bd]
+
+Signed-off-by: Alper Ak <alperyasinak1@gmail.com>
+---
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index b168a38..a8b789f 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-cmake_minimum_required(VERSION 3.1.2)
++cmake_minimum_required(VERSION 3.5)
+
+ project(ebml VERSION 1.4.5)
+
+--
+2.43.0
+
diff --git a/meta-multimedia/recipes-mkv/libebml/libebml_1.4.5.bb b/meta-multimedia/recipes-mkv/libebml/libebml_1.4.5.bb
index 4b439e2ca5..1bc56b788b 100644
--- a/meta-multimedia/recipes-mkv/libebml/libebml_1.4.5.bb
+++ b/meta-multimedia/recipes-mkv/libebml/libebml_1.4.5.bb
@@ -3,9 +3,10 @@ HOMEPAGE = "https://github.com/Matroska-Org/libebml"
LICENSE = "LGPL-2.1-only"
LIC_FILES_CHKSUM = "file://LICENSE.LGPL;md5=4fbd65380cdd255951079008b364516c"
-SRC_URI = "git://github.com/Matroska-Org/libebml.git;branch=v1.x;protocol=https"
-SRCREV = "1878e784321673561039a6a37076b2736f4dc98f"
+SRC_URI = "git://github.com/Matroska-Org/libebml.git;branch=v1.x;protocol=https \
+ file://0001-allow-build-with-cmake-4.patch"
+SRCREV = "1878e784321673561039a6a37076b2736f4dc98f"
inherit pkgconfig cmake dos2unix
--
2.43.0
^ permalink raw reply related [flat|nested] 30+ messages in thread* [meta-openembedded][PATCH 06/20] qhull: Add patch for CMake 4+ compatibility
2025-07-08 19:56 [meta-openembedded][PATCH 01/20] cannelloni: Upgrade 1.1.0 -> 2.0.0 to allow CMake 4+ compatibility Alper Ak
` (3 preceding siblings ...)
2025-07-08 19:56 ` [meta-openembedded][PATCH 05/20] libebml: Add patch for " Alper Ak
@ 2025-07-08 19:56 ` Alper Ak
2025-07-08 19:56 ` [meta-openembedded][PATCH 07/20] wavpack: Upgrade 5.6.0 -> 5.8.1 to allow " Alper Ak
` (14 subsequent siblings)
19 siblings, 0 replies; 30+ messages in thread
From: Alper Ak @ 2025-07-08 19:56 UTC (permalink / raw)
To: openembedded-devel; +Cc: Alper Ak
Fix:
| CMake Error at CMakeLists.txt:71 (cmake_minimum_required):
| Compatibility with CMake < 3.5 has been removed from CMake.
|
| Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
| to tell CMake that the project requires at least <min> but has been updated
| to work with policies introduced by <max> or earlier.
|
| Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
|
|
| -- Configuring incomplete, errors occurred!
Signed-off-by: Alper Ak <alperyasinak1@gmail.com>
---
.../qhull/0002-allow-build-with-cmake-4.patch | 43 +++++++++++++++++++
.../recipes-extended/qhull/qhull_2020.2.bb | 1 +
2 files changed, 44 insertions(+)
create mode 100644 meta-oe/recipes-extended/qhull/qhull/0002-allow-build-with-cmake-4.patch
diff --git a/meta-oe/recipes-extended/qhull/qhull/0002-allow-build-with-cmake-4.patch b/meta-oe/recipes-extended/qhull/qhull/0002-allow-build-with-cmake-4.patch
new file mode 100644
index 0000000000..5ca865316d
--- /dev/null
+++ b/meta-oe/recipes-extended/qhull/qhull/0002-allow-build-with-cmake-4.patch
@@ -0,0 +1,43 @@
+From 26db5aece1220e4142b5b82720123371a9223bc7 Mon Sep 17 00:00:00 2001
+From: Alper Ak <alperyasinak1@gmail.com>
+Date: Tue, 8 Jul 2025 17:44:57 +0300
+Subject: [PATCH] cmake: Set minimum required version to 3.5 for CMake 4+
+ compatibility
+
+Fix:
+
+| CMake Error at CMakeLists.txt:71 (cmake_minimum_required):
+| Compatibility with CMake < 3.5 has been removed from CMake.
+|
+| Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
+| to tell CMake that the project requires at least <min> but has been updated
+| to work with policies introduced by <max> or earlier.
+|
+| Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
+|
+|
+| -- Configuring incomplete, errors occurred!
+
+Upstream-Status: Backport [https://github.com/qhull/qhull/commit/62ccc56af071eaa478bef6ed41fd7a55d3bb2d80]
+
+Signed-off-by: Alper Ak <alperyasinak1@gmail.com>
+---
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index c2248f9..b2303c6 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -68,7 +68,7 @@
+ # $DateTime: 2020/09/03 21:26:22 $$Author: bbarber $
+
+ project(qhull)
+-cmake_minimum_required(VERSION 3.0)
++cmake_minimum_required(VERSION 3.5)
+
+ # Define qhull_VERSION in README.txt, Announce.txt, qh-get.htm, CMakeLists.txt
+ # qhull-zip.sh (twice), qhull-wiki.md, qhull-news.htm, File_id.diz, index.htm
+--
+2.43.0
+
diff --git a/meta-oe/recipes-extended/qhull/qhull_2020.2.bb b/meta-oe/recipes-extended/qhull/qhull_2020.2.bb
index 13638c391b..9efadbc7f4 100644
--- a/meta-oe/recipes-extended/qhull/qhull_2020.2.bb
+++ b/meta-oe/recipes-extended/qhull/qhull_2020.2.bb
@@ -6,6 +6,7 @@ LIC_FILES_CHKSUM = "file://COPYING.txt;md5=484ee0cacf0472e8b40225b116f6296c"
SRC_URI = "http://www.qhull.org/download/qhull-2020-src-8.0.2.tgz \
file://0001-Use-LIB_INSTALL_DIR-for-cmake-and-pkgconfig-files-to.patch \
+ file://0002-allow-build-with-cmake-4.patch \
"
SRC_URI[sha256sum] = "b5c2d7eb833278881b952c8a52d20179eab87766b00b865000469a45c1838b7e"
--
2.43.0
^ permalink raw reply related [flat|nested] 30+ messages in thread* [meta-openembedded][PATCH 07/20] wavpack: Upgrade 5.6.0 -> 5.8.1 to allow CMake 4+ compatibility
2025-07-08 19:56 [meta-openembedded][PATCH 01/20] cannelloni: Upgrade 1.1.0 -> 2.0.0 to allow CMake 4+ compatibility Alper Ak
` (4 preceding siblings ...)
2025-07-08 19:56 ` [meta-openembedded][PATCH 06/20] qhull: " Alper Ak
@ 2025-07-08 19:56 ` Alper Ak
2025-07-08 19:56 ` [meta-openembedded][PATCH 08/20] portaudio-v19: Add patch for " Alper Ak
` (13 subsequent siblings)
19 siblings, 0 replies; 30+ messages in thread
From: Alper Ak @ 2025-07-08 19:56 UTC (permalink / raw)
To: openembedded-devel; +Cc: Alper Ak
- Drop patches becaus already fixed in the newer version.
- The LICENSE file has changed so updated LIC_FILES_CHKSUM to match the new md5sum.
Changelog:
https://github.com/dbry/WavPack/blob/5.8.1/ChangeLog
Fix:
| CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
| Compatibility with CMake < 3.5 has been removed from CMake.
|
| Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
| to tell CMake that the project requires at least <min> but has been updated
| to work with policies introduced by <max> or earlier.
|
| Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
|
|
| -- Configuring incomplete, errors occurred!
Signed-off-by: Alper Ak <alperyasinak1@gmail.com>
---
.../wavpack/{wavpack_5.6.0.bb => wavpack_5.8.1.bb} | 11 +++--------
1 file changed, 3 insertions(+), 8 deletions(-)
rename meta-oe/recipes-multimedia/wavpack/{wavpack_5.6.0.bb => wavpack_5.8.1.bb} (56%)
diff --git a/meta-oe/recipes-multimedia/wavpack/wavpack_5.6.0.bb b/meta-oe/recipes-multimedia/wavpack/wavpack_5.8.1.bb
similarity index 56%
rename from meta-oe/recipes-multimedia/wavpack/wavpack_5.6.0.bb
rename to meta-oe/recipes-multimedia/wavpack/wavpack_5.8.1.bb
index 651fbc4192..63d0db1b67 100644
--- a/meta-oe/recipes-multimedia/wavpack/wavpack_5.6.0.bb
+++ b/meta-oe/recipes-multimedia/wavpack/wavpack_5.8.1.bb
@@ -1,16 +1,11 @@
DESCRIPTION = "WavPack is a completely open audio compression format providing lossless, high-quality lossy, and a unique hybrid compression mode."
LICENSE = "BSD-3-Clause"
-LIC_FILES_CHKSUM = "file://license.txt;md5=bb5d037e3ad41a3c84c9f2d8bb65a7b4"
+LIC_FILES_CHKSUM = "file://license.txt;md5=3a6eec695493cff01ff6f7b7888c5631"
DEPENDS = "openssl"
-SRC_URI = "git://github.com/dbry/WavPack.git;branch=master;protocol=https \
- file://set-soversion-and-version.patch \
- file://extract-libtool-and-convert-to-soversion.patch \
- "
-
-SRCREV = "e03e8e29dc618e08e7baba9636e57ba1254874ce"
-
+SRC_URI = "git://github.com/dbry/WavPack.git;branch=master;protocol=https"
+SRCREV = "4827b9889665b937b6ed71b9c6c0123152cd7a02"
inherit cmake pkgconfig lib_package
--
2.43.0
^ permalink raw reply related [flat|nested] 30+ messages in thread* [meta-openembedded][PATCH 08/20] portaudio-v19: Add patch for CMake 4+ compatibility
2025-07-08 19:56 [meta-openembedded][PATCH 01/20] cannelloni: Upgrade 1.1.0 -> 2.0.0 to allow CMake 4+ compatibility Alper Ak
` (5 preceding siblings ...)
2025-07-08 19:56 ` [meta-openembedded][PATCH 07/20] wavpack: Upgrade 5.6.0 -> 5.8.1 to allow " Alper Ak
@ 2025-07-08 19:56 ` Alper Ak
2025-07-08 19:56 ` [meta-openembedded][PATCH 09/20] yajl: Add patch for CMake 4+ compatibility and fix build issue Alper Ak
` (12 subsequent siblings)
19 siblings, 0 replies; 30+ messages in thread
From: Alper Ak @ 2025-07-08 19:56 UTC (permalink / raw)
To: openembedded-devel; +Cc: Alper Ak
- Since recipe uses a fixed release version and not a git snapshot, the "+git" suffix in PV is unnecessary and has been dropped.
Fix:
| CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
| Compatibility with CMake < 3.5 has been removed from CMake.
|
| Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
| to tell CMake that the project requires at least <min> but has been updated
| to work with policies introduced by <max> or earlier.
|
| Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
|
|
| -- Configuring incomplete, errors occurred!
Signed-off-by: Alper Ak <alperyasinak1@gmail.com>
---
.../0001-allow-build-with-cmake-4.patch | 40 +++++++++++++++++++
.../portaudio/portaudio-v19_19.7.0.bb | 6 +--
2 files changed, 42 insertions(+), 4 deletions(-)
create mode 100644 meta-oe/recipes-support/portaudio/portaudio-v19/0001-allow-build-with-cmake-4.patch
diff --git a/meta-oe/recipes-support/portaudio/portaudio-v19/0001-allow-build-with-cmake-4.patch b/meta-oe/recipes-support/portaudio/portaudio-v19/0001-allow-build-with-cmake-4.patch
new file mode 100644
index 0000000000..d6b17ce2be
--- /dev/null
+++ b/meta-oe/recipes-support/portaudio/portaudio-v19/0001-allow-build-with-cmake-4.patch
@@ -0,0 +1,40 @@
+From ff000097d226f21cf05a94c22459e55cf1f5c5c6 Mon Sep 17 00:00:00 2001
+From: Alper Ak <alperyasinak1@gmail.com>
+Date: Tue, 8 Jul 2025 18:06:03 +0300
+Subject: [PATCH] cmake: Set minimum required version to 3.5 for CMake 4+
+ compatibility
+
+Fix:
+
+| CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
+| Compatibility with CMake < 3.5 has been removed from CMake.
+|
+| Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
+| to tell CMake that the project requires at least <min> but has been updated
+| to work with policies introduced by <max> or earlier.
+|
+| Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
+|
+|
+| -- Configuring incomplete, errors occurred!
+
+Upstream-Status: Backport [https://github.com/PortAudio/portaudio/commit/ccd16c85e64d8c1a5462541388b6fbcaedbb1cad]
+
+Signed-off-by: Alper Ak <alperyasinak1@gmail.com>
+---
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 87d0bb8..eee16fd 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-cmake_minimum_required(VERSION 3.1.0)
++cmake_minimum_required(VERSION 3.5)
+ project(PortAudio VERSION 19.8)
+
+ #
+--
+2.43.0
+
diff --git a/meta-oe/recipes-support/portaudio/portaudio-v19_19.7.0.bb b/meta-oe/recipes-support/portaudio/portaudio-v19_19.7.0.bb
index 4451e96307..7376f7ca77 100644
--- a/meta-oe/recipes-support/portaudio/portaudio-v19_19.7.0.bb
+++ b/meta-oe/recipes-support/portaudio/portaudio-v19_19.7.0.bb
@@ -3,12 +3,10 @@ SECTION = "libs/multimedia"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=26107732c2ab637c5710446fcfaf02df"
-PV .= "+git"
-
-SRC_URI = "git://github.com/PortAudio/portaudio.git;branch=master;protocol=https"
+SRC_URI = "git://github.com/PortAudio/portaudio.git;branch=master;protocol=https \
+ file://0001-allow-build-with-cmake-4.patch"
SRCREV = "929e2e8f7af281c5eb4fa07758930d542ec43d97"
-
inherit cmake pkgconfig
EXTRA_OECMAKE += "-DBUILD_SHARED_LIBS=ON"
--
2.43.0
^ permalink raw reply related [flat|nested] 30+ messages in thread* [meta-openembedded][PATCH 09/20] yajl: Add patch for CMake 4+ compatibility and fix build issue
2025-07-08 19:56 [meta-openembedded][PATCH 01/20] cannelloni: Upgrade 1.1.0 -> 2.0.0 to allow CMake 4+ compatibility Alper Ak
` (6 preceding siblings ...)
2025-07-08 19:56 ` [meta-openembedded][PATCH 08/20] portaudio-v19: Add patch for " Alper Ak
@ 2025-07-08 19:56 ` Alper Ak
2025-07-09 10:43 ` [oe] " Gyorgy Sarvari
2025-07-08 19:56 ` [meta-openembedded][PATCH 10/20] rapidjson: Add patch for CMake 4+ compatibility Alper Ak
` (11 subsequent siblings)
19 siblings, 1 reply; 30+ messages in thread
From: Alper Ak @ 2025-07-08 19:56 UTC (permalink / raw)
To: openembedded-devel; +Cc: Alper Ak
- CMake 3.0 and newer disallow reading the LOCATION property of targets directly.
Instead, use the recommended $<TARGET_FILE:target> generator expression when
referencing the output binary in add_custom_command.
Fixes:
| CMake Error at CMakeLists.txt:15 (CMAKE_MINIMUM_REQUIRED):
| Compatibility with CMake < 3.5 has been removed from CMake.
|
| Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
| to tell CMake that the project requires at least <min> but has been updated
| to work with policies introduced by <max> or earlier.
|
| Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
|
|
| -- Configuring incomplete, errors occurred!
-----
| CMake Error at reformatter/CMakeLists.txt:38 (GET_TARGET_PROPERTY):
| The LOCATION property may not be read from target "json_reformat". Use the
| target name directly with add_custom_command, or use the generator
| expression $<TARGET_FILE>, as appropriate.
|
|
|
| CMake Error at verify/CMakeLists.txt:32 (GET_TARGET_PROPERTY):
| The LOCATION property may not be read from target "json_verify". Use the
| target name directly with add_custom_command, or use the generator
| expression $<TARGET_FILE>, as appropriate.
Signed-off-by: Alper Ak <alperyasinak1@gmail.com>
---
.../yajl/0001-allow-build-with-cmake-4.patch | 43 ++++++++++++
..._FILE-instead-of-LOCATION-property-f.patch | 67 +++++++++++++++++++
meta-oe/recipes-devtools/yajl/yajl_2.1.0.bb | 3 +-
3 files changed, 112 insertions(+), 1 deletion(-)
create mode 100644 meta-oe/recipes-devtools/yajl/yajl/0001-allow-build-with-cmake-4.patch
create mode 100644 meta-oe/recipes-devtools/yajl/yajl/0002-cmake-Use-TARGET_FILE-instead-of-LOCATION-property-f.patch
diff --git a/meta-oe/recipes-devtools/yajl/yajl/0001-allow-build-with-cmake-4.patch b/meta-oe/recipes-devtools/yajl/yajl/0001-allow-build-with-cmake-4.patch
new file mode 100644
index 0000000000..c62a846da9
--- /dev/null
+++ b/meta-oe/recipes-devtools/yajl/yajl/0001-allow-build-with-cmake-4.patch
@@ -0,0 +1,43 @@
+From 3dfd5276ab30ba7f6820cd4585d390c3706684b0 Mon Sep 17 00:00:00 2001
+From: Alper Ak <alperyasinak1@gmail.com>
+Date: Tue, 8 Jul 2025 18:17:56 +0300
+Subject: [PATCH] cmake: Set minimum required version to 3.5 for CMake 4+
+ compatibility
+
+Fix:
+
+| CMake Error at CMakeLists.txt:15 (CMAKE_MINIMUM_REQUIRED):
+| Compatibility with CMake < 3.5 has been removed from CMake.
+|
+| Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
+| to tell CMake that the project requires at least <min> but has been updated
+| to work with policies introduced by <max> or earlier.
+|
+| Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
+|
+|
+| -- Configuring incomplete, errors occurred!
+
+Upstream-Status: Submitted [https://github.com/lloyd/yajl/pull/256]
+
+Signed-off-by: Alper Ak <alperyasinak1@gmail.com>
+---
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 4c0a9be..a49e52c 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -12,7 +12,7 @@
+ # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+
+-CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
++CMAKE_MINIMUM_REQUIRED(VERSION 3.5)
+
+ PROJECT(YetAnotherJSONParser C)
+
+--
+2.43.0
+
diff --git a/meta-oe/recipes-devtools/yajl/yajl/0002-cmake-Use-TARGET_FILE-instead-of-LOCATION-property-f.patch b/meta-oe/recipes-devtools/yajl/yajl/0002-cmake-Use-TARGET_FILE-instead-of-LOCATION-property-f.patch
new file mode 100644
index 0000000000..8b64ffd7d1
--- /dev/null
+++ b/meta-oe/recipes-devtools/yajl/yajl/0002-cmake-Use-TARGET_FILE-instead-of-LOCATION-property-f.patch
@@ -0,0 +1,67 @@
+From 1b07726910d4ff7ce1829845471a066bb97dd411 Mon Sep 17 00:00:00 2001
+From: Alper Ak <alperyasinak1@gmail.com>
+Date: Tue, 8 Jul 2025 18:33:48 +0300
+Subject: [PATCH] cmake: Use $<TARGET_FILE> instead of LOCATION property for
+ binary path
+
+CMake 3.0 and newer disallow reading the LOCATION property of targets directly.
+Instead, use the recommended $<TARGET_FILE:target> generator expression when
+referencing the output binary in add_custom_command.
+
+Fix:
+
+| CMake Error at reformatter/CMakeLists.txt:38 (GET_TARGET_PROPERTY):
+| The LOCATION property may not be read from target "json_reformat". Use the
+| target name directly with add_custom_command, or use the generator
+| expression $<TARGET_FILE>, as appropriate.
+|
+|
+|
+| CMake Error at verify/CMakeLists.txt:32 (GET_TARGET_PROPERTY):
+| The LOCATION property may not be read from target "json_verify". Use the
+| target name directly with add_custom_command, or use the generator
+| expression $<TARGET_FILE>, as appropriate.
+
+Upstream-Status: Pending
+
+Signed-off-by: Alper Ak <alperyasinak1@gmail.com>
+---
+ reformatter/CMakeLists.txt | 5 +----
+ verify/CMakeLists.txt | 5 +----
+ 2 files changed, 2 insertions(+), 8 deletions(-)
+
+diff --git a/reformatter/CMakeLists.txt b/reformatter/CMakeLists.txt
+index 52a9bee..b202fa5 100644
+--- a/reformatter/CMakeLists.txt
++++ b/reformatter/CMakeLists.txt
+@@ -34,10 +34,7 @@ IF (NOT WIN32)
+ TARGET_LINK_LIBRARIES(json_reformat m)
+ ENDIF (NOT WIN32)
+
+-# copy the binary into the output directory
+-GET_TARGET_PROPERTY(binPath json_reformat LOCATION)
+-
+ ADD_CUSTOM_COMMAND(TARGET json_reformat POST_BUILD
+- COMMAND ${CMAKE_COMMAND} -E copy_if_different ${binPath} ${binDir})
++ COMMAND ${CMAKE_COMMAND} -E copy_if_different $<TARGET_FILE:json_reformat> ${binDir})
+
+ INSTALL(TARGETS json_reformat RUNTIME DESTINATION bin)
+diff --git a/verify/CMakeLists.txt b/verify/CMakeLists.txt
+index 967fca1..37eac62 100644
+--- a/verify/CMakeLists.txt
++++ b/verify/CMakeLists.txt
+@@ -28,10 +28,7 @@ ADD_EXECUTABLE(json_verify ${SRCS})
+
+ TARGET_LINK_LIBRARIES(json_verify yajl_s)
+
+-# copy in the binary
+-GET_TARGET_PROPERTY(binPath json_verify LOCATION)
+-
+ ADD_CUSTOM_COMMAND(TARGET json_verify POST_BUILD
+- COMMAND ${CMAKE_COMMAND} -E copy_if_different ${binPath} ${binDir})
++ COMMAND ${CMAKE_COMMAND} -E copy_if_different $<TARGET_FILE:json_verify> ${binDir})
+
+ INSTALL(TARGETS json_verify RUNTIME DESTINATION bin)
+--
+2.43.0
+
diff --git a/meta-oe/recipes-devtools/yajl/yajl_2.1.0.bb b/meta-oe/recipes-devtools/yajl/yajl_2.1.0.bb
index e4434bee45..8c0d84f811 100644
--- a/meta-oe/recipes-devtools/yajl/yajl_2.1.0.bb
+++ b/meta-oe/recipes-devtools/yajl/yajl_2.1.0.bb
@@ -12,10 +12,11 @@ SRC_URI = "git://github.com/lloyd/yajl;branch=master;protocol=https \
file://CVE-2017-16516.patch \
file://CVE-2022-24795.patch \
file://CVE-2023-33460.patch \
+ file://0001-allow-build-with-cmake-4.patch \
+ file://0002-cmake-Use-TARGET_FILE-instead-of-LOCATION-property-f.patch \
"
SRCREV = "a0ecdde0c042b9256170f2f8890dd9451a4240aa"
-
inherit cmake lib_package
EXTRA_OECMAKE = "-DLIB_SUFFIX=${@d.getVar('baselib').replace('lib', '')}"
--
2.43.0
^ permalink raw reply related [flat|nested] 30+ messages in thread* Re: [oe] [meta-openembedded][PATCH 09/20] yajl: Add patch for CMake 4+ compatibility and fix build issue
2025-07-08 19:56 ` [meta-openembedded][PATCH 09/20] yajl: Add patch for CMake 4+ compatibility and fix build issue Alper Ak
@ 2025-07-09 10:43 ` Gyorgy Sarvari
2025-07-09 10:52 ` Alper Ak
0 siblings, 1 reply; 30+ messages in thread
From: Gyorgy Sarvari @ 2025-07-09 10:43 UTC (permalink / raw)
To: alperyasinak1, openembedded-devel
On 7/8/25 21:56, Alper Ak via lists.openembedded.org wrote:
> +++ b/meta-oe/recipes-devtools/yajl/yajl/0001-allow-build-with-cmake-4.patch
> +Upstream-Status: Submitted [https://github.com/lloyd/yajl/pull/256]
Yes, okay, but...
> +
> +++ b/meta-oe/recipes-devtools/yajl/yajl/0002-cmake-Use-TARGET_FILE-instead-of-LOCATION-property-f.patch
> +Upstream-Status: Pending
> +
...this other patch is in the very same PR referenced in the first
patch, but the status is different. Shouldn't this be "Submitted" also,
like above?
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: [oe] [meta-openembedded][PATCH 09/20] yajl: Add patch for CMake 4+ compatibility and fix build issue
2025-07-09 10:43 ` [oe] " Gyorgy Sarvari
@ 2025-07-09 10:52 ` Alper Ak
2025-07-09 21:12 ` Alper Ak
0 siblings, 1 reply; 30+ messages in thread
From: Alper Ak @ 2025-07-09 10:52 UTC (permalink / raw)
To: Gyorgy Sarvari; +Cc: openembedded-devel
> ...this other patch is in the very same PR referenced in the first
> patch, but the status is different. Shouldn't this be "Submitted" also,
> like above?
Yes, it should be as you say. It even makes more sense to do it with a
single patch. I will send a fix.
Gyorgy Sarvari <skandigraun@gmail.com>, 9 Tem 2025 Çar, 13:43
tarihinde şunu yazdı:
>
> On 7/8/25 21:56, Alper Ak via lists.openembedded.org wrote:
> > +++ b/meta-oe/recipes-devtools/yajl/yajl/0001-allow-build-with-cmake-4.patch
> > +Upstream-Status: Submitted [https://github.com/lloyd/yajl/pull/256]
>
> Yes, okay, but...
>
> > +
> > +++ b/meta-oe/recipes-devtools/yajl/yajl/0002-cmake-Use-TARGET_FILE-instead-of-LOCATION-property-f.patch
> > +Upstream-Status: Pending
> > +
> ...this other patch is in the very same PR referenced in the first
> patch, but the status is different. Shouldn't this be "Submitted" also,
> like above?
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: [oe] [meta-openembedded][PATCH 09/20] yajl: Add patch for CMake 4+ compatibility and fix build issue
2025-07-09 10:52 ` Alper Ak
@ 2025-07-09 21:12 ` Alper Ak
0 siblings, 0 replies; 30+ messages in thread
From: Alper Ak @ 2025-07-09 21:12 UTC (permalink / raw)
To: Gyorgy Sarvari; +Cc: openembedded-devel
Sent a v2 patch ->
https://lists.openembedded.org/g/openembedded-devel/message/118386
Alper Ak <alperyasinak1@gmail.com>, 9 Tem 2025 Çar, 13:52 tarihinde şunu yazdı:
>
> > ...this other patch is in the very same PR referenced in the first
> > patch, but the status is different. Shouldn't this be "Submitted" also,
> > like above?
>
> Yes, it should be as you say. It even makes more sense to do it with a
> single patch. I will send a fix.
>
>
> Gyorgy Sarvari <skandigraun@gmail.com>, 9 Tem 2025 Çar, 13:43
> tarihinde şunu yazdı:
> >
> > On 7/8/25 21:56, Alper Ak via lists.openembedded.org wrote:
> > > +++ b/meta-oe/recipes-devtools/yajl/yajl/0001-allow-build-with-cmake-4.patch
> > > +Upstream-Status: Submitted [https://github.com/lloyd/yajl/pull/256]
> >
> > Yes, okay, but...
> >
> > > +
> > > +++ b/meta-oe/recipes-devtools/yajl/yajl/0002-cmake-Use-TARGET_FILE-instead-of-LOCATION-property-f.patch
> > > +Upstream-Status: Pending
> > > +
> > ...this other patch is in the very same PR referenced in the first
> > patch, but the status is different. Shouldn't this be "Submitted" also,
> > like above?
^ permalink raw reply [flat|nested] 30+ messages in thread
* [meta-openembedded][PATCH 10/20] rapidjson: Add patch for CMake 4+ compatibility
2025-07-08 19:56 [meta-openembedded][PATCH 01/20] cannelloni: Upgrade 1.1.0 -> 2.0.0 to allow CMake 4+ compatibility Alper Ak
` (7 preceding siblings ...)
2025-07-08 19:56 ` [meta-openembedded][PATCH 09/20] yajl: Add patch for CMake 4+ compatibility and fix build issue Alper Ak
@ 2025-07-08 19:56 ` Alper Ak
2025-07-08 19:56 ` [meta-openembedded][PATCH 11/20] gflags: " Alper Ak
` (10 subsequent siblings)
19 siblings, 0 replies; 30+ messages in thread
From: Alper Ak @ 2025-07-08 19:56 UTC (permalink / raw)
To: openembedded-devel; +Cc: Alper Ak
Fix:
| CMake Error at CMakeLists.txt:1 (CMAKE_MINIMUM_REQUIRED):
| Compatibility with CMake < 3.5 has been removed from CMake.
|
| Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
| to tell CMake that the project requires at least <min> but has been updated
| to work with policies introduced by <max> or earlier.
|
| Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
|
|
| -- Configuring incomplete, errors occurred!
Signed-off-by: Alper Ak <alperyasinak1@gmail.com>
---
.../0001-allow-build-with-cmake-4.patch | 40 +++++++++++++++++++
.../rapidjson/rapidjson_git.bb | 4 +-
2 files changed, 42 insertions(+), 2 deletions(-)
create mode 100644 meta-oe/recipes-devtools/rapidjson/rapidjson/0001-allow-build-with-cmake-4.patch
diff --git a/meta-oe/recipes-devtools/rapidjson/rapidjson/0001-allow-build-with-cmake-4.patch b/meta-oe/recipes-devtools/rapidjson/rapidjson/0001-allow-build-with-cmake-4.patch
new file mode 100644
index 0000000000..e40b9fe06c
--- /dev/null
+++ b/meta-oe/recipes-devtools/rapidjson/rapidjson/0001-allow-build-with-cmake-4.patch
@@ -0,0 +1,40 @@
+From b855b1632f9afe5199e01d84da54068a4cb152a8 Mon Sep 17 00:00:00 2001
+From: Alper Ak <alperyasinak1@gmail.com>
+Date: Tue, 8 Jul 2025 18:46:59 +0300
+Subject: [PATCH] cmake: Set minimum required version to 3.5 for CMake 4+
+ compatibility
+
+Fix:
+
+| CMake Error at CMakeLists.txt:1 (CMAKE_MINIMUM_REQUIRED):
+| Compatibility with CMake < 3.5 has been removed from CMake.
+|
+| Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
+| to tell CMake that the project requires at least <min> but has been updated
+| to work with policies introduced by <max> or earlier.
+|
+| Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
+|
+|
+| -- Configuring incomplete, errors occurred!
+
+Upstream-Status: Backport [https://github.com/Tencent/rapidjson/commit/ebd87cb468fb4cb060b37e579718c4a4125416c1]
+
+Signed-off-by: Alper Ak <alperyasinak1@gmail.com>
+---
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 3b9ac512..6d4121e9 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
++CMAKE_MINIMUM_REQUIRED(VERSION 3.5)
+ if(POLICY CMP0025)
+ # detect Apple's Clang
+ cmake_policy(SET CMP0025 NEW)
+--
+2.43.0
+
diff --git a/meta-oe/recipes-devtools/rapidjson/rapidjson_git.bb b/meta-oe/recipes-devtools/rapidjson/rapidjson_git.bb
index 724d329ee2..92858044c1 100644
--- a/meta-oe/recipes-devtools/rapidjson/rapidjson_git.bb
+++ b/meta-oe/recipes-devtools/rapidjson/rapidjson_git.bb
@@ -4,13 +4,13 @@ SECTION = "libs"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://license.txt;md5=ba04aa8f65de1396a7e59d1d746c2125"
-SRC_URI = "git://github.com/miloyip/rapidjson.git;branch=master;protocol=https"
+SRC_URI = "git://github.com/miloyip/rapidjson.git;branch=master;protocol=https \
+ file://0001-allow-build-with-cmake-4.patch"
SRCREV = "0ccdbf364c577803e2a751f5aededce935314313"
PV = "1.1.0+git"
-
inherit cmake
EXTRA_OECMAKE += "-DRAPIDJSON_BUILD_DOC=OFF -DRAPIDJSON_BUILD_TESTS=OFF -DRAPIDJSON_BUILD_EXAMPLES=OFF"
--
2.43.0
^ permalink raw reply related [flat|nested] 30+ messages in thread* [meta-openembedded][PATCH 11/20] gflags: Add patch for CMake 4+ compatibility
2025-07-08 19:56 [meta-openembedded][PATCH 01/20] cannelloni: Upgrade 1.1.0 -> 2.0.0 to allow CMake 4+ compatibility Alper Ak
` (8 preceding siblings ...)
2025-07-08 19:56 ` [meta-openembedded][PATCH 10/20] rapidjson: Add patch for CMake 4+ compatibility Alper Ak
@ 2025-07-08 19:56 ` Alper Ak
2025-07-08 19:56 ` [meta-openembedded][PATCH 12/20] libfann: " Alper Ak
` (9 subsequent siblings)
19 siblings, 0 replies; 30+ messages in thread
From: Alper Ak @ 2025-07-08 19:56 UTC (permalink / raw)
To: openembedded-devel; +Cc: Alper Ak
Fix:
| CMake Error at CMakeLists.txt:73 (cmake_minimum_required):
| Compatibility with CMake < 3.5 has been removed from CMake.
|
| Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
| to tell CMake that the project requires at least <min> but has been updated
| to work with policies introduced by <max> or earlier.
|
| Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
|
|
| -- Configuring incomplete, errors occurred!
Signed-off-by: Alper Ak <alperyasinak1@gmail.com>
---
.../0001-allow-build-with-cmake-4.patch | 69 +++++++++++++++++++
.../recipes-support/gflags/gflags_2.2.2.bb | 4 +-
2 files changed, 71 insertions(+), 2 deletions(-)
create mode 100644 meta-oe/recipes-support/gflags/gflags/0001-allow-build-with-cmake-4.patch
diff --git a/meta-oe/recipes-support/gflags/gflags/0001-allow-build-with-cmake-4.patch b/meta-oe/recipes-support/gflags/gflags/0001-allow-build-with-cmake-4.patch
new file mode 100644
index 0000000000..bc3ca94de8
--- /dev/null
+++ b/meta-oe/recipes-support/gflags/gflags/0001-allow-build-with-cmake-4.patch
@@ -0,0 +1,69 @@
+From b533cf275db99b1d37ba20d96497cafcedc9ace0 Mon Sep 17 00:00:00 2001
+From: Alper Ak <alperyasinak1@gmail.com>
+Date: Tue, 8 Jul 2025 18:57:26 +0300
+Subject: [PATCH] cmake: Set minimum required version to 3.5 for CMake 4+
+ compatibility
+
+Fix:
+
+| CMake Error at CMakeLists.txt:73 (cmake_minimum_required):
+| Compatibility with CMake < 3.5 has been removed from CMake.
+|
+| Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
+| to tell CMake that the project requires at least <min> but has been updated
+| to work with policies introduced by <max> or earlier.
+|
+| Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
+|
+|
+| -- Configuring incomplete, errors occurred!
+
+Upstream-Status: Backport [https://github.com/gflags/gflags/commit/70c01a642f08734b7bddc9687884844ca117e080]
+
+Signed-off-by: Alper Ak <alperyasinak1@gmail.com>
+---
+ CMakeLists.txt | 2 +-
+ test/config/CMakeLists.txt | 2 +-
+ test/nc/CMakeLists.txt | 2 +-
+ 3 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 657a1f4..a5440bb 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -70,7 +70,7 @@
+ ## - GFLAGS_INSTALL_SHARED_LIBS
+ ## - GFLAGS_INSTALL_STATIC_LIBS
+
+-cmake_minimum_required (VERSION 3.0.2 FATAL_ERROR)
++cmake_minimum_required (VERSION 3.5 FATAL_ERROR)
+
+ if (POLICY CMP0042)
+ cmake_policy (SET CMP0042 NEW)
+diff --git a/test/config/CMakeLists.txt b/test/config/CMakeLists.txt
+index 6190b25..205121e 100644
+--- a/test/config/CMakeLists.txt
++++ b/test/config/CMakeLists.txt
+@@ -1,6 +1,6 @@
+ ## gflags package configuration tests
+
+-cmake_minimum_required (VERSION 2.8.12 FATAL_ERROR)
++cmake_minimum_required (VERSION 3.5 FATAL_ERROR)
+
+ project (gflags_${TEST_NAME})
+
+diff --git a/test/nc/CMakeLists.txt b/test/nc/CMakeLists.txt
+index d00b07d..1b4d511 100644
+--- a/test/nc/CMakeLists.txt
++++ b/test/nc/CMakeLists.txt
+@@ -1,6 +1,6 @@
+ ## gflags negative compilation tests
+
+-cmake_minimum_required (VERSION 2.8.12 FATAL_ERROR)
++cmake_minimum_required (VERSION 3.5 FATAL_ERROR)
+
+ if (NOT TEST_NAME)
+ message (FATAL_ERROR "Missing TEST_NAME CMake flag")
+--
+2.43.0
+
diff --git a/meta-oe/recipes-support/gflags/gflags_2.2.2.bb b/meta-oe/recipes-support/gflags/gflags_2.2.2.bb
index 8ea158eab3..925aa6d6e6 100644
--- a/meta-oe/recipes-support/gflags/gflags_2.2.2.bb
+++ b/meta-oe/recipes-support/gflags/gflags_2.2.2.bb
@@ -3,10 +3,10 @@ HOMEPAGE = "https://github.com/gflags/gflags"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://COPYING.txt;md5=c80d1a3b623f72bb85a4c75b556551df"
-SRC_URI = "git://github.com/gflags/gflags.git;branch=master;protocol=https"
+SRC_URI = "git://github.com/gflags/gflags.git;branch=master;protocol=https \
+ file://0001-allow-build-with-cmake-4.patch"
SRCREV = "e171aa2d15ed9eb17054558e0b3a6a413bb01067"
-
inherit cmake
EXTRA_OECMAKE = "-DBUILD_SHARED_LIBS=ON -DREGISTER_INSTALL_PREFIX=OFF -DLIB_INSTALL_DIR=${baselib}"
--
2.43.0
^ permalink raw reply related [flat|nested] 30+ messages in thread* [meta-openembedded][PATCH 12/20] libfann: Add patch for CMake 4+ compatibility
2025-07-08 19:56 [meta-openembedded][PATCH 01/20] cannelloni: Upgrade 1.1.0 -> 2.0.0 to allow CMake 4+ compatibility Alper Ak
` (9 preceding siblings ...)
2025-07-08 19:56 ` [meta-openembedded][PATCH 11/20] gflags: " Alper Ak
@ 2025-07-08 19:56 ` Alper Ak
2025-07-08 19:56 ` [meta-openembedded][PATCH 13/20] uchardet: " Alper Ak
` (8 subsequent siblings)
19 siblings, 0 replies; 30+ messages in thread
From: Alper Ak @ 2025-07-08 19:56 UTC (permalink / raw)
To: openembedded-devel; +Cc: Alper Ak
Fix:
| CMake Error at CMakeLists.txt:41 (cmake_minimum_required):
| Compatibility with CMake < 3.5 has been removed from CMake.
|
| Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
| to tell CMake that the project requires at least <min> but has been updated
| to work with policies introduced by <max> or earlier.
|
| Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
|
|
| -- Configuring incomplete, errors occurred!
| CMake Error at lib/googletest/CMakeLists.txt:48 (cmake_minimum_required):
| Compatibility with CMake < 3.5 has been removed from CMake.
|
| Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
| to tell CMake that the project requires at least <min> but has been updated
| to work with policies introduced by <max> or earlier.
|
| Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
|
|
| -- Configuring incomplete, errors occurred!
Signed-off-by: Alper Ak <alperyasinak1@gmail.com>
---
.../0001-allow-build-with-cmake-4.patch | 69 +++++++++++++++++++
.../recipes-support/libfann/libfann_git.bb | 3 +-
2 files changed, 70 insertions(+), 2 deletions(-)
create mode 100644 meta-oe/recipes-support/libfann/libfann/0001-allow-build-with-cmake-4.patch
diff --git a/meta-oe/recipes-support/libfann/libfann/0001-allow-build-with-cmake-4.patch b/meta-oe/recipes-support/libfann/libfann/0001-allow-build-with-cmake-4.patch
new file mode 100644
index 0000000000..db1600f96c
--- /dev/null
+++ b/meta-oe/recipes-support/libfann/libfann/0001-allow-build-with-cmake-4.patch
@@ -0,0 +1,69 @@
+From a21c8455e2cfc5b19df1e42cd875c471d4e5cf63 Mon Sep 17 00:00:00 2001
+From: Alper Ak <alperyasinak1@gmail.com>
+Date: Tue, 8 Jul 2025 19:40:46 +0300
+Subject: [PATCH] cmake: Set minimum required version to 3.5 for CMake 4+
+ compatibility
+
+Fix:
+
+| CMake Error at CMakeLists.txt:41 (cmake_minimum_required):
+| Compatibility with CMake < 3.5 has been removed from CMake.
+|
+| Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
+| to tell CMake that the project requires at least <min> but has been updated
+| to work with policies introduced by <max> or earlier.
+|
+| Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
+|
+|
+| -- Configuring incomplete, errors occurred!
+
+| CMake Error at lib/googletest/CMakeLists.txt:48 (cmake_minimum_required):
+| Compatibility with CMake < 3.5 has been removed from CMake.
+|
+| Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
+| to tell CMake that the project requires at least <min> but has been updated
+| to work with policies introduced by <max> or earlier.
+|
+| Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
+|
+|
+| -- Configuring incomplete, errors occurred!
+
+Upstream-Status: Submitted [https://github.com/libfann/fann/pull/152]
+
+Signed-off-by: Alper Ak <alperyasinak1@gmail.com>
+---
+ CMakeLists.txt | 2 +-
+ lib/googletest/CMakeLists.txt | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 1b11d76..7e80be2 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -38,7 +38,7 @@ IF(BIICODE)
+ ENDIF()
+ ENDIF()
+ ELSE()
+-cmake_minimum_required (VERSION 2.8)
++cmake_minimum_required (VERSION 3.5)
+
+ if (NOT DEFINED CMAKE_BUILD_TYPE)
+ set (CMAKE_BUILD_TYPE Release CACHE STRING "Build type")
+diff --git a/lib/googletest/CMakeLists.txt b/lib/googletest/CMakeLists.txt
+index 961672a..3762d18 100644
+--- a/lib/googletest/CMakeLists.txt
++++ b/lib/googletest/CMakeLists.txt
+@@ -45,7 +45,7 @@ endif()
+ # ${gtest_BINARY_DIR}.
+ # Language "C" is required for find_package(Threads).
+ project(gtest CXX C)
+-cmake_minimum_required(VERSION 2.6.2)
++cmake_minimum_required(VERSION 3.5)
+
+ if (COMMAND set_up_hermetic_build)
+ set_up_hermetic_build()
+--
+2.43.0
+
diff --git a/meta-oe/recipes-support/libfann/libfann_git.bb b/meta-oe/recipes-support/libfann/libfann_git.bb
index 2f68ea95a8..00b2af3829 100644
--- a/meta-oe/recipes-support/libfann/libfann_git.bb
+++ b/meta-oe/recipes-support/libfann/libfann_git.bb
@@ -10,9 +10,8 @@ inherit cmake
SRCREV ?= "7ec1fc7e5bd734f1d3c89b095e630e83c86b9be1"
SRC_URI = "git://github.com/libfann/fann.git;branch=master;protocol=https \
- "
+ file://0001-allow-build-with-cmake-4.patch"
PV = "2.2.0+git"
-
EXTRA_OECMAKE = "-DLIB_SUFFIX=${@d.getVar('baselib').replace('lib', '')}"
--
2.43.0
^ permalink raw reply related [flat|nested] 30+ messages in thread* [meta-openembedded][PATCH 13/20] uchardet: Add patch for CMake 4+ compatibility
2025-07-08 19:56 [meta-openembedded][PATCH 01/20] cannelloni: Upgrade 1.1.0 -> 2.0.0 to allow CMake 4+ compatibility Alper Ak
` (10 preceding siblings ...)
2025-07-08 19:56 ` [meta-openembedded][PATCH 12/20] libfann: " Alper Ak
@ 2025-07-08 19:56 ` Alper Ak
2025-07-09 10:26 ` [oe] " Gyorgy Sarvari
2025-07-08 19:56 ` [meta-openembedded][PATCH 14/20] cmpi-bindings: " Alper Ak
` (7 subsequent siblings)
19 siblings, 1 reply; 30+ messages in thread
From: Alper Ak @ 2025-07-08 19:56 UTC (permalink / raw)
To: openembedded-devel; +Cc: Alper Ak
Fix:
| CMake Error at CMakeLists.txt:2 (cmake_minimum_required):
| Compatibility with CMake < 3.5 has been removed from CMake.
|
| Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
| to tell CMake that the project requires at least <min> but has been updated
| to work with policies introduced by <max> or earlier.
|
| Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
|
|
| -- Configuring incomplete, errors occurred!
Signed-off-by: Alper Ak <alperyasinak1@gmail.com>
---
.../0001-allow-build-with-cmake-4.patch | 41 +++++++++++++++++++
.../uchardet/uchardet_0.0.8.bb | 3 +-
2 files changed, 43 insertions(+), 1 deletion(-)
create mode 100644 meta-oe/recipes-support/uchardet/uchardet/0001-allow-build-with-cmake-4.patch
diff --git a/meta-oe/recipes-support/uchardet/uchardet/0001-allow-build-with-cmake-4.patch b/meta-oe/recipes-support/uchardet/uchardet/0001-allow-build-with-cmake-4.patch
new file mode 100644
index 0000000000..86a3b08277
--- /dev/null
+++ b/meta-oe/recipes-support/uchardet/uchardet/0001-allow-build-with-cmake-4.patch
@@ -0,0 +1,41 @@
+From b650c4c3385f7afeb70231cdbcad888d23cb0a5a Mon Sep 17 00:00:00 2001
+From: Alper Ak <alperyasinak1@gmail.com>
+Date: Tue, 8 Jul 2025 19:59:23 +0300
+Subject: [PATCH] cmake: Set minimum required version to 3.5 for CMake 4+
+ compatibility
+
+Fix:
+
+| CMake Error at CMakeLists.txt:2 (cmake_minimum_required):
+| Compatibility with CMake < 3.5 has been removed from CMake.
+|
+| Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
+| to tell CMake that the project requires at least <min> but has been updated
+| to work with policies introduced by <max> or earlier.
+|
+| Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
+|
+|
+| -- Configuring incomplete, errors occurred!
+
+Upstream-Status: Pending
+
+Signed-off-by: Alper Ak <alperyasinak1@gmail.com>
+---
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index a570264..5a6281c 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1,5 +1,5 @@
+ ######## Project settings
+-cmake_minimum_required(VERSION 3.1)
++cmake_minimum_required(VERSION 3.5)
+ include(CheckCCompilerFlag)
+ set (PACKAGE_NAME uchardet)
+ project (${PACKAGE_NAME} CXX C)
+--
+2.43.0
+
diff --git a/meta-oe/recipes-support/uchardet/uchardet_0.0.8.bb b/meta-oe/recipes-support/uchardet/uchardet_0.0.8.bb
index 3e164cc26f..75a04e6f80 100644
--- a/meta-oe/recipes-support/uchardet/uchardet_0.0.8.bb
+++ b/meta-oe/recipes-support/uchardet/uchardet_0.0.8.bb
@@ -4,5 +4,6 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=6ecda54f6f525388d71d6b3cd92f7474"
inherit cmake
-SRC_URI = "https://www.freedesktop.org/software/uchardet/releases/uchardet-0.0.8.tar.xz"
+SRC_URI = "https://www.freedesktop.org/software/uchardet/releases/uchardet-0.0.8.tar.xz \
+ file://0001-allow-build-with-cmake-4.patch"
SRC_URI[sha256sum] = "e97a60cfc00a1c147a674b097bb1422abd9fa78a2d9ce3f3fdcc2e78a34ac5f0"
--
2.43.0
^ permalink raw reply related [flat|nested] 30+ messages in thread* [meta-openembedded][PATCH 14/20] cmpi-bindings: Add patch for CMake 4+ compatibility
2025-07-08 19:56 [meta-openembedded][PATCH 01/20] cannelloni: Upgrade 1.1.0 -> 2.0.0 to allow CMake 4+ compatibility Alper Ak
` (11 preceding siblings ...)
2025-07-08 19:56 ` [meta-openembedded][PATCH 13/20] uchardet: " Alper Ak
@ 2025-07-08 19:56 ` Alper Ak
2025-07-08 19:56 ` [meta-openembedded][PATCH 15/20] spirv-shader-generator: " Alper Ak
` (6 subsequent siblings)
19 siblings, 0 replies; 30+ messages in thread
From: Alper Ak @ 2025-07-08 19:56 UTC (permalink / raw)
To: openembedded-devel; +Cc: Alper Ak
Fix:
| CMake Error at CMakeLists.txt:4 (cmake_minimum_required):
| Compatibility with CMake < 3.5 has been removed from CMake.
|
| Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
| to tell CMake that the project requires at least <min> but has been updated
| to work with policies introduced by <max> or earlier.
|
| Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
|
|
| -- Configuring incomplete, errors occurred!
Signed-off-by: Alper Ak <alperyasinak1@gmail.com>
---
.../0002-allow-build-with-cmake-4.patch | 43 +++++++++++++++++++
.../cmpi-bindings/cmpi-bindings_1.0.5.bb | 1 +
2 files changed, 44 insertions(+)
create mode 100644 meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/0002-allow-build-with-cmake-4.patch
diff --git a/meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/0002-allow-build-with-cmake-4.patch b/meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/0002-allow-build-with-cmake-4.patch
new file mode 100644
index 0000000000..f2fdb1fb10
--- /dev/null
+++ b/meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/0002-allow-build-with-cmake-4.patch
@@ -0,0 +1,43 @@
+From 1b92ac43bab03a77cb497cd59f9c84d5650a4a68 Mon Sep 17 00:00:00 2001
+From: Alper Ak <alperyasinak1@gmail.com>
+Date: Tue, 8 Jul 2025 20:09:41 +0300
+Subject: [PATCH] cmake: Set minimum required version to 3.5 for CMake 4+
+ compatibility
+
+Fix:
+
+| CMake Error at CMakeLists.txt:4 (cmake_minimum_required):
+| Compatibility with CMake < 3.5 has been removed from CMake.
+|
+| Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
+| to tell CMake that the project requires at least <min> but has been updated
+| to work with policies introduced by <max> or earlier.
+|
+| Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
+|
+|
+| -- Configuring incomplete, errors occurred!
+
+Upstream-Status: Submitted [https://github.com/kkaempf/cmpi-bindings/pull/20]
+
+Signed-off-by: Alper Ak <alperyasinak1@gmail.com>
+---
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 4ea24ce..7d54f9a 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1,7 +1,7 @@
+ #
+ # CMakeLists.txt for cmpi-bindings
+ #
+-cmake_minimum_required(VERSION 2.4)
++cmake_minimum_required(VERSION 3.5)
+
+ PROJECT(cmpi-bindings)
+
+--
+2.43.0
+
diff --git a/meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings_1.0.5.bb b/meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings_1.0.5.bb
index da710eaedb..e0d995226e 100644
--- a/meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings_1.0.5.bb
+++ b/meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings_1.0.5.bb
@@ -10,6 +10,7 @@ SRC_URI = "git://github.com/kkaempf/cmpi-bindings.git;protocol=https;branch=main
file://cmpi-bindings-0.4.17-no-ruby-perl.patch \
file://cmpi-bindings-0.4.17-sblim-sigsegv.patch \
file://0001-Fix-error.patch \
+ file://0002-allow-build-with-cmake-4.patch \
"
SRCREV = "49d6dcfc71ca421100fcf325e31625817c469fc9"
--
2.43.0
^ permalink raw reply related [flat|nested] 30+ messages in thread* [meta-openembedded][PATCH 15/20] spirv-shader-generator: Add patch for CMake 4+ compatibility
2025-07-08 19:56 [meta-openembedded][PATCH 01/20] cannelloni: Upgrade 1.1.0 -> 2.0.0 to allow CMake 4+ compatibility Alper Ak
` (12 preceding siblings ...)
2025-07-08 19:56 ` [meta-openembedded][PATCH 14/20] cmpi-bindings: " Alper Ak
@ 2025-07-08 19:56 ` Alper Ak
2025-07-08 19:56 ` [meta-openembedded][PATCH 16/20] double-conversion: " Alper Ak
` (5 subsequent siblings)
19 siblings, 0 replies; 30+ messages in thread
From: Alper Ak @ 2025-07-08 19:56 UTC (permalink / raw)
To: openembedded-devel; +Cc: Alper Ak
Fix:
| CMake Error at CMakeLists.txt:22 (cmake_minimum_required):
| Compatibility with CMake < 3.5 has been removed from CMake.
|
| Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
| to tell CMake that the project requires at least <min> but has been updated
| to work with policies introduced by <max> or earlier.
|
| Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
|
|
| -- Configuring incomplete, errors occurred!
Signed-off-by: Alper Ak <alperyasinak1@gmail.com>
---
.../0001-allow-build-with-cmake-4.patch | 43 +++++++++++++++++++
.../spir/spirv-shader-generator_git.bb | 4 +-
2 files changed, 46 insertions(+), 1 deletion(-)
create mode 100644 meta-oe/recipes-graphics/spir/spirv-shader-generator/0001-allow-build-with-cmake-4.patch
diff --git a/meta-oe/recipes-graphics/spir/spirv-shader-generator/0001-allow-build-with-cmake-4.patch b/meta-oe/recipes-graphics/spir/spirv-shader-generator/0001-allow-build-with-cmake-4.patch
new file mode 100644
index 0000000000..31b3ef81fa
--- /dev/null
+++ b/meta-oe/recipes-graphics/spir/spirv-shader-generator/0001-allow-build-with-cmake-4.patch
@@ -0,0 +1,43 @@
+From ba72528b21e024fe4f5464466976a8234d7c330c Mon Sep 17 00:00:00 2001
+From: Alper Ak <alperyasinak1@gmail.com>
+Date: Tue, 8 Jul 2025 20:27:11 +0300
+Subject: [PATCH] cmake: Set minimum required version to 3.5 for CMake 4+
+ compatibility
+
+Fix:
+
+| CMake Error at CMakeLists.txt:22 (cmake_minimum_required):
+| Compatibility with CMake < 3.5 has been removed from CMake.
+|
+| Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
+| to tell CMake that the project requires at least <min> but has been updated
+| to work with policies introduced by <max> or earlier.
+|
+| Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
+|
+|
+| -- Configuring incomplete, errors occurred!
+
+Upstream-Status: Backport [https://github.com/KhronosGroup/SPIRV-Cross/commit/82331a2ca9f2ea90d05901e931aa8c21e70dc40c]
+
+Signed-off-by: Alper Ak <alperyasinak1@gmail.com>
+---
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index cf14c8d5..ef9695a9 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -19,7 +19,7 @@
+ # 2. The MIT License, found at <http://opensource.org/licenses/MIT>.
+ #
+
+-cmake_minimum_required(VERSION 3.0)
++cmake_minimum_required(VERSION 3.5)
+ set(CMAKE_CXX_STANDARD 11)
+ set(CMAKE_CXX_EXTENSIONS OFF)
+
+--
+2.43.0
+
diff --git a/meta-oe/recipes-graphics/spir/spirv-shader-generator_git.bb b/meta-oe/recipes-graphics/spir/spirv-shader-generator_git.bb
index 567f7a55e8..1ecd315a2e 100644
--- a/meta-oe/recipes-graphics/spir/spirv-shader-generator_git.bb
+++ b/meta-oe/recipes-graphics/spir/spirv-shader-generator_git.bb
@@ -5,7 +5,9 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
SECTION = "graphics"
SRCREV = "f09ba2777714871bddb70d049878af34b94fa54d"
-SRC_URI = "git://github.com/KhronosGroup/SPIRV-Cross.git;branch=master;protocol=https"
+SRC_URI = "git://github.com/KhronosGroup/SPIRV-Cross.git;branch=master;protocol=https \
+ file://0001-allow-build-with-cmake-4.patch"
+
inherit cmake pkgconfig
EXTRA_OECMAKE = "-DSPIRV_CROSS_SHARED=ON"
--
2.43.0
^ permalink raw reply related [flat|nested] 30+ messages in thread* [meta-openembedded][PATCH 16/20] double-conversion: Add patch for CMake 4+ compatibility
2025-07-08 19:56 [meta-openembedded][PATCH 01/20] cannelloni: Upgrade 1.1.0 -> 2.0.0 to allow CMake 4+ compatibility Alper Ak
` (13 preceding siblings ...)
2025-07-08 19:56 ` [meta-openembedded][PATCH 15/20] spirv-shader-generator: " Alper Ak
@ 2025-07-08 19:56 ` Alper Ak
2025-07-08 19:56 ` [meta-openembedded][PATCH 17/20] freediameter: " Alper Ak
` (4 subsequent siblings)
19 siblings, 0 replies; 30+ messages in thread
From: Alper Ak @ 2025-07-08 19:56 UTC (permalink / raw)
To: openembedded-devel; +Cc: Alper Ak
Fix:
| CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
| Compatibility with CMake < 3.5 has been removed from CMake.
|
| Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
| to tell CMake that the project requires at least <min> but has been updated
| to work with policies introduced by <max> or earlier.
|
| Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
|
|
| -- Configuring incomplete, errors occurred!
Signed-off-by: Alper Ak <alperyasinak1@gmail.com>
---
.../dc/double-conversion_3.3.1.bb | 3 +-
.../files/0001-allow-build-with-cmake-4.patch | 40 +++++++++++++++++++
2 files changed, 41 insertions(+), 2 deletions(-)
create mode 100644 meta-oe/recipes-support/dc/files/0001-allow-build-with-cmake-4.patch
diff --git a/meta-oe/recipes-support/dc/double-conversion_3.3.1.bb b/meta-oe/recipes-support/dc/double-conversion_3.3.1.bb
index 31330faa17..42777971d8 100644
--- a/meta-oe/recipes-support/dc/double-conversion_3.3.1.bb
+++ b/meta-oe/recipes-support/dc/double-conversion_3.3.1.bb
@@ -5,11 +5,10 @@ HOMEPAGE = "https://github.com/google/double-conversion.git"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://LICENSE;md5=1ea35644f0ec0d9767897115667e901f"
-
-
SRC_URI = " \
git://github.com/google/double-conversion.git;protocol=https;branch=master \
file://run-ptest \
+ file://0001-allow-build-with-cmake-4.patch \
"
SRCREV = "ae0dbfeb9744efd216c95b30555049d75d47116a"
diff --git a/meta-oe/recipes-support/dc/files/0001-allow-build-with-cmake-4.patch b/meta-oe/recipes-support/dc/files/0001-allow-build-with-cmake-4.patch
new file mode 100644
index 0000000000..db8296c65d
--- /dev/null
+++ b/meta-oe/recipes-support/dc/files/0001-allow-build-with-cmake-4.patch
@@ -0,0 +1,40 @@
+From 1652f5b555b4b4a7916af40bebacc32c23e4aca5 Mon Sep 17 00:00:00 2001
+From: Alper Ak <alperyasinak1@gmail.com>
+Date: Tue, 8 Jul 2025 20:43:45 +0300
+Subject: [PATCH] cmake: Set minimum required version to 3.5 for CMake 4+
+ compatibility
+
+Fix:
+
+| CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
+| Compatibility with CMake < 3.5 has been removed from CMake.
+|
+| Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
+| to tell CMake that the project requires at least <min> but has been updated
+| to work with policies introduced by <max> or earlier.
+|
+| Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
+|
+|
+| -- Configuring incomplete, errors occurred!
+
+Upstream-Status: Backport [https://github.com/google/double-conversion/commit/101e1ba89dc41ceb75090831da97c43a76cd2906]
+
+Signed-off-by: Alper Ak <alperyasinak1@gmail.com>
+---
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 8749ef8..3145772 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-cmake_minimum_required(VERSION 3.0)
++cmake_minimum_required(VERSION 3.5)
+ project(double-conversion VERSION 3.3.0)
+
+ option(BUILD_SHARED_LIBS "Build shared libraries (.dll/.so) instead of static ones (.lib/.a)" OFF)
+--
+2.43.0
+
--
2.43.0
^ permalink raw reply related [flat|nested] 30+ messages in thread* [meta-openembedded][PATCH 17/20] freediameter: Add patch for CMake 4+ compatibility
2025-07-08 19:56 [meta-openembedded][PATCH 01/20] cannelloni: Upgrade 1.1.0 -> 2.0.0 to allow CMake 4+ compatibility Alper Ak
` (14 preceding siblings ...)
2025-07-08 19:56 ` [meta-openembedded][PATCH 16/20] double-conversion: " Alper Ak
@ 2025-07-08 19:56 ` Alper Ak
2025-07-08 19:56 ` [meta-openembedded][PATCH 18/20] microsoft-gsl: Upgrade 4.0.0 -> 4.2.0 to allow " Alper Ak
` (3 subsequent siblings)
19 siblings, 0 replies; 30+ messages in thread
From: Alper Ak @ 2025-07-08 19:56 UTC (permalink / raw)
To: openembedded-devel; +Cc: Alper Ak
Fix:
| CMake Error at CMakeLists.txt:24 (CMAKE_MINIMUM_REQUIRED):
| Compatibility with CMake < 3.5 has been removed from CMake.
|
| Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
| to tell CMake that the project requires at least <min> but has been updated
| to work with policies introduced by <max> or earlier.
|
| Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
|
|
| -- Configuring incomplete, errors occurred!
Signed-off-by: Alper Ak <alperyasinak1@gmail.com>
---
.../files/0002-allow-build-with-cmake-4.patch | 81 +++++++++++++++++++
.../freediameter/freediameter_1.5.0.bb | 2 +-
2 files changed, 82 insertions(+), 1 deletion(-)
create mode 100644 meta-networking/recipes-protocols/freediameter/files/0002-allow-build-with-cmake-4.patch
diff --git a/meta-networking/recipes-protocols/freediameter/files/0002-allow-build-with-cmake-4.patch b/meta-networking/recipes-protocols/freediameter/files/0002-allow-build-with-cmake-4.patch
new file mode 100644
index 0000000000..89a215d975
--- /dev/null
+++ b/meta-networking/recipes-protocols/freediameter/files/0002-allow-build-with-cmake-4.patch
@@ -0,0 +1,81 @@
+From a96a8f8debb457fd5bdcd34f005670678870ec70 Mon Sep 17 00:00:00 2001
+From: Alper Ak <alperyasinak1@gmail.com>
+Date: Tue, 8 Jul 2025 20:58:10 +0300
+Subject: [PATCH] cmake: Set minimum required version to 3.5 for CMake 4+
+ compatibility
+
+Fix:
+
+| CMake Error at CMakeLists.txt:24 (CMAKE_MINIMUM_REQUIRED):
+| Compatibility with CMake < 3.5 has been removed from CMake.
+|
+| Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
+| to tell CMake that the project requires at least <min> but has been updated
+| to work with policies introduced by <max> or earlier.
+|
+| Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
+|
+|
+| -- Configuring incomplete, errors occurred!
+
+Upstream-Status: Backport [https://github.com/freeDiameter/freeDiameter/commit/45106adf3bf4192b274ef6c5536200a0e19c84f2]
+
+Signed-off-by: Alper Ak <alperyasinak1@gmail.com>
+---
+ CMakeLists.txt | 6 +++---
+ libfdcore/CMakeLists.txt | 2 +-
+ libfdproto/CMakeLists.txt | 2 +-
+ 3 files changed, 5 insertions(+), 5 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 870e1ef..f1e6dc5 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1,5 +1,8 @@
+ # This file is the source for generating the Makefile for the project, using cmake tool (cmake.org)
+
++# CMake version
++CMAKE_MINIMUM_REQUIRED(VERSION 3.10)
++
+ # Name of the project
+ PROJECT("freeDiameter")
+
+@@ -20,9 +23,6 @@ SET(FD_PROJECT_VERSION_API 7)
+ # The test framework, using CTest and CDash.
+ INCLUDE(CTest)
+
+-# CMake version
+-CMAKE_MINIMUM_REQUIRED(VERSION 2.8.12)
+-
+ # Location of additional CMake modules
+ SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
+
+diff --git a/libfdcore/CMakeLists.txt b/libfdcore/CMakeLists.txt
+index b1bc0f1..4fefcb7 100644
+--- a/libfdcore/CMakeLists.txt
++++ b/libfdcore/CMakeLists.txt
+@@ -2,7 +2,7 @@
+ Project("freeDiameter core library" C)
+
+ # Configuration for newer cmake
+-cmake_policy(VERSION 2.8.12)
++cmake_policy(VERSION 3.10)
+
+ # Configuration parser
+ BISON_FILE(fdd.y)
+diff --git a/libfdproto/CMakeLists.txt b/libfdproto/CMakeLists.txt
+index c7164fb..4cedf65 100644
+--- a/libfdproto/CMakeLists.txt
++++ b/libfdproto/CMakeLists.txt
+@@ -2,7 +2,7 @@
+ Project("libfdproto" C)
+
+ # Configuration for newer cmake
+-cmake_policy(VERSION 2.8.12)
++cmake_policy(VERSION 3.10)
+
+ # List of source files for the library
+ SET(LFDPROTO_SRC
+--
+2.43.0
+
diff --git a/meta-networking/recipes-protocols/freediameter/freediameter_1.5.0.bb b/meta-networking/recipes-protocols/freediameter/freediameter_1.5.0.bb
index 89b2572c04..31ac1fb9b7 100644
--- a/meta-networking/recipes-protocols/freediameter/freediameter_1.5.0.bb
+++ b/meta-networking/recipes-protocols/freediameter/freediameter_1.5.0.bb
@@ -25,9 +25,9 @@ SRC_URI = "git://github.com/freeDiameter/freeDiameter;protocol=https;branch=mast
file://0001-tests-use-EXTENSIONS_DIR.patch \
file://0001-bison-flex-Add-flags-for-carrying-user-specified-par.patch \
file://0001-fixes-for-gcc-15.patch \
+ file://0002-allow-build-with-cmake-4.patch \
"
-
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://LICENSE;md5=868c059b6147748b1d621e500feeac4f"
--
2.43.0
^ permalink raw reply related [flat|nested] 30+ messages in thread* [meta-openembedded][PATCH 18/20] microsoft-gsl: Upgrade 4.0.0 -> 4.2.0 to allow CMake 4+ compatibility
2025-07-08 19:56 [meta-openembedded][PATCH 01/20] cannelloni: Upgrade 1.1.0 -> 2.0.0 to allow CMake 4+ compatibility Alper Ak
` (15 preceding siblings ...)
2025-07-08 19:56 ` [meta-openembedded][PATCH 17/20] freediameter: " Alper Ak
@ 2025-07-08 19:56 ` Alper Ak
2025-07-09 16:08 ` [oe] " Khem Raj
2025-07-08 19:56 ` [meta-openembedded][PATCH 19/20] snappy: Upgrade 1.1.10 -> 1.2.2 to " Alper Ak
` (2 subsequent siblings)
19 siblings, 1 reply; 30+ messages in thread
From: Alper Ak @ 2025-07-08 19:56 UTC (permalink / raw)
To: openembedded-devel; +Cc: Alper Ak
- Drop patches because already fixed in newer version
Changelog:
https://github.com/microsoft/GSL/compare/v4.0.0...v4.2.0
https://github.com/microsoft/GSL/releases/tag/v4.2.0
https://github.com/microsoft/GSL/releases/tag/v4.1.0
Fix:
| CMake Error at tests/CMakeLists.txt:1 (cmake_minimum_required):
| Compatibility with CMake < 3.5 has been removed from CMake.
|
| Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
| to tell CMake that the project requires at least <min> but has been updated
| to work with policies introduced by <max> or earlier.
|
| Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
|
|
| -- Configuring incomplete, errors occurred!
Signed-off-by: Alper Ak <alperyasinak1@gmail.com>
---
...0001-Fix-initialization-in-test-1140.patch | 113 ------------------
.../0002-Fix-gcc-build-problem.patch | 82 -------------
...eck_cxx_compiler_flag-to-cmake-3.0.2.patch | 53 --------
...ft-gsl_4.0.0.bb => microsoft-gsl_4.2.0.bb} | 8 +-
4 files changed, 2 insertions(+), 254 deletions(-)
delete mode 100644 meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl/0001-Fix-initialization-in-test-1140.patch
delete mode 100644 meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl/0002-Fix-gcc-build-problem.patch
delete mode 100644 meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl/0003-Adapt-check_cxx_compiler_flag-to-cmake-3.0.2.patch
rename meta-oe/recipes-devtools/microsoft-gsl/{microsoft-gsl_4.0.0.bb => microsoft-gsl_4.2.0.bb} (87%)
diff --git a/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl/0001-Fix-initialization-in-test-1140.patch b/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl/0001-Fix-initialization-in-test-1140.patch
deleted file mode 100644
index 84a585d3c5..0000000000
--- a/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl/0001-Fix-initialization-in-test-1140.patch
+++ /dev/null
@@ -1,113 +0,0 @@
-From 1b4d42ca2e97061042ec44a0b34ceb176c78c7e1 Mon Sep 17 00:00:00 2001
-From: d-winsor <danwin@microsoft.com>
-Date: Mon, 26 Feb 2024 13:17:12 -0800
-Subject: [PATCH] Fix initialization in test (#1140)
-
-* Suppress unsafe-buffer-usage
-
-Upstream-Status: Backport [https://github.com/microsoft/GSL/commit/1b4d42ca2e97061042ec44a0b34ceb176c78c7e1]
-
-Signed-off-by: Peter Marko <peter.marko@siemens.com>
----
- include/gsl/span | 10 ++++++++++
- include/gsl/util | 10 ++++++++++
- tests/CMakeLists.txt | 10 ++++++++++
- tests/span_tests.cpp | 2 +-
- 4 files changed, 31 insertions(+), 1 deletion(-)
-
-diff --git a/include/gsl/span b/include/gsl/span
-index cc8a7b9..d254e4d 100644
---- a/include/gsl/span
-+++ b/include/gsl/span
-@@ -58,6 +58,12 @@
- #pragma GCC diagnostic ignored "-Wsign-conversion"
- #endif
-
-+// Turn off clang unsafe buffer warnings as all accessed are guarded by runtime checks
-+#if defined(__clang__) && __has_warning("-Wunsafe-buffer-usage")
-+#pragma clang diagnostic push
-+#pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
-+#endif // defined(__clang__) && __has_warning("-Wunsafe-buffer-usage")
-+
- namespace gsl
- {
-
-@@ -818,4 +824,8 @@ as_writable_bytes(span<ElementType, Extent> s) noexcept
- #pragma GCC diagnostic pop
- #endif // __GNUC__ > 6
-
-+#if defined(__clang__) && __has_warning("-Wunsafe-buffer-usage")
-+#pragma clang diagnostic pop
-+#endif
-+
- #endif // GSL_SPAN_H
-diff --git a/include/gsl/util b/include/gsl/util
-index a215bad..11735a8 100644
---- a/include/gsl/util
-+++ b/include/gsl/util
-@@ -39,6 +39,12 @@
-
- #endif // _MSC_VER
-
-+// Turn off clang unsafe buffer warnings as all accessed are guarded by runtime checks
-+#if defined(__clang__) && __has_warning("-Wunsafe-buffer-usage")
-+#pragma clang diagnostic push
-+#pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
-+#endif // defined(__clang__) && __has_warning("-Wunsafe-buffer-usage")
-+
- #if defined(__cplusplus) && (__cplusplus >= 201703L)
- #define GSL_NODISCARD [[nodiscard]]
- #else
-@@ -157,4 +163,8 @@ constexpr auto at(std::span<T, extent> sp, const index i) -> decltype(sp[sp.size
-
- #endif // _MSC_VER
-
-+#if defined(__clang__) && __has_warning("-Wunsafe-buffer-usage")
-+#pragma clang diagnostic pop
-+#endif
-+
- #endif // GSL_UTIL_H
-diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
-index cab4e56..20de9e1 100644
---- a/tests/CMakeLists.txt
-+++ b/tests/CMakeLists.txt
-@@ -167,6 +167,11 @@ else()
- >
- )
- endif(MSVC)
-+check_cxx_compiler_flag("-Wno-unsafe-buffer-usage" WARN_UNSAFE_BUFFER)
-+if (WARN_UNSAFE_BUFFER)
-+ # This test uses very greedy heuristics such as "no pointer arithmetic on raw buffer"
-+ target_compile_options(gsl_tests_config INTERFACE "-Wno-unsafe-buffer-usage")
-+endif()
-
- # for tests to find the gtest header
- target_include_directories(gsl_tests_config SYSTEM INTERFACE
-@@ -267,6 +272,11 @@ else()
- >
- )
- endif(MSVC)
-+check_cxx_compiler_flag("-Wno-unsafe-buffer-usage" WARN_UNSAFE_BUFFER)
-+if (WARN_UNSAFE_BUFFER)
-+ # This test uses very greedy heuristics such as "no pointer arithmetic on raw buffer"
-+ target_compile_options(gsl_tests_config_noexcept INTERFACE "-Wno-unsafe-buffer-usage")
-+endif()
-
- add_executable(gsl_noexcept_tests no_exception_ensure_tests.cpp)
- target_link_libraries(gsl_noexcept_tests
-diff --git a/tests/span_tests.cpp b/tests/span_tests.cpp
-index 33ccf56..3c1dfe5 100644
---- a/tests/span_tests.cpp
-+++ b/tests/span_tests.cpp
-@@ -330,7 +330,7 @@ TEST(span_test, from_array_constructor)
- EXPECT_TRUE(s.data() == std::addressof(arr2d[0]));
- }
-
-- int arr3d[2][3][2] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12};
-+ int arr3d[2][3][2] = { { {1, 2}, {3, 4}, {5, 6} }, { {7, 8}, {9, 10}, {11, 12} } };
-
- #ifdef CONFIRM_COMPILATION_ERRORS
- {
---
-2.30.2
-
diff --git a/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl/0002-Fix-gcc-build-problem.patch b/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl/0002-Fix-gcc-build-problem.patch
deleted file mode 100644
index 2f7542c62c..0000000000
--- a/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl/0002-Fix-gcc-build-problem.patch
+++ /dev/null
@@ -1,82 +0,0 @@
-From aa4fd1f57794964640005900c2b47af1a0940b7b Mon Sep 17 00:00:00 2001
-From: Werner Henze <w.henze@avm.de>
-Date: Fri, 1 Mar 2024 15:53:50 +0100
-Subject: [PATCH] Fix gcc build problem
-
-Closes issue #1148 by fixing problems introduced in PR #1140.
-
-Upstream-Status: Submitted [https://github.com/microsoft/GSL/pull/1149]
-
-Signed-off-by: Peter Marko <peter.marko@siemens.com>
----
- include/gsl/span | 12 ++++++++----
- include/gsl/util | 12 ++++++++----
- 2 files changed, 16 insertions(+), 8 deletions(-)
-
-diff --git a/include/gsl/span b/include/gsl/span
-index 0de2932..d2ef9f7 100644
---- a/include/gsl/span
-+++ b/include/gsl/span
-@@ -59,10 +59,12 @@
- #endif
-
- // Turn off clang unsafe buffer warnings as all accessed are guarded by runtime checks
--#if defined(__clang__) && __has_warning("-Wunsafe-buffer-usage")
-+#if defined(__clang__)
-+#if __has_warning("-Wunsafe-buffer-usage")
- #pragma clang diagnostic push
- #pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
--#endif // defined(__clang__) && __has_warning("-Wunsafe-buffer-usage")
-+#endif // __has_warning("-Wunsafe-buffer-usage")
-+#endif // defined(__clang__)
-
- namespace gsl
- {
-@@ -824,8 +826,10 @@ as_writable_bytes(span<ElementType, Extent> s) noexcept
- #pragma GCC diagnostic pop
- #endif // __GNUC__ > 6
-
--#if defined(__clang__) && __has_warning("-Wunsafe-buffer-usage")
-+#if defined(__clang__)
-+#if __has_warning("-Wunsafe-buffer-usage")
- #pragma clang diagnostic pop
--#endif
-+#endif // __has_warning("-Wunsafe-buffer-usage")
-+#endif // defined(__clang__)
-
- #endif // GSL_SPAN_H
-diff --git a/include/gsl/util b/include/gsl/util
-index b853017..26b2f5f 100644
---- a/include/gsl/util
-+++ b/include/gsl/util
-@@ -40,10 +40,12 @@
- #endif // _MSC_VER
-
- // Turn off clang unsafe buffer warnings as all accessed are guarded by runtime checks
--#if defined(__clang__) && __has_warning("-Wunsafe-buffer-usage")
-+#if defined(__clang__)
-+#if __has_warning("-Wunsafe-buffer-usage")
- #pragma clang diagnostic push
- #pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
--#endif // defined(__clang__) && __has_warning("-Wunsafe-buffer-usage")
-+#endif // __has_warning("-Wunsafe-buffer-usage")
-+#endif // defined(__clang__)
-
- #if defined(__cplusplus) && (__cplusplus >= 201703L)
- #define GSL_NODISCARD [[nodiscard]]
-@@ -163,8 +165,10 @@ constexpr auto at(std::span<T, extent> sp, const index i) -> decltype(sp[sp.size
-
- #endif // _MSC_VER
-
--#if defined(__clang__) && __has_warning("-Wunsafe-buffer-usage")
-+#if defined(__clang__)
-+#if __has_warning("-Wunsafe-buffer-usage")
- #pragma clang diagnostic pop
--#endif
-+#endif // __has_warning("-Wunsafe-buffer-usage")
-+#endif // defined(__clang__)
-
- #endif // GSL_UTIL_H
---
-2.30.2
-
diff --git a/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl/0003-Adapt-check_cxx_compiler_flag-to-cmake-3.0.2.patch b/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl/0003-Adapt-check_cxx_compiler_flag-to-cmake-3.0.2.patch
deleted file mode 100644
index ed057f5243..0000000000
--- a/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl/0003-Adapt-check_cxx_compiler_flag-to-cmake-3.0.2.patch
+++ /dev/null
@@ -1,53 +0,0 @@
-From 85e1c38bcf84bd4e2ce63ef74f0cfa1f5e92261e Mon Sep 17 00:00:00 2001
-From: Peter Marko <peter.marko@siemens.com>
-Date: Wed, 27 Mar 2024 23:46:31 +0100
-Subject: [PATCH] Adapt check_cxx_compiler_flag to cmake 3.0.2
-
-Backporting commits which are upgrading cmake_minimum_required and
-include check_cxx_compiler_flag have too many additional changes.
-
-Let's just do a simple adaptation of our backported patch so
-it works with older cmake version instead.
-
-This can be safely removed when recipe version is upgraded.
-
-Upstream-Status: Inappropriate
-
-Signed-off-by: Peter Marko <peter.marko@siemens.com>
----
- tests/CMakeLists.txt | 5 +++--
- 1 file changed, 3 insertions(+), 2 deletions(-)
-
-diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
-index 20de9e1..54c3ac5 100644
---- a/tests/CMakeLists.txt
-+++ b/tests/CMakeLists.txt
-@@ -5,6 +5,7 @@ enable_testing() # again, for support standalone testing
-
- include(FindPkgConfig)
- include(ExternalProject)
-+include(CheckCXXCompilerFlag)
-
- # will make visual studio generated project group files
- set_property(GLOBAL PROPERTY USE_FOLDERS ON)
-@@ -167,7 +168,7 @@ else()
- >
- )
- endif(MSVC)
--check_cxx_compiler_flag("-Wno-unsafe-buffer-usage" WARN_UNSAFE_BUFFER)
-+CHECK_CXX_COMPILER_FLAG("-Wno-unsafe-buffer-usage" WARN_UNSAFE_BUFFER)
- if (WARN_UNSAFE_BUFFER)
- # This test uses very greedy heuristics such as "no pointer arithmetic on raw buffer"
- target_compile_options(gsl_tests_config INTERFACE "-Wno-unsafe-buffer-usage")
-@@ -272,7 +273,7 @@ else()
- >
- )
- endif(MSVC)
--check_cxx_compiler_flag("-Wno-unsafe-buffer-usage" WARN_UNSAFE_BUFFER)
-+CHECK_CXX_COMPILER_FLAG("-Wno-unsafe-buffer-usage" WARN_UNSAFE_BUFFER)
- if (WARN_UNSAFE_BUFFER)
- # This test uses very greedy heuristics such as "no pointer arithmetic on raw buffer"
- target_compile_options(gsl_tests_config_noexcept INTERFACE "-Wno-unsafe-buffer-usage")
---
-2.30.2
-
diff --git a/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl_4.0.0.bb b/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl_4.2.0.bb
similarity index 87%
rename from meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl_4.0.0.bb
rename to meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl_4.2.0.bb
index 2fbbf8f06a..610c45a298 100644
--- a/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl_4.0.0.bb
+++ b/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl_4.2.0.bb
@@ -9,13 +9,9 @@ LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=363055e71e77071107ba2bb9a54bd9a7"
SRC_URI = "git://github.com/microsoft/GSL.git;protocol=https;branch=main \
- file://run-ptest \
- file://0001-Fix-initialization-in-test-1140.patch \
- file://0002-Fix-gcc-build-problem.patch \
- file://0003-Adapt-check_cxx_compiler_flag-to-cmake-3.0.2.patch \
+ file://run-ptest \
"
-SRCREV = "a3534567187d2edc428efd3f13466ff75fe5805c"
-
+SRCREV = "2828399820ef4928cc89b65605dca5dc68efca6e"
inherit cmake pkgconfig ptest
--
2.43.0
^ permalink raw reply related [flat|nested] 30+ messages in thread* Re: [oe] [meta-openembedded][PATCH 18/20] microsoft-gsl: Upgrade 4.0.0 -> 4.2.0 to allow CMake 4+ compatibility
2025-07-08 19:56 ` [meta-openembedded][PATCH 18/20] microsoft-gsl: Upgrade 4.0.0 -> 4.2.0 to allow " Alper Ak
@ 2025-07-09 16:08 ` Khem Raj
2025-07-09 20:46 ` Alper Ak
0 siblings, 1 reply; 30+ messages in thread
From: Khem Raj @ 2025-07-09 16:08 UTC (permalink / raw)
To: alperyasinak1, openembedded-devel
this fails to build with clang
https://errors.yoctoproject.org/Errors/Details/869560/
On 7/8/25 12:56 PM, Alper Ak via lists.openembedded.org wrote:
> - Drop patches because already fixed in newer version
>
> Changelog:
>
> https://github.com/microsoft/GSL/compare/v4.0.0...v4.2.0
> https://github.com/microsoft/GSL/releases/tag/v4.2.0
> https://github.com/microsoft/GSL/releases/tag/v4.1.0
>
> Fix:
>
> | CMake Error at tests/CMakeLists.txt:1 (cmake_minimum_required):
> | Compatibility with CMake < 3.5 has been removed from CMake.
> |
> | Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
> | to tell CMake that the project requires at least <min> but has been updated
> | to work with policies introduced by <max> or earlier.
> |
> | Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
> |
> |
> | -- Configuring incomplete, errors occurred!
>
> Signed-off-by: Alper Ak <alperyasinak1@gmail.com>
> ---
> ...0001-Fix-initialization-in-test-1140.patch | 113 ------------------
> .../0002-Fix-gcc-build-problem.patch | 82 -------------
> ...eck_cxx_compiler_flag-to-cmake-3.0.2.patch | 53 --------
> ...ft-gsl_4.0.0.bb => microsoft-gsl_4.2.0.bb} | 8 +-
> 4 files changed, 2 insertions(+), 254 deletions(-)
> delete mode 100644 meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl/0001-Fix-initialization-in-test-1140.patch
> delete mode 100644 meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl/0002-Fix-gcc-build-problem.patch
> delete mode 100644 meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl/0003-Adapt-check_cxx_compiler_flag-to-cmake-3.0.2.patch
> rename meta-oe/recipes-devtools/microsoft-gsl/{microsoft-gsl_4.0.0.bb => microsoft-gsl_4.2.0.bb} (87%)
>
> diff --git a/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl/0001-Fix-initialization-in-test-1140.patch b/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl/0001-Fix-initialization-in-test-1140.patch
> deleted file mode 100644
> index 84a585d3c5..0000000000
> --- a/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl/0001-Fix-initialization-in-test-1140.patch
> +++ /dev/null
> @@ -1,113 +0,0 @@
> -From 1b4d42ca2e97061042ec44a0b34ceb176c78c7e1 Mon Sep 17 00:00:00 2001
> -From: d-winsor <danwin@microsoft.com>
> -Date: Mon, 26 Feb 2024 13:17:12 -0800
> -Subject: [PATCH] Fix initialization in test (#1140)
> -
> -* Suppress unsafe-buffer-usage
> -
> -Upstream-Status: Backport [https://github.com/microsoft/GSL/commit/1b4d42ca2e97061042ec44a0b34ceb176c78c7e1]
> -
> -Signed-off-by: Peter Marko <peter.marko@siemens.com>
> ----
> - include/gsl/span | 10 ++++++++++
> - include/gsl/util | 10 ++++++++++
> - tests/CMakeLists.txt | 10 ++++++++++
> - tests/span_tests.cpp | 2 +-
> - 4 files changed, 31 insertions(+), 1 deletion(-)
> -
> -diff --git a/include/gsl/span b/include/gsl/span
> -index cc8a7b9..d254e4d 100644
> ---- a/include/gsl/span
> -+++ b/include/gsl/span
> -@@ -58,6 +58,12 @@
> - #pragma GCC diagnostic ignored "-Wsign-conversion"
> - #endif
> -
> -+// Turn off clang unsafe buffer warnings as all accessed are guarded by runtime checks
> -+#if defined(__clang__) && __has_warning("-Wunsafe-buffer-usage")
> -+#pragma clang diagnostic push
> -+#pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
> -+#endif // defined(__clang__) && __has_warning("-Wunsafe-buffer-usage")
> -+
> - namespace gsl
> - {
> -
> -@@ -818,4 +824,8 @@ as_writable_bytes(span<ElementType, Extent> s) noexcept
> - #pragma GCC diagnostic pop
> - #endif // __GNUC__ > 6
> -
> -+#if defined(__clang__) && __has_warning("-Wunsafe-buffer-usage")
> -+#pragma clang diagnostic pop
> -+#endif
> -+
> - #endif // GSL_SPAN_H
> -diff --git a/include/gsl/util b/include/gsl/util
> -index a215bad..11735a8 100644
> ---- a/include/gsl/util
> -+++ b/include/gsl/util
> -@@ -39,6 +39,12 @@
> -
> - #endif // _MSC_VER
> -
> -+// Turn off clang unsafe buffer warnings as all accessed are guarded by runtime checks
> -+#if defined(__clang__) && __has_warning("-Wunsafe-buffer-usage")
> -+#pragma clang diagnostic push
> -+#pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
> -+#endif // defined(__clang__) && __has_warning("-Wunsafe-buffer-usage")
> -+
> - #if defined(__cplusplus) && (__cplusplus >= 201703L)
> - #define GSL_NODISCARD [[nodiscard]]
> - #else
> -@@ -157,4 +163,8 @@ constexpr auto at(std::span<T, extent> sp, const index i) -> decltype(sp[sp.size
> -
> - #endif // _MSC_VER
> -
> -+#if defined(__clang__) && __has_warning("-Wunsafe-buffer-usage")
> -+#pragma clang diagnostic pop
> -+#endif
> -+
> - #endif // GSL_UTIL_H
> -diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
> -index cab4e56..20de9e1 100644
> ---- a/tests/CMakeLists.txt
> -+++ b/tests/CMakeLists.txt
> -@@ -167,6 +167,11 @@ else()
> - >
> - )
> - endif(MSVC)
> -+check_cxx_compiler_flag("-Wno-unsafe-buffer-usage" WARN_UNSAFE_BUFFER)
> -+if (WARN_UNSAFE_BUFFER)
> -+ # This test uses very greedy heuristics such as "no pointer arithmetic on raw buffer"
> -+ target_compile_options(gsl_tests_config INTERFACE "-Wno-unsafe-buffer-usage")
> -+endif()
> -
> - # for tests to find the gtest header
> - target_include_directories(gsl_tests_config SYSTEM INTERFACE
> -@@ -267,6 +272,11 @@ else()
> - >
> - )
> - endif(MSVC)
> -+check_cxx_compiler_flag("-Wno-unsafe-buffer-usage" WARN_UNSAFE_BUFFER)
> -+if (WARN_UNSAFE_BUFFER)
> -+ # This test uses very greedy heuristics such as "no pointer arithmetic on raw buffer"
> -+ target_compile_options(gsl_tests_config_noexcept INTERFACE "-Wno-unsafe-buffer-usage")
> -+endif()
> -
> - add_executable(gsl_noexcept_tests no_exception_ensure_tests.cpp)
> - target_link_libraries(gsl_noexcept_tests
> -diff --git a/tests/span_tests.cpp b/tests/span_tests.cpp
> -index 33ccf56..3c1dfe5 100644
> ---- a/tests/span_tests.cpp
> -+++ b/tests/span_tests.cpp
> -@@ -330,7 +330,7 @@ TEST(span_test, from_array_constructor)
> - EXPECT_TRUE(s.data() == std::addressof(arr2d[0]));
> - }
> -
> -- int arr3d[2][3][2] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12};
> -+ int arr3d[2][3][2] = { { {1, 2}, {3, 4}, {5, 6} }, { {7, 8}, {9, 10}, {11, 12} } };
> -
> - #ifdef CONFIRM_COMPILATION_ERRORS
> - {
> ---
> -2.30.2
> -
> diff --git a/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl/0002-Fix-gcc-build-problem.patch b/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl/0002-Fix-gcc-build-problem.patch
> deleted file mode 100644
> index 2f7542c62c..0000000000
> --- a/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl/0002-Fix-gcc-build-problem.patch
> +++ /dev/null
> @@ -1,82 +0,0 @@
> -From aa4fd1f57794964640005900c2b47af1a0940b7b Mon Sep 17 00:00:00 2001
> -From: Werner Henze <w.henze@avm.de>
> -Date: Fri, 1 Mar 2024 15:53:50 +0100
> -Subject: [PATCH] Fix gcc build problem
> -
> -Closes issue #1148 by fixing problems introduced in PR #1140.
> -
> -Upstream-Status: Submitted [https://github.com/microsoft/GSL/pull/1149]
> -
> -Signed-off-by: Peter Marko <peter.marko@siemens.com>
> ----
> - include/gsl/span | 12 ++++++++----
> - include/gsl/util | 12 ++++++++----
> - 2 files changed, 16 insertions(+), 8 deletions(-)
> -
> -diff --git a/include/gsl/span b/include/gsl/span
> -index 0de2932..d2ef9f7 100644
> ---- a/include/gsl/span
> -+++ b/include/gsl/span
> -@@ -59,10 +59,12 @@
> - #endif
> -
> - // Turn off clang unsafe buffer warnings as all accessed are guarded by runtime checks
> --#if defined(__clang__) && __has_warning("-Wunsafe-buffer-usage")
> -+#if defined(__clang__)
> -+#if __has_warning("-Wunsafe-buffer-usage")
> - #pragma clang diagnostic push
> - #pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
> --#endif // defined(__clang__) && __has_warning("-Wunsafe-buffer-usage")
> -+#endif // __has_warning("-Wunsafe-buffer-usage")
> -+#endif // defined(__clang__)
> -
> - namespace gsl
> - {
> -@@ -824,8 +826,10 @@ as_writable_bytes(span<ElementType, Extent> s) noexcept
> - #pragma GCC diagnostic pop
> - #endif // __GNUC__ > 6
> -
> --#if defined(__clang__) && __has_warning("-Wunsafe-buffer-usage")
> -+#if defined(__clang__)
> -+#if __has_warning("-Wunsafe-buffer-usage")
> - #pragma clang diagnostic pop
> --#endif
> -+#endif // __has_warning("-Wunsafe-buffer-usage")
> -+#endif // defined(__clang__)
> -
> - #endif // GSL_SPAN_H
> -diff --git a/include/gsl/util b/include/gsl/util
> -index b853017..26b2f5f 100644
> ---- a/include/gsl/util
> -+++ b/include/gsl/util
> -@@ -40,10 +40,12 @@
> - #endif // _MSC_VER
> -
> - // Turn off clang unsafe buffer warnings as all accessed are guarded by runtime checks
> --#if defined(__clang__) && __has_warning("-Wunsafe-buffer-usage")
> -+#if defined(__clang__)
> -+#if __has_warning("-Wunsafe-buffer-usage")
> - #pragma clang diagnostic push
> - #pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
> --#endif // defined(__clang__) && __has_warning("-Wunsafe-buffer-usage")
> -+#endif // __has_warning("-Wunsafe-buffer-usage")
> -+#endif // defined(__clang__)
> -
> - #if defined(__cplusplus) && (__cplusplus >= 201703L)
> - #define GSL_NODISCARD [[nodiscard]]
> -@@ -163,8 +165,10 @@ constexpr auto at(std::span<T, extent> sp, const index i) -> decltype(sp[sp.size
> -
> - #endif // _MSC_VER
> -
> --#if defined(__clang__) && __has_warning("-Wunsafe-buffer-usage")
> -+#if defined(__clang__)
> -+#if __has_warning("-Wunsafe-buffer-usage")
> - #pragma clang diagnostic pop
> --#endif
> -+#endif // __has_warning("-Wunsafe-buffer-usage")
> -+#endif // defined(__clang__)
> -
> - #endif // GSL_UTIL_H
> ---
> -2.30.2
> -
> diff --git a/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl/0003-Adapt-check_cxx_compiler_flag-to-cmake-3.0.2.patch b/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl/0003-Adapt-check_cxx_compiler_flag-to-cmake-3.0.2.patch
> deleted file mode 100644
> index ed057f5243..0000000000
> --- a/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl/0003-Adapt-check_cxx_compiler_flag-to-cmake-3.0.2.patch
> +++ /dev/null
> @@ -1,53 +0,0 @@
> -From 85e1c38bcf84bd4e2ce63ef74f0cfa1f5e92261e Mon Sep 17 00:00:00 2001
> -From: Peter Marko <peter.marko@siemens.com>
> -Date: Wed, 27 Mar 2024 23:46:31 +0100
> -Subject: [PATCH] Adapt check_cxx_compiler_flag to cmake 3.0.2
> -
> -Backporting commits which are upgrading cmake_minimum_required and
> -include check_cxx_compiler_flag have too many additional changes.
> -
> -Let's just do a simple adaptation of our backported patch so
> -it works with older cmake version instead.
> -
> -This can be safely removed when recipe version is upgraded.
> -
> -Upstream-Status: Inappropriate
> -
> -Signed-off-by: Peter Marko <peter.marko@siemens.com>
> ----
> - tests/CMakeLists.txt | 5 +++--
> - 1 file changed, 3 insertions(+), 2 deletions(-)
> -
> -diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
> -index 20de9e1..54c3ac5 100644
> ---- a/tests/CMakeLists.txt
> -+++ b/tests/CMakeLists.txt
> -@@ -5,6 +5,7 @@ enable_testing() # again, for support standalone testing
> -
> - include(FindPkgConfig)
> - include(ExternalProject)
> -+include(CheckCXXCompilerFlag)
> -
> - # will make visual studio generated project group files
> - set_property(GLOBAL PROPERTY USE_FOLDERS ON)
> -@@ -167,7 +168,7 @@ else()
> - >
> - )
> - endif(MSVC)
> --check_cxx_compiler_flag("-Wno-unsafe-buffer-usage" WARN_UNSAFE_BUFFER)
> -+CHECK_CXX_COMPILER_FLAG("-Wno-unsafe-buffer-usage" WARN_UNSAFE_BUFFER)
> - if (WARN_UNSAFE_BUFFER)
> - # This test uses very greedy heuristics such as "no pointer arithmetic on raw buffer"
> - target_compile_options(gsl_tests_config INTERFACE "-Wno-unsafe-buffer-usage")
> -@@ -272,7 +273,7 @@ else()
> - >
> - )
> - endif(MSVC)
> --check_cxx_compiler_flag("-Wno-unsafe-buffer-usage" WARN_UNSAFE_BUFFER)
> -+CHECK_CXX_COMPILER_FLAG("-Wno-unsafe-buffer-usage" WARN_UNSAFE_BUFFER)
> - if (WARN_UNSAFE_BUFFER)
> - # This test uses very greedy heuristics such as "no pointer arithmetic on raw buffer"
> - target_compile_options(gsl_tests_config_noexcept INTERFACE "-Wno-unsafe-buffer-usage")
> ---
> -2.30.2
> -
> diff --git a/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl_4.0.0.bb b/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl_4.2.0.bb
> similarity index 87%
> rename from meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl_4.0.0.bb
> rename to meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl_4.2.0.bb
> index 2fbbf8f06a..610c45a298 100644
> --- a/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl_4.0.0.bb
> +++ b/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl_4.2.0.bb
> @@ -9,13 +9,9 @@ LICENSE = "MIT"
> LIC_FILES_CHKSUM = "file://LICENSE;md5=363055e71e77071107ba2bb9a54bd9a7"
>
> SRC_URI = "git://github.com/microsoft/GSL.git;protocol=https;branch=main \
> - file://run-ptest \
> - file://0001-Fix-initialization-in-test-1140.patch \
> - file://0002-Fix-gcc-build-problem.patch \
> - file://0003-Adapt-check_cxx_compiler_flag-to-cmake-3.0.2.patch \
> + file://run-ptest \
> "
> -SRCREV = "a3534567187d2edc428efd3f13466ff75fe5805c"
> -
> +SRCREV = "2828399820ef4928cc89b65605dca5dc68efca6e"
>
> inherit cmake pkgconfig ptest
>
>
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#118340): https://lists.openembedded.org/g/openembedded-devel/message/118340
> Mute This Topic: https://lists.openembedded.org/mt/114053267/1997914
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
^ permalink raw reply [flat|nested] 30+ messages in thread* Re: [oe] [meta-openembedded][PATCH 18/20] microsoft-gsl: Upgrade 4.0.0 -> 4.2.0 to allow CMake 4+ compatibility
2025-07-09 16:08 ` [oe] " Khem Raj
@ 2025-07-09 20:46 ` Alper Ak
0 siblings, 0 replies; 30+ messages in thread
From: Alper Ak @ 2025-07-09 20:46 UTC (permalink / raw)
To: Khem Raj; +Cc: openembedded-devel
Sent a v2 patch ->
https://lists.openembedded.org/g/openembedded-devel/message/118383
Khem Raj <raj.khem@gmail.com>, 9 Tem 2025 Çar, 19:08 tarihinde şunu yazdı:
>
> this fails to build with clang
>
> https://errors.yoctoproject.org/Errors/Details/869560/
>
> On 7/8/25 12:56 PM, Alper Ak via lists.openembedded.org wrote:
> > - Drop patches because already fixed in newer version
> >
> > Changelog:
> >
> > https://github.com/microsoft/GSL/compare/v4.0.0...v4.2.0
> > https://github.com/microsoft/GSL/releases/tag/v4.2.0
> > https://github.com/microsoft/GSL/releases/tag/v4.1.0
> >
> > Fix:
> >
> > | CMake Error at tests/CMakeLists.txt:1 (cmake_minimum_required):
> > | Compatibility with CMake < 3.5 has been removed from CMake.
> > |
> > | Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
> > | to tell CMake that the project requires at least <min> but has been updated
> > | to work with policies introduced by <max> or earlier.
> > |
> > | Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
> > |
> > |
> > | -- Configuring incomplete, errors occurred!
> >
> > Signed-off-by: Alper Ak <alperyasinak1@gmail.com>
> > ---
> > ...0001-Fix-initialization-in-test-1140.patch | 113 ------------------
> > .../0002-Fix-gcc-build-problem.patch | 82 -------------
> > ...eck_cxx_compiler_flag-to-cmake-3.0.2.patch | 53 --------
> > ...ft-gsl_4.0.0.bb => microsoft-gsl_4.2.0.bb} | 8 +-
> > 4 files changed, 2 insertions(+), 254 deletions(-)
> > delete mode 100644 meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl/0001-Fix-initialization-in-test-1140.patch
> > delete mode 100644 meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl/0002-Fix-gcc-build-problem.patch
> > delete mode 100644 meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl/0003-Adapt-check_cxx_compiler_flag-to-cmake-3.0.2.patch
> > rename meta-oe/recipes-devtools/microsoft-gsl/{microsoft-gsl_4.0.0.bb => microsoft-gsl_4.2.0.bb} (87%)
> >
> > diff --git a/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl/0001-Fix-initialization-in-test-1140.patch b/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl/0001-Fix-initialization-in-test-1140.patch
> > deleted file mode 100644
> > index 84a585d3c5..0000000000
> > --- a/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl/0001-Fix-initialization-in-test-1140.patch
> > +++ /dev/null
> > @@ -1,113 +0,0 @@
> > -From 1b4d42ca2e97061042ec44a0b34ceb176c78c7e1 Mon Sep 17 00:00:00 2001
> > -From: d-winsor <danwin@microsoft.com>
> > -Date: Mon, 26 Feb 2024 13:17:12 -0800
> > -Subject: [PATCH] Fix initialization in test (#1140)
> > -
> > -* Suppress unsafe-buffer-usage
> > -
> > -Upstream-Status: Backport [https://github.com/microsoft/GSL/commit/1b4d42ca2e97061042ec44a0b34ceb176c78c7e1]
> > -
> > -Signed-off-by: Peter Marko <peter.marko@siemens.com>
> > ----
> > - include/gsl/span | 10 ++++++++++
> > - include/gsl/util | 10 ++++++++++
> > - tests/CMakeLists.txt | 10 ++++++++++
> > - tests/span_tests.cpp | 2 +-
> > - 4 files changed, 31 insertions(+), 1 deletion(-)
> > -
> > -diff --git a/include/gsl/span b/include/gsl/span
> > -index cc8a7b9..d254e4d 100644
> > ---- a/include/gsl/span
> > -+++ b/include/gsl/span
> > -@@ -58,6 +58,12 @@
> > - #pragma GCC diagnostic ignored "-Wsign-conversion"
> > - #endif
> > -
> > -+// Turn off clang unsafe buffer warnings as all accessed are guarded by runtime checks
> > -+#if defined(__clang__) && __has_warning("-Wunsafe-buffer-usage")
> > -+#pragma clang diagnostic push
> > -+#pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
> > -+#endif // defined(__clang__) && __has_warning("-Wunsafe-buffer-usage")
> > -+
> > - namespace gsl
> > - {
> > -
> > -@@ -818,4 +824,8 @@ as_writable_bytes(span<ElementType, Extent> s) noexcept
> > - #pragma GCC diagnostic pop
> > - #endif // __GNUC__ > 6
> > -
> > -+#if defined(__clang__) && __has_warning("-Wunsafe-buffer-usage")
> > -+#pragma clang diagnostic pop
> > -+#endif
> > -+
> > - #endif // GSL_SPAN_H
> > -diff --git a/include/gsl/util b/include/gsl/util
> > -index a215bad..11735a8 100644
> > ---- a/include/gsl/util
> > -+++ b/include/gsl/util
> > -@@ -39,6 +39,12 @@
> > -
> > - #endif // _MSC_VER
> > -
> > -+// Turn off clang unsafe buffer warnings as all accessed are guarded by runtime checks
> > -+#if defined(__clang__) && __has_warning("-Wunsafe-buffer-usage")
> > -+#pragma clang diagnostic push
> > -+#pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
> > -+#endif // defined(__clang__) && __has_warning("-Wunsafe-buffer-usage")
> > -+
> > - #if defined(__cplusplus) && (__cplusplus >= 201703L)
> > - #define GSL_NODISCARD [[nodiscard]]
> > - #else
> > -@@ -157,4 +163,8 @@ constexpr auto at(std::span<T, extent> sp, const index i) -> decltype(sp[sp.size
> > -
> > - #endif // _MSC_VER
> > -
> > -+#if defined(__clang__) && __has_warning("-Wunsafe-buffer-usage")
> > -+#pragma clang diagnostic pop
> > -+#endif
> > -+
> > - #endif // GSL_UTIL_H
> > -diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
> > -index cab4e56..20de9e1 100644
> > ---- a/tests/CMakeLists.txt
> > -+++ b/tests/CMakeLists.txt
> > -@@ -167,6 +167,11 @@ else()
> > - >
> > - )
> > - endif(MSVC)
> > -+check_cxx_compiler_flag("-Wno-unsafe-buffer-usage" WARN_UNSAFE_BUFFER)
> > -+if (WARN_UNSAFE_BUFFER)
> > -+ # This test uses very greedy heuristics such as "no pointer arithmetic on raw buffer"
> > -+ target_compile_options(gsl_tests_config INTERFACE "-Wno-unsafe-buffer-usage")
> > -+endif()
> > -
> > - # for tests to find the gtest header
> > - target_include_directories(gsl_tests_config SYSTEM INTERFACE
> > -@@ -267,6 +272,11 @@ else()
> > - >
> > - )
> > - endif(MSVC)
> > -+check_cxx_compiler_flag("-Wno-unsafe-buffer-usage" WARN_UNSAFE_BUFFER)
> > -+if (WARN_UNSAFE_BUFFER)
> > -+ # This test uses very greedy heuristics such as "no pointer arithmetic on raw buffer"
> > -+ target_compile_options(gsl_tests_config_noexcept INTERFACE "-Wno-unsafe-buffer-usage")
> > -+endif()
> > -
> > - add_executable(gsl_noexcept_tests no_exception_ensure_tests.cpp)
> > - target_link_libraries(gsl_noexcept_tests
> > -diff --git a/tests/span_tests.cpp b/tests/span_tests.cpp
> > -index 33ccf56..3c1dfe5 100644
> > ---- a/tests/span_tests.cpp
> > -+++ b/tests/span_tests.cpp
> > -@@ -330,7 +330,7 @@ TEST(span_test, from_array_constructor)
> > - EXPECT_TRUE(s.data() == std::addressof(arr2d[0]));
> > - }
> > -
> > -- int arr3d[2][3][2] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12};
> > -+ int arr3d[2][3][2] = { { {1, 2}, {3, 4}, {5, 6} }, { {7, 8}, {9, 10}, {11, 12} } };
> > -
> > - #ifdef CONFIRM_COMPILATION_ERRORS
> > - {
> > ---
> > -2.30.2
> > -
> > diff --git a/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl/0002-Fix-gcc-build-problem.patch b/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl/0002-Fix-gcc-build-problem.patch
> > deleted file mode 100644
> > index 2f7542c62c..0000000000
> > --- a/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl/0002-Fix-gcc-build-problem.patch
> > +++ /dev/null
> > @@ -1,82 +0,0 @@
> > -From aa4fd1f57794964640005900c2b47af1a0940b7b Mon Sep 17 00:00:00 2001
> > -From: Werner Henze <w.henze@avm.de>
> > -Date: Fri, 1 Mar 2024 15:53:50 +0100
> > -Subject: [PATCH] Fix gcc build problem
> > -
> > -Closes issue #1148 by fixing problems introduced in PR #1140.
> > -
> > -Upstream-Status: Submitted [https://github.com/microsoft/GSL/pull/1149]
> > -
> > -Signed-off-by: Peter Marko <peter.marko@siemens.com>
> > ----
> > - include/gsl/span | 12 ++++++++----
> > - include/gsl/util | 12 ++++++++----
> > - 2 files changed, 16 insertions(+), 8 deletions(-)
> > -
> > -diff --git a/include/gsl/span b/include/gsl/span
> > -index 0de2932..d2ef9f7 100644
> > ---- a/include/gsl/span
> > -+++ b/include/gsl/span
> > -@@ -59,10 +59,12 @@
> > - #endif
> > -
> > - // Turn off clang unsafe buffer warnings as all accessed are guarded by runtime checks
> > --#if defined(__clang__) && __has_warning("-Wunsafe-buffer-usage")
> > -+#if defined(__clang__)
> > -+#if __has_warning("-Wunsafe-buffer-usage")
> > - #pragma clang diagnostic push
> > - #pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
> > --#endif // defined(__clang__) && __has_warning("-Wunsafe-buffer-usage")
> > -+#endif // __has_warning("-Wunsafe-buffer-usage")
> > -+#endif // defined(__clang__)
> > -
> > - namespace gsl
> > - {
> > -@@ -824,8 +826,10 @@ as_writable_bytes(span<ElementType, Extent> s) noexcept
> > - #pragma GCC diagnostic pop
> > - #endif // __GNUC__ > 6
> > -
> > --#if defined(__clang__) && __has_warning("-Wunsafe-buffer-usage")
> > -+#if defined(__clang__)
> > -+#if __has_warning("-Wunsafe-buffer-usage")
> > - #pragma clang diagnostic pop
> > --#endif
> > -+#endif // __has_warning("-Wunsafe-buffer-usage")
> > -+#endif // defined(__clang__)
> > -
> > - #endif // GSL_SPAN_H
> > -diff --git a/include/gsl/util b/include/gsl/util
> > -index b853017..26b2f5f 100644
> > ---- a/include/gsl/util
> > -+++ b/include/gsl/util
> > -@@ -40,10 +40,12 @@
> > - #endif // _MSC_VER
> > -
> > - // Turn off clang unsafe buffer warnings as all accessed are guarded by runtime checks
> > --#if defined(__clang__) && __has_warning("-Wunsafe-buffer-usage")
> > -+#if defined(__clang__)
> > -+#if __has_warning("-Wunsafe-buffer-usage")
> > - #pragma clang diagnostic push
> > - #pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
> > --#endif // defined(__clang__) && __has_warning("-Wunsafe-buffer-usage")
> > -+#endif // __has_warning("-Wunsafe-buffer-usage")
> > -+#endif // defined(__clang__)
> > -
> > - #if defined(__cplusplus) && (__cplusplus >= 201703L)
> > - #define GSL_NODISCARD [[nodiscard]]
> > -@@ -163,8 +165,10 @@ constexpr auto at(std::span<T, extent> sp, const index i) -> decltype(sp[sp.size
> > -
> > - #endif // _MSC_VER
> > -
> > --#if defined(__clang__) && __has_warning("-Wunsafe-buffer-usage")
> > -+#if defined(__clang__)
> > -+#if __has_warning("-Wunsafe-buffer-usage")
> > - #pragma clang diagnostic pop
> > --#endif
> > -+#endif // __has_warning("-Wunsafe-buffer-usage")
> > -+#endif // defined(__clang__)
> > -
> > - #endif // GSL_UTIL_H
> > ---
> > -2.30.2
> > -
> > diff --git a/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl/0003-Adapt-check_cxx_compiler_flag-to-cmake-3.0.2.patch b/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl/0003-Adapt-check_cxx_compiler_flag-to-cmake-3.0.2.patch
> > deleted file mode 100644
> > index ed057f5243..0000000000
> > --- a/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl/0003-Adapt-check_cxx_compiler_flag-to-cmake-3.0.2.patch
> > +++ /dev/null
> > @@ -1,53 +0,0 @@
> > -From 85e1c38bcf84bd4e2ce63ef74f0cfa1f5e92261e Mon Sep 17 00:00:00 2001
> > -From: Peter Marko <peter.marko@siemens.com>
> > -Date: Wed, 27 Mar 2024 23:46:31 +0100
> > -Subject: [PATCH] Adapt check_cxx_compiler_flag to cmake 3.0.2
> > -
> > -Backporting commits which are upgrading cmake_minimum_required and
> > -include check_cxx_compiler_flag have too many additional changes.
> > -
> > -Let's just do a simple adaptation of our backported patch so
> > -it works with older cmake version instead.
> > -
> > -This can be safely removed when recipe version is upgraded.
> > -
> > -Upstream-Status: Inappropriate
> > -
> > -Signed-off-by: Peter Marko <peter.marko@siemens.com>
> > ----
> > - tests/CMakeLists.txt | 5 +++--
> > - 1 file changed, 3 insertions(+), 2 deletions(-)
> > -
> > -diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
> > -index 20de9e1..54c3ac5 100644
> > ---- a/tests/CMakeLists.txt
> > -+++ b/tests/CMakeLists.txt
> > -@@ -5,6 +5,7 @@ enable_testing() # again, for support standalone testing
> > -
> > - include(FindPkgConfig)
> > - include(ExternalProject)
> > -+include(CheckCXXCompilerFlag)
> > -
> > - # will make visual studio generated project group files
> > - set_property(GLOBAL PROPERTY USE_FOLDERS ON)
> > -@@ -167,7 +168,7 @@ else()
> > - >
> > - )
> > - endif(MSVC)
> > --check_cxx_compiler_flag("-Wno-unsafe-buffer-usage" WARN_UNSAFE_BUFFER)
> > -+CHECK_CXX_COMPILER_FLAG("-Wno-unsafe-buffer-usage" WARN_UNSAFE_BUFFER)
> > - if (WARN_UNSAFE_BUFFER)
> > - # This test uses very greedy heuristics such as "no pointer arithmetic on raw buffer"
> > - target_compile_options(gsl_tests_config INTERFACE "-Wno-unsafe-buffer-usage")
> > -@@ -272,7 +273,7 @@ else()
> > - >
> > - )
> > - endif(MSVC)
> > --check_cxx_compiler_flag("-Wno-unsafe-buffer-usage" WARN_UNSAFE_BUFFER)
> > -+CHECK_CXX_COMPILER_FLAG("-Wno-unsafe-buffer-usage" WARN_UNSAFE_BUFFER)
> > - if (WARN_UNSAFE_BUFFER)
> > - # This test uses very greedy heuristics such as "no pointer arithmetic on raw buffer"
> > - target_compile_options(gsl_tests_config_noexcept INTERFACE "-Wno-unsafe-buffer-usage")
> > ---
> > -2.30.2
> > -
> > diff --git a/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl_4.0.0.bb b/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl_4.2.0.bb
> > similarity index 87%
> > rename from meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl_4.0.0.bb
> > rename to meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl_4.2.0.bb
> > index 2fbbf8f06a..610c45a298 100644
> > --- a/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl_4.0.0.bb
> > +++ b/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl_4.2.0.bb
> > @@ -9,13 +9,9 @@ LICENSE = "MIT"
> > LIC_FILES_CHKSUM = "file://LICENSE;md5=363055e71e77071107ba2bb9a54bd9a7"
> >
> > SRC_URI = "git://github.com/microsoft/GSL.git;protocol=https;branch=main \
> > - file://run-ptest \
> > - file://0001-Fix-initialization-in-test-1140.patch \
> > - file://0002-Fix-gcc-build-problem.patch \
> > - file://0003-Adapt-check_cxx_compiler_flag-to-cmake-3.0.2.patch \
> > + file://run-ptest \
> > "
> > -SRCREV = "a3534567187d2edc428efd3f13466ff75fe5805c"
> > -
> > +SRCREV = "2828399820ef4928cc89b65605dca5dc68efca6e"
> >
> > inherit cmake pkgconfig ptest
> >
> >
> >
> >
> > -=-=-=-=-=-=-=-=-=-=-=-
> > Links: You receive all messages sent to this group.
> > View/Reply Online (#118340): https://lists.openembedded.org/g/openembedded-devel/message/118340
> > Mute This Topic: https://lists.openembedded.org/mt/114053267/1997914
> > Group Owner: openembedded-devel+owner@lists.openembedded.org
> > Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com]
> > -=-=-=-=-=-=-=-=-=-=-=-
> >
>
^ permalink raw reply [flat|nested] 30+ messages in thread
* [meta-openembedded][PATCH 19/20] snappy: Upgrade 1.1.10 -> 1.2.2 to to allow CMake 4+ compatibility
2025-07-08 19:56 [meta-openembedded][PATCH 01/20] cannelloni: Upgrade 1.1.0 -> 2.0.0 to allow CMake 4+ compatibility Alper Ak
` (16 preceding siblings ...)
2025-07-08 19:56 ` [meta-openembedded][PATCH 18/20] microsoft-gsl: Upgrade 4.0.0 -> 4.2.0 to allow " Alper Ak
@ 2025-07-08 19:56 ` Alper Ak
2025-07-08 19:56 ` [meta-openembedded][PATCH 20/20] gammu: Add patch for " Alper Ak
2025-07-09 16:09 ` [oe] [meta-openembedded][PATCH 01/20] cannelloni: Upgrade 1.1.0 -> 2.0.0 to allow " Khem Raj
19 siblings, 0 replies; 30+ messages in thread
From: Alper Ak @ 2025-07-08 19:56 UTC (permalink / raw)
To: openembedded-devel; +Cc: Alper Ak
- Dropped patch because already fixed in the newer version.
Changelog:
- We fixed a very old issue of data corruption when compressed size exceeds 4GB.
This can happen when you compress data close to 4GB and it's incompressible, for example, random data.
- Started to use minimum CMake 3.10 because older ones are not planned to be supported.
- Various other small fixes
- We restored old functions/symbols after reports of ABI incompatibility apache/arrow#41058 conda-forge/snappy-feedstock#35 #183
- Level API was added with level 2 support. Compresses 5-10% denser and decompresses 5-10% faster. The compression speed drop is about 20-30%
- Minor fixes
Fix:
| CMake Error at CMakeLists.txt:29 (cmake_minimum_required):
| Compatibility with CMake < 3.5 has been removed from CMake.
|
| Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
| to tell CMake that the project requires at least <min> but has been updated
| to work with policies introduced by <max> or earlier.
|
| Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
|
|
| -- Configuring incomplete, errors occurred!
Signed-off-by: Alper Ak <alperyasinak1@gmail.com>
---
.../snappy/fix-build-on-32bit-arm.patch | 33 -------------------
.../{snappy_1.1.10.bb => snappy_1.2.2.bb} | 7 ++--
2 files changed, 2 insertions(+), 38 deletions(-)
delete mode 100644 meta-oe/recipes-extended/snappy/snappy/fix-build-on-32bit-arm.patch
rename meta-oe/recipes-extended/snappy/{snappy_1.1.10.bb => snappy_1.2.2.bb} (87%)
diff --git a/meta-oe/recipes-extended/snappy/snappy/fix-build-on-32bit-arm.patch b/meta-oe/recipes-extended/snappy/snappy/fix-build-on-32bit-arm.patch
deleted file mode 100644
index b6ab149e19..0000000000
--- a/meta-oe/recipes-extended/snappy/snappy/fix-build-on-32bit-arm.patch
+++ /dev/null
@@ -1,33 +0,0 @@
-From ecb3bcc283ce740a34d6342cbcda569f3193ade9 Mon Sep 17 00:00:00 2001
-From: David Michael <fedora.dm0@gmail.com>
-Date: Mon, 1 May 2023 11:14:32 -0400
-Subject: [PATCH] Specifically check for NEON for ARMv8 CPUs.
-
-The actual NEON implementation uses instructions that are not
-supported on 32-bit CPUs. Make the CMake test reflect this so that
-ARMv7 builds succeed again.
-
-Upstream-Status: Submitted [https://github.com/google/snappy/pull/169]
-
-Signed-off-by: David Michael <fedora.dm0@gmail.com>
-Signed-off-by: Alper Ak <alperyasinak1@gmail.com>
----
- CMakeLists.txt | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index 85afe58e..e8775859 100644
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -207,9 +207,9 @@ int main() {
- check_cxx_source_compiles("
- #include <arm_neon.h>
- int main() {
-- uint8_t val = 3, dup[8];
-+ uint8_t val = 3;
- uint8x16_t v = vld1q_dup_u8(&val);
-- vst1q_u8(dup, v);
-+ val = vmaxvq_u8(v);
- return 0;
- }" SNAPPY_HAVE_NEON)
-
diff --git a/meta-oe/recipes-extended/snappy/snappy_1.1.10.bb b/meta-oe/recipes-extended/snappy/snappy_1.2.2.bb
similarity index 87%
rename from meta-oe/recipes-extended/snappy/snappy_1.1.10.bb
rename to meta-oe/recipes-extended/snappy/snappy_1.2.2.bb
index 2a49ba99b0..7601fdde50 100644
--- a/meta-oe/recipes-extended/snappy/snappy_1.1.10.bb
+++ b/meta-oe/recipes-extended/snappy/snappy_1.2.2.bb
@@ -10,11 +10,8 @@ compression ratio."
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://COPYING;md5=f62f3080324a97b3159a7a7e61812d0c"
-SRC_URI = "gitsm://github.com/google/snappy.git;protocol=https;branch=main \
- file://fix-build-on-32bit-arm.patch"
-
-SRCREV = "dc05e026488865bc69313a68bcc03ef2e4ea8e83"
-
+SRC_URI = "gitsm://github.com/google/snappy.git;protocol=https;branch=main"
+SRCREV = "6af9287fbdb913f0794d0148c6aa43b58e63c8e3"
inherit cmake pkgconfig
--
2.43.0
^ permalink raw reply related [flat|nested] 30+ messages in thread* [meta-openembedded][PATCH 20/20] gammu: Add patch for CMake 4+ compatibility
2025-07-08 19:56 [meta-openembedded][PATCH 01/20] cannelloni: Upgrade 1.1.0 -> 2.0.0 to allow CMake 4+ compatibility Alper Ak
` (17 preceding siblings ...)
2025-07-08 19:56 ` [meta-openembedded][PATCH 19/20] snappy: Upgrade 1.1.10 -> 1.2.2 to " Alper Ak
@ 2025-07-08 19:56 ` Alper Ak
2025-07-09 16:09 ` [oe] [meta-openembedded][PATCH 01/20] cannelloni: Upgrade 1.1.0 -> 2.0.0 to allow " Khem Raj
19 siblings, 0 replies; 30+ messages in thread
From: Alper Ak @ 2025-07-08 19:56 UTC (permalink / raw)
To: openembedded-devel; +Cc: Alper Ak
Fix:
| CMake Error at CMakeLists.txt:5 (cmake_minimum_required):
| Compatibility with CMake < 3.5 has been removed from CMake.
|
| Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
| to tell CMake that the project requires at least <min> but has been updated
| to work with policies introduced by <max> or earlier.
|
| Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
|
|
| -- Configuring incomplete, errors occurred!
Signed-off-by: Alper Ak <alperyasinak1@gmail.com>
---
.../gammu/0001-allow-build-with-cmake-4.patch | 43 +++++++++++++++++++
.../gammu/gammu_1.42.0.bb | 1 +
2 files changed, 44 insertions(+)
create mode 100644 meta-oe/recipes-connectivity/gammu/gammu/0001-allow-build-with-cmake-4.patch
diff --git a/meta-oe/recipes-connectivity/gammu/gammu/0001-allow-build-with-cmake-4.patch b/meta-oe/recipes-connectivity/gammu/gammu/0001-allow-build-with-cmake-4.patch
new file mode 100644
index 0000000000..5ab63b809f
--- /dev/null
+++ b/meta-oe/recipes-connectivity/gammu/gammu/0001-allow-build-with-cmake-4.patch
@@ -0,0 +1,43 @@
+From ea068ac152b9b375be51611ca04d0f833e2f6856 Mon Sep 17 00:00:00 2001
+From: Alper Ak <alperyasinak1@gmail.com>
+Date: Tue, 8 Jul 2025 22:52:11 +0300
+Subject: [PATCH] cmake: Set minimum required version to 3.5 for CMake 4+
+ compatibility
+
+Fix:
+
+| CMake Error at CMakeLists.txt:5 (cmake_minimum_required):
+| Compatibility with CMake < 3.5 has been removed from CMake.
+|
+| Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
+| to tell CMake that the project requires at least <min> but has been updated
+| to work with policies introduced by <max> or earlier.
+|
+| Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
+|
+|
+| -- Configuring incomplete, errors occurred!
+
+Upstream-Status: Pending
+
+Signed-off-by: Alper Ak <alperyasinak1@gmail.com>
+---
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index d0a79b3..23dba35 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -2,7 +2,7 @@
+ # Copyright (c) 2007 - 2018 Michal Cihar
+ # vim: expandtab sw=4 ts=4 sts=4:
+
+-cmake_minimum_required (VERSION 3.0)
++cmake_minimum_required (VERSION 3.5)
+ INCLUDE (CMakeForceCompiler)
+
+ project (Gammu C)
+--
+2.43.0
+
diff --git a/meta-oe/recipes-connectivity/gammu/gammu_1.42.0.bb b/meta-oe/recipes-connectivity/gammu/gammu_1.42.0.bb
index e6ec9c3573..353ee37f46 100644
--- a/meta-oe/recipes-connectivity/gammu/gammu_1.42.0.bb
+++ b/meta-oe/recipes-connectivity/gammu/gammu_1.42.0.bb
@@ -7,6 +7,7 @@ HOMEPAGE = "https://wammu.eu/"
SRC_URI = "https://dl.cihar.com/${BPN}/releases/${BP}.tar.xz \
file://gammurc \
file://gammu-smsdrc \
+ file://0001-allow-build-with-cmake-4.patch \
"
SRC_URI[sha256sum] = "d8f152314d7e4d3d643610d742845e0a016ce97c234ad4b1151574e1b09651ee"
--
2.43.0
^ permalink raw reply related [flat|nested] 30+ messages in thread* Re: [oe] [meta-openembedded][PATCH 01/20] cannelloni: Upgrade 1.1.0 -> 2.0.0 to allow CMake 4+ compatibility
2025-07-08 19:56 [meta-openembedded][PATCH 01/20] cannelloni: Upgrade 1.1.0 -> 2.0.0 to allow CMake 4+ compatibility Alper Ak
` (18 preceding siblings ...)
2025-07-08 19:56 ` [meta-openembedded][PATCH 20/20] gammu: Add patch for " Alper Ak
@ 2025-07-09 16:09 ` Khem Raj
2025-07-09 20:06 ` Alper Ak
19 siblings, 1 reply; 30+ messages in thread
From: Khem Raj @ 2025-07-09 16:09 UTC (permalink / raw)
To: alperyasinak1, openembedded-devel
fails to build with clang ( I think its upgrade having added
incompatible code )
https://errors.yoctoproject.org/Errors/Details/869562/
On 7/8/25 12:56 PM, Alper Ak via lists.openembedded.org wrote:
> - Drop 0001-include-bits-stdc-.h-only-when-using-libstdc.patch because already fixed in newer version.
>
> Changelog:
>
> https://github.com/mguentner/cannelloni/compare/v1.1.0...v2.0.0
>
> Fix:
>
> | CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
> | Compatibility with CMake < 3.5 has been removed from CMake.
> |
> | Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
> | to tell CMake that the project requires at least <min> but has been updated
> | to work with policies introduced by <max> or earlier.
> |
> | Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
> |
> |
> | -- Configuring incomplete, errors occurred!
>
> Signed-off-by: Alper Ak <alperyasinak1@gmail.com>
> ---
> ...bits-stdc-.h-only-when-using-libstdc.patch | 37 -------------------
> ...annelloni_1.1.0.bb => cannelloni_2.0.0.bb} | 7 +---
> 2 files changed, 2 insertions(+), 42 deletions(-)
> delete mode 100644 meta-networking/recipes-connectivity/cannelloni/cannelloni/0001-include-bits-stdc-.h-only-when-using-libstdc.patch
> rename meta-networking/recipes-connectivity/cannelloni/{cannelloni_1.1.0.bb => cannelloni_2.0.0.bb} (71%)
>
> diff --git a/meta-networking/recipes-connectivity/cannelloni/cannelloni/0001-include-bits-stdc-.h-only-when-using-libstdc.patch b/meta-networking/recipes-connectivity/cannelloni/cannelloni/0001-include-bits-stdc-.h-only-when-using-libstdc.patch
> deleted file mode 100644
> index 71f447c94b..0000000000
> --- a/meta-networking/recipes-connectivity/cannelloni/cannelloni/0001-include-bits-stdc-.h-only-when-using-libstdc.patch
> +++ /dev/null
> @@ -1,37 +0,0 @@
> -From 7aed36765ae44b41ede7e139da0a11b3696f2e06 Mon Sep 17 00:00:00 2001
> -From: Khem Raj <raj.khem@gmail.com>
> -Date: Mon, 13 Nov 2023 00:07:23 -0800
> -Subject: [PATCH] include bits/stdc++.h only when using libstdc++
> -
> -We have other c++ runtime implementations e.g. llvm's libc++ which does
> -not provide this header bits/stdc++.h, therefore make sure that this
> -header is only included when using libstdc++
> -
> -Fixes
> -| /mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux/cannelloni/1.1.0/git/tcpthread.cpp:27:10: fatal error: 'bits/stdc++.h' file not found
> -| 27 | #include <bits/stdc++.h>
> -| | ^~~~~~~~~~~~~~~
> -
> -Upstream-Status: Submitted [https://github.com/mguentner/cannelloni/pull/56]
> -Signed-off-by: Khem Raj <raj.khem@gmail.com>
> ----
> - tcpthread.cpp | 2 ++
> - 1 file changed, 2 insertions(+)
> -
> -diff --git a/tcpthread.cpp b/tcpthread.cpp
> -index a1b3047..bb5a7b2 100644
> ---- a/tcpthread.cpp
> -+++ b/tcpthread.cpp
> -@@ -24,7 +24,9 @@
> - #include <cstdint>
> - #include <cstdio>
> -
> -+#ifdef __GLIBCXX__
> - #include <bits/stdc++.h>
> -+#endif
> -
> - #include <linux/can.h>
> - #include <string.h>
> ---
> -2.42.1
> -
> diff --git a/meta-networking/recipes-connectivity/cannelloni/cannelloni_1.1.0.bb b/meta-networking/recipes-connectivity/cannelloni/cannelloni_2.0.0.bb
> similarity index 71%
> rename from meta-networking/recipes-connectivity/cannelloni/cannelloni_1.1.0.bb
> rename to meta-networking/recipes-connectivity/cannelloni/cannelloni_2.0.0.bb
> index 835f33055a..287c7685e4 100644
> --- a/meta-networking/recipes-connectivity/cannelloni/cannelloni_1.1.0.bb
> +++ b/meta-networking/recipes-connectivity/cannelloni/cannelloni_2.0.0.bb
> @@ -2,15 +2,12 @@ SUMMARY = "a SocketCAN over Ethernet tunnel"
> HOMEPAGE = "https://github.com/mguentner/cannelloni"
> LICENSE = "GPL-2.0-only"
>
> -SRC_URI = "git://github.com/mguentner/cannelloni.git;protocol=https;branch=master \
> - file://0001-include-bits-stdc-.h-only-when-using-libstdc.patch \
> - "
> -SRCREV = "3d4fb8c8b07f6d7c62b2bdad7e5a94de61c9a29b"
> +SRC_URI = "git://github.com/mguentner/cannelloni.git;protocol=https;branch=master"
> +SRCREV = "9f649ef21710999c6f674bc3d914ab2e88363bac"
>
> LIC_FILES_CHKSUM = "file://gpl-2.0.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263"
>
> inherit cmake
>
> -
> PACKAGECONFIG ??= "lksctp-tools"
> PACKAGECONFIG[lksctp-tools] = "-DSCTP_SUPPORT=true, -DSCTP_SUPPORT=false, lksctp-tools"
>
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#118323): https://lists.openembedded.org/g/openembedded-devel/message/118323
> Mute This Topic: https://lists.openembedded.org/mt/114053246/1997914
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
^ permalink raw reply [flat|nested] 30+ messages in thread* Re: [oe] [meta-openembedded][PATCH 01/20] cannelloni: Upgrade 1.1.0 -> 2.0.0 to allow CMake 4+ compatibility
2025-07-09 16:09 ` [oe] [meta-openembedded][PATCH 01/20] cannelloni: Upgrade 1.1.0 -> 2.0.0 to allow " Khem Raj
@ 2025-07-09 20:06 ` Alper Ak
0 siblings, 0 replies; 30+ messages in thread
From: Alper Ak @ 2025-07-09 20:06 UTC (permalink / raw)
To: Khem Raj; +Cc: openembedded-devel
Sent a v2 patch ->
https://lists.openembedded.org/g/openembedded-devel/message/118380
Khem Raj <raj.khem@gmail.com>, 9 Tem 2025 Çar, 19:09 tarihinde şunu yazdı:
>
> fails to build with clang ( I think its upgrade having added
> incompatible code )
>
> https://errors.yoctoproject.org/Errors/Details/869562/
>
> On 7/8/25 12:56 PM, Alper Ak via lists.openembedded.org wrote:
> > - Drop 0001-include-bits-stdc-.h-only-when-using-libstdc.patch because already fixed in newer version.
> >
> > Changelog:
> >
> > https://github.com/mguentner/cannelloni/compare/v1.1.0...v2.0.0
> >
> > Fix:
> >
> > | CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
> > | Compatibility with CMake < 3.5 has been removed from CMake.
> > |
> > | Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
> > | to tell CMake that the project requires at least <min> but has been updated
> > | to work with policies introduced by <max> or earlier.
> > |
> > | Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
> > |
> > |
> > | -- Configuring incomplete, errors occurred!
> >
> > Signed-off-by: Alper Ak <alperyasinak1@gmail.com>
> > ---
> > ...bits-stdc-.h-only-when-using-libstdc.patch | 37 -------------------
> > ...annelloni_1.1.0.bb => cannelloni_2.0.0.bb} | 7 +---
> > 2 files changed, 2 insertions(+), 42 deletions(-)
> > delete mode 100644 meta-networking/recipes-connectivity/cannelloni/cannelloni/0001-include-bits-stdc-.h-only-when-using-libstdc.patch
> > rename meta-networking/recipes-connectivity/cannelloni/{cannelloni_1.1.0.bb => cannelloni_2.0.0.bb} (71%)
> >
> > diff --git a/meta-networking/recipes-connectivity/cannelloni/cannelloni/0001-include-bits-stdc-.h-only-when-using-libstdc.patch b/meta-networking/recipes-connectivity/cannelloni/cannelloni/0001-include-bits-stdc-.h-only-when-using-libstdc.patch
> > deleted file mode 100644
> > index 71f447c94b..0000000000
> > --- a/meta-networking/recipes-connectivity/cannelloni/cannelloni/0001-include-bits-stdc-.h-only-when-using-libstdc.patch
> > +++ /dev/null
> > @@ -1,37 +0,0 @@
> > -From 7aed36765ae44b41ede7e139da0a11b3696f2e06 Mon Sep 17 00:00:00 2001
> > -From: Khem Raj <raj.khem@gmail.com>
> > -Date: Mon, 13 Nov 2023 00:07:23 -0800
> > -Subject: [PATCH] include bits/stdc++.h only when using libstdc++
> > -
> > -We have other c++ runtime implementations e.g. llvm's libc++ which does
> > -not provide this header bits/stdc++.h, therefore make sure that this
> > -header is only included when using libstdc++
> > -
> > -Fixes
> > -| /mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux/cannelloni/1.1.0/git/tcpthread.cpp:27:10: fatal error: 'bits/stdc++.h' file not found
> > -| 27 | #include <bits/stdc++.h>
> > -| | ^~~~~~~~~~~~~~~
> > -
> > -Upstream-Status: Submitted [https://github.com/mguentner/cannelloni/pull/56]
> > -Signed-off-by: Khem Raj <raj.khem@gmail.com>
> > ----
> > - tcpthread.cpp | 2 ++
> > - 1 file changed, 2 insertions(+)
> > -
> > -diff --git a/tcpthread.cpp b/tcpthread.cpp
> > -index a1b3047..bb5a7b2 100644
> > ---- a/tcpthread.cpp
> > -+++ b/tcpthread.cpp
> > -@@ -24,7 +24,9 @@
> > - #include <cstdint>
> > - #include <cstdio>
> > -
> > -+#ifdef __GLIBCXX__
> > - #include <bits/stdc++.h>
> > -+#endif
> > -
> > - #include <linux/can.h>
> > - #include <string.h>
> > ---
> > -2.42.1
> > -
> > diff --git a/meta-networking/recipes-connectivity/cannelloni/cannelloni_1.1.0.bb b/meta-networking/recipes-connectivity/cannelloni/cannelloni_2.0.0.bb
> > similarity index 71%
> > rename from meta-networking/recipes-connectivity/cannelloni/cannelloni_1.1.0.bb
> > rename to meta-networking/recipes-connectivity/cannelloni/cannelloni_2.0.0.bb
> > index 835f33055a..287c7685e4 100644
> > --- a/meta-networking/recipes-connectivity/cannelloni/cannelloni_1.1.0.bb
> > +++ b/meta-networking/recipes-connectivity/cannelloni/cannelloni_2.0.0.bb
> > @@ -2,15 +2,12 @@ SUMMARY = "a SocketCAN over Ethernet tunnel"
> > HOMEPAGE = "https://github.com/mguentner/cannelloni"
> > LICENSE = "GPL-2.0-only"
> >
> > -SRC_URI = "git://github.com/mguentner/cannelloni.git;protocol=https;branch=master \
> > - file://0001-include-bits-stdc-.h-only-when-using-libstdc.patch \
> > - "
> > -SRCREV = "3d4fb8c8b07f6d7c62b2bdad7e5a94de61c9a29b"
> > +SRC_URI = "git://github.com/mguentner/cannelloni.git;protocol=https;branch=master"
> > +SRCREV = "9f649ef21710999c6f674bc3d914ab2e88363bac"
> >
> > LIC_FILES_CHKSUM = "file://gpl-2.0.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263"
> >
> > inherit cmake
> >
> > -
> > PACKAGECONFIG ??= "lksctp-tools"
> > PACKAGECONFIG[lksctp-tools] = "-DSCTP_SUPPORT=true, -DSCTP_SUPPORT=false, lksctp-tools"
> >
> >
> >
> > -=-=-=-=-=-=-=-=-=-=-=-
> > Links: You receive all messages sent to this group.
> > View/Reply Online (#118323): https://lists.openembedded.org/g/openembedded-devel/message/118323
> > Mute This Topic: https://lists.openembedded.org/mt/114053246/1997914
> > Group Owner: openembedded-devel+owner@lists.openembedded.org
> > Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com]
> > -=-=-=-=-=-=-=-=-=-=-=-
> >
>
^ permalink raw reply [flat|nested] 30+ messages in thread