summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended
diff options
context:
space:
mode:
authorMartin Jansa <martin.jansa@gmail.com>2025-04-14 09:04:18 +0200
committerKhem Raj <raj.khem@gmail.com>2025-04-15 12:52:19 -0700
commit883d5636f42385b356652998408c9242ccb9fdec (patch)
treecd55a9cd684ea5640837b5bca5d20e10182975a8 /meta-oe/recipes-extended
parentd8eaa791dd9836a3bcba7590d208e8bdea9ef5b0 (diff)
downloadmeta-openembedded-883d5636f42385b356652998408c9242ccb9fdec.tar.gz
qhull: pass LIB_INSTALL_DIR to fix builds with multilib
* fixes: ERROR: QA Issue: lib32-qhull: Files/directories were installed but not shipped in any package: /usr/lib/libqhull_r.so.8.0.2 /usr/lib/libqhullcpp.a /usr/lib/libqhull_r.so.8.0 /usr/lib/libqhullstatic_r.a /usr/lib/libqhullstatic.a /usr/lib/libqhull_r.so /usr/lib/cmake /usr/lib/pkgconfig /usr/lib/cmake/Qhull /usr/lib/cmake/Qhull/QhullTargets.cmake /usr/lib/cmake/Qhull/QhullTargets-noconfig.cmake /usr/lib/cmake/Qhull/QhullConfig.cmake /usr/lib/cmake/Qhull/QhullConfigVersion.cmake /usr/lib/pkgconfig/qhullcpp.pc /usr/lib/pkgconfig/qhullstatic_r.pc /usr/lib/pkgconfig/qhullstatic.pc /usr/lib/pkgconfig/qhull_r.pc Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install. lib32-qhull: 17 installed and not shipped files. [installed-vs-shipped] as well as lib32-python3-matplotlib failures which won't find qhull as /usr/lib isn't staged by lib32-qhull. Run-time dependency qhull_r found: NO (tried pkgconfig and cmake) Check usable header "libqhull_r/qhull_ra.h" : YES ../matplotlib-3.10.1/extern/meson.build:28:19: ERROR: C shared or static library 'qhull_r' not found Signed-off-by: Martin Jansa <martin.jansa@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-extended')
-rw-r--r--meta-oe/recipes-extended/qhull/qhull/0001-Use-LIB_INSTALL_DIR-for-cmake-and-pkgconfig-files-to.patch35
-rw-r--r--meta-oe/recipes-extended/qhull/qhull_2020.2.bb5
2 files changed, 39 insertions, 1 deletions
diff --git a/meta-oe/recipes-extended/qhull/qhull/0001-Use-LIB_INSTALL_DIR-for-cmake-and-pkgconfig-files-to.patch b/meta-oe/recipes-extended/qhull/qhull/0001-Use-LIB_INSTALL_DIR-for-cmake-and-pkgconfig-files-to.patch
new file mode 100644
index 0000000000..7003dd76c2
--- /dev/null
+++ b/meta-oe/recipes-extended/qhull/qhull/0001-Use-LIB_INSTALL_DIR-for-cmake-and-pkgconfig-files-to.patch
@@ -0,0 +1,35 @@
1From f72312ae0becb581cd428d17dbbcdf1b6f02ebee Mon Sep 17 00:00:00 2001
2From: Orion Poplawski <orion@nwra.com>
3Date: Tue, 4 Oct 2022 21:56:58 -0600
4Subject: [PATCH] Use ${LIB_INSTALL_DIR} for cmake and pkgconfig files to
5 support multi-lib on Fedora/RedHat
6
7Upstream-Status: Backport [https://github.com/qhull/qhull/commit/67d231c872aa1bae892e5da9646a10b303477039]
8
9Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
10---
11 CMakeLists.txt | 4 ++--
12 1 file changed, 2 insertions(+), 2 deletions(-)
13
14diff --git a/CMakeLists.txt b/CMakeLists.txt
15index f50b187..c2248f9 100644
16--- a/CMakeLists.txt
17+++ b/CMakeLists.txt
18@@ -709,7 +709,7 @@ configure_file(${PROJECT_SOURCE_DIR}/build/config.cmake.in
19 @ONLY
20 )
21
22-set(ConfigPackageLocation lib/cmake/Qhull)
23+set(ConfigPackageLocation ${LIB_INSTALL_DIR}/cmake/Qhull)
24 install(EXPORT QhullTargets
25 FILE
26 QhullTargets.cmake
27@@ -728,7 +728,7 @@ install(
28 Devel
29 )
30
31-set(PkgConfigLocation lib/pkgconfig)
32+set(PkgConfigLocation ${LIB_INSTALL_DIR}/pkgconfig)
33 foreach(pkgconfig IN ITEMS "${qhull_SHAREDR};Qhull reentrant shared library"
34 "${qhull_STATIC};Qhull static library"
35 "${qhull_STATICR};Qhull reentrant static library"
diff --git a/meta-oe/recipes-extended/qhull/qhull_2020.2.bb b/meta-oe/recipes-extended/qhull/qhull_2020.2.bb
index 4533b0a337..13638c391b 100644
--- a/meta-oe/recipes-extended/qhull/qhull_2020.2.bb
+++ b/meta-oe/recipes-extended/qhull/qhull_2020.2.bb
@@ -4,13 +4,16 @@ SECTION = "libs"
4LICENSE = "Qhull" 4LICENSE = "Qhull"
5LIC_FILES_CHKSUM = "file://COPYING.txt;md5=484ee0cacf0472e8b40225b116f6296c" 5LIC_FILES_CHKSUM = "file://COPYING.txt;md5=484ee0cacf0472e8b40225b116f6296c"
6 6
7SRC_URI = "http://www.qhull.org/download/qhull-2020-src-8.0.2.tgz" 7SRC_URI = "http://www.qhull.org/download/qhull-2020-src-8.0.2.tgz \
8 file://0001-Use-LIB_INSTALL_DIR-for-cmake-and-pkgconfig-files-to.patch \
9"
8SRC_URI[sha256sum] = "b5c2d7eb833278881b952c8a52d20179eab87766b00b865000469a45c1838b7e" 10SRC_URI[sha256sum] = "b5c2d7eb833278881b952c8a52d20179eab87766b00b865000469a45c1838b7e"
9 11
10CFLAGS += "-fPIC" 12CFLAGS += "-fPIC"
11 13
12EXTRA_OECMAKE += "\ 14EXTRA_OECMAKE += "\
13 -DCMAKE_SKIP_RPATH=ON \ 15 -DCMAKE_SKIP_RPATH=ON \
16 -DLIB_INSTALL_DIR=${baselib} \
14" 17"
15 18
16inherit cmake 19inherit cmake