summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2015-07-14 15:49:13 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-07-16 15:09:23 +0100
commitbca59f9ba04d730f70e6026ac7f6fdcd787d8def (patch)
tree24f974b4e936622444561d13ed6860845977ec60 /meta/recipes-extended
parent4e9ea09cf81845466dd7818a23a15d5c70d54208 (diff)
downloadpoky-bca59f9ba04d730f70e6026ac7f6fdcd787d8def.tar.gz
chkconfig: use explicit directories in obey_variables()
obey_variables() was using relative paths which mean it depends on exactly what directory it starts in. To clarify the code, always use absolute paths. (From OE-Core rev: 74b1757e080d14188fe9f77f6e07ed83b696a2c8) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended')
-rw-r--r--meta/recipes-extended/chkconfig/chkconfig_1.3.58.bb4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/recipes-extended/chkconfig/chkconfig_1.3.58.bb b/meta/recipes-extended/chkconfig/chkconfig_1.3.58.bb
index d285c5047c..8df87f88fb 100644
--- a/meta/recipes-extended/chkconfig/chkconfig_1.3.58.bb
+++ b/meta/recipes-extended/chkconfig/chkconfig_1.3.58.bb
@@ -36,10 +36,10 @@ EXTRA_OEMAKE = "\
36do_unpack[postfuncs] += "obey_variables" 36do_unpack[postfuncs] += "obey_variables"
37do_unpack[vardeps] += "obey_variables" 37do_unpack[vardeps] += "obey_variables"
38obey_variables () { 38obey_variables () {
39 sed -i -e 's,/etc,${sysconfdir},; s,/lib/systemd,${base_libdir}/systemd,' leveldb.h 39 sed -i -e 's,/etc,${sysconfdir},; s,/lib/systemd,${base_libdir}/systemd,' ${S}/leveldb.h
40 sed -i -e 's,/etc/alternatives,${sysconfdir}/alternatives,' \ 40 sed -i -e 's,/etc/alternatives,${sysconfdir}/alternatives,' \
41 -e 's,/var/lib/alternatives,${localstatedir}/lib/alternatives,' \ 41 -e 's,/var/lib/alternatives,${localstatedir}/lib/alternatives,' \
42 -e 's,/usr/share/locale,${datadir}/locale,' alternatives.c 42 -e 's,/usr/share/locale,${datadir}/locale,' ${S}/alternatives.c
43} 43}
44 44
45do_install() { 45do_install() {