]> code.ossystems Code Review - openembedded-core.git/commit
dpkg: fix pkg_postinst_dpkg, don't supply {bindir}/update-alternatives
authorDexuan Cui <dexuan.cui@intel.com>
Tue, 13 Sep 2011 13:30:37 +0000 (21:30 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 13 Sep 2011 16:11:01 +0000 (17:11 +0100)
commitc7af358ec427487ccc053316d2f68f6121b97181
tree533ad33f7287d0e54fa442165ec4b335d53152cb
parent329d864f9bbf94ad3aae8df43d63fe10e4237e4f
dpkg: fix pkg_postinst_dpkg, don't supply {bindir}/update-alternatives

[YOCTO #1070].

The pkg_postinst_dpkg seems buggy, e.g., for dpkg-native,
${IMAGE_ROOTFS}/${sysconfdir}/rcS.d doesn't exist.
I think OE's version(do_install_prepend) at
http://git.openembedded.org/cgit.cgi/openembedded/tree/recipes/dpkg/dpkg.inc
is correct, so let's change to OE's version.

And, bth dpkg and update-alternatives-cworth supply
/usr/bin/update-alternatives and this causes conflict. e.g., bug 1070.
We can resolve the issue by ask dpkg not to supply the binary.

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/dpkg/dpkg.inc
meta/recipes-devtools/dpkg/dpkg_1.15.8.7.bb