From patchwork Mon Jul 7 22:53:59 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alper Ak X-Patchwork-Id: 66364 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id B4DEAC83030 for ; Mon, 7 Jul 2025 22:54:19 +0000 (UTC) Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com [209.85.167.48]) by mx.groups.io with SMTP id smtpd.web11.5690.1751928857491926947 for ; Mon, 07 Jul 2025 15:54:17 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=IHBXgrpx; spf=pass (domain: gmail.com, ip: 209.85.167.48, mailfrom: alperyasinak1@gmail.com) Received: by mail-lf1-f48.google.com with SMTP id 2adb3069b0e04-5550dca1241so3607464e87.0 for ; Mon, 07 Jul 2025 15:54:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1751928855; x=1752533655; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=BEiw+Etvhj9g4C/02kXEVOqbOXRZEElVruy7k87Orx0=; b=IHBXgrpxYFJ0tbZQtc+ls6hf5vTaQzwGUIJkCld6tQX0wG9ChbwIC70RsSnT3q+q3H 3rvBp3o/Mal7OFEfNrGdsBb/VdGGGUStNgzNUmcUFQa3ryV0wTnBOzDqDHoXP52y3HQo sMvu3OcO+ymFCtGCLQhrGpyVVD5Ns9cHo9wVCz8QFs30GVpbfXsiPerw3qe2DXGeE2do RJUAb8clRcyFBLhX6bIqYgWQYlF+GFDc+d34OtV11T1LvEgJ1pIXVInGDcGdloseE2b1 vFwyuSKSyfKdurPgfunOIAQO+Wjr/xIw7CMkue+LlJaEqapQpUCeESQFzJKpemVJWE1S bFfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1751928855; x=1752533655; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=BEiw+Etvhj9g4C/02kXEVOqbOXRZEElVruy7k87Orx0=; b=Wut+cf7BVw9KtHNxoVn9/a5i2OltqjfI1l2LgVrouZ3Qrlwf7uiITKOVLEYJHZetyl 2SqmMekBfSStN5Wfu59as9v4pPPjAFjXwhXJTAUv/s0Ubcd+MVFPnEa9+4Le93lWHjLp MnMFTjuo5bBw2WVzoswPS9xav+Alr26ZG6gCC0VRR2SYnantppL4XH/yaVwWuQK2ol/H ZEsuapqWGI709tZHyYg3lWQGzlUb+dtBTrZvoi/xuw882j4iaDuhNWIM+rJnGoygFW/X 5prwD21560WBN0by99EeNEscdEfa+al3irqDehpVd6YpT530m8fQAoPCxANRQtZRp/qp CW+w== X-Gm-Message-State: AOJu0Yyi5DtZ6UIHjBb06yPaDk/70KgLegHUYp4Nem9P4swykhDD6S0x U2Ig0oZbTxyYEr2nSIMpL9cMG4t+yQVZrn/jn2pOHWM2dDx99qUcjVEapBGVsg== X-Gm-Gg: ASbGncuM31ncUfkpDujajyuW+tLer45M6942MoJBDbzDym6gE0ZS4/1LTHWcgo8XRkp RGz5HwSok9lae6h4VQiOfhSnUuCkiUDng96iYtk3o9rv602LrXpUTkrNa8TIE4Gt2v7a15m5WCb vVW8/6CgzEig6Fn2puihE81bZe7GxC1R9uuAPHNWw1SqIfVzRWyI1cKxmLoxxkWXMoOb01Ygmda 6nCt6yWQ05tgU1k7JymZVe+3S4pCTxhTGsWnScfg1+e/wO3DXywOS/6V5UZ4eDjByHtOyzC0xNN uxeACc/rNVBf4Tp6AxvOvNlrfJzq6gJVBkne/n1vP0zE2OCxiJCTNBM4bOhvnOMSIoB4oEoTXvD CP4k= X-Google-Smtp-Source: AGHT+IGrXfj9jDLTaBAvc18KS5z9KKdKCapQh0ZWBI5EFYZjgGVGz4jsOOsx/2O5R3P+ablxgfJ7NA== X-Received: by 2002:a05:6512:2c90:b0:553:2c65:f1ca with SMTP id 2adb3069b0e04-556e701d248mr5469595e87.19.1751928855018; Mon, 07 Jul 2025 15:54:15 -0700 (PDT) Received: from localhost.localdomain ([176.33.70.141]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-556384b836dsm1476347e87.197.2025.07.07.15.54.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Jul 2025 15:54:14 -0700 (PDT) From: Alper Ak To: openembedded-devel@lists.openembedded.org Cc: Alper Ak Subject: [meta-openembedded][PATCH 1/9] liblightmodbus: Upgrade 2.0.2 -> 3.0 to allow CMake 4+ compatibility Date: Tue, 8 Jul 2025 01:53:59 +0300 Message-ID: <20250707225407.1558421-1-alperyasinak1@gmail.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 07 Jul 2025 22:54:19 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/118289 - Drop 0001-cmake-Use-GNUInstallDirs-instead-of-hardcoding-lib-p.patch because it's no longer exists. - Drop pkgconfig and cmake inherit since library is now header-only and does not require build tools - Install lightmodbusConfig.cmake for consumers using CMake. Changelog: https://github.com/Jacajack/liblightmodbus/releases/tag/v3.0 Fix: | CMake Error at CMakeLists.txt:2 (cmake_minimum_required): | Compatibility with CMake < 3.5 has been removed from CMake. | | Update the VERSION argument value. Or, use the ... syntax | to tell CMake that the project requires at least but has been updated | to work with policies introduced by or earlier. | | Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway. Signed-off-by: Alper Ak --- ...tallDirs-instead-of-hardcoding-lib-p.patch | 37 ------------------- .../liblightmodbus/liblightmodbus_2.0.2.bb | 14 ------- .../liblightmodbus/liblightmodbus_3.0.bb | 17 +++++++++ 3 files changed, 17 insertions(+), 51 deletions(-) delete mode 100644 meta-oe/recipes-extended/liblightmodbus/liblightmodbus/0001-cmake-Use-GNUInstallDirs-instead-of-hardcoding-lib-p.patch delete mode 100644 meta-oe/recipes-extended/liblightmodbus/liblightmodbus_2.0.2.bb create mode 100644 meta-oe/recipes-extended/liblightmodbus/liblightmodbus_3.0.bb diff --git a/meta-oe/recipes-extended/liblightmodbus/liblightmodbus/0001-cmake-Use-GNUInstallDirs-instead-of-hardcoding-lib-p.patch b/meta-oe/recipes-extended/liblightmodbus/liblightmodbus/0001-cmake-Use-GNUInstallDirs-instead-of-hardcoding-lib-p.patch deleted file mode 100644 index 321b41289d..0000000000 --- a/meta-oe/recipes-extended/liblightmodbus/liblightmodbus/0001-cmake-Use-GNUInstallDirs-instead-of-hardcoding-lib-p.patch +++ /dev/null @@ -1,37 +0,0 @@ -From 066c49158a71ea77598c9e1ae16bba63d6ac6bb5 Mon Sep 17 00:00:00 2001 -From: Khem Raj -Date: Thu, 19 Dec 2019 23:41:35 -0800 -Subject: [PATCH] cmake: Use GNUInstallDirs instead of hardcoding lib path - -Upstream-Status: Submitted [https://github.com/Jacajack/liblightmodbus/pull/12] -Signed-off-by: Khem Raj ---- - CMakeLists.txt | 6 +++--- - 1 file changed, 3 insertions(+), 3 deletions(-) - -diff --git a/CMakeLists.txt b/CMakeLists.txt -index ce6cc88..bee83aa 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -242,14 +242,14 @@ if ( DEFINED AVR ) - ) - endif( ) - -- -+include(GNUInstallDirs) - #Installation - install( - TARGETS lightmodbus -- ARCHIVE DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/" -+ ARCHIVE DESTINATION "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/" - ) - - #Install headers - install( - DIRECTORY "${CMAKE_SOURCE_DIR}/include/" DESTINATION "${CMAKE_INSTALL_PREFIX}/include/" FILES_MATCHING PATTERN "*.h" --) -\ No newline at end of file -+) --- -2.24.1 - diff --git a/meta-oe/recipes-extended/liblightmodbus/liblightmodbus_2.0.2.bb b/meta-oe/recipes-extended/liblightmodbus/liblightmodbus_2.0.2.bb deleted file mode 100644 index c310e0f527..0000000000 --- a/meta-oe/recipes-extended/liblightmodbus/liblightmodbus_2.0.2.bb +++ /dev/null @@ -1,14 +0,0 @@ -SUMMARY = "A cross-platform, lightweight Modbus RTU library" -DESCRIPTION = "liblightmodbus is a very lightweight, highly configurable, \ - platform-independent Modbus RTU library." - -LICENSE = "GPL-3.0-only" -LIC_FILES_CHKSUM = "file://LICENSE;md5=84dcc94da3adb52b53ae4fa38fe49e5d" - -inherit cmake pkgconfig - -SRC_URI = "git://github.com/Jacajack/liblightmodbus.git;protocol=https;branch=master \ - file://0001-cmake-Use-GNUInstallDirs-instead-of-hardcoding-lib-p.patch \ - " -SRCREV = "59d2b405f95701e5b04326589786dbb43ce49e81" - diff --git a/meta-oe/recipes-extended/liblightmodbus/liblightmodbus_3.0.bb b/meta-oe/recipes-extended/liblightmodbus/liblightmodbus_3.0.bb new file mode 100644 index 0000000000..5f1233b2b4 --- /dev/null +++ b/meta-oe/recipes-extended/liblightmodbus/liblightmodbus_3.0.bb @@ -0,0 +1,17 @@ +SUMMARY = "A cross-platform, lightweight Modbus RTU library" +DESCRIPTION = "liblightmodbus is a very lightweight, highly configurable, \ + platform-independent Modbus RTU library." + +LICENSE = "GPL-3.0-only" +LIC_FILES_CHKSUM = "file://LICENSE;md5=84dcc94da3adb52b53ae4fa38fe49e5d" + +SRC_URI = "git://github.com/Jacajack/liblightmodbus.git;protocol=https;nobranch=1;tag=v${PV}" +SRCREV = "e7be88bc65abec4a902f4e5194d7235ebd3a19aa" + +do_install() { + install -d ${D}${includedir}/lightmodbus + install -m 0644 ${S}/include/lightmodbus/*.h ${D}${includedir}/lightmodbus/ + + install -d ${D}${libdir}/cmake/lightmodbus + install -m 0644 ${S}/lightmodbusConfig.cmake ${D}${libdir}/cmake/lightmodbus/ +} From patchwork Mon Jul 7 22:54:00 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alper Ak X-Patchwork-Id: 66365 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id C040BC71130 for ; Mon, 7 Jul 2025 22:54:19 +0000 (UTC) Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com [209.85.167.48]) by mx.groups.io with SMTP id smtpd.web10.5806.1751928858945674061 for ; Mon, 07 Jul 2025 15:54:19 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=R5h6aMmV; spf=pass (domain: gmail.com, ip: 209.85.167.48, mailfrom: alperyasinak1@gmail.com) Received: by mail-lf1-f48.google.com with SMTP id 2adb3069b0e04-553b9eb2299so3829503e87.0 for ; Mon, 07 Jul 2025 15:54:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1751928857; x=1752533657; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=uArgny3/4Zv1Pu8dkDKCckCOP86RwguI5bd6B7+8UJY=; b=R5h6aMmVq8kzUa3bwx+8KQQWYGpAxn6vMrxmyNU0IKVXKw4flwL/u6UXJ82wj8cvx/ vUDGlTTls8FSJVyAn25FvEtNy6CgQs9gTztmGaduKkE/m0bWXVcLzaGehqr1DVxWe27J /u0Sb0Dr3G6aWfX9cBnWidjO93x4iSY4Nf7Tl44UsSWlnyJl6tzJMrvHaQ3csag010ha tuA5VInVY+RfPHdEBYvc7BzQBGsuXRowjceRzxrKH2RuydiAEpBAL7aP9niER4tAvCTP /yMGVK8jcn1pRsvJkCrgAZqZO6NjoSnw0VqYaOTjLg1VbCAaRO0HKQcd9CMiEk9EJ1Sz 1RHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1751928857; x=1752533657; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=uArgny3/4Zv1Pu8dkDKCckCOP86RwguI5bd6B7+8UJY=; b=GKKHc+vyF5XTLxVNx/IMQ12YiVvi8jbNJ8Ed9LxBZ0lUtkybj0FztBs7hiuROUM3HY 1F+mlNjEqNJfeQdO1UpZlH4Eyj3f97wKRoKk7o5mG2SmMEImiXjQkMKmSmzVsfqbLOiU EEmv+L9/8csjafskBBvFEFnWMtffWis26ifZ7ySEm7T0m6J3qIIW4iXxiL3/f/xUjkac Xlq5psdc78skD7eQWCu5/Ez76fJGlRzFYAAiix2STN7Bdw7W0uz7EmOcCySSAOHHAl2N fUt7iL47p+igyLTXfAlFwOvcRT0IqTCeGqHN6ym6vC3Ang0Zq/z767Au+y6Dm/qcYdjW ouDQ== X-Gm-Message-State: AOJu0YwW5nZTyAljtHbiXzNEyaW+sNMIoc7V7BKhHohQJGVsKjz3yksW hYni8c5K/F5yfhIFVVhhvx75qTDVzneLLGNhINzP3T4AE3pqR6zCZrlYnP4P9w== X-Gm-Gg: ASbGncuwfziiWVLAUz1YNXcIb5OApW6GqxamgRhrzojIPnaci7a8f0+vIqOq0HDWfbD y5ZDO9K7lDL6BG8XwACxafIxrJwVQC911qTmSG5yx88byrJBGWdMpFpe5kTb9To3NFP9An6yc/0 z/ip9PmYAa2TEw+J9M6MJ3RpNGeGKfQZmvunZdkb/c2jsR3WBvwtjo+ag/8ZOCIUUUE1NJwZQnc Av3rzKhTyXOT81PWy/gfN6WAmsXCE9qczBODvT5K1JNYqM0of81MwF0RZj20DIBcuss5pCswkXr iUKCXmBJRc3z1FTIpts+XWg9vjnUbQlv9eyAeKbhi5L74TPJjxPP9eo/PNw7RcVBFtxViTqRyya UO3o= X-Google-Smtp-Source: AGHT+IFYuEFVyp9ImNpc1Tf9AFJUhXfE82JNzdyv84aM3+h0VjSse2H0xZzPEfeyoPvLjCQkC39TTw== X-Received: by 2002:a05:6512:2c99:b0:552:20e1:5b97 with SMTP id 2adb3069b0e04-557f8dcdc9bmr102226e87.18.1751928856423; Mon, 07 Jul 2025 15:54:16 -0700 (PDT) Received: from localhost.localdomain ([176.33.70.141]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-556384b836dsm1476347e87.197.2025.07.07.15.54.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Jul 2025 15:54:15 -0700 (PDT) From: Alper Ak To: openembedded-devel@lists.openembedded.org Cc: Alper Ak Subject: [meta-openembedded][PATCH 2/9] avro-c++: Upgrade 1.11.3 -> 1.12 to allow CMake 4+ compatibility Date: Tue, 8 Jul 2025 01:54:00 +0300 Message-ID: <20250707225407.1558421-2-alperyasinak1@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250707225407.1558421-1-alperyasinak1@gmail.com> References: <20250707225407.1558421-1-alperyasinak1@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 07 Jul 2025 22:54:19 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/118290 - Drop workaround flag for dangling reference - Refresh patches and drop 0003-Update-CXX-standard-to-CXX14.patch because already assigned to C++17 - Drop xz and zlib because they aren't shown as build dependency and without them the build completes without errors - Fetch the fmt in SRC_URI and put it in the right place so the CMake doesn't need to run FetchContent - The LICENSE file has changed so updated LIC_FILES_CHKSUM to match the new md5sum Changelog: https://github.com/apache/avro/releases/tag/release-1.12.0 Fix: | CMake Error at CMakeLists.txt:19 (cmake_minimum_required): | Compatibility with CMake < 3.5 has been removed from CMake. | | Update the VERSION argument value. Or, use the ... syntax | to tell CMake that the project requires at least but has been updated | to work with policies introduced by or earlier. | | Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway. ---- | CMake Warning at /opt/yocto-masternext-contribute/sources/build/tmp/work/core2-64-poky-linux/avro-c++/1.12/recipe-sysroot-native/usr/share/cmake-4.0/Modules/FetchContent.cmake:2111 (message): | FETCHCONTENT_FULLY_DISCONNECTED is set to true, which requires the source | directory for dependency fmt to already be populated. This generally means | it must not be set to true the first time CMake is run in a build | directory. The following source directory should already be populated, but | it doesn't exist: | | /opt/yocto-masternext-contribute/sources/build/tmp/work/core2-64-poky-linux/avro-c++/1.12/build/_deps/fmt-src | | Policy CMP0170 controls enforcement of this requirement. | Call Stack (most recent call first): | /opt/yocto-masternext-contribute/sources/build/tmp/work/core2-64-poky-linux/avro-c++/1.12/recipe-sysroot-native/usr/share/cmake-4.0/Modules/FetchContent.cmake:2384 (__FetchContent_Populate) | CMakeLists.txt:93 (FetchContent_MakeAvailable) | | | -- Could NOT find Snappy (missing: SNAPPY_LIBRARIES SNAPPY_INCLUDE_DIR) | Disabled snappy codec. libsnappy not found. | -- Configuring done (0.4s) | CMake Error at CMakeLists.txt:149 (target_link_libraries): | Target "avrocpp" links to: | | fmt::fmt-header-only | | but the target was not found. Possible reasons include: | | * There is a typo in the target name. | * A find_package call is missing for an IMPORTED target. | * An ALIAS target is missing. | | | | CMake Error at CMakeLists.txt:138 (target_link_libraries): | Target "avrocpp_s" links to: | | fmt::fmt-header-only | | but the target was not found. Possible reasons include: | | * There is a typo in the target name. | * A find_package call is missing for an IMPORTED target. | * An ALIAS target is missing. Signed-off-by: Alper Ak --- ...0001-Remove-cpp-unittest-compilation.patch | 35 +++++++++++++------ ...0002-Add-package-configuration-files.patch | 32 ++++++++++------- .../0003-Update-CXX-standard-to-CXX14.patch | 24 ------------- .../recipes-support/avro/avro-c++_1.11.3.bb | 27 -------------- meta-oe/recipes-support/avro/avro-c++_1.12.bb | 29 +++++++++++++++ 5 files changed, 72 insertions(+), 75 deletions(-) delete mode 100644 meta-oe/recipes-support/avro/avro-c++/0003-Update-CXX-standard-to-CXX14.patch delete mode 100644 meta-oe/recipes-support/avro/avro-c++_1.11.3.bb create mode 100644 meta-oe/recipes-support/avro/avro-c++_1.12.bb diff --git a/meta-oe/recipes-support/avro/avro-c++/0001-Remove-cpp-unittest-compilation.patch b/meta-oe/recipes-support/avro/avro-c++/0001-Remove-cpp-unittest-compilation.patch index bcfafdda55..f33c653069 100644 --- a/meta-oe/recipes-support/avro/avro-c++/0001-Remove-cpp-unittest-compilation.patch +++ b/meta-oe/recipes-support/avro/avro-c++/0001-Remove-cpp-unittest-compilation.patch @@ -1,32 +1,34 @@ -From 6be1c45e1f7ee78499bdca76c25ec23a61317134 Mon Sep 17 00:00:00 2001 +From d75f0c5e7a51c9874edad0ea60957e006fb6def5 Mon Sep 17 00:00:00 2001 From: Rui Costa -Date: Wed, 20 Mar 2024 14:58:27 +0000 +Date: Mon, 7 Jul 2025 16:58:30 +0300 Subject: [PATCH] Remove cpp unittest compilation Upstream-Status: Inappropriate [oe-specific] +Signed-off-by: Rui Costa +Signed-off-by: Alper Ak --- - lang/c++/CMakeLists.txt | 61 ----------------------------------------- - 1 file changed, 61 deletions(-) + lang/c++/CMakeLists.txt | 65 ----------------------------------------- + 1 file changed, 65 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt -index 4a3793152..d94ba42d3 100644 +index 19059a41b..1f5f98c83 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt -@@ -131,70 +131,9 @@ set_target_properties (avrocpp_s PROPERTIES - target_link_libraries (avrocpp ${Boost_LIBRARIES} ${SNAPPY_LIBRARIES}) +@@ -149,39 +149,6 @@ set_target_properties (avrocpp_s PROPERTIES + target_link_libraries (avrocpp ${Boost_LIBRARIES} ${SNAPPY_LIBRARIES} fmt::fmt-header-only) target_include_directories(avrocpp PRIVATE ${SNAPPY_INCLUDE_DIR}) -add_executable (precompile test/precompile.cc) - --target_link_libraries (precompile avrocpp_s ${Boost_LIBRARIES} ${SNAPPY_LIBRARIES}) +-target_link_libraries (precompile avrocpp_s) - -macro (gen file ns) - add_custom_command (OUTPUT ${file}.hh - COMMAND avrogencpp - -p - - -i ${CMAKE_CURRENT_SOURCE_DIR}/jsonschemas/${file} -- -o ${file}.hh -n ${ns} -U +- -o ${file}.hh -n ${ns} - DEPENDS avrogencpp ${CMAKE_CURRENT_SOURCE_DIR}/jsonschemas/${file}) - add_custom_target (${file}_hh DEPENDS ${file}.hh) -endmacro (gen) @@ -39,6 +41,7 @@ index 4a3793152..d94ba42d3 100644 -gen (union_array_union uau) -gen (union_map_union umu) -gen (union_conflict uc) +-gen (union_empty_record uer) -gen (recursive rec) -gen (reuse ru) -gen (circulardep cd) @@ -47,9 +50,14 @@ index 4a3793152..d94ba42d3 100644 -gen (crossref cr) -gen (primitivetypes pt) -gen (cpp_reserved_words cppres) +-gen (cpp_reserved_words_union_typedef cppres_union) - add_executable (avrogencpp impl/avrogencpp.cc) - target_link_libraries (avrogencpp avrocpp_s ${Boost_LIBRARIES} ${SNAPPY_LIBRARIES}) + target_link_libraries (avrogencpp avrocpp_s) + +@@ -194,38 +161,6 @@ target_include_directories(avrocpp PUBLIC + $ + ) -enable_testing() - @@ -72,6 +80,7 @@ index 4a3793152..d94ba42d3 100644 -unittest (AvrogencppTests) -unittest (CompilerTests) -unittest (AvrogencppTestReservedWords) +-unittest (CommonsSchemasTests) - -add_dependencies (AvrogencppTestReservedWords cpp_reserved_words_hh) - @@ -79,8 +88,12 @@ index 4a3793152..d94ba42d3 100644 - tweet_hh - union_array_union_hh union_map_union_hh union_conflict_hh - recursive_hh reuse_hh circulardep_hh tree1_hh tree2_hh crossref_hh -- primitivetypes_hh empty_record_hh) +- primitivetypes_hh empty_record_hh cpp_reserved_words_union_typedef_hh +- union_empty_record_hh) - include (InstallRequiredSystemLibraries) set (CPACK_PACKAGE_FILE_NAME "avrocpp-${AVRO_VERSION_MAJOR}") +-- +2.43.0 + diff --git a/meta-oe/recipes-support/avro/avro-c++/0002-Add-package-configuration-files.patch b/meta-oe/recipes-support/avro/avro-c++/0002-Add-package-configuration-files.patch index 437a3fa138..982e37d5b8 100644 --- a/meta-oe/recipes-support/avro/avro-c++/0002-Add-package-configuration-files.patch +++ b/meta-oe/recipes-support/avro/avro-c++/0002-Add-package-configuration-files.patch @@ -1,21 +1,23 @@ -From 86aa3f2333a9b8e6f1c631e6d5cb7296b6e8380b Mon Sep 17 00:00:00 2001 +From 01a29c294c898cf6e13fb500b8514e9982982e1f Mon Sep 17 00:00:00 2001 From: Rui Costa -Date: Fri, 22 Mar 2024 13:27:38 +0000 +Date: Mon, 7 Jul 2025 18:16:35 +0300 Subject: [PATCH] Add package configuration files Upstream-Status: Pending +Signed-off-by: Rui Costa +Signed-off-by: Alper Ak --- - lang/c++/CMakeLists.txt | 45 ++++++++++++++++++++++++------ + lang/c++/CMakeLists.txt | 46 ++++++++++++++++++++++++------ lang/c++/cmake/AvroCppConfig.cmake | 5 ++++ - 2 files changed, 42 insertions(+), 8 deletions(-) + 2 files changed, 43 insertions(+), 8 deletions(-) create mode 100644 lang/c++/cmake/AvroCppConfig.cmake diff --git a/CMakeLists.txt b/CMakeLists.txt -index d94ba42d3..4748b111d 100644 +index 1f5f98c83..73596a6cf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt -@@ -140,14 +140,18 @@ set (CPACK_PACKAGE_FILE_NAME "avrocpp-${AVRO_VERSION_MAJOR}") +@@ -167,18 +167,48 @@ set (CPACK_PACKAGE_FILE_NAME "avrocpp-${AVRO_VERSION_MAJOR}") include (CPack) @@ -26,23 +28,24 @@ index d94ba42d3..4748b111d 100644 - -install (TARGETS avrogencpp RUNTIME DESTINATION bin) - --install (DIRECTORY api/ DESTINATION include/avro -+install (TARGETS avrocpp +-install (DIRECTORY include/avro DESTINATION include ++install(TARGETS avrocpp + EXPORT AvroCppTargets + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR} -+ INCLUDES DESTINATION include) ++ INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) + -+install (TARGETS avrogencpp ++install(TARGETS avrogencpp + EXPORT AvroCppTargets + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) + -+install (DIRECTORY api/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/avro ++install(DIRECTORY include/avro DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} FILES_MATCHING PATTERN *.hh) ++ if (NOT CMAKE_BUILD_TYPE) -@@ -155,3 +159,28 @@ if (NOT CMAKE_BUILD_TYPE) + set (CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel." FORCE) endif (NOT CMAKE_BUILD_TYPE) @@ -71,7 +74,7 @@ index d94ba42d3..4748b111d 100644 + "${CMAKE_CURRENT_BINARY_DIR}/AvroCppConfigVersion.cmake" + DESTINATION ${ConfigPackageLocation} + COMPONENT Devel) -diff --git a/cmake/AvroCppConfig.cmake b/cmake/AvroCppConfig.cmake +diff --git a/lang/c++/cmake/AvroCppConfig.cmake b/lang/c++/cmake/AvroCppConfig.cmake new file mode 100644 index 000000000..deb8aaa31 --- /dev/null @@ -82,3 +85,6 @@ index 000000000..deb8aaa31 + COMPONENTS filesystem iostreams program_options regex system) + +include("${CMAKE_CURRENT_LIST_DIR}/AvroCppTargets.cmake") +-- +2.43.0 + diff --git a/meta-oe/recipes-support/avro/avro-c++/0003-Update-CXX-standard-to-CXX14.patch b/meta-oe/recipes-support/avro/avro-c++/0003-Update-CXX-standard-to-CXX14.patch deleted file mode 100644 index 3e65cb7a72..0000000000 --- a/meta-oe/recipes-support/avro/avro-c++/0003-Update-CXX-standard-to-CXX14.patch +++ /dev/null @@ -1,24 +0,0 @@ -From 66c08ade24e4472b5af5dca48097ed9a2ec035ec Mon Sep 17 00:00:00 2001 -From: Rui Costa -Date: Fri, 5 Apr 2024 11:33:51 +0000 -Subject: [PATCH] Update CXX standard to CXX14 - -Upstream-Status: Inappropriate [oe-specific] - ---- - lang/c++/CMakeLists.txt | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/CMakeLists.txt b/CMakeLists.txt -index 4748b111d..1e45c13d5 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -21,7 +21,7 @@ cmake_minimum_required (VERSION 3.1) - set (CMAKE_LEGACY_CYGWIN_WIN32 0) - - if (NOT DEFINED CMAKE_CXX_STANDARD) -- set(CMAKE_CXX_STANDARD 11) -+ set(CMAKE_CXX_STANDARD 14) - endif() - - set(CMAKE_CXX_STANDARD_REQUIRED ON) diff --git a/meta-oe/recipes-support/avro/avro-c++_1.11.3.bb b/meta-oe/recipes-support/avro/avro-c++_1.11.3.bb deleted file mode 100644 index c1e8863fb3..0000000000 --- a/meta-oe/recipes-support/avro/avro-c++_1.11.3.bb +++ /dev/null @@ -1,27 +0,0 @@ -SUMMARY = "Apache Avro data serialization system." -HOMEPAGE = "https://avro.apache.org/" -SECTION = "libs" - -LICENSE = "Apache-2.0" -LIC_FILES_CHKSUM = "file://LICENSE;md5=43abf34d8b9908494f83c55d213a7f89" - -DEPENDS = "boost zlib xz" - -BRANCH = "branch-1.11" -SRCREV = "35ff8b997738e4d983871902d47bfb67b3250734" -SRC_URI = "git://github.com/apache/avro;branch=${BRANCH};protocol=https \ - file://0001-Remove-cpp-unittest-compilation.patch \ - file://0002-Add-package-configuration-files.patch \ - file://0003-Update-CXX-standard-to-CXX14.patch \ - " - -S = "${UNPACKDIR}/${BP}/lang/c++" - -inherit cmake pkgconfig - -BBCLASSEXTEND = "native nativesdk" - -# http://errors.yoctoproject.org/Errors/Details/766913/ -# avro-c++/1.11.3/git/lang/c++/impl/Compiler.cc:304:18: error: possibly dangling reference to a temporary [-Werror=dangling-reference] -# avro-c++/1.11.3/git/lang/c++/impl/Compiler.cc:370:18: error: possibly dangling reference to a temporary [-Werror=dangling-reference] -CXXFLAGS += "-Wno-error=dangling-reference" diff --git a/meta-oe/recipes-support/avro/avro-c++_1.12.bb b/meta-oe/recipes-support/avro/avro-c++_1.12.bb new file mode 100644 index 0000000000..726a861bc9 --- /dev/null +++ b/meta-oe/recipes-support/avro/avro-c++_1.12.bb @@ -0,0 +1,29 @@ +SUMMARY = "Apache Avro data serialization system." +HOMEPAGE = "https://avro.apache.org/" +SECTION = "libs" + +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=34cb96edab958a981837bf6f44bf654d" + +DEPENDS = "boost" + +SRC_URI = "git://github.com/apache/avro.git;branch=branch-1.12;protocol=https;name=avro-c++ \ + git://github.com/fmtlib/fmt.git;branch=10.x;protocol=https;name=fmt;destsuffix=_deps/fmt-src \ + file://0001-Remove-cpp-unittest-compilation.patch \ + file://0002-Add-package-configuration-files.patch" + +SRCREV_FORMAT = "avro-c++ fmt" +SRCREV_avro-c++ = "8c27801dc8d42ccc00997f25c0b8f45f8d4a233e" +# Tag 10.2.1 +SRCREV_fmt = "e69e5f977d458f2650bb346dadf2ad30c5320281" + +S = "${UNPACKDIR}/${BP}/lang/c++" + +inherit cmake pkgconfig + +do_configure:prepend() { + install -d ${B}/_deps + cp -r ${UNPACKDIR}/_deps/fmt-src ${B}/_deps/ +} + +BBCLASSEXTEND = "native nativesdk" From patchwork Mon Jul 7 22:54:01 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alper Ak X-Patchwork-Id: 66366 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 98AC8C71130 for ; Mon, 7 Jul 2025 22:54:29 +0000 (UTC) Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) by mx.groups.io with SMTP id smtpd.web11.5691.1751928861492690444 for ; Mon, 07 Jul 2025 15:54:21 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=kV0IKcnq; spf=pass (domain: gmail.com, ip: 209.85.167.49, mailfrom: alperyasinak1@gmail.com) Received: by mail-lf1-f49.google.com with SMTP id 2adb3069b0e04-553dceb342aso3289258e87.1 for ; Mon, 07 Jul 2025 15:54:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1751928859; x=1752533659; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=+nUe/3aVKM44uSzvcsbAxYuayfTCIQX81GyVf/lYp34=; b=kV0IKcnq0Bxj7bpMLUlQDalpzJRLkpNtnKxD73jvbdMidvtKPOEWHN40I423XyoT9l 5SpBOAs5wjvkX2aH7xBTJg/hD42+TwuYcVr5n97cEQxCVtZmfNZY84SVWYiDOQ6PVnHA wnDK7//BKknHFlw9mLyyTBJxd+i5XxHfcYwRoHngPtXbbVKZRJ/LC32YHRG3JSVpVimo +GQxo6URxis3l751uzvDXrKzx6u+Y690NUAoH3ENIgWErOvKZgmaI4JiGAagpfrPYAED Ag9BSqPka4x3TnEfWt7+9uAmc3QcgZlRL5Fo00OTcvziSJqnO+kZalIQYGFSOPyElS5a o6fQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1751928859; x=1752533659; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+nUe/3aVKM44uSzvcsbAxYuayfTCIQX81GyVf/lYp34=; b=hF81Necull3CjvqLbRsWwSE2zGcO7z5xzWr0RVQI+H6vFJ5RUEeIRe60m0puOkuv5n B2prke+JXHgM3ysFyeEhPrnovFW4mozy1n1qmJzhrFFr2ec2lAzvSFaoagJhCc3rz0PY uteaEDHO9/RKAYCYxK05kBWn5EJPoYkm+7zzsN4+S6rulhSgYofQouz9+BgZ9oFjeVdR jffsejrUCLnY7Ce2EHbVqpuWfBqYPH236pLsPQhNMbCvvr0mr20d5GxESNsv1bEQ0DHT bmLJsKYPeN+YrJeTESQhPhbvAVXYHGZhjkqQE9ZN1QI7RfvUd7Z67Gm6WgxUsg4Sw1i+ tM9w== X-Gm-Message-State: AOJu0YxNmxf48DyZUMpb9UMqm68CUsUhbCsWJaRLUVpws3D3CwViU2R9 GR+jh9RlovjShP24EMzPiI2e6pKusOWdRagOlqXFp94e504nbumrQOLeadaQjA== X-Gm-Gg: ASbGncvmewBxg80YZ5VW7afjQ2bONhWTOUehIRTSn1MdvVv0LRxQ6kjDOFlNqkI30HD OrL1qF3hUhZZ2LUCsIsmwIOuTMVvoYZym3iUFzYbfe4m95WMHoxhMQFrwIlOqohMKJCh/xLrHqI /q4ATUG96AJC7kobKy6fAdDw7su/cgjCEnCmRCBhu7Ib720djm5D8neRsIS8rI8+PsdSsXhSbCm viwoyCn7KqjnGrDWMU8sevtWwH7BsRIhrEClIqmTCVpjQpwUC4s/SPbBxBnBM+iLOpnzxoxwAt3 iAs0tuEOfT1ECdEPXODk3KyKCEORlB4442twQGYzhRIAvnHQfCddbzh7JdwLwWnSKsc5BfYF88F /Aus= X-Google-Smtp-Source: AGHT+IE4GNlSt7aymxrMumg82sBeT4r8dAniYy4Z/P2S3pi7SNWtPeoaqaHqQ+KBVeXoapBnHRScnA== X-Received: by 2002:a05:6512:31c5:b0:54f:bce6:63bd with SMTP id 2adb3069b0e04-556f2759a02mr4478577e87.54.1751928859030; Mon, 07 Jul 2025 15:54:19 -0700 (PDT) Received: from localhost.localdomain ([176.33.70.141]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-556384b836dsm1476347e87.197.2025.07.07.15.54.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Jul 2025 15:54:17 -0700 (PDT) From: Alper Ak To: openembedded-devel@lists.openembedded.org Cc: Alper Ak Subject: [meta-openembedded][PATCH 3/9] mbpoll: Add patch for CMake 4+ compatibility Date: Tue, 8 Jul 2025 01:54:01 +0300 Message-ID: <20250707225407.1558421-3-alperyasinak1@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250707225407.1558421-1-alperyasinak1@gmail.com> References: <20250707225407.1558421-1-alperyasinak1@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 07 Jul 2025 22:54:29 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/118291 Fix: | CMake Error at CMakeLists.txt:3 (cmake_minimum_required): | Compatibility with CMake < 3.5 has been removed from CMake. | | Update the VERSION argument value. Or, use the ... syntax | to tell CMake that the project requires at least but has been updated | to work with policies introduced by or earlier. | | Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway. | | | -- Configuring incomplete, errors occurred! Signed-off-by: Alper Ak --- .../0001-allow-build-with-cmake-4.patch | 42 +++++++++++++++++++ .../recipes-devtools/mbpoll/mbpoll_1.5.2.bb | 4 +- 2 files changed, 44 insertions(+), 2 deletions(-) create mode 100644 meta-oe/recipes-devtools/mbpoll/mbpoll/0001-allow-build-with-cmake-4.patch diff --git a/meta-oe/recipes-devtools/mbpoll/mbpoll/0001-allow-build-with-cmake-4.patch b/meta-oe/recipes-devtools/mbpoll/mbpoll/0001-allow-build-with-cmake-4.patch new file mode 100644 index 0000000000..25f4692856 --- /dev/null +++ b/meta-oe/recipes-devtools/mbpoll/mbpoll/0001-allow-build-with-cmake-4.patch @@ -0,0 +1,42 @@ +From 765fbaea85b723893c0c27d5527df479ab6abc46 Mon Sep 17 00:00:00 2001 +From: Alper Ak +Date: Mon, 7 Jul 2025 20:09:45 +0300 +Subject: [PATCH] cmake: Set minimum required version to 3.5 for CMake 4+ + compatibility + +Fix: + +| CMake Error at CMakeLists.txt:3 (cmake_minimum_required): +| Compatibility with CMake < 3.5 has been removed from CMake. +| +| Update the VERSION argument value. Or, use the ... syntax +| to tell CMake that the project requires at least but has been updated +| to work with policies introduced by or earlier. +| +| Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway. +| +| +| -- Configuring incomplete, errors occurred! + +Upstream-Status: Submitted [https://github.com/epsilonrt/mbpoll/pull/95] + +Signed-off-by: Alper Ak +--- + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 6daa039..af32354 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,6 +1,6 @@ + # -*- CMakeLists.txt generated by CodeLite IDE. Do not edit by hand -*- + +-cmake_minimum_required(VERSION 2.9) ++cmake_minimum_required(VERSION 3.5) + + # Workspace name + project(mbpoll) +-- +2.43.0 + diff --git a/meta-oe/recipes-devtools/mbpoll/mbpoll_1.5.2.bb b/meta-oe/recipes-devtools/mbpoll/mbpoll_1.5.2.bb index 4590b49955..82afe632fd 100644 --- a/meta-oe/recipes-devtools/mbpoll/mbpoll_1.5.2.bb +++ b/meta-oe/recipes-devtools/mbpoll/mbpoll_1.5.2.bb @@ -8,8 +8,8 @@ HOMEPAGE = "https://github.com/epsilonrt/mbpoll" LIC_FILES_CHKSUM = "file://COPYING;md5=1ebbd3e34237af26da5dc08a4e440464" DEPENDS = "libmodbus (>=3.1.4)" -SRC_URI = "git://github.com/epsilonrt/mbpoll;protocol=https;branch=master" +SRC_URI = "git://github.com/epsilonrt/mbpoll;protocol=https;branch=master \ + file://0001-allow-build-with-cmake-4.patch" SRCREV = "a0bd6c08d3d15b086f2104477295c0705aed366a" - inherit pkgconfig cmake From patchwork Mon Jul 7 22:54:02 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alper Ak X-Patchwork-Id: 66369 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id B38D0C83F0D for ; Mon, 7 Jul 2025 22:54:29 +0000 (UTC) Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) by mx.groups.io with SMTP id smtpd.web10.5808.1751928863885670721 for ; Mon, 07 Jul 2025 15:54:24 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=l7AUj+dx; spf=pass (domain: gmail.com, ip: 209.85.167.49, mailfrom: alperyasinak1@gmail.com) Received: by mail-lf1-f49.google.com with SMTP id 2adb3069b0e04-55628eaec6cso3367909e87.0 for ; Mon, 07 Jul 2025 15:54:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1751928862; x=1752533662; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=BT2/xDP2FNRSYN2LyBNV/KTbt54DV3eRQH/LFnl1BzI=; b=l7AUj+dxFAZSM9tgOBqEUUrPfIBFAG/IL2n7sIi+V8Mc0sf+l/scysAKqGDDORVlts aZuW5y1+FZZ4UqG/F1eFZCvE99h9uJtjrlMfwgBLq3Gm7slo/xj8lFp/d1U2TEXGcd/V t2LWSJ7rKPcpO9KpNr/FAnLVA1KTwZF1p5ZcKu50MM+Bixuw8GwiTIKyc10uyFrOitCx qY7QVhUI8kvDO5Khva2685jEeGBw4ED/8FNhBMYphvnDb2goAtsOGaDHDQz7kYnEeuHH Qvchx+fCuOMZqBiQbi7LfVplgaSltL4MrjP4alKh6yHf6eiKg4nPKmq7war/jI7ER20c zdSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1751928862; x=1752533662; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=BT2/xDP2FNRSYN2LyBNV/KTbt54DV3eRQH/LFnl1BzI=; b=HuJUNHvbtJ6q9gJc7rjosS6sX0P2QcHPEgvYNrAz+U/9HCxnnN3Vfdym+SkL28ihfJ m684NmvJfy6VH/NUdekKzFjf1MptQUyiAN4rEACTSR+/ExCYrpOPug7SBG5AtjjCv5wI bYbLfDtiC7vK9mCWdscjrGu3z0OCQBp7sRkFYQgaaSIrQNsW0upoinGee7mgTUOllxi5 sHmp4QqIRPSjHQ3buPRJvJ15aosfBBP4jkjAbqQpJq+uy5uBfoXZ+1A7H8OE4ZtMt8rk o4rYfDnilwSgiaOsBCvZ5a2AlapzTTAajnExxjUroFsCHygmoToTVRztD8+BU3P/Gq49 H1Tg== X-Gm-Message-State: AOJu0YyCP0LzIQdj18vKRxwzQI6bvZ2Kujda2efwd6bZZNEP+YZo6Ohe HXWSV8fZ7qGBLl4ToUcqhIK77JYMzZ85KwA7dGmRy/BGOO6eRdh2QmaTH6tC3g== X-Gm-Gg: ASbGncviHnat+0w/yUsvI/VYP/4V+z8sL8oB/b0WaoSpjdY4b4sZyKwnbfoxYudB0wM oOluVrW0htUm2xezuwfy2bLFcSMJBVAxnlYYmv6MAw18Avqn1kPoX5BtBwNFUtcaoMzJy0rbwBE dmu69npqDG6G8ZDH1E9Aa2JENzzQw8ILfPeOn2QRZSpd7YouTBw5k5WMr0YlwAf2v2uqFdw7eb9 dKSbyHsA2qUMbfFPUJoweV6I3ka3Uib3yrlFcKZaWS/xbJdJghTISCmMl9JH94ZAyJrtxNxyyyt 3DqOzZtmh7picbPPfL7a2jN3gHHq2xfQJxwkRa3ButGrFj7fDgjxWk6XV/q/B/Z9JBseb56ekTK DjkE= X-Google-Smtp-Source: AGHT+IFS4r4LA8kisNLaMQmQuV/VAnNi4juLB7VQ/oOy5OqdLpAc1Cw5uTKdhVSsxYw7rfafLRke0w== X-Received: by 2002:a05:6512:b8f:b0:553:24b7:2f61 with SMTP id 2adb3069b0e04-557f8391e2emr198198e87.57.1751928861481; Mon, 07 Jul 2025 15:54:21 -0700 (PDT) Received: from localhost.localdomain ([176.33.70.141]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-556384b836dsm1476347e87.197.2025.07.07.15.54.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Jul 2025 15:54:19 -0700 (PDT) From: Alper Ak To: openembedded-devel@lists.openembedded.org Cc: Alper Ak Subject: [meta-openembedded][PATCH 4/9] docopt.cpp: Add patch for CMake 4+ compatibility Date: Tue, 8 Jul 2025 01:54:02 +0300 Message-ID: <20250707225407.1558421-4-alperyasinak1@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250707225407.1558421-1-alperyasinak1@gmail.com> References: <20250707225407.1558421-1-alperyasinak1@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 07 Jul 2025 22:54:29 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/118292 Fix: | CMake Error at CMakeLists.txt:1 (cmake_minimum_required): | Compatibility with CMake < 3.5 has been removed from CMake. | | Update the VERSION argument value. Or, use the ... syntax | to tell CMake that the project requires at least but has been updated | to work with policies introduced by or earlier. | | Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway. | | | -- Configuring incomplete, errors occurred! Signed-off-by: Alper Ak --- .../0001-allow-build-with-cmake-4.patch | 40 +++++++++++++++++++ .../docopt.cpp/docopt.cpp_git.bb | 3 +- 2 files changed, 41 insertions(+), 2 deletions(-) create mode 100644 meta-oe/recipes-extended/docopt.cpp/docopt.cpp/0001-allow-build-with-cmake-4.patch diff --git a/meta-oe/recipes-extended/docopt.cpp/docopt.cpp/0001-allow-build-with-cmake-4.patch b/meta-oe/recipes-extended/docopt.cpp/docopt.cpp/0001-allow-build-with-cmake-4.patch new file mode 100644 index 0000000000..1990325d92 --- /dev/null +++ b/meta-oe/recipes-extended/docopt.cpp/docopt.cpp/0001-allow-build-with-cmake-4.patch @@ -0,0 +1,40 @@ +From 60c7540d1633e1bf14f0858bba8a8ea313a55e7d Mon Sep 17 00:00:00 2001 +From: Alper Ak +Date: Mon, 7 Jul 2025 21:03:52 +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 value. Or, use the ... syntax +| to tell CMake that the project requires at least but has been updated +| to work with policies introduced by or earlier. +| +| Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway. +| +| +| -- Configuring incomplete, errors occurred! + +Upstream-Status: Submitted [https://github.com/docopt/docopt.cpp/pull/164] + +Signed-off-by: Alper Ak +--- + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index feff32e..2768144 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 3.1) ++cmake_minimum_required(VERSION 3.5) + project(docopt.cpp VERSION 0.6.2) + + include(GNUInstallDirs) +-- +2.43.0 + diff --git a/meta-oe/recipes-extended/docopt.cpp/docopt.cpp_git.bb b/meta-oe/recipes-extended/docopt.cpp/docopt.cpp_git.bb index 71305cc35f..cc13fd1067 100644 --- a/meta-oe/recipes-extended/docopt.cpp/docopt.cpp_git.bb +++ b/meta-oe/recipes-extended/docopt.cpp/docopt.cpp_git.bb @@ -18,8 +18,7 @@ PV = "0.6.3+git" SRC_URI = "\ git://github.com/docopt/docopt.cpp.git;protocol=https;branch=master \ -" - + file://0001-allow-build-with-cmake-4.patch" inherit cmake From patchwork Mon Jul 7 22:54:03 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alper Ak X-Patchwork-Id: 66370 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id A4E9AC83F12 for ; Mon, 7 Jul 2025 22:54:29 +0000 (UTC) Received: from mail-lf1-f51.google.com (mail-lf1-f51.google.com [209.85.167.51]) by mx.groups.io with SMTP id smtpd.web10.5809.1751928865294791700 for ; Mon, 07 Jul 2025 15:54:25 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=GmUzK4eh; spf=pass (domain: gmail.com, ip: 209.85.167.51, mailfrom: alperyasinak1@gmail.com) Received: by mail-lf1-f51.google.com with SMTP id 2adb3069b0e04-54d98aa5981so4861739e87.0 for ; Mon, 07 Jul 2025 15:54:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1751928863; x=1752533663; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=u/iz2iaWHSL51BDoX04KUQ6OkHnX3YDWaSCK3rDac7g=; b=GmUzK4ehHkoFYAy+gu2594k//K7px9I2srP1i0O5wPRBYx07zSIublycLPqveJCC/p OmXYrBVuk0D6LYylqbrJMFw1h99uyZ6E3QnuI/RXvjZ7Y7F8BpO79IlU4NViZR/IxQ/m u964pkM4xRKeHTB37yN7WylCvGX2rkayaDAtwYebZphXmxhIWdn1Nh427rP6QzJuRO7L cRXu4DzcsPIvLjkr2cIScYlNwRDz+fTcpaCLSOPw7j6PGRrNzmTLYuQXiMNIkFbMwHui uRaqTJCS+fIZf+dtpt2jgY/6QRCm76XfWkEwxc9GEzhvBFbhHcjKrH9Gfxwk5R8DnEka 1gmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1751928863; x=1752533663; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=u/iz2iaWHSL51BDoX04KUQ6OkHnX3YDWaSCK3rDac7g=; b=bQ0y5+tUd8B6MmeD9n/N66iOtdQ+eZSudAXyni+XRwjAduH5s+5x4iW3oSQN47wSDh 4CW+cwQuyMzx5cQAIIW4TbyakHAYgGdJrJObEuzMZShJItJc3PsFn3/Zx+UH7B0VNfSj BivVaobjIawmUpJNFZ/2ksaWtkFuqsj6aKW8a7UxELd8iM2RaAaZB050+y09niR+EZVI Qvqc9LIBn7ALXKC0HDl3A/rfPd05FCZL9ze85WHFGHAYZ1UU2+jBgjvyvRRFNkIM676G 9RNnbozuC8yofyEqADHHDwpXBjaEgsO7PWnAvOJapdpSIGc0dVpYHTrDpkM/aotjadv3 kIOw== X-Gm-Message-State: AOJu0YytxyVDBJrrtZNSv/VYxAKcKRlCKWJsO7SuHMHCUtgIqVWrBbmU IyoQD7fiqKzb5fuWeDP50Bps5S91z9vQiJulUzTjV1gPU5SwQXN8qR0KNEfZ9A== X-Gm-Gg: ASbGncutMeJqA5tZRR705tL8N7x8wmW/gi56BvO3DAfJ7JjjbQTOiLfUkf63qwJKPtT /UEQ9L2CthdNdTNhOv59QtRRHGky8GxeEabbEwP/7XAuaoCmSJLEqfSo2aDHXHbPHx0aAPdRBLN naNRmUU1eZxYjVpvhpU9yb4GDkC5z8l4+i4+GzNdGjieCzLnhzI1kCqhk/OM2fC8PjfKPlW4Blu Y5np6wwQLnwfUtCjMlCUbjYW6ZiFa60XTxPMh0nSA0oNxcXywHqDwf3YzI5NbDZ5Do8t1rxKtes 5ZtuQsaswUoGbHG+W7E14y+0bBb9V9/AR84+OR3z6SM2o3L0UuKjlxxuWm4si/dAEFv4nKn9MPu gLNU= X-Google-Smtp-Source: AGHT+IF0/vfXxyx2VjtyXW7ggd7m2+QFYhYSoCPY5Bcm5yxJBJmNOskAKeY1Pca9hsh5VjSahJZ01A== X-Received: by 2002:a05:6512:2309:b0:553:ccef:e318 with SMTP id 2adb3069b0e04-557aa680289mr4278195e87.41.1751928862832; Mon, 07 Jul 2025 15:54:22 -0700 (PDT) Received: from localhost.localdomain ([176.33.70.141]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-556384b836dsm1476347e87.197.2025.07.07.15.54.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Jul 2025 15:54:22 -0700 (PDT) From: Alper Ak To: openembedded-devel@lists.openembedded.org Cc: Alper Ak Subject: [meta-openembedded][PATCH 5/9] cdrkit: Add patch for CMake 4+ compatibility Date: Tue, 8 Jul 2025 01:54:03 +0300 Message-ID: <20250707225407.1558421-5-alperyasinak1@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250707225407.1558421-1-alperyasinak1@gmail.com> References: <20250707225407.1558421-1-alperyasinak1@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 07 Jul 2025 22:54:29 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/118293 Fix: | CMake Error in CMakeLists.txt: | No cmake_minimum_required command is present. A line of code such as | | cmake_minimum_required(VERSION 4.0) | | should be added at the top of the file. The version specified may be lower | if you wish to support older CMake versions for this project. For more | information run "cmake --help-policy CMP0000". | | | -- Configuring incomplete, errors occurred! Signed-off-by: Alper Ak --- .../cdrkit/cdrkit_1.1.11.bb | 1 + .../files/0003-allow-build-with-cmake-4.patch | 37 +++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 meta-oe/recipes-multimedia/cdrkit/files/0003-allow-build-with-cmake-4.patch diff --git a/meta-oe/recipes-multimedia/cdrkit/cdrkit_1.1.11.bb b/meta-oe/recipes-multimedia/cdrkit/cdrkit_1.1.11.bb index 4b57957cfc..16b15f745e 100644 --- a/meta-oe/recipes-multimedia/cdrkit/cdrkit_1.1.11.bb +++ b/meta-oe/recipes-multimedia/cdrkit/cdrkit_1.1.11.bb @@ -14,6 +14,7 @@ SRC_URI = "${DEBIAN_MIRROR}/main/c/${BPN}/${BPN}_${PV}.orig.tar.gz \ file://0001-add-new-option-eltorito-platform.patch \ file://0001-genisoimage-Add-checksum.h-and-md5.h-for-function-pr.patch \ file://fix-incompatible-pointer-type-error.patch \ + file://0003-allow-build-with-cmake-4.patch \ " SRC_URI:append:class-nativesdk = " \ file://0001-install-netscsid-to-bin-for-nativesdk.patch \ diff --git a/meta-oe/recipes-multimedia/cdrkit/files/0003-allow-build-with-cmake-4.patch b/meta-oe/recipes-multimedia/cdrkit/files/0003-allow-build-with-cmake-4.patch new file mode 100644 index 0000000000..bcab44a5a4 --- /dev/null +++ b/meta-oe/recipes-multimedia/cdrkit/files/0003-allow-build-with-cmake-4.patch @@ -0,0 +1,37 @@ +From 4ce4c135f83f9d7894ccbb0901391f5cbf2b1935 Mon Sep 17 00:00:00 2001 +From: Alper Ak +Date: Mon, 7 Jul 2025 21:34:32 +0300 +Subject: [PATCH] cmake: Set minimum required version to 3.5 for CMake 4+ + compatibility + +| CMake Error in CMakeLists.txt: +| No cmake_minimum_required command is present. A line of code such as +| +| cmake_minimum_required(VERSION 4.0) +| +| should be added at the top of the file. The version specified may be lower +| if you wish to support older CMake versions for this project. For more +| information run "cmake --help-policy CMP0000". +| +| +| -- Configuring incomplete, errors occurred! + +Upstream-Status: Pending + +Signed-off-by: Alper Ak +--- + CMakeLists.txt | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 57edba6..bdfb8bb 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,3 +1,4 @@ ++cmake_minimum_required(VERSION 3.5) + PROJECT (cdrkit C) + SUBDIRS(include genisoimage wodim libedc libhfs_iso libparanoia icedax libusal librols libunls readom netscsid 3rd-party/dirsplit) + +-- +2.43.0 + From patchwork Mon Jul 7 22:54:04 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alper Ak X-Patchwork-Id: 66368 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id A4DF0C8303C for ; Mon, 7 Jul 2025 22:54:29 +0000 (UTC) Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com [209.85.167.48]) by mx.groups.io with SMTP id smtpd.web10.5810.1751928866614657303 for ; Mon, 07 Jul 2025 15:54:26 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=nRAG8k6X; spf=pass (domain: gmail.com, ip: 209.85.167.48, mailfrom: alperyasinak1@gmail.com) Received: by mail-lf1-f48.google.com with SMTP id 2adb3069b0e04-55622414cf4so3530658e87.3 for ; Mon, 07 Jul 2025 15:54:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1751928864; x=1752533664; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=1VCZ1yd4TAOkBQbb1t0y2RqBWYSC9Sp9JvgXhUetzGo=; b=nRAG8k6XXf+9JK4/hW3psivjGl/IkcWBiICrvSDG6FZYu8g4v8bsfpnvZFC/Lc74Qi ri6eifELDkuzeTfv5FpFQ8uxbEv5XtL504of7CUWbY9Ogc3+4RGMDZNC8DbbspVAfWrM oXMKhrte2s9S6voP3B4pysCguC+pH5RLrm/0uU+MoIfxeizk2Bo1442P5x70sab8eh09 Y4jrxPR4Jne8J6NqTw7p/f+CTt2BwphSVLJ28v6Lv9uytPpJulq3X9Wx9XC/2Qy/Bwhv 8nhhqIkrSBWeq3wrg8W6K8D9BoXshdKKwVImgR6FLcNUSzRdyGBWtIMNssr0yFhKFXer A/MA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1751928864; x=1752533664; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1VCZ1yd4TAOkBQbb1t0y2RqBWYSC9Sp9JvgXhUetzGo=; b=n6rdVFIet5tl6OJAU89Gl2QOMSzKv31T1P5pfkSnAEqpdW1TYCbjYPzQzWVOQPh4qB MnmUzfw1YkSdalDsx4IT8sRa9kWceinFV9rweDOAHBx4+F8Voueq1+ZWtPeVCJSHgeAg ZwWtXCAqmNxBztx6CTiAqPTHk86vvMJAsmbKJev14NLWS58l1cSqUE3fhzGbEge/YyLe w6cPcFH3dhW5xTRl4os5ORGc/DCIM1B4NGK/AqXLHKkFpFOKPI7PTGMblO7NF2HjtcGd BCUEkqQDTrLeswTl4fKGzvW8X/ERG2iN8Ml7383hah1iINiXnMvsf+cnkcUk9b3CW4X5 g5GQ== X-Gm-Message-State: AOJu0YzBiyP9qPCAIpVgK94CX+1Evd/57smUl/XQ7tTpw+Dm5IsJ5bug WpcJKQWxPd9hdiyHz6LbhhrDwQgDzg5Z41feMkzC+kZL5o2UTiXKCd9YN5u6gQ== X-Gm-Gg: ASbGnctXeNQHYM+Dh4begKuHdpdLRgq62ZQQjqAF0VvtkVTQMTfQNRXZ3r+znF/wyaA 3usF/sw5Rl69nED5oOX2Oj6+covjlHPdH7Fs3X8AkIIc3fTYW4wA0EhI0eo9L/odZquZYKGYS+f paPSJaXOdIAez5gPk9ZoMYWdnthMMH5rPa5KhxKkqjPDmZppnIZtDOZD16N0itNqunNzK9daurh 6rfbyS2zFxIvSTD7M0SU5Lf3N56P+fdpDA5j63BqakU+MplFwXl9EeuQeTHt/de2nXcYFbUEdlY CRMLIWPUPduTJslW60eQzuuDhDQi6g4QBEgpcgjGRvx2AWB9+zDwZK7kPdx26GV1IQPOHCPspLA eB2Q= X-Google-Smtp-Source: AGHT+IGgDbxCqASIcKxfrOe4kZSlUgjmcam5h9GTC9U/vHao4a96ekYWC2EkTdUKb6N+tU6h1vPVfg== X-Received: by 2002:a05:6512:31c6:b0:553:2874:8ef5 with SMTP id 2adb3069b0e04-557f830d93dmr211057e87.16.1751928864206; Mon, 07 Jul 2025 15:54:24 -0700 (PDT) Received: from localhost.localdomain ([176.33.70.141]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-556384b836dsm1476347e87.197.2025.07.07.15.54.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Jul 2025 15:54:23 -0700 (PDT) From: Alper Ak To: openembedded-devel@lists.openembedded.org Cc: Alper Ak Subject: [meta-openembedded][PATCH 6/9] json-spirit: Add patch for CMake 4+ compatibility Date: Tue, 8 Jul 2025 01:54:04 +0300 Message-ID: <20250707225407.1558421-6-alperyasinak1@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250707225407.1558421-1-alperyasinak1@gmail.com> References: <20250707225407.1558421-1-alperyasinak1@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 07 Jul 2025 22:54:29 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/118294 Fix: | CMake Error at CMakeLists.txt:1 (CMAKE_MINIMUM_REQUIRED): | Compatibility with CMake < 3.5 has been removed from CMake. | | Update the VERSION argument value. Or, use the ... syntax | to tell CMake that the project requires at least but has been updated | to work with policies introduced by or earlier. | | Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway. | | | -- Configuring incomplete, errors occurred! Signed-off-by: Alper Ak --- .../0002-allow-build-with-cmake-4.patch | 40 +++++++++++++++++++ .../json-spirit/json-spirit_4.08.bb | 1 + 2 files changed, 41 insertions(+) create mode 100644 meta-oe/recipes-devtools/json-spirit/json-spirit/0002-allow-build-with-cmake-4.patch diff --git a/meta-oe/recipes-devtools/json-spirit/json-spirit/0002-allow-build-with-cmake-4.patch b/meta-oe/recipes-devtools/json-spirit/json-spirit/0002-allow-build-with-cmake-4.patch new file mode 100644 index 0000000000..4aecdc817f --- /dev/null +++ b/meta-oe/recipes-devtools/json-spirit/json-spirit/0002-allow-build-with-cmake-4.patch @@ -0,0 +1,40 @@ +From 046312620cbc282fcc1ad5db0acece3a3615fb7c Mon Sep 17 00:00:00 2001 +From: Alper Ak +Date: Mon, 7 Jul 2025 21:51:01 +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 value. Or, use the ... syntax +| to tell CMake that the project requires at least but has been updated +| to work with policies introduced by 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 +--- + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index b292f0f..0c797fa 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,4 +1,4 @@ +-CMAKE_MINIMUM_REQUIRED(VERSION 2.6) ++CMAKE_MINIMUM_REQUIRED(VERSION 3.5) + + PROJECT(json_spirit) + SUBDIRS(json_spirit json_demo json_headers_only_demo json_map_demo) +-- +2.43.0 + diff --git a/meta-oe/recipes-devtools/json-spirit/json-spirit_4.08.bb b/meta-oe/recipes-devtools/json-spirit/json-spirit_4.08.bb index 56ddaf59a5..001d52d597 100644 --- a/meta-oe/recipes-devtools/json-spirit/json-spirit_4.08.bb +++ b/meta-oe/recipes-devtools/json-spirit/json-spirit_4.08.bb @@ -14,6 +14,7 @@ DEPENDS = "boost" SRC_URI = "file://json_spirit_v${PV}.zip \ file://0001-Adjust-the-cmake-files.patch \ file://0001-Link-to-libatomic.patch \ + file://0002-allow-build-with-cmake-4.patch \ " S = "${UNPACKDIR}/json_spirit_v${PV}" From patchwork Mon Jul 7 22:54:05 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alper Ak X-Patchwork-Id: 66367 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 97A16C83030 for ; Mon, 7 Jul 2025 22:54:29 +0000 (UTC) Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com [209.85.167.54]) by mx.groups.io with SMTP id smtpd.web11.5692.1751928867959122720 for ; Mon, 07 Jul 2025 15:54:28 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=LP5wZp9y; spf=pass (domain: gmail.com, ip: 209.85.167.54, mailfrom: alperyasinak1@gmail.com) Received: by mail-lf1-f54.google.com with SMTP id 2adb3069b0e04-5561c20e2d5so4201182e87.0 for ; Mon, 07 Jul 2025 15:54:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1751928866; x=1752533666; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=2xF2u7ktLPFtKNNDLKIPOA09vAAFRE1ylBcTzPCraAI=; b=LP5wZp9yJLgfQT06Vh5X1PN6UNqAywjCgx0C1J21UbzTv699fJpUPR08dkltVoENRY gEeYGOKNQKM2B/vu9rhy6j/4bN2GMulFDtrxGYIGtfY4bNxY5vrnS1c+5iCSkmKUID4r TlZo+59DswqfjqgaRZJWr/mg8Uoajty9XLCgakhtpffXIjdkcrgncOce5EVJj01jl4j9 uBvvVT3R2WeznQJ+AWm+OzMrVaVOJhp53+mV+Ta+EsKWV1AliZmmL1QEa8tvz+ZCvsV/ QAJy/IAndFO86rwPwu/QeNshKBoaIo9ZNAicB2vbCuOJobF5His5WCzThsz2bODOr5L1 RbaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1751928866; x=1752533666; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2xF2u7ktLPFtKNNDLKIPOA09vAAFRE1ylBcTzPCraAI=; b=Qgih+Q/c9GxEFROyUZGnx9qYC1tn+1bGM7y7+OHPiMqLofy8C0DMj8ORtesJNSGalE WDNON/pvBqUSly1VrS+2hpiw8beDO6hRcPW96X6+lyroWrMf2y1s2CZ4W5rROI8Dn/Wx nHADFDqFF907hijOR35i+oH3RTCRfxAbgQ4UAaLZF/74YMoohl+vfPafgryYWYB9iVGq n2gMTvoV8iLxOr7VUAa75LVmuXiHMGaNaydaJiZAR916CMvEnn3nnkQgkjvfIaw5qMgJ VKQYRAyfRcNjx0Km8FqTv6YS+H2mJbFZKm1Dd49Z7d9/6fJ3CPZXvmedFTVG8ka8rFyX PBZQ== X-Gm-Message-State: AOJu0YztbUjYa0AymhKR/GYlp/r6er/4zJp7Lj29QK8rYdr3v7mF1k9O M7Mz74FzKIpGnyysW27H7rk6xZCuIn4dWTw6lIeIYRfjPzI4AkTFi9T4QMjH5g== X-Gm-Gg: ASbGncsl1KcV8zs5ErwGpnh4O6JQ5vAkUVIUnWOv48uTFc1ZF+/ohzDVGOxaezHN6IC zfanUyOEwMc/zLQZhyGmXAw/oOLJ1g0pjqTUxgFMqSee09pob6GPDLu6xBQY7YVc+wI50f9KGXF yQl9BNOvHBdenebALGM2xBPge5llDTDJSV0SRC5nKl5eVhgOH1Fm+c87jl+T3SOzBEc6RjsTAIp YweGiXKyN4+Mt99DOEw/K92zVs0spEfQKC+G2S9wmPCT8DVJMl9ymzoX5BaOvXP3gK7wsmVy61U VbHvtoSug5J5KkVKlNzMEa0ntK5VwPucj6iPlNmJ8XFgaIAnvR+CGDLgatmUKNxATlimhsAsPd2 T83A= X-Google-Smtp-Source: AGHT+IGoXVGc8/A5dfOwfx/OlzfswfQlw3uAJf/8IOZgz+Mykqb7mHutdhkMW9C8ombQ9nZ+vn9DvA== X-Received: by 2002:a05:6512:104f:b0:553:d9ba:a171 with SMTP id 2adb3069b0e04-557f8378d41mr180802e87.43.1751928865535; Mon, 07 Jul 2025 15:54:25 -0700 (PDT) Received: from localhost.localdomain ([176.33.70.141]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-556384b836dsm1476347e87.197.2025.07.07.15.54.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Jul 2025 15:54:24 -0700 (PDT) From: Alper Ak To: openembedded-devel@lists.openembedded.org Cc: Alper Ak Subject: [meta-openembedded][PATCH 7/9] apitrace: Upgrade 11.1 -> 13.0 to allow CMake 4+ compatibility Date: Tue, 8 Jul 2025 01:54:05 +0300 Message-ID: <20250707225407.1558421-7-alperyasinak1@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250707225407.1558421-1-alperyasinak1@gmail.com> References: <20250707225407.1558421-1-alperyasinak1@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 07 Jul 2025 22:54:29 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/118295 - Drop 0001-Explicit-header-stdint.patch because already fixed in newer version. Changelog: https://github.com/apitrace/apitrace/releases/tag/13.0 https://github.com/apitrace/apitrace/releases/tag/12.0 Fix: | CMake Error at thirdparty/libbacktrace.cmake:32 (cmake_minimum_required): | Compatibility with CMake < 3.5 has been removed from CMake. | | Update the VERSION argument value. Or, use the ... syntax | to tell CMake that the project requires at least but has been updated | to work with policies introduced by or earlier. | | Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway. | Call Stack (most recent call first): | thirdparty/CMakeLists.txt:13 (include) | thirdparty/CMakeLists.txt:55 (include_with_scope) Signed-off-by: Alper Ak --- .../0001-Explicit-header-stdint.patch | 42 ------------------- .../{apitrace_11.1.bb => apitrace_13.0.bb} | 8 +--- 2 files changed, 2 insertions(+), 48 deletions(-) delete mode 100644 meta-oe/recipes-devtools/apitrace/apitrace/0001-Explicit-header-stdint.patch rename meta-oe/recipes-devtools/apitrace/{apitrace_11.1.bb => apitrace_13.0.bb} (85%) diff --git a/meta-oe/recipes-devtools/apitrace/apitrace/0001-Explicit-header-stdint.patch b/meta-oe/recipes-devtools/apitrace/apitrace/0001-Explicit-header-stdint.patch deleted file mode 100644 index 9ce6693061..0000000000 --- a/meta-oe/recipes-devtools/apitrace/apitrace/0001-Explicit-header-stdint.patch +++ /dev/null @@ -1,42 +0,0 @@ -From 952bad1469ea747012bdc48c48993bd5f13eec04 Mon Sep 17 00:00:00 2001 -From: Nicolas PARLANT -Date: Fri, 21 Mar 2025 05:02:23 +0000 -Subject: [PATCH] Explicit header: stdint - -Fix building with GCC-15. It no longer includes it by default. - -Upstream-Status: Backport [https://github.com/apitrace/apitrace/commit/952bad1469ea747012bdc48c48993bd5f13eec04] - -Signed-off-by: Nicolas PARLANT ---- - frametrim/ft_dependecyobject.hpp | 1 + - retrace/metric_writer.cpp | 1 + - 2 files changed, 2 insertions(+) - -diff --git a/frametrim/ft_dependecyobject.hpp b/frametrim/ft_dependecyobject.hpp -index 2cd0b768..0f17b601 100644 ---- a/frametrim/ft_dependecyobject.hpp -+++ b/frametrim/ft_dependecyobject.hpp -@@ -28,6 +28,7 @@ - #pragma once - - #include "ft_tracecall.hpp" -+#include - - namespace frametrim { - -diff --git a/retrace/metric_writer.cpp b/retrace/metric_writer.cpp -index e923ed1d..4e4ce748 100644 ---- a/retrace/metric_writer.cpp -+++ b/retrace/metric_writer.cpp -@@ -24,6 +24,7 @@ - **************************************************************************/ - - #include -+#include - - #include "metric_writer.hpp" - --- -2.34.1 - diff --git a/meta-oe/recipes-devtools/apitrace/apitrace_11.1.bb b/meta-oe/recipes-devtools/apitrace/apitrace_13.0.bb similarity index 85% rename from meta-oe/recipes-devtools/apitrace/apitrace_11.1.bb rename to meta-oe/recipes-devtools/apitrace/apitrace_13.0.bb index 244d9a3c6f..1e41548c9b 100644 --- a/meta-oe/recipes-devtools/apitrace/apitrace_11.1.bb +++ b/meta-oe/recipes-devtools/apitrace/apitrace_13.0.bb @@ -5,12 +5,8 @@ LICENSE = "MIT & BSD-3-Clause" LIC_FILES_CHKSUM = "file://LICENSE;md5=aeb969185a143c3c25130bc2c3ef9a50 \ file://thirdparty/snappy/COPYING;md5=f62f3080324a97b3159a7a7e61812d0c" -SRCREV = "9352fc02bba106fbbeef9e8452ef34643c0d0764" -PV .= "+11.1+git" -SRC_URI = "gitsm://github.com/${BPN}/${BPN}.git;branch=master;protocol=https \ - file://0001-Explicit-header-stdint.patch \ - " - +SRCREV = "ed44bd4c6cce224e2d64533d197bea6ca4fee266" +SRC_URI = "gitsm://github.com/${BPN}/${BPN}.git;branch=master;protocol=https" DEPENDS += "zlib libpng python3-native" From patchwork Mon Jul 7 22:54:06 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alper Ak X-Patchwork-Id: 66371 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id ADB02C83030 for ; Mon, 7 Jul 2025 22:54:39 +0000 (UTC) Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com [209.85.167.52]) by mx.groups.io with SMTP id smtpd.web10.5811.1751928869385703293 for ; Mon, 07 Jul 2025 15:54:29 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=HR62KAI0; spf=pass (domain: gmail.com, ip: 209.85.167.52, mailfrom: alperyasinak1@gmail.com) Received: by mail-lf1-f52.google.com with SMTP id 2adb3069b0e04-556373661aaso3354075e87.2 for ; Mon, 07 Jul 2025 15:54:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1751928867; x=1752533667; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=vBTz3MFB6vj/ewvghlteFRnNzlKezi3OQAyDDG9YEXA=; b=HR62KAI0o6U+fY7VXfTSQqAr2bJUMSQXr6hw1CKYGkvwYEidE2oFOL8mFo/ZnCNtAw 2M2k2WQ0d/vmn6KVeafUeRM3Jzy0pdWPbmYuGUx4Y1rIp+3kidDiCRQwRa2bNFC74gzN OBEw5gbt8FI7g1xs6aIBFLQ9pmcTpvg5Bvgb6jPd+kTjfvhKXmxjQithxunbq1sSkR4F Rp/2+bPxFdgzZTx6Xlq4x59wfWi05SIsHHPaK6l/hUPDOw4Qy4ZCjwJFAA4TCTrxKyZ2 sA+Sz1mwrmeyzfmEYdSGX37cq/Oe7kTx3NHYqf9SngIcn0LldO/1N0TnnpUOEVoW4cSK MiSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1751928867; x=1752533667; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vBTz3MFB6vj/ewvghlteFRnNzlKezi3OQAyDDG9YEXA=; b=KHugVAZt0pZS2IkW4wv7IlaQsVY7wQWMLDcssjZ61n/TikPMVh9jOy2gQtHNHfy2GD dy4VpB1bNZCN5a82HKPqSn4wfElzZ8CTgz9/Ueh2ywxEJpzD5ew6LzOzRcLRv7BMVeYB JHKVItcrZVNDK5LTHECg9SKiUKibxGi71q5GV+oDdby5CK3Mm+B8v/V/7Q3IU5YFKHyx K1RuSz6w7FD2bqSSXNgkwUMbxVGR9FE+96wvR3BygPxWOMBCwbllyZgkMBLeKbtkojPW xmR+xtSuPuJ8hUJHtnIcXLsHoXtB6FgK2kmSHiejuS9vVB9UBaS5I++I4+qVkHsmUGsO NtyQ== X-Gm-Message-State: AOJu0YxNZR4havU4Erb6Y/UWnzeIgzBViIhaPwuVXQKLNuQ8S/VHSq2r pDFxTEs74Tvu4vSw54E8lVj84yxg1VJhkE0hFV9RH7OnNc6dg3pmAGPoBnchPg== X-Gm-Gg: ASbGncu/5vJYH9NJvbP22kpxmQcsBkAyiBUFlroK7GmPBx/uEFdEcbHEdXiv/9MZTod 0LG1zU6qbsraO1j0n3jvGfnfDJi9Gq+oPA2f5zTRsYkjhnmjsnWr+ieK8g4T/NcLeIq4V1QJUxB HWajImnzzq9j2uT/25LSKRMs23K980uGaJxUGjQXkhnyRrOPdGRb5AXv7tXSMEJJUGr1rbtQIEV LB5lqzdH3SY/7QgT6qxHI2XAMbLGGKMpMR/S4bVVKOhZNnVFonGLg+jVw0QWqsap3t2M8agOgti 0rFYJ6NYj7IoRYruLnnQMAb8MGkTrtnywRVFHSEaCEcdzDWM7UmP+u/z7DU8TjdiGyO+6zZYIOP JvnEJt4KBh7z76g== X-Google-Smtp-Source: AGHT+IF3X6UyvbDRL3KIteF4f6h6h+nROhVPGj8IGYuSOBHo3vXnk9j6KOUQv0/0i533QKQn2mtEyA== X-Received: by 2002:a05:6512:2528:b0:553:2cc1:2bb4 with SMTP id 2adb3069b0e04-557f8301ea3mr205310e87.12.1751928866957; Mon, 07 Jul 2025 15:54:26 -0700 (PDT) Received: from localhost.localdomain ([176.33.70.141]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-556384b836dsm1476347e87.197.2025.07.07.15.54.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Jul 2025 15:54:26 -0700 (PDT) From: Alper Ak To: openembedded-devel@lists.openembedded.org Cc: Alper Ak Subject: [meta-openembedded][PATCH 8/9] cli11: Upgrade 2.3.2 -> 2.5.0 to allow CMake 4+ compatibility Date: Tue, 8 Jul 2025 01:54:06 +0300 Message-ID: <20250707225407.1558421-8-alperyasinak1@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250707225407.1558421-1-alperyasinak1@gmail.com> References: <20250707225407.1558421-1-alperyasinak1@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 07 Jul 2025 22:54:39 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/118296 - Drop 0001-Do-not-download-the-catch-framework-during-configure.patch The cli11 recipe previously included a patch to disable downloading of the Catch2 test framework during the build, and manually copied the catch.hpp file into the source tree. With the new change, we now declare a dependency on the catch2 recipe, allowing the build system to use the system provided Catch2 headers instead of downloading or copying them. The patch to remove the download logic is no longer needed and has been dropped for a cleaner and more maintainable recipe. Also, If Catch2 is already found, it doesn't enter the block of the download step accordingly to CMakeLists.txt. - The LICENSE file has changed so updated LIC_FILES_CHKSUM to match the new md5sum. Changelog: https://github.com/CLIUtils/CLI11/blob/v2.5.0/CHANGELOG.md Fix: | CMake Error at CMakeLists.txt:1 (cmake_minimum_required): | Compatibility with CMake < 3.5 has been removed from CMake. | | Update the VERSION argument value. Or, use the ... syntax | to tell CMake that the project requires at least but has been updated | to work with policies introduced by or earlier. | | Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway. | | | -- Configuring incomplete, errors occurred! Signed-off-by: Alper Ak --- ...the-catch-framework-during-configure.patch | 41 ------------------- meta-oe/recipes-support/cli11/cli11_2.3.2.bb | 25 ----------- meta-oe/recipes-support/cli11/cli11_2.5.0.bb | 18 ++++++++ 3 files changed, 18 insertions(+), 66 deletions(-) delete mode 100644 meta-oe/recipes-support/cli11/cli11/0001-Do-not-download-the-catch-framework-during-configure.patch delete mode 100644 meta-oe/recipes-support/cli11/cli11_2.3.2.bb create mode 100644 meta-oe/recipes-support/cli11/cli11_2.5.0.bb diff --git a/meta-oe/recipes-support/cli11/cli11/0001-Do-not-download-the-catch-framework-during-configure.patch b/meta-oe/recipes-support/cli11/cli11/0001-Do-not-download-the-catch-framework-during-configure.patch deleted file mode 100644 index 7e6611b6a8..0000000000 --- a/meta-oe/recipes-support/cli11/cli11/0001-Do-not-download-the-catch-framework-during-configure.patch +++ /dev/null @@ -1,41 +0,0 @@ -From 93557d5c5acf9ebb2c0fa708658e1d36621dd23a Mon Sep 17 00:00:00 2001 -From: Wang Mingyu -Date: Wed, 7 Sep 2022 10:05:15 +0900 -Subject: [PATCH] Do not download the catch framework during configure. - -Upstream-Status: Inappropriate [configuration] - -Signed-off-by: Wang Mingyu ---- - tests/CMakeLists.txt | 15 --------------- - 1 file changed, 15 deletions(-) - -diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt -index 80c4f6a..ae210db 100644 ---- a/tests/CMakeLists.txt -+++ b/tests/CMakeLists.txt -@@ -74,21 +74,6 @@ if(Catch2_FOUND) - endif() - message(STATUS "Found Catch2") - target_link_libraries(catch_main PUBLIC Catch2::Catch2) --else() -- message(STATUS "Downloading Catch2") -- -- # FetchContent would be better, but requires newer CMake. -- file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/catch2") -- set(url https://github.com/philsquared/Catch/releases/download/v2.13.7/catch.hpp) -- file( -- DOWNLOAD ${url} "${CMAKE_CURRENT_BINARY_DIR}/catch2/catch.hpp" -- STATUS status -- EXPECTED_HASH SHA256=ea379c4a3cb5799027b1eb451163dff065a3d641aaba23bf4e24ee6b536bd9bc) -- list(GET status 0 error) -- if(error) -- message(FATAL_ERROR "Could not download ${url}, and Catch2 not found on your system.") -- endif() -- target_include_directories(catch_main PUBLIC "${CMAKE_CURRENT_BINARY_DIR}") - endif() - - # Target must already exist --- -2.25.1 - diff --git a/meta-oe/recipes-support/cli11/cli11_2.3.2.bb b/meta-oe/recipes-support/cli11/cli11_2.3.2.bb deleted file mode 100644 index 346ccd6c69..0000000000 --- a/meta-oe/recipes-support/cli11/cli11_2.3.2.bb +++ /dev/null @@ -1,25 +0,0 @@ -SUMMARY = "C++11 command line parser" -DESCRIPTION = "A command line parser for C++11 and beyond that provides a rich feature set with a simple and intuitive interface." -HOMEPAGE = "https://github.com/CLIUtils/CLI11" -LICENSE = "BSD-3-Clause" -LIC_FILES_CHKSUM = "file://LICENSE;md5=afb20fe5f67e21074b10b864d9563c11" -SRCREV = "291c58789c031208f08f4f261a858b5b7083e8e2" -PV .= "+git" - -SRC_URI += "gitsm://github.com/CLIUtils/CLI11;branch=main;protocol=https \ - https://github.com/philsquared/Catch/releases/download/v2.13.7/catch.hpp \ - file://0001-Do-not-download-the-catch-framework-during-configure.patch" - -SRC_URI[sha256sum] = "ea379c4a3cb5799027b1eb451163dff065a3d641aaba23bf4e24ee6b536bd9bc" - -do_configure:prepend() { - mkdir -p ${S}/tests/catch2 - cp ${DL_DIR}/catch.hpp ${S}/tests/catch2/catch.hpp -} - -inherit cmake - -# cli11 is a header only C++ library, so the main package will be empty. -RDEPENDS:${PN}-dev = "" - -BBCLASSEXTEND = "native nativesdk" diff --git a/meta-oe/recipes-support/cli11/cli11_2.5.0.bb b/meta-oe/recipes-support/cli11/cli11_2.5.0.bb new file mode 100644 index 0000000000..82203b3019 --- /dev/null +++ b/meta-oe/recipes-support/cli11/cli11_2.5.0.bb @@ -0,0 +1,18 @@ +SUMMARY = "C++11 command line parser" +DESCRIPTION = "A command line parser for C++11 and beyond that provides a rich feature set with a simple and intuitive interface." +HOMEPAGE = "https://github.com/CLIUtils/CLI11" +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://LICENSE;md5=b8bdde6bda8508bef68a39f3e0d7e939" + +DEPENDS = "catch2" + +SRCREV = "4160d259d961cd393fd8d67590a8c7d210207348" +SRC_URI = "gitsm://github.com/CLIUtils/CLI11;branch=main;protocol=https" +SRC_URI[sha256sum] = "ea379c4a3cb5799027b1eb451163dff065a3d641aaba23bf4e24ee6b536bd9bc" + +inherit cmake + +# cli11 is a header only C++ library, so the main package will be empty. +RDEPENDS:${PN}-dev = "" + +BBCLASSEXTEND = "native nativesdk" From patchwork Mon Jul 7 22:54:07 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alper Ak X-Patchwork-Id: 66372 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id B25F4C8303C for ; Mon, 7 Jul 2025 22:54:39 +0000 (UTC) Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) by mx.groups.io with SMTP id smtpd.web11.5693.1751928871773501985 for ; Mon, 07 Jul 2025 15:54:32 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=jepdyNRO; spf=pass (domain: gmail.com, ip: 209.85.167.49, mailfrom: alperyasinak1@gmail.com) Received: by mail-lf1-f49.google.com with SMTP id 2adb3069b0e04-553b9eb2299so3829587e87.0 for ; Mon, 07 Jul 2025 15:54:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1751928869; x=1752533669; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=2febJ7tb0Cvu4gLJ7+OHWLn1oBaZSrc37/f9pIpgl6A=; b=jepdyNROnKhsW2efqzWVltf0SWc1v4ZOtxBMBdEXbG4+yt+V5fDa1nI4t1jIFlujbO hJKiBTDrfxlYBl8E7gP5TdY7kEc3mBv4op8hNWuhAunkr2aX/CvTTs7ckaz8SypvD8so hxJgiKGKp3lXz/ds9jzVm/JdnBghJEqpN7NxhO/YjDGS44anZ+QhyPZrR7SkuI9yBjNh Gl1t/XxZQPvSGl4V21QJqH0KfziVsIaSJPTULGTWq5MXcNH2uho1GOnjSTUNGV9kRDnR WPBy9K0bsxGJgyL/+sIfNvM29N/jHAmXvel7eCAHVNXQL5/PUNdKlt91jLJgE9Nwtxvw oskQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1751928869; x=1752533669; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2febJ7tb0Cvu4gLJ7+OHWLn1oBaZSrc37/f9pIpgl6A=; b=FVoXOsz87j/6x/f/K7Mjzzju75WBqp/2Ea+zIm7mZ+WXhbqcH2Ct+CnO1INoCbPgjN 2JgVkKr623qVyt5ru0dkCNwB+o9zeJidwYcwjCi1Ft8XO/VJP0vCDJO76jpQwSgsk+1m sFqsaJXfL266uGhJK0CuFFKchhkTUQWC/t9J48OsDMxWNIcImdo50Yaa9uL/+xt7vak/ WwnofI+gUZIHgVX8wsH7sksyOC3steO++gRdu4tfmnl3GvxiOoCV46+6L/ihYuoKE7AQ HLrigWQe7Tzpfb9DmodH3aWwvYfu5zMMajvrn1x854HsQa2i27FiZb+HK3T2xa3QuDfq FgMA== X-Gm-Message-State: AOJu0YxEy0yjgv6uRXZxkNdUqcT0uuYjM5nZMFoIWY++foujQvGGdTiP Fb6jRt94RBnMfZXvAR43VSgR95OuLzNwjU+gUgXRBLz44uyuc6FU/nIthYVrBw== X-Gm-Gg: ASbGncskv/4u6nIE2EA8SZHqHnPXUBWe4k6+z6UYlD+8ERngByfpVFKuNIuvRE7GVux ePUCrAZW1WzHBLVReVNbdhsVZcN4ffepxDKwzjahCMTknaZFj4I5P2DZ1ZvPktqYRX2f0aPJi7R PrBU4f6ImxraJpLeAZ7ai7/Zlie3L61D7LEEm8vQ4tgShD9ueqH+JntKQYSAq5mdizoURNskeEK 8q6+Ds1lkhpOFZd9u5+BSGx3Bopi8gz20DBrNKjG1f0IKc5qmr2YWaJYTZhoqF+XZaMi4HgrNOu 3G21Mop1z0dNCA2XJGTpYxz9QCE5tykb2FY9Aovz7ZspdOZ6RAfEZJ9UGj1YLPk/ghSzonZNY/s DmxA= X-Google-Smtp-Source: AGHT+IEExPD4eSGUwXHRdo3UIN/O0hcjv0YOY0tweOj8TkJilBK0RqQyLSBvsJ+KBvBfGjAb/Ndtig== X-Received: by 2002:a05:6512:2381:b0:553:2308:1ac5 with SMTP id 2adb3069b0e04-557f8d6a9efmr95200e87.4.1751928869266; Mon, 07 Jul 2025 15:54:29 -0700 (PDT) Received: from localhost.localdomain ([176.33.70.141]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-556384b836dsm1476347e87.197.2025.07.07.15.54.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Jul 2025 15:54:28 -0700 (PDT) From: Alper Ak To: openembedded-devel@lists.openembedded.org Cc: Alper Ak Subject: [meta-openembedded][PATCH 9/9] json-schema-validator: Upgrade 2.2.0 -> 2.3.0 to allow CMake 4+ compatibility Date: Tue, 8 Jul 2025 01:54:07 +0300 Message-ID: <20250707225407.1558421-9-alperyasinak1@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250707225407.1558421-1-alperyasinak1@gmail.com> References: <20250707225407.1558421-1-alperyasinak1@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 07 Jul 2025 22:54:39 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/118297 - Drop patches because all of them fixed in the newer version. A few explanation for 0001-Set-Json_validator-Install-off-if-it-finds-it-via-li.patch: For newer version CMakeLists.txt, this logic is now handled automatically using the PROJECT_IS_TOP_LEVEL variable. The JSON_VALIDATOR_INSTALL option is set to ON only when the project is being built as the top-level project, and it is automatically disabled when included as a dependency. As a result, the patch is no longer needed and the behavior it intended to provide is already covered by the new build system logic. Changelog: - Some bugfixes, but mainly a big re-work of the CMakeLists.txt making it use and usable for FetchContent-users. Fix: | CMake Error at CMakeLists.txt:1 (cmake_minimum_required): | Compatibility with CMake < 3.5 has been removed from CMake. | | Update the VERSION argument value. Or, use the ... syntax | to tell CMake that the project requires at least but has been updated | to work with policies introduced by or earlier. | | Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway. | | | -- Configuring incomplete, errors occurred! Signed-off-by: Alper Ak --- ...or-Install-off-if-it-finds-it-via-li.patch | 29 -------- .../0002-Fix-assumed-signed-char.patch | 71 ------------------- ...003-For-root-value-use-empty-pointer.patch | 41 ----------- .../0004-cmake-Use-GNUInstallDirs.patch | 43 ----------- ....2.0.bb => json-schema-validator_2.3.0.bb} | 12 +--- 5 files changed, 3 insertions(+), 193 deletions(-) delete mode 100644 meta-oe/recipes-devtools/json-schema-validator/json-schema-validator/0001-Set-Json_validator-Install-off-if-it-finds-it-via-li.patch delete mode 100644 meta-oe/recipes-devtools/json-schema-validator/json-schema-validator/0002-Fix-assumed-signed-char.patch delete mode 100644 meta-oe/recipes-devtools/json-schema-validator/json-schema-validator/0003-For-root-value-use-empty-pointer.patch delete mode 100644 meta-oe/recipes-devtools/json-schema-validator/json-schema-validator/0004-cmake-Use-GNUInstallDirs.patch rename meta-oe/recipes-devtools/json-schema-validator/{json-schema-validator_2.2.0.bb => json-schema-validator_2.3.0.bb} (53%) diff --git a/meta-oe/recipes-devtools/json-schema-validator/json-schema-validator/0001-Set-Json_validator-Install-off-if-it-finds-it-via-li.patch b/meta-oe/recipes-devtools/json-schema-validator/json-schema-validator/0001-Set-Json_validator-Install-off-if-it-finds-it-via-li.patch deleted file mode 100644 index 6e6a4b93e8..0000000000 --- a/meta-oe/recipes-devtools/json-schema-validator/json-schema-validator/0001-Set-Json_validator-Install-off-if-it-finds-it-via-li.patch +++ /dev/null @@ -1,29 +0,0 @@ -From 35939115142db6cd366ab11b29692a0179338ddf Mon Sep 17 00:00:00 2001 -From: Parian Golchin -Date: Fri, 18 Aug 2023 15:54:25 +0200 -Subject: [PATCH 1/3] Set Json_validator Install off if it finds it via linking - -Upstream-Status: Inappropriate [newer version of cmake in main branch] - -Signed-off-by: Parian Golchin ---- - CMakeLists.txt | 3 +++ - 1 file changed, 3 insertions(+) - -diff --git a/CMakeLists.txt b/CMakeLists.txt -index f636734..9e4587f 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -55,6 +55,9 @@ option(JSON_VALIDATOR_BUILD_EXAMPLES "Build examples" ${JSON_VALIDATOR_IS_TOP_LE - - if(NOT TARGET nlohmann_json::nlohmann_json) - find_package(nlohmann_json REQUIRED) -+else() -+ message(STATUS "Found nlohmann_json::nlohmann_json-target - linking with it") -+ set(JSON_VALIDATOR_INSTALL OFF) - endif() - - target_link_libraries( --- -2.25.1 - diff --git a/meta-oe/recipes-devtools/json-schema-validator/json-schema-validator/0002-Fix-assumed-signed-char.patch b/meta-oe/recipes-devtools/json-schema-validator/json-schema-validator/0002-Fix-assumed-signed-char.patch deleted file mode 100644 index 1c4b871bb6..0000000000 --- a/meta-oe/recipes-devtools/json-schema-validator/json-schema-validator/0002-Fix-assumed-signed-char.patch +++ /dev/null @@ -1,71 +0,0 @@ -From 2065015da40cf79dd8ec9e3f186538e17c3b592f Mon Sep 17 00:00:00 2001 -From: Robert Joslyn -Date: Wed, 30 Nov 2022 13:07:29 -0800 -Subject: [PATCH 2/3] Fix assumed signed char - -The code assumes that char is signed, but whether char is signed or -unsigned is implementation defined. On some architectures like PowerPC, -GCC treats char as unsigned resulting in compile errors: - - smtp-address-validator.cpp:213:1: error: narrowing conversion of '-32' from 'int' to 'char' [-Wnarrowing] - -Fix this by specifying signed char. - -Upstream-Status: Backport [https://github.com/pboettch/json-schema-validator/commit/491ac44026e08f31790f5cacffa62e168bb35e32] - -Signed-off-by: Parian Golchin ---- - src/smtp-address-validator.cpp | 16 ++++++++-------- - 1 file changed, 8 insertions(+), 8 deletions(-) - -diff --git a/src/smtp-address-validator.cpp b/src/smtp-address-validator.cpp -index a63ead0..3903b51 100644 ---- a/src/smtp-address-validator.cpp -+++ b/src/smtp-address-validator.cpp -@@ -63,7 +63,7 @@ static const short _address_key_offsets[] = { - 1363, 1365, 1367, 1368, 1370, 1388, 0 - }; - --static const char _address_trans_keys[] = { -+static const signed char _address_trans_keys[] = { - -32, -19, -16, -12, 34, 45, 61, 63, - -62, -33, -31, -17, -15, -13, 33, 39, - 42, 43, 47, 57, 65, 90, 94, 126, -@@ -711,7 +711,7 @@ bool is_address(const char* p, const char* pe) - { - int _klen; - unsigned int _trans = 0; -- const char * _keys; -+ const signed char * _keys; - const signed char * _acts; - unsigned int _nacts; - _resume: {} -@@ -728,9 +728,9 @@ bool is_address(const char* p, const char* pe) - - _klen = (int)_address_single_lengths[cs]; - if ( _klen > 0 ) { -- const char *_lower = _keys; -- const char *_upper = _keys + _klen - 1; -- const char *_mid; -+ const signed char *_lower = _keys; -+ const signed char *_upper = _keys + _klen - 1; -+ const signed char *_mid; - while ( 1 ) { - if ( _upper < _lower ) { - _keys += _klen; -@@ -752,9 +752,9 @@ bool is_address(const char* p, const char* pe) - - _klen = (int)_address_range_lengths[cs]; - if ( _klen > 0 ) { -- const char *_lower = _keys; -- const char *_upper = _keys + (_klen<<1) - 2; -- const char *_mid; -+ const signed char *_lower = _keys; -+ const signed char *_upper = _keys + (_klen<<1) - 2; -+ const signed char *_mid; - while ( 1 ) { - if ( _upper < _lower ) { - _trans += (unsigned int)_klen; --- -2.25.1 - diff --git a/meta-oe/recipes-devtools/json-schema-validator/json-schema-validator/0003-For-root-value-use-empty-pointer.patch b/meta-oe/recipes-devtools/json-schema-validator/json-schema-validator/0003-For-root-value-use-empty-pointer.patch deleted file mode 100644 index eac997ae58..0000000000 --- a/meta-oe/recipes-devtools/json-schema-validator/json-schema-validator/0003-For-root-value-use-empty-pointer.patch +++ /dev/null @@ -1,41 +0,0 @@ -From fa49c29942763285c51b7d2dea417d9f51e4961f Mon Sep 17 00:00:00 2001 -From: Sven Fink -Date: Fri, 13 Jan 2023 09:15:42 +0100 -Subject: [PATCH 3/3] For root value, use empty pointer - -Upstream-Status: Backport [https://github.com/pboettch/json-schema-validator/commit/59c9d6200bf3cd54b4fc717ec1660c91eddb4d1a] - -Signed-off-by: Parian Golchin ---- - src/json-validator.cpp | 8 ++++++++ - 1 file changed, 8 insertions(+) - -diff --git a/src/json-validator.cpp b/src/json-validator.cpp -index 7f34553..3c73d98 100644 ---- a/src/json-validator.cpp -+++ b/src/json-validator.cpp -@@ -553,6 +553,9 @@ class type_schema : public schema - else_->validate(ptr, instance, patch, e); - } - } -+ if (instance.is_null()) { -+ patch.add(nlohmann::json::json_pointer{}, default_value_); -+ } - } - - protected: -@@ -1134,6 +1137,11 @@ public: - propertyNames_ = schema::make(attr.value(), root, {"propertyNames"}, uris); - sch.erase(attr); - } -+ -+ attr = sch.find("default"); -+ if (attr != sch.end()) { -+ set_default_value(*attr); -+ } - } - }; - --- -2.25.1 - diff --git a/meta-oe/recipes-devtools/json-schema-validator/json-schema-validator/0004-cmake-Use-GNUInstallDirs.patch b/meta-oe/recipes-devtools/json-schema-validator/json-schema-validator/0004-cmake-Use-GNUInstallDirs.patch deleted file mode 100644 index 8199e4f8d4..0000000000 --- a/meta-oe/recipes-devtools/json-schema-validator/json-schema-validator/0004-cmake-Use-GNUInstallDirs.patch +++ /dev/null @@ -1,43 +0,0 @@ -From a42d374aa260caec5f683c75d0db322811e51ab9 Mon Sep 17 00:00:00 2001 -From: Khem Raj -Date: Sat, 19 Mar 2022 22:40:49 -0700 -Subject: [PATCH] cmake: Use GNUInstallDirs - -This helps it make it platform independent, some platforms e.g. -ppc64/linux use /usr/lib64 for system libraries - -Upstream-Status: Submitted [https://github.com/pboettch/json-schema-validator/pull/197] -Signed-off-by: Khem Raj ---- - CMakeLists.txt | 8 +++++--- - 1 file changed, 5 insertions(+), 3 deletions(-) - -diff --git a/CMakeLists.txt b/CMakeLists.txt -index 9e4587f..3eff234 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -93,11 +93,13 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU") - endif() - endif() - -+include(GNUInstallDirs) -+ - if(JSON_VALIDATOR_INSTALL) - install(TARGETS nlohmann_json_schema_validator - EXPORT ${PROJECT_NAME}Targets -- LIBRARY DESTINATION lib -- ARCHIVE DESTINATION lib -+ LIBRARY DESTINATION ${LIBDIR} -+ ARCHIVE DESTINATION ${LIBDIR} - RUNTIME DESTINATION bin) - - install(FILES src/nlohmann/json-schema.hpp -@@ -129,7 +131,7 @@ endif() - - if(JSON_VALIDATOR_INSTALL) - # Set the install path to the cmake config files (Relative, so install works correctly under Hunter as well) -- set(INSTALL_CMAKE_DIR "lib/cmake/${PROJECT_NAME}") -+ set(INSTALL_CMAKE_DIR ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}) - set(INSTALL_CMAKEDIR_ROOT share/cmake) - - # Install Targets diff --git a/meta-oe/recipes-devtools/json-schema-validator/json-schema-validator_2.2.0.bb b/meta-oe/recipes-devtools/json-schema-validator/json-schema-validator_2.3.0.bb similarity index 53% rename from meta-oe/recipes-devtools/json-schema-validator/json-schema-validator_2.2.0.bb rename to meta-oe/recipes-devtools/json-schema-validator/json-schema-validator_2.3.0.bb index c6e910a137..4561f1b285 100644 --- a/meta-oe/recipes-devtools/json-schema-validator/json-schema-validator_2.2.0.bb +++ b/meta-oe/recipes-devtools/json-schema-validator/json-schema-validator_2.3.0.bb @@ -2,19 +2,13 @@ SUMMARY = "JSON schema validator for JSON for Modern C++" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE;md5=c441d022da1b1663c70181a32225d006" -SRC_URI = "git://github.com/pboettch/json-schema-validator;branch=main;protocol=https \ - file://0001-Set-Json_validator-Install-off-if-it-finds-it-via-li.patch \ - file://0002-Fix-assumed-signed-char.patch \ - file://0003-For-root-value-use-empty-pointer.patch \ - file://0004-cmake-Use-GNUInstallDirs.patch \ - " - -SRCREV = "6b17782d6a5d1dee5d2c4fc5d25ffb1123913431" - +SRC_URI = "git://github.com/pboettch/json-schema-validator;branch=main;protocol=https" +SRCREV = "349cba9f7e3cb423bbc1811bdd9f6770f520b468" DEPENDS += "nlohmann-json" inherit cmake + EXTRA_OECMAKE = "-DBUILD_SHARED_LIBS=ON -DJSON_VALIDATOR_BUILD_TESTS=OFF -DJSON_VALIDATOR_BUILD_EXAMPLES=OFF" BBCLASSEXTEND = "native nativesdk"