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>
This commit is contained in:
parent
4e9ea09cf8
commit
bca59f9ba0
|
@ -36,10 +36,10 @@ EXTRA_OEMAKE = "\
|
|||
do_unpack[postfuncs] += "obey_variables"
|
||||
do_unpack[vardeps] += "obey_variables"
|
||||
obey_variables () {
|
||||
sed -i -e 's,/etc,${sysconfdir},; s,/lib/systemd,${base_libdir}/systemd,' leveldb.h
|
||||
sed -i -e 's,/etc,${sysconfdir},; s,/lib/systemd,${base_libdir}/systemd,' ${S}/leveldb.h
|
||||
sed -i -e 's,/etc/alternatives,${sysconfdir}/alternatives,' \
|
||||
-e 's,/var/lib/alternatives,${localstatedir}/lib/alternatives,' \
|
||||
-e 's,/usr/share/locale,${datadir}/locale,' alternatives.c
|
||||
-e 's,/usr/share/locale,${datadir}/locale,' ${S}/alternatives.c
|
||||
}
|
||||
|
||||
do_install() {
|
||||
|
|
Loading…
Reference in New Issue