All of lore.kernel.org
 help / color / mirror / Atom feed
* update-alternatives questions
@ 2012-01-17  0:43 Andreas Müller
  2012-01-17  9:07 ` Koen Kooi
  0 siblings, 1 reply; 3+ messages in thread
From: Andreas Müller @ 2012-01-17  0:43 UTC (permalink / raw)
  To: openembedded-core

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



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

* Re: update-alternatives questions
  2012-01-17  0:43 update-alternatives questions Andreas Müller
@ 2012-01-17  9:07 ` Koen Kooi
  2012-01-22  3:09   ` Khem Raj
  0 siblings, 1 reply; 3+ messages in thread
From: Koen Kooi @ 2012-01-17  9:07 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer


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

> 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

Yes

> 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


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

* Re: update-alternatives questions
  2012-01-17  9:07 ` Koen Kooi
@ 2012-01-22  3:09   ` Khem Raj
  0 siblings, 0 replies; 3+ messages in thread
From: Khem Raj @ 2012-01-22  3:09 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On (17/01/12 10:07), Koen Kooi wrote:
> 
> Op 17 jan. 2012, om 01:43 heeft Andreas Müller het volgende geschreven:
> 
> > 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
> 
> Yes
> 
> > 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 ?


> regards,
> 
> Koen
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

-- 
-Khem



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

end of thread, other threads:[~2012-01-22  3:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-17  0:43 update-alternatives questions Andreas Müller
2012-01-17  9:07 ` Koen Kooi
2012-01-22  3:09   ` Khem Raj

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.