Skip to contentSkip to conversation

Revert "rootfs_ipk.bbclass: install the package manager in a separate pass from the other packages"

PATCH In review Martin Jansa 3 participants 3 messages Aug 5, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Revert "rootfs_ipk.bbclass: install the package manager in a separate pass from the other packages"

This reverts commit acc720fa80227d08fd15764117e0c34e2387e804.

Conflicts:

classes/rootfs_ipk.bbclass

---
 classes/rootfs_ipk.bbclass |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
classes/rootfs_ipk.bbclass +2 -2
index 7c85aae..db04fb6 100644
@@ -25,7 +25,7 @@ BAD_RECOMMENDATIONS ?= ""
 IPKG_VARIANT ?= "opkg"
 
 RDEPENDS_append = " ${@base_conditional("ONLINE_PACKAGE_MANAGEMENT", "none", "", "${IPKG_VARIANT} opkg-collateral", d)}"
-PACKAGE_INSTALL_PKGMGR = " ${@base_conditional("ONLINE_PACKAGE_MANAGEMENT", "none", "", "${IPKG_VARIANT} opkg-collateral", d)}"
+PACKAGE_INSTALL_append = " ${@base_conditional("ONLINE_PACKAGE_MANAGEMENT", "none", "", "${IPKG_VARIANT} opkg-collateral", d)}"
 
 fakeroot rootfs_ipk_do_rootfs () {
 	set -x
@@ -44,6 +44,7 @@ fakeroot rootfs_ipk_do_rootfs () {
 		echo "Status: deinstall ok not-installed" >> $STATUS
 		echo >> $STATUS
 	done
+
 	opkg-cl ${IPKG_ARGS} update
 
 	# Uclibc builds don't provide this stuff...
@@ -63,7 +64,6 @@ fakeroot rootfs_ipk_do_rootfs () {
 			opkg-cl ${IPKG_ARGS} install $i 2>&1 || true
 		done > ${T}/log.do_rootfs-attemptonly.${PID}
 	fi
-	opkg-cl ${IPKG_ARGS} install ${PACKAGE_INSTALL_PKGMGR}
 
 	export D=${IMAGE_ROOTFS}
 	export OFFLINE_ROOT=${IMAGE_ROOTFS}
Signature · 1 line
1.7.1.1
#1 lore raw
Quoted 1 line · Martin Jansa

This reverts commit acc720fa80227d08fd15764117e0c34e2387e804.

I'd suggest to fix it instead, like put it into the properly guarded block:

classes/rootfs_ipk.bbclass +1 -1
index 7c85aae..4256945 100644
@@ -63,7 +63,6 @@ fakeroot rootfs_ipk_do_rootfs () {
 			opkg-cl ${IPKG_ARGS} install $i 2>&1 || true
 		done > ${T}/log.do_rootfs-attemptonly.${PID}
 	fi
-	opkg-cl ${IPKG_ARGS} install ${PACKAGE_INSTALL_PKGMGR}
 
 	export D=${IMAGE_ROOTFS}
 	export OFFLINE_ROOT=${IMAGE_ROOTFS}
@@ -71,6 +70,7 @@ fakeroot rootfs_ipk_do_rootfs () {
 	export OPKG_OFFLINE_ROOT=${IPKG_OFFLINE_ROOT}
 	
 	if [ "${ONLINE_PACKAGE_MANAGEMENT}" != "none" ]; then
+		opkg-cl ${IPKG_ARGS} install ${PACKAGE_INSTALL_PKGMGR}
         	mkdir -p ${IMAGE_ROOTFS}${sysconfdir}/opkg/
 		grep "^arch" ${IPKGCONF_TARGET} >${IMAGE_ROOTFS}${sysconfdir}/opkg/arch.conf
 	fi
#2 lore raw
Quoted 7 lines · Bernhard Reutner-Fischer
Quoted 1 line · Martin Jansa

This reverts commit acc720fa80227d08fd15764117e0c34e2387e804.

I'd suggest to fix it instead, like put it into the properly guarded block:

Graham already has a proper fix for this, so consider the reversion of acc720fa acked by me.

Signature · 5 lines
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics