]> code.ossystems Code Review - openembedded-core.git/commitdiff
nfs-utils: don't force use of /sbin as sbindir
authorJoshua Lock <joshua.lock@collabora.co.uk>
Fri, 4 Sep 2015 14:59:45 +0000 (15:59 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 6 Sep 2015 14:24:19 +0000 (15:24 +0100)
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@collabora.co.uk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-connectivity/nfs-utils/nfs-utils_1.3.1.bb

index 6da85090d52fae7983129fcdecfc185ffead1b75..42101de79550cf8a95303c4f8632fd0dc4fed53b 100644 (file)
@@ -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() {