[oe-commits] Richard Purdie : dpkg: Correct paths in postinst
git at git.openembedded.org
git at git.openembedded.org
Thu Apr 18 20:59:21 UTC 2013
Module: openembedded-core.git
Branch: dylan
Commit: 6573685a5374034df065c41bbe71c7ac49e4b9a4
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=6573685a5374034df065c41bbe71c7ac49e4b9a4
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date: Thu Apr 18 20:52:05 2013 +0000
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.
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
meta/recipes-devtools/dpkg/dpkg.inc | 6 +++---
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
}
More information about the Openembedded-commits
mailing list