Skip to contentSkip to conversation

update-alternatives questions

DISCUSSION Andreas Müller 3 participants 3 messages Jan 17, 2012 – Jan 22, 2012

lore
Share & tools
lore
#0 lore raw

Hi

when starting a fresh image (angstrom/opkg) I see for xfwm4 (xfce window manager included in meta-oe)

S98configure[285]: //var/lib/opkg/info/xfwm4.postinst: line 2: update-
alternatives: command not found

I checked:

* there is no update-alternatives in my image
* update-alternatives is packed in update-alternatives-cworth (sub package of opkg) which is not part of my image

Isn't it required to have update-alternatives on the target because it is used in postinst- / and postrm scripts?

Andreas

#1 lore raw

Op 17 jan. 2012, om 01:43 heeft Andreas Müller het volgende geschreven:

Quoted 8 lines

Hi

when starting a fresh image (angstrom/opkg) I see for xfwm4 (xfce window manager included in meta-oe)

S98configure[285]: //var/lib/opkg/info/xfwm4.postinst: line 2: update-
alternatives: command not found

Quoted 7 lines

I checked:

* there is no update-alternatives in my image
* update-alternatives is packed in update-alternatives-cworth (sub package of opkg) which is not part of my image

Isn't it required to have update-alternatives on the target

Yes

Quoted 2 lines

because it is used
in postinst- / and postrm scripts?

Those should be executed offline during build, so it's only for packages you install later on. Have a look at https://github.com/koenkooi/meta-angstrom/blob/master/recipes-images/angstrom/systemd-image.bb. That recipe will not include packagemanagement and u-a if ONLINE_PACKAGE_MANAGEMENT is set to none.

regards,

Koen

#2 lore raw
Quoted 17 lines · Koen Kooi

Op 17 jan. 2012, om 01:43 heeft Andreas Müller het volgende geschreven:

Quoted 14 lines

Hi

when starting a fresh image (angstrom/opkg) I see for xfwm4 (xfce window manager included in meta-oe)

S98configure[285]: //var/lib/opkg/info/xfwm4.postinst: line 2: update-
alternatives: command not found

I checked:

* there is no update-alternatives in my image
* update-alternatives is packed in update-alternatives-cworth (sub package of opkg) which is not part of my image

Quoted 9 lines
Quoted 1 line

Isn't it required to have update-alternatives on the target

Yes

Quoted 2 lines

because it is used
in postinst- / and postrm scripts?

Those should be executed offline during build, so it's only for packages you install later on. Have a look at https://github.com/koenkooi/meta-angstrom/blob/master/recipes-images/angstrom/systemd-image.bb. That recipe will not include packagemanagement and u-a if ONLINE_PACKAGE_MANAGEMENT is set to none.

oe-core provides PACKAGE_GROUP_package-management/ for same. May be it should be leveraged here ?

Quoted 7 lines

regards,

Koen
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Signature · 1 line
-Khem