From: Joshua Lock Date: Wed, 8 Mar 2017 16:48:13 +0000 (+0000) Subject: chkconfig-alternatives-native: fix obey_variables X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ec75104e2b1c51911905e8318f36b291a7dccef;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git chkconfig-alternatives-native: fix obey_variables 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 --- diff --git a/meta/recipes-extended/chkconfig/chkconfig-alternatives-native_1.3.59.bb b/meta/recipes-extended/chkconfig/chkconfig-alternatives-native_1.3.59.bb index c0f7f1674fb..87fa8eb6055 100644 --- a/meta/recipes-extended/chkconfig/chkconfig-alternatives-native_1.3.59.bb +++ b/meta/recipes-extended/chkconfig/chkconfig-alternatives-native_1.3.59.bb @@ -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 () {