nfs-utils: clean up sbin installation
PATCH 1/2 nfs-utils: clean up sbin installation
There's no need to sed the Makefiles as there's an option to simply respect sbindir.
--- meta/recipes-connectivity/nfs-utils/nfs-utils_2.8.4.bb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
meta/recipes-connectivity/nfs-utils/nfs-utils_2.8.4.bb +3 -3
@@ -51,6 +51,7 @@ EXTRA_OECONF = "--with-statduser=rpcuser \ --with-statdpath=/var/lib/nfs/statd \ --with-pluginpath=${libdir}/libnfsidmap \ --with-rpcgen=${HOSTTOOLS_DIR}/rpcgen \ + --disable-sbin-override \ " LDFLAGS += "-lsqlite3 -levent"
@@ -117,9 +118,8 @@ FILES:${PN}-staticdev += "${libdir}/libnfsidmap/*.a" FILES:${PN} += "${systemd_unitdir} ${libdir}/libnfsidmap/ ${nonarch_libdir}/modprobe.d" do_configure:prepend() { - sed -i -e 's,sbindir = .*,sbindir = ${base_sbindir},g' \ - -e 's,udev_rulesdir = .*,udev_rulesdir = ${nonarch_base_libdir}/udev/rules.d/,g' \ - ${S}/utils/mount/Makefile.am ${S}/utils/nfsdcltrack/Makefile.am \ + # Upstream hardcodes the rules directory to /usr/lib/udev/rules.d/ + sed -i -e 's,udev_rulesdir = .*,udev_rulesdir = ${nonarch_base_libdir}/udev/rules.d/,g' \ ${S}/systemd/Makefile.am ${S}/tools/nfsrahead/Makefile.am }
Signature · 1 line
2.43.0
PATCH 2/2 nfs-utils: remove obsolete 'make clean' call
The 1.2.8 release did indeed ship binary .o files, such as:
nfs-utils-1.2.8/support/nfs/conffile.o
No recent release has done this though.
--- meta/recipes-connectivity/nfs-utils/nfs-utils_2.8.4.bb | 6 ------ 1 file changed, 6 deletions(-)
meta/recipes-connectivity/nfs-utils/nfs-utils_2.8.4.bb +0 -6
@@ -123,12 +123,6 @@ do_configure:prepend() { ${S}/systemd/Makefile.am ${S}/tools/nfsrahead/Makefile.am } -# Make clean needed because the package comes with -# precompiled 64-bit objects that break the build -do_compile:prepend() { - make clean -} - # Works on systemd only HIGH_RLIMIT_NOFILE ??= "4096"
Signature · 1 line
2.43.0
Quoted 5 lines · Ross Burton via lists.openembedded.org
There's no need to sed the Makefiles as there's an option to simply respect sbindir.
Signed-off-by Ross Burton <[email protected]>---
Hi Ross,
I suspect this patch or the next one breaks nfs-utils installation, but why?
ERROR: core-image-full-cmdline-1.0-r0 do_rootfs: Could not invoke dnf. Command '/srv/pokybuild/yocto-worker/genericx86-64/build/build/tmp/work/genericx86_64-poky-linux/core-image-full-cmdline/1.0/recipe-sysroot-native/usr/bin/dnf -v --rpmverbosity=info -y -c /srv/pokybuild/yocto-worker/genericx86-64/build/build/tmp/work/genericx86_64-poky-linux/core-image-full-cmdline/1.0/rootfs/etc/dnf/dnf.conf --setopt=reposdir=/srv/pokybuild/yocto-worker/genericx86-64/build/build/tmp/work/genericx86_64-poky-linux/core-image-full-cmdline/1.0/rootfs/etc/yum.repos.d --installroot=/srv/pokybuild/yocto-worker/genericx86-64/build/build/tmp/work/genericx86_64-poky-linux/core-image-full-cmdline/1.0/rootfs --setopt=logdir=/srv/pokybuild/yocto-worker/genericx86-64/build/build/tmp/work/genericx86_64-poky-linux/core-image-full-cmdline/1.0/temp --repofrompath=oe-repo,/srv/pokybuild/yocto-worker/genericx86-64/build/build/tmp/work/genericx86_64-poky-linux/core-image-full-cmdline/1.0/oe-rootfs-repo --nogpgcheck install dnf packagegroup-core-boot packagegroup-core-full-cmdline packagegroup-core-ssh-openssh psplash rpm run-postinsts locale-base-c locale-base-en-us locale-base-en-gb' returned 1:
...
Error:
Problem: package packagegroup-core-full-cmdline-sys-services-1.0-r0.noarch from oe-repo requires nfs-utils, but none of the providers can be installed
- package packagegroup-core-full-cmdline-1.0-r0.noarch from oe-repo requires packagegroup-core-full-cmdline-sys-services, but none of the providers can be installed
- package nfs-utils-2.8.4-r0.core2_64 from oe-repo requires nfs-utils-client, but none of the providers can be installed
- conflicting requests
- nothing provides nfs-utils-mount needed by nfs-utils-client-2.8.4-r0.core2_64 from oe-repo
(try to add '--skip-broken' to skip uninstallable packages)
https://autobuilder.yoctoproject.org/valkyrie/#/builders/4/builds/2733
(and most of the builds in https://autobuilder.yoctoproject.org/valkyrie/#/builders/29/builds/2725)
Can you have a look?
Thanks,
Mathieu
Signature · 3 lines
Mathieu Dubois-Briand, Bootlin Embedded Linux and Kernel engineering https://bootlin.com