* [PATCH] package_ipk.bbclass: add lists_dir to sysroots' /etc/opkg.conf
@ 2010-08-05 6:31 Graham Gower
2010-08-05 7:20 ` Martin Jansa
0 siblings, 1 reply; 3+ messages in thread
From: Graham Gower @ 2010-08-05 6:31 UTC (permalink / raw)
To: openembedded-devel
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@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 () {
--
1.7.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] package_ipk.bbclass: add lists_dir to sysroots' /etc/opkg.conf
2010-08-05 6:31 [PATCH] package_ipk.bbclass: add lists_dir to sysroots' /etc/opkg.conf Graham Gower
@ 2010-08-05 7:20 ` Martin Jansa
2010-08-05 14:14 ` Chris Larson
0 siblings, 1 reply; 3+ messages in thread
From: Martin Jansa @ 2010-08-05 7:20 UTC (permalink / raw)
To: openembedded-devel
On Thu, Aug 05, 2010 at 04:01:50PM +0930, Graham Gower wrote:
> 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.
Agreed about revert, because for ONLINE_PACKAGE_MANAGEMENT == "none" it
calls "opkg-cl ${IPKG_ARGS} install " without package name and image creation fails.
Regards,
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] package_ipk.bbclass: add lists_dir to sysroots' /etc/opkg.conf
2010-08-05 7:20 ` Martin Jansa
@ 2010-08-05 14:14 ` Chris Larson
0 siblings, 0 replies; 3+ messages in thread
From: Chris Larson @ 2010-08-05 14:14 UTC (permalink / raw)
To: openembedded-devel
On Thu, Aug 5, 2010 at 12:20 AM, Martin Jansa <martin.jansa@gmail.com>wrote:
> On Thu, Aug 05, 2010 at 04:01:50PM +0930, Graham Gower wrote:
> > 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.
>
> 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 :)
--
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-08-05 14:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-05 6:31 [PATCH] package_ipk.bbclass: add lists_dir to sysroots' /etc/opkg.conf Graham Gower
2010-08-05 7:20 ` Martin Jansa
2010-08-05 14:14 ` Chris Larson
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.