[OE-core] [PATCH v2 8/9] nfs-utils: don't force use of /sbin as sbindir
Joshua Lock
joshua.lock at collabora.co.uk
Fri Sep 4 14:59:45 UTC 2015
The Makefile for mount and osd_login utilities forces
/sbin as asbindir, however on a merged /usr system this directory
might not exist. Instead sed in the system sbindir.
Signed-off-by: Joshua Lock <joshua.lock at collabora.co.uk>
---
meta/recipes-connectivity/nfs-utils/nfs-utils_1.3.1.bb | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils_1.3.1.bb b/meta/recipes-connectivity/nfs-utils/nfs-utils_1.3.1.bb
index 6da8509..42101de 100644
--- a/meta/recipes-connectivity/nfs-utils/nfs-utils_1.3.1.bb
+++ b/meta/recipes-connectivity/nfs-utils/nfs-utils_1.3.1.bb
@@ -90,6 +90,14 @@ RDEPENDS_${PN}-stats = "python"
FILES_${PN} += "${systemd_unitdir}"
+do_configure_prepend() {
+ sed -i -e 's,sbindir = /sbin,sbindir = ${base_sbindir},g' \
+ ${S}/utils/mount/Makefile.am
+
+ sed -i -e 's,sbindir = /sbin,sbindir = ${base_sbindir},g' \
+ ${S}/utils/osd_login/Makefile.am
+}
+
# Make clean needed because the package comes with
# precompiled 64-bit objects that break the build
do_compile_prepend() {
--
2.1.4
More information about the Openembedded-core
mailing list