[oe-commits] Graham Gower : package_ipk.bbclass: add lists_dir to sysroots' /etc/opkg. conf

git version control git at git.openembedded.org
Fri Aug 6 12:50:45 UTC 2010


Module: openembedded.git
Branch: org.openembedded.dev
Commit: ef6ef8a68a9a9c6eac5c165dca1f07096c86317c
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=ef6ef8a68a9a9c6eac5c165dca1f07096c86317c

Author: Graham Gower <graham.gower at gmail.com>
Date:   Wed Aug  4 20:31:50 2010 +0000

package_ipk.bbclass: add lists_dir to sysroots' /etc/opkg.conf

This makes the sysroots' /etc/opkg.conf agree with opkg-collateral on where
the package lists database should be found. Fixes a problem whereby opkg
cannot find the package lists after opkg-collateral is installed.

This fixes the same problem as acc720fa80227d08fd15764117e0c34e2387e804.
But since that doesn't take into account other dependencies bringing
opkg-collateral into the image, it doesn't solve the problem in all
cases and could probably be reverted.

This is a bit messy, having hardcoded /var/lib/opkg as the lists_dir
in multiple locations. Other suggestions welcome.
I'm not sure its all that necessary to be using /usr/lib/opkg other
than for backwards compatibility with existing installations.

Signed-off-by: Graham Gower <graham.gower at gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>

---

 classes/package_ipk.bbclass |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/classes/package_ipk.bbclass b/classes/package_ipk.bbclass
index cd01496..3d70181 100644
--- a/classes/package_ipk.bbclass
+++ b/classes/package_ipk.bbclass
@@ -132,6 +132,9 @@ package_generate_ipkg_conf () {
 		        echo "src oe-${SDK_SYS}-sdk-$arch file:${DEPLOY_DIR_IPK}/${SDK_SYS}-sdk-$arch" >> ${IPKGCONF_CANSDK}
 		fi
 	done
+	echo "lists_dir ext /var/lib/opkg" >> ${IPKGCONF_TARGET}
+	echo "lists_dir ext /var/lib/opkg" >> ${IPKGCONF_SDK}
+	echo "lists_dir ext /var/lib/opkg" >> ${IPKGCONF_CANSDK}
 }
 
 python do_package_ipk () {





More information about the Openembedded-commits mailing list