]> code.ossystems Code Review - openembedded-core.git/commitdiff
chkconfig-alternatives-native: fix obey_variables
authorJoshua Lock <joshua.g.lock@intel.com>
Wed, 8 Mar 2017 17:24:14 +0000 (17:24 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 10 Mar 2017 14:45:43 +0000 (14:45 +0000)
This postfunc assumes it's run from S, whereas that seems not to always
be the case in practice. Explicitly define the full path of the file
we wish to sed.

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-extended/chkconfig/chkconfig-alternatives-native_1.3.59.bb

index c0f7f1674fb4db1129d239fa6510754f5689b095..87fa8eb605509eb703d93a104bc7d49eb5b73314 100644 (file)
@@ -21,7 +21,7 @@ inherit native
 # into the sysroot, as we may use them to construct the rootfs. As such, we
 # only adjust the paths to match the metadata for the target, not native.
 obey_variables () {
-       sed -i 's,ALTERNATIVES_ROOT,OPKG_OFFLINE_ROOT,' alternatives.c
+       sed -i 's,ALTERNATIVES_ROOT,OPKG_OFFLINE_ROOT,' ${S}/alternatives.c
 }
 
 do_compile () {