Openembedded Core Discussions
 help / color / mirror / Atom feed
* opkg dependencies and update-alternatives
@ 2013-11-17 18:57 Paul Barker
  2013-11-18  2:54 ` ChenQi
  0 siblings, 1 reply; 11+ messages in thread
From: Paul Barker @ 2013-11-17 18:57 UTC (permalink / raw)
  To: openembedded-core

Hi all,

I've been trying to add PACKAGECONFIG options to opkg and have ran
into a dependency loop whilst building with certain options. Enabling
curl support within opkg requires a dependency on curl. curl in turn
depends on ncurses (via a few intermediate dependencies) and ncurses
uses update-alternatives causing a dependency on
virtual/update-alternatives.
PREFERRED_PROVIDER_virtual/update-alternatives is set to "opkg" in
meta/conf/distro/include/default-providers.inc and so we have a
dependency loop if curl is enabled via the new PACKAGECONFIG options
for opkg.

I can cause the same dependency loop by setting
PREFERRED_PROVIDER_virtual/update-alternatives to "dpkg" as dpkg
directly depends on ncurses (which uses update-alternatives). So if
someone wanted to use the more powerful update-alternatives from dpkg
on a target system it doesn't look like that is currently possible.

This places quite a constraint on whichever recipe PROVIDES
update-alternatives. Going forward I'm hoping to use libarchive within
opkg and libarchive depends on bzip2 by default which uses
update-alternatives, which would cause the same problem.

Does anyone have any clever solutions to this? Perhaps we could split
update-alternatives off into its own recipe which should be dependent
on very little, allowing opkg a little more freedom in its
dependencies.

Thanks,

-- 
Paul Barker

Email: paul@paulbarker.me.uk
http://www.paulbarker.me.uk


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2013-11-20 16:34 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-17 18:57 opkg dependencies and update-alternatives Paul Barker
2013-11-18  2:54 ` ChenQi
2013-11-18  9:21   ` Paul Barker
2013-11-18 11:40   ` Martin Jansa
2013-11-18 11:57     ` Richard Purdie
2013-11-18 15:31       ` Paul Barker
2013-11-18 16:20         ` Martin Jansa
2013-11-19  5:38           ` Chris Larson
2013-11-20 16:24           ` Paul Barker
2013-11-20 16:33             ` Richard Purdie
2013-11-18 16:04       ` Martin Jansa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox