diff options
author | Richard Purdie <richard@openedhand.com> | 2008-05-20 14:16:48 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2008-05-20 14:16:48 +0000 |
commit | 6a468efd9abf118f491d1dcd2678bef6b04cc515 (patch) | |
tree | 04763ad698da7d055149f2eda149b571912234ae | |
parent | 76df5abe0b9d1e3a9125e51e12cbd1cf3b18366e (diff) | |
download | openembedded-core-6a468efd9abf118f491d1dcd2678bef6b04cc515.tar.gz openembedded-core-6a468efd9abf118f491d1dcd2678bef6b04cc515.tar.bz2 openembedded-core-6a468efd9abf118f491d1dcd2678bef6b04cc515.tar.xz openembedded-core-6a468efd9abf118f491d1dcd2678bef6b04cc515.zip |
rootfs_deb.bbclass: Use /var/dpkg for dpkg status data
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4511 311d38ba-8fff-0310-9ca6-ca027cbcb966
-rw-r--r-- | meta/classes/rootfs_deb.bbclass | 19 | ||||
-rwxr-xr-x | meta/packages/meta/run-postinsts/run-postinsts | 2 | ||||
-rw-r--r-- | meta/packages/meta/run-postinsts/run-postinsts.awk | 2 | ||||
-rw-r--r-- | meta/packages/meta/run-postinsts_1.0.bb | 2 |
4 files changed, 11 insertions, 14 deletions
diff --git a/meta/classes/rootfs_deb.bbclass b/meta/classes/rootfs_deb.bbclass index 358658fb6..467626b2b 100644 --- a/meta/classes/rootfs_deb.bbclass +++ b/meta/classes/rootfs_deb.bbclass @@ -14,7 +14,7 @@ fakeroot rootfs_deb_do_rootfs () { rm -f ${STAGING_ETCDIR_NATIVE}/apt/preferences > ${IMAGE_ROOTFS}/var/dpkg/status > ${IMAGE_ROOTFS}/var/dpkg/available - # > ${STAGING_DIR}/var/dpkg/status + mkdir -p ${IMAGE_ROOTFS}/var/dpkg/alternatives priority=1 for arch in ${PACKAGE_ARCHS}; do @@ -48,8 +48,6 @@ fakeroot rootfs_deb_do_rootfs () { export IPKG_OFFLINE_ROOT=${IMAGE_ROOTFS} export OPKG_OFFLINE_ROOT=${IMAGE_ROOTFS} - mkdir -p ${IMAGE_ROOTFS}/var/lib/dpkg/alternatives - apt-get update _flag () { @@ -110,15 +108,14 @@ fakeroot rootfs_deb_do_rootfs () { set -e - # Hacks to make dpkg/opkg coexist for now - mv ${IMAGE_ROOTFS}/var/dpkg ${IMAGE_ROOTFS}/usr/ - if [ -e ${IMAGE_ROOTFS}/usr/dpkg/alternatives ]; then - rmdir ${IMAGE_ROOTFS}/usr/dpkg/alternatives - fi + # Hacks to allow opkg's update-alternatives and opkg to coexist for now mkdir -p ${IMAGE_ROOTFS}/usr/lib/opkg - ln -s /usr/lib/opkg/alternatives ${IMAGE_ROOTFS}/usr/dpkg/alternatives - ln -s /usr/dpkg/onfo ${IMAGE_ROOTFS}/usr/lib/opkg/info - ln -s /usr/dpkg/status ${IMAGE_ROOTFS}/usr/lib/opkg/status + if [ -e ${IMAGE_ROOTFS}/var/dpkg/alternatives ]; then + rmdir ${IMAGE_ROOTFS}/var/dpkg/alternatives + fi + ln -s /usr/lib/opkg/alternatives ${IMAGE_ROOTFS}/var/dpkg/alternatives + ln -s /var/dpkg/info ${IMAGE_ROOTFS}/usr/lib/opkg/info + ln -s /var/dpkg/status ${IMAGE_ROOTFS}/usr/lib/opkg/status ${ROOTFS_POSTPROCESS_COMMAND} diff --git a/meta/packages/meta/run-postinsts/run-postinsts b/meta/packages/meta/run-postinsts/run-postinsts index 46b3327f4..f632d1c7d 100755 --- a/meta/packages/meta/run-postinsts/run-postinsts +++ b/meta/packages/meta/run-postinsts/run-postinsts @@ -5,7 +5,7 @@ # Author: Richard Purdie <rpurdie@openedhand.com> # -PKGSYSTEM=/usr/dpkg +PKGSYSTEM=/var/dpkg if [ ! -e $PKGSYSTEM/status ]; then if [ -e /usr/lib/opkg/status ]; then diff --git a/meta/packages/meta/run-postinsts/run-postinsts.awk b/meta/packages/meta/run-postinsts/run-postinsts.awk index bdea8c95a..09a1400cf 100644 --- a/meta/packages/meta/run-postinsts/run-postinsts.awk +++ b/meta/packages/meta/run-postinsts/run-postinsts.awk @@ -9,7 +9,7 @@ BEGIN { rc=system("test -d /usr/dpkg/info/") if (rc==0) - pkgdir="/usr/dpkg/info" + pkgdir="/var/dpkg/info" else pkgdir="/usr/lib/opkg/info" package="" diff --git a/meta/packages/meta/run-postinsts_1.0.bb b/meta/packages/meta/run-postinsts_1.0.bb index ec3412738..79333dc7f 100644 --- a/meta/packages/meta/run-postinsts_1.0.bb +++ b/meta/packages/meta/run-postinsts_1.0.bb @@ -1,6 +1,6 @@ DESCRIPTION = "Run postinstall scripts on device using awk" SECTION = "devel" -PR = "r4" +PR = "r6" SRC_URI = "file://run-postinsts file://run-postinsts.awk" |