diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-04-18 20:52:05 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-04-18 22:01:24 +0100 |
commit | dc529e1f18975ff33a1686dc9804a38204fd1bd0 (patch) | |
tree | d4c9e6bde66cfe10fbccce4ba2e39bf343280772 /meta/recipes-devtools | |
parent | 7bf9d217ff38cd12562bc345d81efbcd84081a9a (diff) | |
download | poky-dc529e1f18975ff33a1686dc9804a38204fd1bd0.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')
-rw-r--r-- | 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 35cd6e71b8..92a5adcdcd 100644 --- a/meta/recipes-devtools/dpkg/dpkg.inc +++ b/meta/recipes-devtools/dpkg/dpkg.inc | |||
@@ -62,14 +62,14 @@ do_install_append_class-native () { | |||
62 | pkg_postinst_${PN} () { | 62 | pkg_postinst_${PN} () { |
63 | #!/bin/sh | 63 | #!/bin/sh |
64 | if [ "x$D" != "x" ] && [ -f $D/var/lib/dpkg/status ]; then | 64 | if [ "x$D" != "x" ] && [ -f $D/var/lib/dpkg/status ]; then |
65 | install -d ${D}/${sysconfdir}/rcS.d | 65 | install -d $D${sysconfdir}/rcS.d |
66 | 66 | ||
67 | # this happens at S98 where our good 'ole packages script used to run | 67 | # this happens at S98 where our good 'ole packages script used to run |
68 | echo "#!/bin/sh | 68 | echo "#!/bin/sh |
69 | dpkg --configure -a ${REDIRECT_CMD} | 69 | dpkg --configure -a ${REDIRECT_CMD} |
70 | rm -f ${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}run-postinsts | 70 | rm -f ${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}run-postinsts |
71 | " > ${D}/${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}run-postinsts | 71 | " > $D${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}run-postinsts |
72 | chmod 0755 ${D}/${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}run-postinsts | 72 | chmod 0755 $D${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}run-postinsts |
73 | fi | 73 | fi |
74 | } | 74 | } |
75 | 75 | ||