[gnome-continuous-yocto/gnomeostree-3.28-rocko: 5026/8267] chkconfig-alternatives-native: fix obey_variables



commit 39ff73152673477e499b39ee1e41eb24625f74ad
Author: Joshua Lock <joshua g lock intel com>
Date:   Wed Mar 8 17:24:14 2017 +0000

    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.
    
    (From OE-Core rev: 6486dd71c6c9977e5d67fd803d1bd85001654b5a)
    
    Signed-off-by: Joshua Lock <joshua g lock intel com>
    Signed-off-by: Ross Burton <ross burton intel com>
    Signed-off-by: Richard Purdie <richard purdie linuxfoundation org>

 .../chkconfig-alternatives-native_1.3.59.bb        |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
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 c0f7f16..87fa8eb 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 () {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]