summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/dpkg/dpkg.inc
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-04-18 20:52:05 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-04-18 22:01:21 +0100
commitc0f815973867ace0b2ded79b4c8657841a4bc405 (patch)
tree8e594e00afba39abffd71299863ec1f61da6fc6b /meta/recipes-devtools/dpkg/dpkg.inc
parent2464c638a0dafe38a0b6df6ca37ee84f3578ca6a (diff)
downloadast2050-yocto-poky-c0f815973867ace0b2ded79b4c8657841a4bc405.zip
ast2050-yocto-poky-c0f815973867ace0b2ded79b4c8657841a4bc405.tar.gz
dpkg: Correct paths in postinst
The postinstall needs to reference $D, not ${D} which would get expanded by bitbake. This allows postinsts to run correctly on the target system. (From OE-Core rev: 6573685a5374034df065c41bbe71c7ac49e4b9a4) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/dpkg/dpkg.inc')
-rw-r--r--meta/recipes-devtools/dpkg/dpkg.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/recipes-devtools/dpkg/dpkg.inc b/meta/recipes-devtools/dpkg/dpkg.inc
index 35cd6e7..92a5adc 100644
--- a/meta/recipes-devtools/dpkg/dpkg.inc
+++ b/meta/recipes-devtools/dpkg/dpkg.inc
@@ -62,14 +62,14 @@ do_install_append_class-native () {
pkg_postinst_${PN} () {
#!/bin/sh
if [ "x$D" != "x" ] && [ -f $D/var/lib/dpkg/status ]; then
- install -d ${D}/${sysconfdir}/rcS.d
+ install -d $D${sysconfdir}/rcS.d
# this happens at S98 where our good 'ole packages script used to run
echo "#!/bin/sh
dpkg --configure -a ${REDIRECT_CMD}
rm -f ${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}run-postinsts
-" > ${D}/${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}run-postinsts
- chmod 0755 ${D}/${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}run-postinsts
+" > $D${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}run-postinsts
+ chmod 0755 $D${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}run-postinsts
fi
}
OpenPOWER on IntegriCloud