summaryrefslogtreecommitdiff
path: root/meta/classes
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2008-05-20 14:16:48 +0000
committerRichard Purdie <richard@openedhand.com>2008-05-20 14:16:48 +0000
commit6a468efd9abf118f491d1dcd2678bef6b04cc515 (patch)
tree04763ad698da7d055149f2eda149b571912234ae /meta/classes
parent76df5abe0b9d1e3a9125e51e12cbd1cf3b18366e (diff)
downloadopenembedded-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
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/rootfs_deb.bbclass19
1 files changed, 8 insertions, 11 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}