diff options
author | Ross Burton <ross.burton@intel.com> | 2015-07-14 15:49:13 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-07-16 15:09:23 +0100 |
commit | bca59f9ba04d730f70e6026ac7f6fdcd787d8def (patch) | |
tree | 24f974b4e936622444561d13ed6860845977ec60 /meta | |
parent | 4e9ea09cf81845466dd7818a23a15d5c70d54208 (diff) | |
download | poky-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')
-rw-r--r-- | meta/recipes-extended/chkconfig/chkconfig_1.3.58.bb | 4 |
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 = "\ | |||
36 | do_unpack[postfuncs] += "obey_variables" | 36 | do_unpack[postfuncs] += "obey_variables" |
37 | do_unpack[vardeps] += "obey_variables" | 37 | do_unpack[vardeps] += "obey_variables" |
38 | obey_variables () { | 38 | obey_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 | ||
45 | do_install() { | 45 | do_install() { |