btrfsmaintenance: install to ${datadir}/${BPN}
PATCH 1/4 btrfsmaintenance: install to ${datadir}/${BPN}
* fix installed-vs-shipped with multilib:
ERROR: QA Issue: lib32-btrfsmaintenance: Files/directories were installed but not shipped in any package:
/usr
/usr/share
/usr/share/lib32-btrfsmaintenance
/usr/share/lib32-btrfsmaintenance/btrfsmaintenance-functions
/usr/share/lib32-btrfsmaintenance/btrfs-defrag.sh
/usr/share/lib32-btrfsmaintenance/prepare-release.sh
/usr/share/lib32-btrfsmaintenance/btrfs-trim.sh
/usr/share/lib32-btrfsmaintenance/btrfsmaintenance-refresh-cron.sh
/usr/share/lib32-btrfsmaintenance/btrfs-scrub.sh
/usr/share/lib32-btrfsmaintenance/btrfs-balance.sh
/usr/share/lib32-btrfsmaintenance/dist-install.sh
/usr/share/lib32-btrfsmaintenance/btrfs-defrag-plugin.sh /usr/share/lib32-btrfsmaintenance/update-balance-usage-defaults.sh
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
lib32-btrfsmaintenance: 13 installed and not shipped files. [installed-vs-shipped]
--- .../recipes-utils/btrfsmaintenance/btrfsmaintenance_0.5.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
meta-filesystems/recipes-utils/btrfsmaintenance/btrfsmaintenance_0.5.bb +2 -2
@@ -38,9 +38,9 @@ do_install() { ${D}${systemd_system_unitdir} install -Dm0644 ${S}/btrfsmaintenance-functions \ - ${D}${datadir}/${PN}/btrfsmaintenance-functions + ${D}${datadir}/${BPN}/btrfsmaintenance-functions install -Dm0755 ${S}/*.sh \ - ${D}${datadir}/${PN} + ${D}${datadir}/${BPN} install -Dm0644 ${S}/sysconfig.btrfsmaintenance \ ${D}${sysconfdir}/default/btrfsmaintenance
Signature · 1 line
2.40.1
PATCH 2/4 libtomcrypt: pass LIBPATH to fix installed-vs-shipped with multilib
* fixes:
ERROR: QA Issue: libtomcrypt: Files/directories were installed but not shipped in any package:
/usr/lib
/usr/lib/libtomcrypt.so.1.0.1
/usr/lib/libtomcrypt.so.1
/usr/lib/libtomcrypt.so
/usr/lib/pkgconfig
/usr/lib/pkgconfig/libtomcrypt.pc Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
libtomcrypt: 6 installed and not shipped files. [installed-vs-shipped]
when libdir is /usr/lib64 with multilib
--- meta-oe/recipes-crypto/libtomcrypt/libtomcrypt_1.18.2.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-crypto/libtomcrypt/libtomcrypt_1.18.2.bb +1 -1
@@ -17,5 +17,5 @@ do_compile() { } do_install() { - oe_runmake -f makefile.shared 'PREFIX=${prefix}' 'DESTDIR=${D}' install + oe_runmake -f makefile.shared 'PREFIX=${prefix}' 'DESTDIR=${D}' 'LIBPATH=${libdir}' install }
Signature · 1 line
2.40.1
PATCH 3/4 nanopb: fix installed-vs-shipped with multilib
In reply to Martin Jansa* fixes:
ERROR: QA Issue: nanopb: Files/directories were installed but not shipped in any package:
/usr/lib
/usr/lib/python3.11
/usr/lib/python3.11/site-packages
/usr/lib/python3.11/site-packages/proto
/usr/lib/python3.11/site-packages/proto/nanopb_pb2.py
/usr/lib/python3.11/site-packages/proto/nanopb.proto
/usr/lib/python3.11/site-packages/proto/_utils.py Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
nanopb: 7 installed and not shipped files. [installed-vs-shipped]
when libdir is /usr/lib64 with multilib.
--- ...llow-to-set-PYTHON_INSTDIR-from-outs.patch | 67 +++++++++++++++++++ .../recipes-devtools/nanopb/nanopb_0.4.7.bb | 6 +- 2 files changed, 72 insertions(+), 1 deletion(-) create mode 100644 meta-oe/dynamic-layers/meta-python/recipes-devtools/nanopb/nanopb/0001-CMakeLists.txt-allow-to-set-PYTHON_INSTDIR-from-outs.patch
meta-oe/dynamic-layers/meta-python/recipes-devtools/nanopb/nanopb/0001-CMakeLists.txt-allow-to-set-PYTHON_INSTDIR-from-outs.patch new file +67 -0
@@ -0,0 +1,67 @@ +From 30c79d1b49839a15c05a0d0ca7e54787cd7988c6 Mon Sep 17 00:00:00 2001 +From: Martin Jansa <[email protected]> +Date: Thu, 4 May 2023 07:17:57 +0000 +Subject: [PATCH] CMakeLists.txt: allow to set PYTHON_INSTDIR from outside + +CMakeLists.txt used: + +find_package(Python REQUIRED COMPONENTS Interpreter) +execute_process( + COMMAND ${Python_EXECUTABLE} -c + "import os.path, sys, sysconfig; print(os.path.relpath(sysconfig.get_path('purelib'), start=sys.prefix))" + OUTPUT_VARIABLE PYTHON_INSTDIR + OUTPUT_STRIP_TRAILING_WHITESPACE +) + +but with python3native this returns: + +nanopb/0.4.7-r0/git $ ../recipe-sysroot-native/usr/bin/python3-native/python3 -c "import os.path, sys, sysconfig; print(os.path.relpath(sysconfig.get_path('purelib'), start=sys.prefix))" +lib/python3.11/site-packages + +which doesn't respect target libdir which might be lib64 with multilib and with python3targetconfig +it also doesn't work right because of the long relative path: + +nanopb/0.4.7-r0/build $ ../recipe-sysroot-native/usr/bin/python3-native/python3 -c "import os.path, sys, sysconfig; print(os.path.relpath(sysconfig.get_path('purelib'), start=sys.prefix))" +../../../../../../../../../../../../usr/lib64/python3.11/site-packages + +CMake Error at cmake_install.cmake:46 (file): + file cannot create directory: + /OE/lge/build/starfish/nanbield/BUILD/work/o22-starfish-linux/nanopb/0.4.7-r0/image/usr/../../../../../../../../../../../../usr/lib64/python3.11/site-packages/proto. + Maybe need administrative privileges. + +Let CMake variable to be passed from the recipe to avoid this as we're already using +${D}${PYTHON_SITEPACKAGES_DIR} in do_install:append anyway. + +Signed-off-by: Martin Jansa <[email protected]> +Upstream-Status: Pending +--- + CMakeLists.txt | 16 +++++++++------- + 1 file changed, 9 insertions(+), 7 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 8d241c5..7d3f993 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -39,13 +39,15 @@ if(NOT DEFINED CMAKE_INSTALL_CMAKEDIR) + set(CMAKE_INSTALL_CMAKEDIR "${CMAKE_INSTALL_LIBDIR}/cmake/nanopb") + endif() + +-find_package(Python REQUIRED COMPONENTS Interpreter) +-execute_process( +- COMMAND ${Python_EXECUTABLE} -c +- "import os.path, sys, sysconfig; print(os.path.relpath(sysconfig.get_path('purelib'), start=sys.prefix))" +- OUTPUT_VARIABLE PYTHON_INSTDIR +- OUTPUT_STRIP_TRAILING_WHITESPACE +-) ++if(NOT DEFINED PYTHON_INSTDIR) ++ find_package(Python REQUIRED COMPONENTS Interpreter) ++ execute_process( ++ COMMAND ${Python_EXECUTABLE} -c ++ "import os.path, sys, sysconfig; print(os.path.relpath(sysconfig.get_path('purelib'), start=sys.prefix))" ++ OUTPUT_VARIABLE PYTHON_INSTDIR ++ OUTPUT_STRIP_TRAILING_WHITESPACE ++ ) ++endif() + + if(nanopb_BUILD_GENERATOR) + set(generator_protos nanopb)
meta-oe/dynamic-layers/meta-python/recipes-devtools/nanopb/nanopb_0.4.7.bb +5 -1
@@ -4,13 +4,17 @@ LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=9db4b73a55a3994384112efcdb37c01f" DEPENDS = "protobuf-native" -SRC_URI = "git://github.com/nanopb/nanopb.git;branch=master;protocol=https" +SRC_URI = "git://github.com/nanopb/nanopb.git;branch=master;protocol=https \ + file://0001-CMakeLists.txt-allow-to-set-PYTHON_INSTDIR-from-outs.patch \ +" SRCREV = "b97aa657a706d3ba4a9a6ccca7043c9d6fe41cba" S = "${WORKDIR}/git" inherit cmake python3native +EXTRA_OECMAKE += "-DPYTHON_INSTDIR=${PYTHON_SITEPACKAGES_DIR}" + do_install:append() { install -Dm 0755 ${S}/generator/nanopb_generator.py ${D}${bindir}/nanopb_generator.py install -Dm 0755 ${S}/generator/protoc-gen-nanopb ${D}${bindir}/protoc-gen-nanopb
Signature · 1 line
2.40.1
PATCH 4/4 nv-codec-headers: fix installed-vs-shipped with multilib
In reply to Martin Jansa* pass LIBDIR to install ffnvcodec.pc in right directory
* fixes:
ERROR: QA Issue: nv-codec-headers: Files/directories were installed but not shipped in any package:
/usr/lib
/usr/lib/pkgconfig
/usr/lib/pkgconfig/ffnvcodec.pc
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
nv-codec-headers: 3 installed and not shipped files. [installed-vs-shipped]
when libdir is /usr/lib64 with multilib
--- .../nv-codec-headers/nv-codec-headers_12.0.16.0.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-multimedia/recipes-multimedia/nv-codec-headers/nv-codec-headers_12.0.16.0.bb +1 -1
@@ -10,7 +10,7 @@ SRC_URI = " \ SRCREV = "c5e4af74850a616c42d39ed45b9b8568b71bf8bf" S = "${WORKDIR}/git" -EXTRA_OEMAKE = "PREFIX=${prefix} DESTDIR=${D}" +EXTRA_OEMAKE = "PREFIX=${prefix} DESTDIR=${D} LIBDIR=${baselib}" do_install() { oe_runmake install
Signature · 1 line
2.40.1