* [PATCH] Remove redundant dependencies upon opkg and opkg-collateral.
@ 2010-08-05 6:58 Graham Gower
2010-08-05 14:15 ` Chris Larson
0 siblings, 1 reply; 7+ messages in thread
From: Graham Gower @ 2010-08-05 6:58 UTC (permalink / raw)
To: openembedded-devel
rootfs_ipk.bbclass already pulls these in, so avoid some confusion.
This is totally untested.
Signed-off-by: Graham Gower <graham.gower@gmail.com>
---
recipes/images/base-image.bb | 5 -----
recipes/images/minimal-gpe-image.bb | 1 -
recipes/images/nas-server-image.bb | 3 ---
recipes/images/x11-sato-image.bb | 2 --
recipes/tasks/task-slugos.bb | 1 -
5 files changed, 0 insertions(+), 12 deletions(-)
diff --git a/recipes/images/base-image.bb b/recipes/images/base-image.bb
index ee1f115..51d6d34 100644
--- a/recipes/images/base-image.bb
+++ b/recipes/images/base-image.bb
@@ -20,9 +20,6 @@ IMAGE_PREPROCESS_COMMAND = "create_etc_timestamp"
DISTRO_SSH_DAEMON ?= "dropbear"
-IPKG_VARIANT ?= "opkg"
-DISTRO_PACKAGE_MANAGER ?= "${IPKG_VARIANT}"
-
# FIXME: We need a distro-indendent way of specifying feed configs.
# Once the RFC for the DISTRO_FEED_CONFIGS variable name is approved,
# we can remove this default definition and set it in the distro config.
@@ -31,7 +28,6 @@ DISTRO_FEED_CONFIGS ?= "${ANGSTROM_FEED_CONFIGS}"
DEPENDS = "\
task-boot \
${DISTRO_SSH_DAEMON} \
- ${DISTRO_PACKAGE_MANAGER} \
${DISTRO_FEED_CONFIGS} \
${@base_contains('MACHINE_FEATURES', 'ext2', 'task-base-ext2', '', d)} \
${@base_contains('MACHINE_FEATURES', 'usbhost', 'task-base-usbhost', '', d)} \
@@ -40,7 +36,6 @@ DEPENDS = "\
IMAGE_INSTALL = "\
task-boot \
${DISTRO_SSH_DAEMON} \
- ${DISTRO_PACKAGE_MANAGER} \
${DISTRO_FEED_CONFIGS} \
${@base_contains('MACHINE_FEATURES', 'ext2', 'task-base-ext2', '', d)} \
${@base_contains('MACHINE_FEATURES', 'usbhost', 'task-base-usbhost', '', d)} \
diff --git a/recipes/images/minimal-gpe-image.bb b/recipes/images/minimal-gpe-image.bb
index 0c5c863..b8ddacb 100644
--- a/recipes/images/minimal-gpe-image.bb
+++ b/recipes/images/minimal-gpe-image.bb
@@ -17,7 +17,6 @@ IMAGE_INSTALL = "\
matchbox-wm \
gpe-terminal \
angstrom-feed-configs \
- opkg opkg-collateral \
${SPLASH} \
"
diff --git a/recipes/images/nas-server-image.bb b/recipes/images/nas-server-image.bb
index 61e8296..f26a357 100644
--- a/recipes/images/nas-server-image.bb
+++ b/recipes/images/nas-server-image.bb
@@ -20,14 +20,12 @@
# intended to be distro-agnostic.
DISTRO_SSH_DAEMON ?= "dropbear"
-DISTRO_PACKAGE_MANAGER ?= "opkg opkg-collateral"
DEPENDS = "\
task-boot \
${@base_contains('MACHINE_FEATURES', 'apex', 'task-base-apex', '', d)} \
task-distro-base task-machine-base \
${DISTRO_SSH_DAEMON} \
- ${DISTRO_PACKAGE_MANAGER} \
${@base_contains('MACHINE_FEATURES', 'ext2', 'task-base-ext2', '', d)} \
${@base_contains('MACHINE_FEATURES', 'usbhost', 'task-base-usbhost', '', d)} \
task-nas-server-everything \
@@ -41,7 +39,6 @@ IMAGE_INSTALL = "\
task-boot \
${@base_contains('MACHINE_FEATURES', 'apex', 'task-base-apex', '', d)} \
${DISTRO_SSH_DAEMON} \
- ${DISTRO_PACKAGE_MANAGER} \
${@base_contains('MACHINE_FEATURES', 'ext2', 'task-base-ext2', '', d)} \
${@base_contains('MACHINE_FEATURES', 'usbhost', 'task-base-usbhost', '', d)} \
${IMAGE_INSTALL_TASKS} \
diff --git a/recipes/images/x11-sato-image.bb b/recipes/images/x11-sato-image.bb
index c2ed50e..f79beae 100644
--- a/recipes/images/x11-sato-image.bb
+++ b/recipes/images/x11-sato-image.bb
@@ -1,5 +1,4 @@
DISTRO_SSH_DAEMON ?= "dropbear"
-DISTRO_PACKAGE_MANAGER ?= "opkg opkg-collateral"
XSERVER ?= "xserver-kdrive-fbdev"
@@ -8,7 +7,6 @@ IMAGE_PREPROCESS_COMMAND = "create_etc_timestamp"
IMAGE_INSTALL = "\
task-base-extended \
${DISTRO_SSH_DAEMON} \
- ${DISTRO_PACKAGE_MANAGER} \
pointercal \
matchbox-wm \
matchbox-keyboard matchbox-keyboard-applet matchbox-keyboard-im \
diff --git a/recipes/tasks/task-slugos.bb b/recipes/tasks/task-slugos.bb
index c007779..297d6f0 100644
--- a/recipes/tasks/task-slugos.bb
+++ b/recipes/tasks/task-slugos.bb
@@ -133,7 +133,6 @@ RDEPENDS_${PN} += "\
busybox initscripts-slugos slugos-init \
update-modules sysvinit udev \
module-init-tools modutils-initscripts \
- opkg-collateral ${IPKG_VARIANT} \
libgcc \
beep \
util-linux-mount \
--
1.7.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH] Remove redundant dependencies upon opkg and opkg-collateral.
2010-08-05 6:58 [PATCH] Remove redundant dependencies upon opkg and opkg-collateral Graham Gower
@ 2010-08-05 14:15 ` Chris Larson
2010-08-06 13:54 ` Martin Jansa
0 siblings, 1 reply; 7+ messages in thread
From: Chris Larson @ 2010-08-05 14:15 UTC (permalink / raw)
To: openembedded-devel
On Wed, Aug 4, 2010 at 11:58 PM, Graham Gower <graham.gower@gmail.com>wrote:
> rootfs_ipk.bbclass already pulls these in, so avoid some confusion.
>
> This is totally untested.
>
> Signed-off-by: Graham Gower <graham.gower@gmail.com>
>
Looks reasonable to me.
Acked-by: Chris Larson <clarson@kergoth.com>
--
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] Remove redundant dependencies upon opkg and opkg-collateral.
2010-08-05 14:15 ` Chris Larson
@ 2010-08-06 13:54 ` Martin Jansa
2010-08-07 1:29 ` Graham Gower
0 siblings, 1 reply; 7+ messages in thread
From: Martin Jansa @ 2010-08-06 13:54 UTC (permalink / raw)
To: openembedded-devel
On Thu, Aug 5, 2010 at 4:15 PM, Chris Larson <clarson@kergoth.com> wrote:
> On Wed, Aug 4, 2010 at 11:58 PM, Graham Gower <graham.gower@gmail.com>wrote:
>
>> rootfs_ipk.bbclass already pulls these in, so avoid some confusion.
>>
>> This is totally untested.
>>
>> Signed-off-by: Graham Gower <graham.gower@gmail.com>
>>
>
> Looks reasonable to me.
>
> Acked-by: Chris Larson <clarson@kergoth.com>
I've already pushed it, but too late I noticed that only rootfs_ipk is
handling DISTRO_PACKAGE_MANAGER and rpm/deb based rootfs will probably
loose DISTRO_PACKAGE_MANAGER from image.
Should I revert now or can we fix it soon?
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] Remove redundant dependencies upon opkg and opkg-collateral.
2010-08-06 13:54 ` Martin Jansa
@ 2010-08-07 1:29 ` Graham Gower
2010-08-07 1:40 ` Graham Gower
2010-08-07 1:49 ` Chris Larson
0 siblings, 2 replies; 7+ messages in thread
From: Graham Gower @ 2010-08-07 1:29 UTC (permalink / raw)
To: openembedded-devel
On 6 August 2010 23:24, Martin Jansa <martin.jansa@gmail.com> wrote:
> On Thu, Aug 5, 2010 at 4:15 PM, Chris Larson <clarson@kergoth.com> wrote:
>> On Wed, Aug 4, 2010 at 11:58 PM, Graham Gower <graham.gower@gmail.com>wrote:
>>
>>> rootfs_ipk.bbclass already pulls these in, so avoid some confusion.
>>>
>>> This is totally untested.
>>>
>>> Signed-off-by: Graham Gower <graham.gower@gmail.com>
>>>
>>
>> Looks reasonable to me.
>>
>> Acked-by: Chris Larson <clarson@kergoth.com>
>
> I've already pushed it, but too late I noticed that only rootfs_ipk is
> handling DISTRO_PACKAGE_MANAGER and rpm/deb based rootfs will probably
> loose DISTRO_PACKAGE_MANAGER from image.
>
> Should I revert now or can we fix it soon?
>
DISTRO_PACKAGE_MANAGER has been removed altogether. I can't see how it
would work reliably for all images - which is probably why it had
multiple definitions in the first place. And you could still end up
with opkg in your image when setting it to something else, e.g.
minimal-gpe-image and slugos pulled opkg in unconditionally.
DISTRO_PACKAGE_MANAGER could be fixed if it was put in a common
location like image.bbclass.
What is the intended mechanism for selecting a package manager?
INHERIT = "package_foo" looks like its going to do the trick for ipk
and deb. package_rpm.bbclass might need BOOTSTRAP_EXTRA_RDEPENDS +=
"rpm" or something.
-Graham
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] Remove redundant dependencies upon opkg and opkg-collateral.
2010-08-07 1:29 ` Graham Gower
@ 2010-08-07 1:40 ` Graham Gower
2010-08-07 1:49 ` Chris Larson
1 sibling, 0 replies; 7+ messages in thread
From: Graham Gower @ 2010-08-07 1:40 UTC (permalink / raw)
To: openembedded-devel
PS: looks like I missed a couple of locations where opkg is pulled in
unconditionally with DISTRO_EXTRA_RDEPENDS
conf/distro/kaeilos.conf
conf/distro/include/angstrom-2007-for-openmoko.inc
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] Remove redundant dependencies upon opkg and opkg-collateral.
2010-08-07 1:29 ` Graham Gower
2010-08-07 1:40 ` Graham Gower
@ 2010-08-07 1:49 ` Chris Larson
2010-08-07 2:23 ` Graham Gower
1 sibling, 1 reply; 7+ messages in thread
From: Chris Larson @ 2010-08-07 1:49 UTC (permalink / raw)
To: openembedded-devel
On Fri, Aug 6, 2010 at 6:29 PM, Graham Gower <graham.gower@gmail.com> wrote:
> On 6 August 2010 23:24, Martin Jansa <martin.jansa@gmail.com> wrote:
> > On Thu, Aug 5, 2010 at 4:15 PM, Chris Larson <clarson@kergoth.com>
> wrote:
> >> On Wed, Aug 4, 2010 at 11:58 PM, Graham Gower <graham.gower@gmail.com
> >wrote:
> >>
> >>> rootfs_ipk.bbclass already pulls these in, so avoid some confusion.
> >>>
> >>> This is totally untested.
> >>>
> >>> Signed-off-by: Graham Gower <graham.gower@gmail.com>
> >>>
> >>
> >> Looks reasonable to me.
> >>
> >> Acked-by: Chris Larson <clarson@kergoth.com>
> >
> > I've already pushed it, but too late I noticed that only rootfs_ipk is
> > handling DISTRO_PACKAGE_MANAGER and rpm/deb based rootfs will probably
> > loose DISTRO_PACKAGE_MANAGER from image.
> >
> > Should I revert now or can we fix it soon?
> >
>
> DISTRO_PACKAGE_MANAGER has been removed altogether. I can't see how it
> would work reliably for all images - which is probably why it had
> multiple definitions in the first place. And you could still end up
> with opkg in your image when setting it to something else, e.g.
> minimal-gpe-image and slugos pulled opkg in unconditionally.
> DISTRO_PACKAGE_MANAGER could be fixed if it was put in a common
> location like image.bbclass.
>
> What is the intended mechanism for selecting a package manager?
> INHERIT = "package_foo" looks like its going to do the trick for ipk
> and deb. package_rpm.bbclass might need BOOTSTRAP_EXTRA_RDEPENDS +=
> "rpm" or something.
>
BOOTSTRAP_EXTRA_RDEPENDS is a remnant. We wouldn't want them controlling it
from there anyway. The fact that I INHERIT package_ipk doesn't mean I'm
constructing an ipk image, only that I'm *emitting* packages of that
format. IMAGE_PKGTYPE controls which rootfs_* bbclass will be used to
construct the image, but that doesn't control which package *manager* for
that type will be used, nor whether it should be installed at all
(ONLINE_PACKAGE_MANAGEMENT).
--
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] Remove redundant dependencies upon opkg and opkg-collateral.
2010-08-07 1:49 ` Chris Larson
@ 2010-08-07 2:23 ` Graham Gower
0 siblings, 0 replies; 7+ messages in thread
From: Graham Gower @ 2010-08-07 2:23 UTC (permalink / raw)
To: openembedded-devel
On 7 August 2010 11:19, Chris Larson <clarson@kergoth.com> wrote:
>
> BOOTSTRAP_EXTRA_RDEPENDS is a remnant. We wouldn't want them controlling it
> from there anyway. The fact that I INHERIT package_ipk doesn't mean I'm
> constructing an ipk image, only that I'm *emitting* packages of that
> format. IMAGE_PKGTYPE controls which rootfs_* bbclass will be used to
> construct the image, but that doesn't control which package *manager* for
> that type will be used, nor whether it should be installed at all
> (ONLINE_PACKAGE_MANAGEMENT).
Thanks, that does clear up how things are intended to behave. However
it doesn't reflect the reality of package_deb.bbclass and
package_ipk.bbclass, which both add their package managers to the
image unconditionally. i.e. using INHERIT="package_ipk" and
ONLINE_PACKAGE_MANAGEMENT="none" will still get you an image with opkg
installed.
My intention here is to cut off some of opkg's tentacles in OE. I
expect more pruning will be required.
-Graham
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2010-08-07 2:23 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-05 6:58 [PATCH] Remove redundant dependencies upon opkg and opkg-collateral Graham Gower
2010-08-05 14:15 ` Chris Larson
2010-08-06 13:54 ` Martin Jansa
2010-08-07 1:29 ` Graham Gower
2010-08-07 1:40 ` Graham Gower
2010-08-07 1:49 ` Chris Larson
2010-08-07 2:23 ` Graham Gower
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.