* [meta-oe][mickledore][PATCH 02/16] dleyna-{server,renderer}: fix dev-so QA issue with multilib
2023-05-09 7:06 [meta-oe][mickledore][PATCH 01/16] lirc: fix do_install with multilib Martin Jansa
@ 2023-05-09 7:06 ` Martin Jansa
2023-05-09 7:06 ` [meta-oe][mickledore][PATCH 03/16] libreport: add dependency on libarchive Martin Jansa
` (13 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: Martin Jansa @ 2023-05-09 7:06 UTC (permalink / raw)
To: openembedded-devel; +Cc: Martin Jansa
* the libdir is arch specific, but the subdirectory is always BPN
* fixes:
lib32-dleyna-server-0.6.0+gitAUTOINC+eb895ae827: non -dev/-dbg/nativesdk- package lib32-dleyna-server contains symlink .so '/usr/lib/dleyna-server/libdleyna-server-1.0.so' [dev-so]
lib32-dleyna-renderer-0.6.0: non -dev/-dbg/nativesdk- package lib32-dleyna-renderer contains symlink .so '/usr/lib/dleyna-renderer/libdleyna-renderer-1.0.so' [dev-so]
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
.../recipes-multimedia/dleyna/dleyna-renderer_0.6.0.bb | 2 +-
.../recipes-multimedia/dleyna/dleyna-server_0.6.0.bb | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/meta-multimedia/recipes-multimedia/dleyna/dleyna-renderer_0.6.0.bb b/meta-multimedia/recipes-multimedia/dleyna/dleyna-renderer_0.6.0.bb
index 3e43c0d2a7..e7f918333a 100644
--- a/meta-multimedia/recipes-multimedia/dleyna/dleyna-renderer_0.6.0.bb
+++ b/meta-multimedia/recipes-multimedia/dleyna/dleyna-renderer_0.6.0.bb
@@ -22,4 +22,4 @@ inherit autotools pkgconfig
CFLAGS += " -I${S}"
FILES:${PN} += "${datadir}/dbus-1"
-FILES:${PN}-dev += "${libdir}/${PN}/*.so"
+FILES:${PN}-dev += "${libdir}/${BPN}/*.so"
diff --git a/meta-multimedia/recipes-multimedia/dleyna/dleyna-server_0.6.0.bb b/meta-multimedia/recipes-multimedia/dleyna/dleyna-server_0.6.0.bb
index b25e446c41..071379758c 100644
--- a/meta-multimedia/recipes-multimedia/dleyna/dleyna-server_0.6.0.bb
+++ b/meta-multimedia/recipes-multimedia/dleyna/dleyna-server_0.6.0.bb
@@ -19,4 +19,4 @@ S = "${WORKDIR}/git"
inherit autotools pkgconfig
FILES:${PN} += "${datadir}/dbus-1"
-FILES:${PN}-dev += "${libdir}/${PN}/*.so"
+FILES:${PN}-dev += "${libdir}/${BPN}/*.so"
--
2.40.1
^ permalink raw reply related [flat|nested] 16+ messages in thread* [meta-oe][mickledore][PATCH 03/16] libreport: add dependency on libarchive
2023-05-09 7:06 [meta-oe][mickledore][PATCH 01/16] lirc: fix do_install with multilib Martin Jansa
2023-05-09 7:06 ` [meta-oe][mickledore][PATCH 02/16] dleyna-{server,renderer}: fix dev-so QA issue " Martin Jansa
@ 2023-05-09 7:06 ` Martin Jansa
2023-05-09 7:06 ` [meta-oe][mickledore][PATCH 04/16] libxmlb: add missing dependency on glib-2.0 and xz Martin Jansa
` (12 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: Martin Jansa @ 2023-05-09 7:06 UTC (permalink / raw)
To: openembedded-devel; +Cc: Martin Jansa
* it's often pulled by elfutils when debuginfod is in DISTRO_FEATURES, but
when it isn't, it fails with:
http://errors.yoctoproject.org/Errors/Details/702773/
checking for libarchive... no
configure: error: Package requirements (libarchive) were not met:
No package 'libarchive' found
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
meta-oe/recipes-extended/libreport/libreport_2.17.8.bb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta-oe/recipes-extended/libreport/libreport_2.17.8.bb b/meta-oe/recipes-extended/libreport/libreport_2.17.8.bb
index a8d1db65bf..1f2c55c699 100644
--- a/meta-oe/recipes-extended/libreport/libreport_2.17.8.bb
+++ b/meta-oe/recipes-extended/libreport/libreport_2.17.8.bb
@@ -4,7 +4,7 @@ SUMMARY = "Generic library for reporting various problems"
HOMEPAGE = "https://abrt.readthedocs.org/"
LICENSE = "GPL-2.0-or-later"
DEPENDS = "xmlrpc-c xmlrpc-c-native intltool-native \
- json-c libtar libnewt libproxy rpm \
+ json-c libarchive libtar libnewt libproxy rpm \
augeas satyr systemd \
"
--
2.40.1
^ permalink raw reply related [flat|nested] 16+ messages in thread* [meta-oe][mickledore][PATCH 04/16] libxmlb: add missing dependency on glib-2.0 and xz
2023-05-09 7:06 [meta-oe][mickledore][PATCH 01/16] lirc: fix do_install with multilib Martin Jansa
2023-05-09 7:06 ` [meta-oe][mickledore][PATCH 02/16] dleyna-{server,renderer}: fix dev-so QA issue " Martin Jansa
2023-05-09 7:06 ` [meta-oe][mickledore][PATCH 03/16] libreport: add dependency on libarchive Martin Jansa
@ 2023-05-09 7:06 ` Martin Jansa
2023-05-09 7:06 ` [meta-oe][mickledore][PATCH 05/16] geoclue: fix build without gobject-introspection-data Martin Jansa
` (11 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: Martin Jansa @ 2023-05-09 7:06 UTC (permalink / raw)
To: openembedded-devel; +Cc: Martin Jansa
* without gobject-introspection-data in DISTRO_FEATURES it fails with:
http://errors.yoctoproject.org/Errors/Details/702774/
Run-time dependency gio-2.0 found: NO (tried pkgconfig)
../git/meson.build:119:0: ERROR: Dependency gio-2.0 not found, tried pkgconfig
and http://errors.yoctoproject.org/Errors/Details/702777/
Run-time dependency liblzma found: NO (tried pkgconfig)
../git/meson.build:121:0: ERROR: Dependency liblzma not found, tried pkgconfig
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
meta-oe/recipes-gnome/libxmlb/libxmlb_0.3.10.bb | 2 ++
1 file changed, 2 insertions(+)
diff --git a/meta-oe/recipes-gnome/libxmlb/libxmlb_0.3.10.bb b/meta-oe/recipes-gnome/libxmlb/libxmlb_0.3.10.bb
index 3366b7e7f9..61abd07fda 100644
--- a/meta-oe/recipes-gnome/libxmlb/libxmlb_0.3.10.bb
+++ b/meta-oe/recipes-gnome/libxmlb/libxmlb_0.3.10.bb
@@ -8,6 +8,8 @@ SRC_URI = "git://github.com/hughsie/libxmlb.git;branch=main;protocol=https \
SRCREV = "a6cac6a715d57c393bbddee4d0381ad943341af9"
S = "${WORKDIR}/git"
+DEPENDS = "glib-2.0 xz"
+
inherit gobject-introspection gtk-doc meson ptest-gnome lib_package
PACKAGECONFIG ??= "\
--
2.40.1
^ permalink raw reply related [flat|nested] 16+ messages in thread* [meta-oe][mickledore][PATCH 05/16] geoclue: fix build without gobject-introspection-data
2023-05-09 7:06 [meta-oe][mickledore][PATCH 01/16] lirc: fix do_install with multilib Martin Jansa
` (2 preceding siblings ...)
2023-05-09 7:06 ` [meta-oe][mickledore][PATCH 04/16] libxmlb: add missing dependency on glib-2.0 and xz Martin Jansa
@ 2023-05-09 7:06 ` Martin Jansa
2023-05-09 7:06 ` [meta-oe][mickledore][PATCH 06/16] appstream: " Martin Jansa
` (10 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: Martin Jansa @ 2023-05-09 7:06 UTC (permalink / raw)
To: openembedded-devel; +Cc: Martin Jansa
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
...-try-to-use-g-ir-scanner-when-intros.patch | 30 +++++++++++++++++++
.../geoclue/geoclue_2.7.0.bb | 4 ++-
2 files changed, 33 insertions(+), 1 deletion(-)
create mode 100644 meta-oe/recipes-navigation/geoclue/geoclue/0001-libgeoclue-don-t-try-to-use-g-ir-scanner-when-intros.patch
diff --git a/meta-oe/recipes-navigation/geoclue/geoclue/0001-libgeoclue-don-t-try-to-use-g-ir-scanner-when-intros.patch b/meta-oe/recipes-navigation/geoclue/geoclue/0001-libgeoclue-don-t-try-to-use-g-ir-scanner-when-intros.patch
new file mode 100644
index 0000000000..18e7185649
--- /dev/null
+++ b/meta-oe/recipes-navigation/geoclue/geoclue/0001-libgeoclue-don-t-try-to-use-g-ir-scanner-when-intros.patch
@@ -0,0 +1,30 @@
+From 6c434bdd31d674f85a82cb83248571813c7a37ff Mon Sep 17 00:00:00 2001
+From: Martin Jansa <Martin.Jansa@gmail.com>
+Date: Wed, 3 May 2023 18:06:46 +0200
+Subject: [PATCH] libgeoclue: don't try to use g-ir-scanner when introspection
+ isn't enabled
+
+* it finds target g-ir-scanner, so gir is found(), but when it tries to call it, it fails:
+ http://errors.yoctoproject.org/Errors/Details/702778/
+ geoclue/2.7.0-r0/recipe-sysroot/usr/bin/g-ir-scanner-wrapper: line 5: g-ir-scanner: command not found
+
+Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
+---
+Upstream-Status: Pending
+
+ libgeoclue/meson.build | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/libgeoclue/meson.build b/libgeoclue/meson.build
+index 5f05dad..7ed06a1 100644
+--- a/libgeoclue/meson.build
++++ b/libgeoclue/meson.build
+@@ -77,7 +77,7 @@ gir_sources = [ libgeoclue_sources,
+ libgeoclue_headers,
+ libgeoclue_public_api_gen_sources[1] ]
+
+-if gir.found()
++if gir.found() and get_option('introspection')
+ geo_gir = gnome.generate_gir(libgeoclue,
+ sources: gir_sources,
+ namespace: 'Geoclue',
diff --git a/meta-oe/recipes-navigation/geoclue/geoclue_2.7.0.bb b/meta-oe/recipes-navigation/geoclue/geoclue_2.7.0.bb
index f7039b5916..d05a309455 100644
--- a/meta-oe/recipes-navigation/geoclue/geoclue_2.7.0.bb
+++ b/meta-oe/recipes-navigation/geoclue/geoclue_2.7.0.bb
@@ -13,7 +13,9 @@ DEPENDS = "glib-2.0 dbus json-glib libsoup-3.0 intltool-native"
inherit meson pkgconfig gtk-doc gobject-introspection vala useradd
SRCREV = "bbfb6289dedb88cb8155d9f6868787d5432e1f90"
-SRC_URI = "git://gitlab.freedesktop.org/geoclue/geoclue.git;protocol=https;nobranch=1"
+SRC_URI = "git://gitlab.freedesktop.org/geoclue/geoclue.git;protocol=https;nobranch=1 \
+ file://0001-libgeoclue-don-t-try-to-use-g-ir-scanner-when-intros.patch \
+"
S = "${WORKDIR}/git"
--
2.40.1
^ permalink raw reply related [flat|nested] 16+ messages in thread* [meta-oe][mickledore][PATCH 06/16] appstream: fix build without gobject-introspection-data
2023-05-09 7:06 [meta-oe][mickledore][PATCH 01/16] lirc: fix do_install with multilib Martin Jansa
` (3 preceding siblings ...)
2023-05-09 7:06 ` [meta-oe][mickledore][PATCH 05/16] geoclue: fix build without gobject-introspection-data Martin Jansa
@ 2023-05-09 7:06 ` Martin Jansa
2023-05-09 7:06 ` [meta-oe][mickledore][PATCH 07/16] ostree: " Martin Jansa
` (9 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: Martin Jansa @ 2023-05-09 7:06 UTC (permalink / raw)
To: openembedded-devel; +Cc: Martin Jansa
* there is a meson option to disable introspection, it's just called 'gir'
fix GIR_MESON_OPTION to resolve:
http://errors.yoctoproject.org/Errors/Details/702780/
Run-time dependency gobject-introspection-1.0 found: NO (tried pkgconfig)
../AppStream-0.16.1/meson.build:173:4: ERROR: Dependency "gobject-introspection-1.0" not found, tried pkgconfig
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
meta-oe/recipes-support/appstream/appstream_0.16.1.bb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta-oe/recipes-support/appstream/appstream_0.16.1.bb b/meta-oe/recipes-support/appstream/appstream_0.16.1.bb
index 50d8cdb4c2..b8cecec41f 100644
--- a/meta-oe/recipes-support/appstream/appstream_0.16.1.bb
+++ b/meta-oe/recipes-support/appstream/appstream_0.16.1.bb
@@ -21,7 +21,7 @@ DEPENDS = " \
inherit meson gobject-introspection gettext gtk-doc pkgconfig vala
-GIR_MESON_OPTION = ""
+GIR_MESON_OPTION = "gir"
SRC_URI = "https://www.freedesktop.org/software/appstream/releases/AppStream-${PV}.tar.xz"
SRC_URI:append:class-target = " file://0001-fix-crosscompile.patch"
--
2.40.1
^ permalink raw reply related [flat|nested] 16+ messages in thread* [meta-oe][mickledore][PATCH 07/16] ostree: fix build without gobject-introspection-data
2023-05-09 7:06 [meta-oe][mickledore][PATCH 01/16] lirc: fix do_install with multilib Martin Jansa
` (4 preceding siblings ...)
2023-05-09 7:06 ` [meta-oe][mickledore][PATCH 06/16] appstream: " Martin Jansa
@ 2023-05-09 7:06 ` Martin Jansa
2023-05-09 7:06 ` [meta-oe][mickledore][PATCH 08/16] rdfind: fix build with -Werror=return-type Martin Jansa
` (8 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: Martin Jansa @ 2023-05-09 7:06 UTC (permalink / raw)
To: openembedded-devel; +Cc: Martin Jansa
* add --disable-introspection to UNKNOWN_CONFIGURE_OPT_IGNORE to fix:
http://errors.yoctoproject.org/Errors/Details/702779/
ERROR: QA Issue: ostree: configure was passed unrecognised options: --disable-introspection [unknown-configure-option]
* add glib-2.0-native to DEPENDS to fix:
http://errors.yoctoproject.org/Errors/Details/702787/
glib-mkenums \
--template ../libostree-2023.2/src/libostree/ostree-enumtypes.h.template \
../libostree-2023.2/src/libostree/ostree-fetcher.h > src/libostree/ostree-enumtypes.h.tmp && mv src/libostree/ostree-enumtypes.h.tmp src/libostree/ostree-enumtypes.h
/bin/bash: line 2: glib-mkenums: command not found
make: *** [Makefile:9990: src/libostree/ostree-enumtypes.h] Error 127
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
meta-oe/recipes-extended/ostree/ostree_2023.2.bb | 3 +++
1 file changed, 3 insertions(+)
diff --git a/meta-oe/recipes-extended/ostree/ostree_2023.2.bb b/meta-oe/recipes-extended/ostree/ostree_2023.2.bb
index 2990122959..7eeb77474f 100644
--- a/meta-oe/recipes-extended/ostree/ostree_2023.2.bb
+++ b/meta-oe/recipes-extended/ostree/ostree_2023.2.bb
@@ -9,6 +9,7 @@ LICENSE = "LGPL-2.1-only"
LIC_FILES_CHKSUM = "file://COPYING;md5=5f30f0716dfdd0d91eb439ebec522ec2"
DEPENDS = " \
+ glib-2.0-native \
glib-2.0 \
e2fsprogs \
libcap \
@@ -28,6 +29,8 @@ S = "${WORKDIR}/libostree-${PV}"
inherit autotools bash-completion gobject-introspection github-releases gtk-doc manpages pkgconfig ptest-gnome systemd
+UNKNOWN_CONFIGURE_OPT_IGNORE = "--disable-introspection --enable-introspection"
+
# Workaround compile failure:
# |../git/src/libotutil/zbase32.c:37:1: error: function returns an aggregate [-Werror=aggregate-return]
# so remove -Og and use -O2 as workaround
--
2.40.1
^ permalink raw reply related [flat|nested] 16+ messages in thread* [meta-oe][mickledore][PATCH 08/16] rdfind: fix build with -Werror=return-type
2023-05-09 7:06 [meta-oe][mickledore][PATCH 01/16] lirc: fix do_install with multilib Martin Jansa
` (5 preceding siblings ...)
2023-05-09 7:06 ` [meta-oe][mickledore][PATCH 07/16] ostree: " Martin Jansa
@ 2023-05-09 7:06 ` Martin Jansa
2023-05-09 7:06 ` [meta-oe][mickledore][PATCH 09/16] spice-gtk: respect gobject-introspection-data Martin Jansa
` (7 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: Martin Jansa @ 2023-05-09 7:06 UTC (permalink / raw)
To: openembedded-devel; +Cc: Martin Jansa
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
...-configure.ac-fix-C-11-support-check.patch | 37 +++++++++++++++++++
.../recipes-support/rdfind/rdfind_1.5.0.bb | 1 +
2 files changed, 38 insertions(+)
create mode 100644 meta-oe/recipes-support/rdfind/rdfind/0001-configure.ac-fix-C-11-support-check.patch
diff --git a/meta-oe/recipes-support/rdfind/rdfind/0001-configure.ac-fix-C-11-support-check.patch b/meta-oe/recipes-support/rdfind/rdfind/0001-configure.ac-fix-C-11-support-check.patch
new file mode 100644
index 0000000000..815939b82d
--- /dev/null
+++ b/meta-oe/recipes-support/rdfind/rdfind/0001-configure.ac-fix-C-11-support-check.patch
@@ -0,0 +1,37 @@
+From 9070bc210b2ecff641b73e4ade30040c1461969c Mon Sep 17 00:00:00 2001
+From: Martin Jansa <Martin.Jansa@gmail.com>
+Date: Wed, 3 May 2023 18:31:57 +0200
+Subject: [PATCH] configure.ac: fix C++11 support check
+
+* with -Werror=return-type in CFLAGS this test fails with:
+
+ configure:4290: checking for C++11 support or better
+ configure:4303: x86_64-webos-linux-g++ -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -Werror=return-type --sysroot=/OE/lge/build/webos/mickledore/BUILD/work/qemux86_64-webos-linux/rdfind/1.5.0-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/OE/lge/build/webos/mickledore/BUILD/work/qemux86_64-webos-linux/rdfind/1.5.0-r0/rdfind-1.5.0=/usr/src/debug/rdfind/1.5.0-r0 -fdebug-prefix-map=/OE/lge/build/webos/mickledore/BUILD/work/qemux86_64-webos-linux/rdfind/1.5.0-r0/rdfind-1.5.0=/usr/src/debug/rdfind/1.5.0-r0 -fmacro-prefix-map=/OE/lge/build/webos/mickledore/BUILD/work/qemux86_64-webos-linux/rdfind/1.5.0-r0/build=/usr/src/debug/rdfind/1.5.0-r0 -fdebug-prefix-map=/OE/lge/build/webos/mickledore/BUILD/work/qemux86_64-webos-linux/rdfind/1.5.0-r0/build=/usr/src/debug/rdfind/1.5.0-r0 -fdebug-prefix-map=/OE/lge/build/webos/mickledore/BUILD/work/qemux86_64-webos-linux/rdfind/1.5.0-r0/recipe-sysroot= -fmacro-prefix-map=/OE/lge/build/webos/mickledore/BUILD/work/qemux86_64-webos-linux/rdfind/1.5.0-r0/recipe-sysroot= -fdebug-prefix-map=/OE/lge/build/webos/mickledore/BUILD/work/qemux86_64-webos-linux/rdfind/1.5.0-r0/recipe-sysroot-native= -fvisibility-inlines-hidden conftest.cpp >&5
+ conftest.cpp: In function 'int f()':
+ conftest.cpp:22:20: error: no return statement in function returning non-void [-Werror=return-type]
+ 22 | int f() { auto a=1;} | ^
+ cc1plus: some warnings being treated as errors
+ ...
+ configure:4308: error: no c++11 support, please set CXXFLAGS properly
+
+* fix the test to pass
+
+Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
+Upstream-Status: Submitted [https://github.com/pauldreik/rdfind/pull/132]
+---
+ configure.ac | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index be1b2fd..9c3513c 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -64,7 +64,7 @@ AC_SYS_LARGEFILE
+
+ dnl make sure we have c++11 or better,
+ AC_MSG_CHECKING([for C++11 support or better])
+-AC_COMPILE_IFELSE([AC_LANG_PROGRAM([int f() { auto a=1;}])],
++AC_COMPILE_IFELSE([AC_LANG_PROGRAM([int f() { auto a=1;return a;}])],
+ [AC_MSG_RESULT([yes])],
+ [AC_MSG_ERROR([no c++11 support, please set CXXFLAGS properly])])
+
diff --git a/meta-oe/recipes-support/rdfind/rdfind_1.5.0.bb b/meta-oe/recipes-support/rdfind/rdfind_1.5.0.bb
index 8f2c5e8852..dab66c3827 100644
--- a/meta-oe/recipes-support/rdfind/rdfind_1.5.0.bb
+++ b/meta-oe/recipes-support/rdfind/rdfind_1.5.0.bb
@@ -8,6 +8,7 @@ DEPENDS = "nettle autoconf-archive"
SRC_URI = "https://rdfind.pauldreik.se/${BP}.tar.gz \
file://0001-configure-Fix-check-for-AC_CHECK_LIB.patch \
file://0001-include-standard-headers-limits-and-cstdint.patch \
+ file://0001-configure.ac-fix-C-11-support-check.patch \
"
SRC_URI[sha256sum] = "4150ed1256f7b12b928c65113c485761552b9496c433778aac3f9afc3e767080"
--
2.40.1
^ permalink raw reply related [flat|nested] 16+ messages in thread* [meta-oe][mickledore][PATCH 09/16] spice-gtk: respect gobject-introspection-data
2023-05-09 7:06 [meta-oe][mickledore][PATCH 01/16] lirc: fix do_install with multilib Martin Jansa
` (6 preceding siblings ...)
2023-05-09 7:06 ` [meta-oe][mickledore][PATCH 08/16] rdfind: fix build with -Werror=return-type Martin Jansa
@ 2023-05-09 7:06 ` Martin Jansa
2023-05-09 7:06 ` [meta-oe][mickledore][PATCH 10/16] cpulimit: fix do_install with multilib Martin Jansa
` (6 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: Martin Jansa @ 2023-05-09 7:06 UTC (permalink / raw)
To: openembedded-devel; +Cc: Martin Jansa
* without gobject-introspection-data in DISTRO_FEATURES the bbclass
correctly disables it:
$ bitbake-getvar -r spice-gtk EXTRA_OEMESON
#
# $EXTRA_OEMESON [6 operations]
# :append /OE/build/oe-core/openembedded-core/meta/classes-recipe/meson.bbclass:44
# " ${PACKAGECONFIG_CONFARGS}"
# :prepend[class-target] /OE/build/oe-core/openembedded-core/meta/classes-recipe/gobject-introspection.bbclass:28
# "${@['', '${GIRMESONTARGET}'][d.getVar('GIR_MESON_OPTION') != '']}"
# :prepend[class-native] /OE/build/oe-core/openembedded-core/meta/classes-recipe/gobject-introspection.bbclass:33
# "${@['', '${GIRMESONBUILD}'][d.getVar('GIR_MESON_OPTION') != '']}"
# :prepend[class-nativesdk] /OE/build/oe-core/openembedded-core/meta/classes-recipe/gobject-introspection.bbclass:34
# "${@['', '${GIRMESONBUILD}'][d.getVar('GIR_MESON_OPTION') != '']}"
# set /OE/build/oe-core/meta-openembedded/meta-networking/recipes-support/spice/spice-gtk_0.42.bb:49
# "-Dpie=true -Dvapi=enabled"
# :append[libc-musl] /OE/build/oe-core/meta-openembedded/meta-networking/recipes-support/spice/spice-gtk_0.42.bb:50
# " -Dcoroutine=libucontext"
# pre-expansion value:
# "${@['', '${GIRMESONTARGET}'][d.getVar('GIR_MESON_OPTION') != '']}-Dpie=true -Dvapi=enabled ${PACKAGECONFIG_CONFARGS}"
EXTRA_OEMESON="-Dintrospection=false -Dpie=true -Dvapi=enabled "
and prevents build failure:
http://errors.yoctoproject.org/Errors/Details/702789/
Run-time dependency gobject-introspection-1.0 found: NO (tried pkgconfig)
../git/meson.build:346:0: ERROR: Dependency "gobject-introspection-1.0" not found, tried pkgconfig
* it just needs GIR_MESON_*_FLAG to be set to avoid:
meson.build:4:0: ERROR: Value "false" (of type "string") for combo option "Check for GObject instrospection requirements" is not one of the choices. Possible choices are (as string): "enabled", "disabled", "auto".
* and enable vapi only when introspection is enabled, use PACKAGECONFIG for that to avoid:
meson.build:358:4: ERROR: Problem encountered: VAPI support requested without introspection
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
meta-networking/recipes-support/spice/spice-gtk_0.42.bb | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/meta-networking/recipes-support/spice/spice-gtk_0.42.bb b/meta-networking/recipes-support/spice/spice-gtk_0.42.bb
index 2d1b64967e..542ddb69b7 100644
--- a/meta-networking/recipes-support/spice/spice-gtk_0.42.bb
+++ b/meta-networking/recipes-support/spice/spice-gtk_0.42.bb
@@ -46,8 +46,13 @@ inherit meson pkgconfig vala gobject-introspection features_check
REQUIRED_DISTRO_FEATURES = "opengl"
-EXTRA_OEMESON = "-Dpie=true -Dvapi=enabled -Dintrospection=enabled"
-EXTRA_OEMESON:append:libc-musl = " -Dcoroutine=libucontext"
+GIR_MESON_ENABLE_FLAG = 'enabled'
+GIR_MESON_DISABLE_FLAG = 'disabled'
+
+PACKAGECONFIG ??= "${@bb.utils.contains('GI_DATA_ENABLED', 'True', 'vapi', '', d)}"
+PACKAGECONFIG[vapi] = "-Dvapi=enabled,-Dvapi=disabled"
+EXTRA_OEMESON = "-Dpie=true"
+EXTRA_OEMESON:append:libc-musl = " -Dcoroutine=libucontext"
FILES:${PN} += "${datadir}"
--
2.40.1
^ permalink raw reply related [flat|nested] 16+ messages in thread* [meta-oe][mickledore][PATCH 10/16] cpulimit: fix do_install with multilib
2023-05-09 7:06 [meta-oe][mickledore][PATCH 01/16] lirc: fix do_install with multilib Martin Jansa
` (7 preceding siblings ...)
2023-05-09 7:06 ` [meta-oe][mickledore][PATCH 09/16] spice-gtk: respect gobject-introspection-data Martin Jansa
@ 2023-05-09 7:06 ` Martin Jansa
2023-05-09 7:06 ` [meta-oe][mickledore][PATCH 11/16] libnfs: fix installed-vs-shipped issues " Martin Jansa
` (5 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: Martin Jansa @ 2023-05-09 7:06 UTC (permalink / raw)
To: openembedded-devel; +Cc: Martin Jansa
* fixes:
DEBUG: Executing shell function do_install
install: cannot stat 'TOPDIR/.../lib32-cpulimit/0.2-r0/git/src/lib32-cpulimit': No such file or directory
WARNING: exit code 1 from a shell command.
* drop strange 'g...@' from SRC_URI
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
meta-oe/recipes-support/cpulimit/cpulimit_0.2.bb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/meta-oe/recipes-support/cpulimit/cpulimit_0.2.bb b/meta-oe/recipes-support/cpulimit/cpulimit_0.2.bb
index 86a58beda4..58e4fd6e88 100644
--- a/meta-oe/recipes-support/cpulimit/cpulimit_0.2.bb
+++ b/meta-oe/recipes-support/cpulimit/cpulimit_0.2.bb
@@ -4,7 +4,7 @@ LICENSE = "GPL-2.0-or-later"
LIC_FILES_CHKSUM = "file://LICENSE;md5=86c1c0d961a437e529db93aa3bb32dc4"
SRCREV ?= "f4d2682804931e7aea02a869137344bb5452a3cd"
-SRC_URI = "git://g...@github.com/opsengine/cpulimit.git;protocol=https;branch=master \
+SRC_URI = "git://github.com/opsengine/cpulimit.git;protocol=https;branch=master \
file://0001-Remove-sys-sysctl.h-and-add-missing-libgen.h-include.patch \
"
@@ -15,7 +15,7 @@ do_compile() {
}
do_install() {
install -d ${D}${sbindir}
- install -m 0755 ${B}/src/${PN} ${D}${sbindir}/
+ install -m 0755 ${B}/src/${BPN} ${D}${sbindir}/
}
CFLAGS += "-D_GNU_SOURCE ${LDFLAGS}"
--
2.40.1
^ permalink raw reply related [flat|nested] 16+ messages in thread* [meta-oe][mickledore][PATCH 11/16] libnfs: fix installed-vs-shipped issues with multilib
2023-05-09 7:06 [meta-oe][mickledore][PATCH 01/16] lirc: fix do_install with multilib Martin Jansa
` (8 preceding siblings ...)
2023-05-09 7:06 ` [meta-oe][mickledore][PATCH 10/16] cpulimit: fix do_install with multilib Martin Jansa
@ 2023-05-09 7:06 ` Martin Jansa
2023-05-09 7:06 ` [meta-oe][mickledore][PATCH 12/16] btrfsmaintenance: install to ${datadir}/${BPN} Martin Jansa
` (4 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: Martin Jansa @ 2023-05-09 7:06 UTC (permalink / raw)
To: openembedded-devel; +Cc: Martin Jansa
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
...espect-CMAKE_INSTALL_LIBDIR-for-mult.patch | 61 +++++++++++++++++++
.../libnfs/libnfs_5.0.2.bb | 4 +-
2 files changed, 64 insertions(+), 1 deletion(-)
create mode 100644 meta-oe/recipes-connectivity/libnfs/libnfs/0001-CMakeLists.txt-respect-CMAKE_INSTALL_LIBDIR-for-mult.patch
diff --git a/meta-oe/recipes-connectivity/libnfs/libnfs/0001-CMakeLists.txt-respect-CMAKE_INSTALL_LIBDIR-for-mult.patch b/meta-oe/recipes-connectivity/libnfs/libnfs/0001-CMakeLists.txt-respect-CMAKE_INSTALL_LIBDIR-for-mult.patch
new file mode 100644
index 0000000000..55595104aa
--- /dev/null
+++ b/meta-oe/recipes-connectivity/libnfs/libnfs/0001-CMakeLists.txt-respect-CMAKE_INSTALL_LIBDIR-for-mult.patch
@@ -0,0 +1,61 @@
+From 95708ff427c12b58e53fab225a08c811ca358394 Mon Sep 17 00:00:00 2001
+From: Martin Jansa <Martin.Jansa@gmail.com>
+Date: Wed, 3 May 2023 22:27:10 +0200
+Subject: [PATCH] CMakeLists.txt: respect ${CMAKE_INSTALL_LIBDIR} for multilib
+
+* fixes:
+ ERROR: libnfs-5.0.2-r0 do_package: QA Issue: libnfs: Files/directories were installed but not shipped in any package:
+ /usr/lib/libnfs.so
+ /usr/lib/libnfs.so.11.1.0
+ /usr/lib/libnfs.so.5.0.2
+ /usr/lib/pkgconfig
+ /usr/lib/cmake
+ /usr/lib/pkgconfig/libnfs.pc
+ /usr/lib/cmake/libnfs
+ /usr/lib/cmake/libnfs/libnfs-config-version.cmake
+ /usr/lib/cmake/libnfs/libnfs-config.cmake
+ /usr/lib/cmake/libnfs/libnfs-config-noconfig.cmake
+ /usr/lib/cmake/libnfs/FindNFS.cmake
+ Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
+ libnfs: 11 installed and not shipped files. [installed-vs-shipped]
+
+ when libdir is /usr/lib64 with multilib
+
+Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
+Upstream-Status: Pending
+---
+ CMakeLists.txt | 6 +++---
+ lib/CMakeLists.txt | 4 ++--
+ 2 files changed, 5 insertions(+), 5 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 4fb0fe7..8e5a0e4 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -6,11 +6,11 @@ project(libnfs
+
+ set(SOVERSION 11.1.0 CACHE STRING "" FORCE)
+
+-set(INSTALL_LIB_DIR "${CMAKE_INSTALL_PREFIX}/lib" CACHE PATH "Installation directory for libraries")
++set(INSTALL_LIB_DIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}" CACHE PATH "Installation directory for libraries")
+ set(INSTALL_INC_DIR "${CMAKE_INSTALL_PREFIX}/include" CACHE PATH "Installation directory for headers")
+ set(INSTALL_MAN_DIR "${CMAKE_INSTALL_PREFIX}/share/man" CACHE PATH "Installation directory for manual pages")
+-set(INSTALL_PKGCONFIG_DIR "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig" CACHE PATH "Installation directory for pkgconfig (.pc) files")
+-set(INSTALL_CMAKE_DIR "${CMAKE_INSTALL_PREFIX}/lib/cmake/libnfs" CACHE PATH "Installation directory for cmake (.cmake) files")
++set(INSTALL_PKGCONFIG_DIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/pkgconfig" CACHE PATH "Installation directory for pkgconfig (.pc) files")
++set(INSTALL_CMAKE_DIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/cmake/libnfs" CACHE PATH "Installation directory for cmake (.cmake) files")
+
+ option(BUILD_SHARED_LIBS "Build shared libraries" ON)
+ option(ENABLE_TESTS "Build and run test programs" OFF)
+diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt
+index 88ba7b8..5ff89dc 100644
+--- a/lib/CMakeLists.txt
++++ b/lib/CMakeLists.txt
+@@ -23,5 +23,5 @@ set_target_properties(nfs PROPERTIES
+
+ install(TARGETS nfs EXPORT libnfs
+ RUNTIME DESTINATION bin
+- ARCHIVE DESTINATION lib
+- LIBRARY DESTINATION lib)
++ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
++ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
diff --git a/meta-oe/recipes-connectivity/libnfs/libnfs_5.0.2.bb b/meta-oe/recipes-connectivity/libnfs/libnfs_5.0.2.bb
index 7a40f4efc3..e0df18a50c 100644
--- a/meta-oe/recipes-connectivity/libnfs/libnfs_5.0.2.bb
+++ b/meta-oe/recipes-connectivity/libnfs/libnfs_5.0.2.bb
@@ -3,7 +3,9 @@ HOMEPAGE = "https://github.com/sahlberg/libnfs"
LICENSE = "LGPL-2.1-only & BSD-2-Clause & GPL-3.0-only"
LIC_FILES_CHKSUM = "file://COPYING;md5=825301ba17efc9d188ee0abd4b924ada"
-SRC_URI = "git://github.com/sahlberg/libnfs.git;protocol=https;branch=master"
+SRC_URI = "git://github.com/sahlberg/libnfs.git;protocol=https;branch=master \
+ file://0001-CMakeLists.txt-respect-CMAKE_INSTALL_LIBDIR-for-mult.patch \
+"
SRCREV = "40348f45d6beb8a8f50b6b63414a98fc1a061b7d"
S = "${WORKDIR}/git"
--
2.40.1
^ permalink raw reply related [flat|nested] 16+ messages in thread* [meta-oe][mickledore][PATCH 12/16] btrfsmaintenance: install to ${datadir}/${BPN}
2023-05-09 7:06 [meta-oe][mickledore][PATCH 01/16] lirc: fix do_install with multilib Martin Jansa
` (9 preceding siblings ...)
2023-05-09 7:06 ` [meta-oe][mickledore][PATCH 11/16] libnfs: fix installed-vs-shipped issues " Martin Jansa
@ 2023-05-09 7:06 ` Martin Jansa
2023-05-09 7:06 ` [meta-oe][mickledore][PATCH 13/16] libtomcrypt: pass LIBPATH to fix installed-vs-shipped with multilib Martin Jansa
` (3 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: Martin Jansa @ 2023-05-09 7:06 UTC (permalink / raw)
To: openembedded-devel; +Cc: Martin Jansa
* 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]
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
.../recipes-utils/btrfsmaintenance/btrfsmaintenance_0.5.bb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/meta-filesystems/recipes-utils/btrfsmaintenance/btrfsmaintenance_0.5.bb b/meta-filesystems/recipes-utils/btrfsmaintenance/btrfsmaintenance_0.5.bb
index a4573cf596..5761844f81 100644
--- a/meta-filesystems/recipes-utils/btrfsmaintenance/btrfsmaintenance_0.5.bb
+++ b/meta-filesystems/recipes-utils/btrfsmaintenance/btrfsmaintenance_0.5.bb
@@ -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
--
2.40.1
^ permalink raw reply related [flat|nested] 16+ messages in thread* [meta-oe][mickledore][PATCH 13/16] libtomcrypt: pass LIBPATH to fix installed-vs-shipped with multilib
2023-05-09 7:06 [meta-oe][mickledore][PATCH 01/16] lirc: fix do_install with multilib Martin Jansa
` (10 preceding siblings ...)
2023-05-09 7:06 ` [meta-oe][mickledore][PATCH 12/16] btrfsmaintenance: install to ${datadir}/${BPN} Martin Jansa
@ 2023-05-09 7:06 ` Martin Jansa
2023-05-09 7:06 ` [meta-oe][mickledore][PATCH 14/16] nanopb: " Martin Jansa
` (2 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: Martin Jansa @ 2023-05-09 7:06 UTC (permalink / raw)
To: openembedded-devel; +Cc: Martin Jansa
* 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
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
meta-oe/recipes-crypto/libtomcrypt/libtomcrypt_1.18.2.bb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta-oe/recipes-crypto/libtomcrypt/libtomcrypt_1.18.2.bb b/meta-oe/recipes-crypto/libtomcrypt/libtomcrypt_1.18.2.bb
index 357fd0ab8d..b144338921 100644
--- a/meta-oe/recipes-crypto/libtomcrypt/libtomcrypt_1.18.2.bb
+++ b/meta-oe/recipes-crypto/libtomcrypt/libtomcrypt_1.18.2.bb
@@ -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
}
--
2.40.1
^ permalink raw reply related [flat|nested] 16+ messages in thread* [meta-oe][mickledore][PATCH 14/16] nanopb: fix installed-vs-shipped with multilib
2023-05-09 7:06 [meta-oe][mickledore][PATCH 01/16] lirc: fix do_install with multilib Martin Jansa
` (11 preceding siblings ...)
2023-05-09 7:06 ` [meta-oe][mickledore][PATCH 13/16] libtomcrypt: pass LIBPATH to fix installed-vs-shipped with multilib Martin Jansa
@ 2023-05-09 7:06 ` Martin Jansa
2023-05-09 7:06 ` [meta-oe][mickledore][PATCH 15/16] nv-codec-headers: " Martin Jansa
2023-05-09 7:06 ` [meta-oe][mickledore][PATCH 16/16] zfs: fix installation paths for multilib Martin Jansa
14 siblings, 0 replies; 16+ messages in thread
From: Martin Jansa @ 2023-05-09 7:06 UTC (permalink / raw)
To: openembedded-devel; +Cc: 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.
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
...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
diff --git a/meta-oe/dynamic-layers/meta-python/recipes-devtools/nanopb/nanopb/0001-CMakeLists.txt-allow-to-set-PYTHON_INSTDIR-from-outs.patch b/meta-oe/dynamic-layers/meta-python/recipes-devtools/nanopb/nanopb/0001-CMakeLists.txt-allow-to-set-PYTHON_INSTDIR-from-outs.patch
new file mode 100644
index 0000000000..474f0f1584
--- /dev/null
+++ b/meta-oe/dynamic-layers/meta-python/recipes-devtools/nanopb/nanopb/0001-CMakeLists.txt-allow-to-set-PYTHON_INSTDIR-from-outs.patch
@@ -0,0 +1,67 @@
+From 30c79d1b49839a15c05a0d0ca7e54787cd7988c6 Mon Sep 17 00:00:00 2001
+From: Martin Jansa <Martin.Jansa@gmail.com>
+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 <Martin.Jansa@gmail.com>
+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)
diff --git a/meta-oe/dynamic-layers/meta-python/recipes-devtools/nanopb/nanopb_0.4.7.bb b/meta-oe/dynamic-layers/meta-python/recipes-devtools/nanopb/nanopb_0.4.7.bb
index 897caea2a7..9ad558146c 100644
--- a/meta-oe/dynamic-layers/meta-python/recipes-devtools/nanopb/nanopb_0.4.7.bb
+++ b/meta-oe/dynamic-layers/meta-python/recipes-devtools/nanopb/nanopb_0.4.7.bb
@@ -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
--
2.40.1
^ permalink raw reply related [flat|nested] 16+ messages in thread* [meta-oe][mickledore][PATCH 15/16] nv-codec-headers: fix installed-vs-shipped with multilib
2023-05-09 7:06 [meta-oe][mickledore][PATCH 01/16] lirc: fix do_install with multilib Martin Jansa
` (12 preceding siblings ...)
2023-05-09 7:06 ` [meta-oe][mickledore][PATCH 14/16] nanopb: " Martin Jansa
@ 2023-05-09 7:06 ` Martin Jansa
2023-05-09 7:06 ` [meta-oe][mickledore][PATCH 16/16] zfs: fix installation paths for multilib Martin Jansa
14 siblings, 0 replies; 16+ messages in thread
From: Martin Jansa @ 2023-05-09 7:06 UTC (permalink / raw)
To: openembedded-devel; +Cc: 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
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
| 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--git a/meta-multimedia/recipes-multimedia/nv-codec-headers/nv-codec-headers_12.0.16.0.bb b/meta-multimedia/recipes-multimedia/nv-codec-headers/nv-codec-headers_12.0.16.0.bb
index 5ef7ead810..4bff4f24b7 100644
--- a/meta-multimedia/recipes-multimedia/nv-codec-headers/nv-codec-headers_12.0.16.0.bb
+++ b/meta-multimedia/recipes-multimedia/nv-codec-headers/nv-codec-headers_12.0.16.0.bb
@@ -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
--
2.40.1
^ permalink raw reply related [flat|nested] 16+ messages in thread* [meta-oe][mickledore][PATCH 16/16] zfs: fix installation paths for multilib
2023-05-09 7:06 [meta-oe][mickledore][PATCH 01/16] lirc: fix do_install with multilib Martin Jansa
` (13 preceding siblings ...)
2023-05-09 7:06 ` [meta-oe][mickledore][PATCH 15/16] nv-codec-headers: " Martin Jansa
@ 2023-05-09 7:06 ` Martin Jansa
14 siblings, 0 replies; 16+ messages in thread
From: Martin Jansa @ 2023-05-09 7:06 UTC (permalink / raw)
To: openembedded-devel; +Cc: Martin Jansa
* pass --with-systemd* variables to install in more typical directories
* adjust FILES:${PN} to package them and more explicitly list some of
the directories like sudoers.d
* also remove unnecessary trailing /* and fix indentation of closing quote
* fixes:
ERROR: QA Issue: zfs: Files/directories were installed but not shipped in any package:
/lib
/lib/modules
/lib/modules/6.1.20-v8
/lib/modules/6.1.20-v8/extra
/lib/modules/6.1.20-v8/extra/zstd
/lib/modules/6.1.20-v8/extra/zfs
/lib/modules/6.1.20-v8/extra/unicode
/lib/modules/6.1.20-v8/extra/lua
/lib/modules/6.1.20-v8/extra/spl
/lib/modules/6.1.20-v8/extra/zcommon
/lib/modules/6.1.20-v8/extra/avl
/lib/modules/6.1.20-v8/extra/nvpair
/lib/modules/6.1.20-v8/extra/icp
/lib/modules/6.1.20-v8/extra/zstd/zzstd.ko.xz
/lib/modules/6.1.20-v8/extra/zfs/zfs.ko.xz
/lib/modules/6.1.20-v8/extra/unicode/zunicode.ko.xz
/lib/modules/6.1.20-v8/extra/lua/zlua.ko.xz
/lib/modules/6.1.20-v8/extra/spl/spl.ko.xz
/lib/modules/6.1.20-v8/extra/zcommon/zcommon.ko.xz
/lib/modules/6.1.20-v8/extra/avl/zavl.ko.xz
/lib/modules/6.1.20-v8/extra/nvpair/znvpair.ko.xz
/lib/modules/6.1.20-v8/extra/icp/icp.ko.xz
/usr/lib/modules-load.d
/usr/lib/systemd/system
/usr/lib/systemd/system-preset
/usr/lib/systemd/system-generators/zfs-mount-generator
/usr/lib/systemd/system/zfs-scrub@.service
/usr/lib/systemd/system/zfs-scrub-weekly@.timer
/usr/lib/systemd/system/zfs-import.service
/usr/lib/systemd/system/zfs-import-scan.service
/usr/lib/systemd/system/zfs-share.service
/usr/lib/systemd/system/zfs-mount.service
/usr/lib/systemd/system/zfs-volume-wait.service
/usr/lib/systemd/system/zfs.target
/usr/lib/systemd/system/zfs-load-key.service
/usr/lib/systemd/system/zfs-import.target
/usr/lib/systemd/system/zfs-import-cache.service
/usr/lib/systemd/system/zfs-zed.service
/usr/lib/systemd/system/zfs-scrub-monthly@.timer
/usr/lib/systemd/system/zfs-volumes.target
/usr/lib/systemd/system-preset/50-zfs.preset
/usr/lib/modules-load.d/zfs.conf
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
zfs: 42 installed and not shipped files. [installed-vs-shipped]
when libdir is /usr/lib64 with multilib.
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
.../recipes-filesystems/zfs/zfs_2.1.9.bb | 36 ++++++++++++-------
1 file changed, 23 insertions(+), 13 deletions(-)
diff --git a/meta-filesystems/recipes-filesystems/zfs/zfs_2.1.9.bb b/meta-filesystems/recipes-filesystems/zfs/zfs_2.1.9.bb
index 77daab7dd5..573561db25 100644
--- a/meta-filesystems/recipes-filesystems/zfs/zfs_2.1.9.bb
+++ b/meta-filesystems/recipes-filesystems/zfs/zfs_2.1.9.bb
@@ -27,12 +27,16 @@ EXTRA_OECONF:append = " \
--with-linux=${STAGING_KERNEL_DIR} --with-linux-obj=${STAGING_KERNEL_BUILDDIR} \
--with-mounthelperdir=${base_sbin} \
--with-udevdir=${base_libdir}/udev \
+ --with-systemdunitdir=${systemd_system_unitdir} \
+ --with-systemdgeneratordir=${nonarch_base_libdir}/systemd/system-generators \
+ --with-systemdpresetdir=${nonarch_base_libdir}/systemd/system-preset \
+ --with-systemdmodulesloaddir=${sysconfdir}/module-load.d \
--without-dracutdir \
- "
+"
EXTRA_OEMAKE:append = " \
INSTALL_MOD_PATH=${D}${root_prefix} \
- "
+"
do_install:append() {
# /usr/share/zfs contains the zfs-tests folder which we do not need:
@@ -42,19 +46,25 @@ do_install:append() {
}
FILES:${PN} += "\
- ${base_sbindir}/* \
- ${base_libdir}/* \
- ${sysconfdir}/* \
- ${sbindir}/* \
- ${bindir}/* \
- ${libexecdir}/${BPN}/* \
- ${libdir}/* \
- "
+ ${nonarch_base_libdir}/modules \
+ ${systemd_system_unitdir} \
+ ${nonarch_base_libdir}/systemd/system-generators \
+ ${nonarch_base_libdir}/systemd/system-preset \
+ ${sysconfdir}/modules-load.d/${BPN}.conf \
+ ${sysconfdir}/default/${BPN} \
+ ${sysconfdir}/sudoers.d/${BPN} \
+ ${sysconfdir}/${BPN} \
+ ${base_libdir}/udev \
+ ${sbindir} \
+ ${bindir} \
+ ${libexecdir}/${BPN} \
+ ${libdir} \
+"
FILES:${PN}-dev += "\
- ${prefix}/src/zfs-${PV}/* \
- ${prefix}/src/spl-${PV}/* \
- "
+ ${prefix}/src/zfs-${PV} \
+ ${prefix}/src/spl-${PV} \
+"
# Not yet ported to rv32
COMPATIBLE_HOST:riscv32 = "null"
# conflicting definition of ABS macro from asm/asm.h from kernel
--
2.40.1
^ permalink raw reply related [flat|nested] 16+ messages in thread