package_ipk.bbclass: add lists_dir to sysroots' /etc/opkg.conf
PATCH 1/1 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.
--- classes/package_ipk.bbclass | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
classes/package_ipk.bbclass +3 -0
@@ -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 () {
Signature · 1 line
1.7.1
Quoted 8 lines · Graham Gower
This makes the sysroots'
/etc/opkg.confagree 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.
Agreed about revert, because for ONLINE_PACKAGE_MANAGEMENT == "none" it calls "opkg-cl ${IPKG_ARGS} install " without package name and image creation fails.
Regards,
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
Quoted 6 lines · Martin Jansa
Quoted 1 line · Graham Gower
This makes the sysroots'
/etc/opkg.confagree with opkg-collateral onwhere
Quoted 3 lines
the package lists database should be found. Fixes a problem whereby opkg cannot find the package lists after opkg-collateral is installed.
Quoted 9 lines
Quoted 4 lines
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.Agreed about revert, because for
ONLINE_PACKAGE_MANAGEMENT== "none" it calls "opkg-cl ${IPKG_ARGS} install " without package name and image creation fails.
Thanks, Graham, I appreciate your looking into this. Your commit for this should definitely go in. I expected my commit was a workaround at best :)
Signature · 5 lines
Christopher Larson clarson at kergoth dot com Founder - BitBake, OpenEmbedded, OpenZaurus Maintainer - Tslib Senior Software Engineer, Mentor Graphics