From patchwork Wed Jul 2 08:31:47 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Haase Moritz, JD-62" X-Patchwork-Id: 66111 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 EB27CC83F07 for ; Wed, 2 Jul 2025 08:32:42 +0000 (UTC) Received: from esa9.hc324-48.eu.iphmx.com (esa9.hc324-48.eu.iphmx.com [207.54.69.27]) by mx.groups.io with SMTP id smtpd.web11.18710.1751445160256371253 for ; Wed, 02 Jul 2025 01:32:40 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@bmw.de header.s=mailing1 header.b=o9EDzx6F; spf=pass (domain: bmw.de, ip: 207.54.69.27, mailfrom: prvs=27128fcf3=moritz.haase@bmw.de) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bmw.de; i=@bmw.de; q=dns/txt; s=mailing1; t=1751445160; x=1782981160; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=OWVnvodB05K3r/sgmLk8kGaMUwUHCZsmwAjb6tIAIns=; b=o9EDzx6F9L83Zi/RFF8F3OtGO1ZG/GMPHrgCqtg/qmW82+DP0RcyDuwz 5pwLDsxS8xGEpi1WPnalCCB+yi35+ZZKDpsGcyTvwMQsmZ2NiOtnZrgbe /GzZTTBq1jvCMIUvyNrcMdt9T7aWg3dbpDgw3SwziPl89hJqrOgT7sBxx o=; X-CSE-ConnectionGUID: cloe3WKiShelNDaPHN35sg== X-CSE-MsgGUID: C91sXaSEST2YnpaotmiVRw== Received: from 160.46.252.38.spf.bmwgroup.com (HELO esagw2.muc) ([160.46.252.38]) by esa9.hc324-48.eu.iphmx.com with ESMTP/TLS; 02 Jul 2025 10:32:38 +0200 Received: from esabb1.muc ([160.50.100.31]) by esagw2.muc with ESMTP/TLS; 02 Jul 2025 10:32:38 +0200 Received: from smucmp12a.bmwgroup.net (HELO smucmp12a.europe.bmw.corp) ([10.30.13.95]) by esabb1.muc with ESMTP/TLS; 02 Jul 2025 10:32:31 +0200 Received: from q1054628.de-cci.bmwgroup.net (10.30.85.204) by smucmp12a.europe.bmw.corp (2a03:1e80:a15:58f::1:9) with Microsoft SMTP Server (version=TLS; Wed, 2 Jul 2025 10:32:31 +0200 X-CSE-ConnectionGUID: FHNbLmmaTHKljdEcfnslDg== X-CSE-MsgGUID: i1gXeYixSfyBDjdP1eBFKg== X-CSE-ConnectionGUID: BiynFOqYRnu9JqHy1H3EOA== X-CSE-MsgGUID: WZjIt93jTV6aNzYWAqcRHA== From: Moritz Haase To: CC: Moritz Haase Subject: [PATCH v3 6/7] libwpe: Add patch to support builds with CMake 4+ Date: Wed, 2 Jul 2025 10:31:47 +0200 Message-ID: <20250702083148.3035805-7-Moritz.Haase@bmw.de> X-Mailer: git-send-email 2.50.0 In-Reply-To: <20250702083148.3035805-1-Moritz.Haase@bmw.de> References: <20250702083148.3035805-1-Moritz.Haase@bmw.de> MIME-Version: 1.0 X-ClientProxiedBy: smucmp18e.europe.bmw.corp (2a03:1e80:a15:58f::1:75) To smucmp12a.europe.bmw.corp (2a03:1e80:a15:58f::1:9) 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 ; Wed, 02 Jul 2025 08:32:42 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/219808 PR [0] has been filed upstream, but isn't merged yet. [0]: https://github.com/WebPlatformForEmbedded/libwpe/pull/136 Signed-off-by: Moritz Haase --- changes in v3: - Commit added to series --- ...red-CMake-version-to-3.5-to-allow-bu.patch | 38 +++++++++++++++++++ meta/recipes-sato/webkit/libwpe_1.16.2.bb | 6 ++- 2 files changed, 42 insertions(+), 2 deletions(-) create mode 100644 meta/recipes-sato/webkit/libwpe/0001-cmake-Bump-required-CMake-version-to-3.5-to-allow-bu.patch diff --git a/meta/recipes-sato/webkit/libwpe/0001-cmake-Bump-required-CMake-version-to-3.5-to-allow-bu.patch b/meta/recipes-sato/webkit/libwpe/0001-cmake-Bump-required-CMake-version-to-3.5-to-allow-bu.patch new file mode 100644 index 0000000000..05688ee463 --- /dev/null +++ b/meta/recipes-sato/webkit/libwpe/0001-cmake-Bump-required-CMake-version-to-3.5-to-allow-bu.patch @@ -0,0 +1,38 @@ +From 7b227c7c1ac226498b1ea3987f87350d0f14f49f Mon Sep 17 00:00:00 2001 +From: Moritz Haase +Date: Wed, 2 Jul 2025 09:19:44 +0200 +Subject: [PATCH] cmake: Bump required CMake version to 3.5 to allow builds + with CMake 4+ + +This enables builds with CMake 4+, fixing: + + 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. + +While at it, remove the extra call to 'cmake_policy()'. When passing the same +version as to 'cmake_minimum_required()' it's not needed, as the latter calls +the former automatically. + +Signed-off-by: Moritz Haase +Upstream-Status: Submitted [https://github.com/WebPlatformForEmbedded/libwpe/pull/136] +--- + CMakeLists.txt | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index db9ae50..2a01daf 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,5 +1,4 @@ +-cmake_minimum_required(VERSION 3.0) +-cmake_policy(VERSION 3.0) ++cmake_minimum_required(VERSION 3.5) + + set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake") + include(VersioningUtils) diff --git a/meta/recipes-sato/webkit/libwpe_1.16.2.bb b/meta/recipes-sato/webkit/libwpe_1.16.2.bb index 324e2f213c..6cb6818acc 100644 --- a/meta/recipes-sato/webkit/libwpe_1.16.2.bb +++ b/meta/recipes-sato/webkit/libwpe_1.16.2.bb @@ -10,9 +10,11 @@ inherit cmake features_check pkgconfig REQUIRED_DISTRO_FEATURES = "opengl" -SRC_URI = "https://wpewebkit.org/releases/${BPN}-${PV}.tar.xz" +SRC_URI = "https://wpewebkit.org/releases/${BPN}-${PV}.tar.xz \ + file://0001-cmake-Bump-required-CMake-version-to-3.5-to-allow-bu.patch \ + " SRC_URI[sha256sum] = "960bdd11c3f2cf5bd91569603ed6d2aa42fd4000ed7cac930a804eac367888d7" # This is a tweak of upstream-version-is-even needed because -# ipstream directory contains tarballs for other components as well. +# upstream directory contains tarballs for other components as well. UPSTREAM_CHECK_REGEX = "libwpe-(?P\d+\.(\d*[02468])+(\.\d+)+)\.tar"