Skip to contentSkip to conversation

nfs-utils: clean up sbin installation

PATCH In review Ross Burton 2 participants 3 messages Nov 14, 2025 – Nov 15, 2025

lore
Share & tools
lore
#0 lore raw

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
index 08e7dd89003..fcbbadd914a 100644
@@ -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
#1 lore raw

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
index fcbbadd914a..631f1819eb5 100644
@@ -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
#2 lore raw
In reply to Ross Burton
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.

---

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