Skip to contentSkip to conversation

openobex: Fix build with cmake4

PATCH New Khem Raj 1 participant 3 messages Jul 12, 2025

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/3 openobex: Fix build with cmake4

---
 meta-oe/recipes-connectivity/obex/openobex_1.7.2.bb | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
meta-oe/recipes-connectivity/obex/openobex_1.7.2.bb +4 -2
index be8482ab50..1b8bd47e39 100644
@@ -21,8 +21,10 @@ S = "${UNPACKDIR}/${BP}-Source"
 
 inherit cmake pkgconfig
 
-EXTRA_OECONF = " -DCMAKE_SKIP_RPATH=ON "
-EXTRA_OECMAKE += "-DBUILD_DOCUMENTATION=OFF"
+EXTRA_OECMAKE += "-DBUILD_DOCUMENTATION=OFF \
+                  -DCMAKE_SKIP_RPATH=ON \
+                  -DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
+                  "
 
 ASNEEDED = ""
 
author
#1 lore raw

PATCH 2/3 proj: Upgrade to 9.6.2 release

Fixes build with cmake4+
Inherit bash-comoletion and pkgconfig to find sqlite3 deps correctly

---
 .../proj/{proj_9.3.1.bb => proj_9.6.2.bb}                 | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
 rename meta-oe/recipes-navigation/proj/{proj_9.3.1.bb => proj_9.6.2.bb} (75%)
meta-oe/recipes-navigation/proj/proj_9.6.2.bb renamed from meta-oe/recipes-navigation/proj/proj_9.3.1.bb +4 -4
similarity index 75%
rename from meta-oe/recipes-navigation/proj/proj_9.3.1.bb
rename to meta-oe/recipes-navigation/proj/proj_9.6.2.bb
index 78f4287d63..046950a1c0 100644
@@ -6,18 +6,18 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=f27445198ba1500f508fce2b183ce0ff"
 DEPENDS = "sqlite3 sqlite3-native"
 
 SRC_URI = "http://download.osgeo.org/${BPN}/${BP}.tar.gz"
-SRC_URI[sha256sum] = "b0f919cb9e1f42f803a3e616c2b63a78e4d81ecfaed80978d570d3a5e29d10bc"
+SRC_URI[sha256sum] = "53d0cafaee3bb2390264a38668ed31d90787de05e71378ad7a8f35bb34c575d1"
 
-inherit cmake lib_package
+inherit bash-completion cmake lib_package pkgconfig
 
-EXTRA_OECMAKE = "-DBUILD_TESTING=OFF -DSQLITE3_LIBRARY:STRING=sqlite3"
+EXTRA_OECMAKE = "-DBUILD_TESTING=OFF"
 
 FILES:${PN} += "${datadir}/proj"
 
 BBCLASSEXTEND = "native"
 
 PACKAGECONFIG ?= "curl shared"
-PACKAGECONFIG:append:class-native = " apps"
+PACKAGECONFIG:class-native = "curl shared apps"
 
 PACKAGECONFIG[apps] = "-DBUILD_APPS=ON, -DBUILD_APPS=OFF"
 PACKAGECONFIG[curl] = "-DENABLE_CURL=ON,-DENABLE_CURL=OFF,curl"
author
#2 lore raw

PATCH 3/3 opencv: Upgrade to 4.12.0 release

In reply to Khem Raj

Update submodules to match the working version with 4.12.0 Drop backports which are already present in 4.12.0 Upgrade fastcv to 4.x_20250606

---
 ...MLIST-FastCV-latest-libs-hash-update.patch | 50 -----------
 ...o-static-instance-of-FastCV-on-Linux.patch | 87 -------------------
 .../opencv/0001-Make-ts-module-external.patch |  2 +-
 ...-fixed-VSX-intrinsics-implementation.patch | 61 -------------
 .../{opencv_4.11.0.bb => opencv_4.12.0.bb}    | 11 +--
 5 files changed, 5 insertions(+), 206 deletions(-)
 delete mode 100644 meta-oe/recipes-support/opencv/opencv/0001-FROMLIST-FastCV-latest-libs-hash-update.patch
 delete mode 100644 meta-oe/recipes-support/opencv/opencv/0001-FROMLIST-Switch-to-static-instance-of-FastCV-on-Linux.patch
 delete mode 100644 meta-oe/recipes-support/opencv/opencv/0001-core-fixed-VSX-intrinsics-implementation.patch
 rename meta-oe/recipes-support/opencv/{opencv_4.11.0.bb => opencv_4.12.0.bb} (95%)
meta-oe/recipes-support/opencv/opencv/0001-FROMLIST-FastCV-latest-libs-hash-update.patch deleted +0 -50
deleted file mode 100644
index b35335c35e..0000000000
@@ -1,50 +0,0 @@
-From ba6eb8d95292f4631a3b8de09bfaa59e43c17226 Mon Sep 17 00:00:00 2001
-From: adsha-quic <[email protected]>
-Date: Wed, 16 Apr 2025 18:54:40 +0530
-Subject: [PATCH] FROMLIST: Merge pull request #27214 from CodeLinaro:fastcv_lib_hash_update
-
-Signed-off-by: Alexander Smorkalov <[email protected]>
-Upstream-Status: Submitted [https://github.com/opencv/opencv/pull/27214]
-
----
- 3rdparty/fastcv/fastcv.cmake | 14 +++++++-------
- 1 file changed, 7 insertions(+), 7 deletions(-)
-
-diff --git a/3rdparty/fastcv/fastcv.cmake b/3rdparty/fastcv/fastcv.cmake
-index 5c81c11300..6fee4ce4ce 100644
---- a/3rdparty/fastcv/fastcv.cmake
-+++ b/3rdparty/fastcv/fastcv.cmake
-@@ -1,23 +1,23 @@
- function(download_fastcv root_dir)
- 
-   # Commit SHA in the opencv_3rdparty repo
--  set(FASTCV_COMMIT "f4413cc2ab7233fdfc383a4cded402c072677fb0")
-+  set(FASTCV_COMMIT "8d86e68dad8b80b8575a8d3cf401d3ee96c24148")
- 
-   # Define actual FastCV versions
-   if(ANDROID)
-     if(AARCH64)
-       message(STATUS "Download FastCV for Android aarch64")
--      set(FCV_PACKAGE_NAME  "fastcv_android_aarch64_2024_12_11.tgz")
--      set(FCV_PACKAGE_HASH  "9dac41e86597305f846212dae31a4a88")
-+      set(FCV_PACKAGE_NAME  "fastcv_android_aarch64_2025_04_08.tgz")
-+      set(FCV_PACKAGE_HASH  "e028966a1d1b2f3f0bc5967d316e8b64")
-     else()
-       message(STATUS "Download FastCV for Android armv7")
--      set(FCV_PACKAGE_NAME  "fastcv_android_arm32_2024_12_11.tgz")
--      set(FCV_PACKAGE_HASH  "fe2d30334180b17e3031eee92aac43b6")
-+      set(FCV_PACKAGE_NAME  "fastcv_android_arm32_2025_04_08.tgz")
-+      set(FCV_PACKAGE_HASH  "6fc1e812a4b3ef392469d2283e037ffe")
-     endif()
-   elseif(UNIX AND NOT APPLE AND NOT IOS AND NOT XROS)
-     if(AARCH64)
--      set(FCV_PACKAGE_NAME  "fastcv_linux_aarch64_2025_02_12.tgz")
--      set(FCV_PACKAGE_HASH  "33ac2a59cf3e7d6402eee2e010de1202")
-+      set(FCV_PACKAGE_NAME  "fastcv_linux_aarch64_2025_04_08.tgz")
-+      set(FCV_PACKAGE_HASH  "062a26639cd2788beee2e0dd8743d680")
-     else()
-       message("FastCV: fastcv lib for 32-bit Linux is not supported for now!")
-     endif()
--- 
-2.34.1
-
meta-oe/recipes-support/opencv/opencv/0001-FROMLIST-Switch-to-static-instance-of-FastCV-on-Linux.patch deleted +0 -87

87 lines not on this page · raw message

meta-oe/recipes-support/opencv/opencv/0001-Make-ts-module-external.patch +1 -1
index d56b8ae67e..9e72fe2f56 100644
@@ -7,7 +7,7 @@ Make ts module external
 
 Reference: https://github.com/qbonnard/opencv/commit/6b229c5834cb9a0930425e762a6c7b03244d7abb
 
-Upstream-Status: Submitted [https://github.com/opencv/opencv/issues/8408]
+Upstream-Status: Denied [https://github.com/opencv/opencv/issues/8408]
 
 Signed-off-by: Mingli Yu <[email protected]>
 ---
meta-oe/recipes-support/opencv/opencv/0001-core-fixed-VSX-intrinsics-implementation.patch deleted +0 -61

61 lines not on this page · raw message

meta-oe/recipes-support/opencv/opencv_4.12.0.bb renamed from meta-oe/recipes-support/opencv/opencv_4.11.0.bb +4 -7
similarity index 95%
rename from meta-oe/recipes-support/opencv/opencv_4.11.0.bb
rename to meta-oe/recipes-support/opencv/opencv_4.12.0.bb
index 208d65725e..d8295912fa 100644
@@ -10,13 +10,13 @@ ARM_INSTRUCTION_SET:armv5 = "arm"
 
 DEPENDS = "libtool swig-native bzip2 zlib glib-2.0 libwebp"
 
-SRCREV_opencv = "31b0eeea0b44b370fd0712312df4214d4ae1b158"
-SRCREV_contrib = "0e5254ebf54d2aed6e7eaf6660bf3b797cf50a02"
+SRCREV_opencv = "49486f61fb25722cbcf586b7f4320921d46fb38e"
+SRCREV_contrib = "d943e1d61c8bc556a13783e1546ee7c1a9e0b1cf"
 SRCREV_boostdesc = "34e4206aef44d50e6bbcd0ab06354b52e7466d26"
 SRCREV_vgg = "fccf7cd6a4b12079f73bbfb21745f9babcd4eb1d"
 SRCREV_face = "8afa57abc8229d611c4937165d20e2a2d9fc5a12"
 SRCREV_wechat-qrcode = "a8b69ccc738421293254aec5ddb38bd523503252"
-SRCREV_fastcv = "8d86e68dad8b80b8575a8d3cf401d3ee96c24148"
+SRCREV_fastcv = "2265e79b3b9a8512a9c615b8c4d0244e88f45a9d"
 
 
 SRCREV_FORMAT = "opencv_contrib_ipp_boostdesc_vgg_fastcv"
@@ -26,16 +26,13 @@ SRC_URI = "git://github.com/opencv/opencv.git;name=opencv;branch=4.x;protocol=ht
            git://github.com/opencv/opencv_3rdparty.git;branch=contrib_xfeatures2d_vgg_20160317;destsuffix=${BB_GIT_DEFAULT_DESTSUFFIX}/vgg;name=vgg;protocol=https \
            git://github.com/opencv/opencv_3rdparty.git;branch=contrib_face_alignment_20170818;destsuffix=${BB_GIT_DEFAULT_DESTSUFFIX}/face;name=face;protocol=https \
            git://github.com/WeChatCV/opencv_3rdparty.git;branch=wechat_qrcode;destsuffix=${BB_GIT_DEFAULT_DESTSUFFIX}/wechat_qrcode;name=wechat-qrcode;protocol=https \
-           git://github.com/opencv/opencv_3rdparty.git;branch=fastcv/4.x_20250410;destsuffix=${BB_GIT_DEFAULT_DESTSUFFIX}/fastcv;name=fastcv;protocol=https  \
+           git://github.com/opencv/opencv_3rdparty.git;branch=fastcv/4.x_20250606;destsuffix=${BB_GIT_DEFAULT_DESTSUFFIX}/fastcv;name=fastcv;protocol=https  \
            file://0003-To-fix-errors-as-following.patch \
            file://0001-Temporarliy-work-around-deprecated-ffmpeg-RAW-functi.patch \
            file://0001-Dont-use-isystem.patch \
            file://download.patch \
            file://0001-Make-ts-module-external.patch \
            file://0008-Do-not-embed-build-directory-in-binaries.patch \
-           file://0001-core-fixed-VSX-intrinsics-implementation.patch \
-           file://0001-FROMLIST-Switch-to-static-instance-of-FastCV-on-Linux.patch \
-           file://0001-FROMLIST-FastCV-latest-libs-hash-update.patch \
            "
 SRC_URI:append:riscv64 = " file://0001-Use-Os-to-compile-tinyxml2.cpp.patch;patchdir=contrib"