All of lore.kernel.org
 help / color / mirror / Atom feed
From: Koen Kooi <k.kooi@student.utwente.nl>
To: openembedded-devel@lists.openembedded.org
Subject: Re: update-alternatives broken badly (by me :()
Date: Fri, 08 Jan 2010 15:05:03 +0100	[thread overview]
Message-ID: <hi7e2e$cda$1@ger.gmane.org> (raw)
In-Reply-To: <20100108132344.GB2156@jama>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Can't we just make them both read from the opkg dir?

regards,

Koen

On 08-01-10 14:23, Martin Jansa wrote:
> After this change
> http://cgit.openembedded.net/cgit.cgi/openembedded/commit/?id=9b641bbfed07c075ae5cbe84082a85f1ba703447
> 
> most distributions use opkg-native as u-a provider for building their
> images, but I haven't noticed that 
> 
> update-alternatives-cworth use alternatives from
> /usr/lib/ipkg/alternatives
> 
> opkg use
> /usr/lib/opkg/alternatives
> 
> So image prepared with opkg-native cannot ship with
> update-alternatives-cworth installed, but it does, because task-boot
> DEPENDS on "update-alternatives" which could be fixed with 
> DISTRO_UPDATE_ALTERNATIVES and using DISTRO_UPDATE_ALTERNATIVES for
> PREFERRED_PROVIDER_virtual/update-alternatives
> PREFERRED_PROVIDER_virtual/update-alternatives-native
> and here in task-boot.
> 
> But this won't fix already installed/built images :/.
> 
> How to fix this properly? I guess that right combination of RCONFLICTS
> and good postinst scipt can fix that.. but its quite difficult to test
> it and it can break things even more :/. Please advise..
> 
> Sort of nasty workaround now is
> opkg remove update-alternatives-cworth
> opkg reinstall busybox
> 
> Here is info I just sent to SHR mailing list
> 
> In last opkg upgrade there is bump to busybox package, which triggers
> old bug in our images :(.
> 
> There are 2 scripts providing update-alternatives in our images, one is
> part of opkg itself installed in
> /usr/bin/update-alternatives (it was added to opkg later)
> 
> and older update-alternatives-cworth installed in
> /usr/sbin/update-alternatives and used by default
> 
> But with busybox upgrade all symlinks are updated with knowledge only
> from /usr/lib/ipkg/alternatives because of that -cworth which shouldn't
> be part of image! (I'll push -cworth blacklist to our shr.conf but its
> too late for those who upgraded busybox yesterday).
> 
> Hopefully working work-around (haven't tested because I'm at work)
> 
> opkg remove update-alternatives-cworth
> opkg reinstall busybox
> 
> Please also check
> diff -rq /usr/lib/opkg/alternatives /usr/lib/ipkg/alternatives
> if there is some major difference, if yes reinstall packages where the
> alternatives provided by them are different in those 2 dirs.
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFLRzuPMkyGM64RGpERAhO/AJ96HpNyFXugDyZQM72YbijPg61k2ACePp/e
WiVNV4APMwMBJ/HCK3sof48=
=UpsU
-----END PGP SIGNATURE-----




  parent reply	other threads:[~2010-01-08 14:07 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-08 13:23 update-alternatives broken badly (by me :() Martin Jansa
2010-01-08 13:53 ` [PATCH] task-boot: use DISTRO_UPDATE_ALTERNATIVES instead of update-alternatives directly Martin Jansa
2010-01-08 14:02 ` update-alternatives broken badly (by me :() Holger Hans Peter Freyther
2010-01-08 14:07   ` Koen Kooi
2010-01-08 14:24   ` Martin Jansa
2010-01-08 14:05 ` Koen Kooi [this message]
2010-01-08 14:35   ` Martin Jansa
2010-01-08 15:47     ` [PATCH] update-alternatives-cworth: use /usr/lib/opkg/alternatives directory instead of /usr/lib/ipkg/alternatives Martin Jansa
2010-01-08 15:55     ` update-alternatives broken badly (by me :() Martin Jansa
2010-01-08 15:42   ` [PATCH] update-alternatives-cworth: use /usr/lib/opkg/alternatives directory instead of /usr/lib/ipkg/alternatives Martin Jansa
2010-01-08 18:32     ` Martin Jansa
2010-01-09 18:04       ` Martin Jansa
2010-01-12 22:21 ` update-alternatives broken badly (by me :() Martin Jansa
2010-01-13  0:17   ` [PATCH 1/3] opkg, update-alternatives-cworth: use /usr/lib/opkg/alternatives directory instead of /usr/lib/ipkg/alternatives Martin Jansa
2010-01-13  0:17     ` [PATCH 2/3] task-boot: use DISTRO_UPDATE_ALTERNATIVES instead of update-alternatives directly Martin Jansa
2010-01-13  0:17       ` [PATCH 3/3] busybox: bump INC_PR to force postinst script run on targets after u-a fixup Martin Jansa
2010-01-13  9:18     ` [PATCH 1/3] opkg, update-alternatives-cworth: use /usr/lib/opkg/alternatives directory instead of /usr/lib/ipkg/alternatives Paul Menzel
2010-01-13  9:28       ` Martin Jansa
2010-01-13  8:29   ` update-alternatives broken badly (by me :() Koen Kooi
2010-01-13 14:44     ` Martin Jansa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='hi7e2e$cda$1@ger.gmane.org' \
    --to=k.kooi@student.utwente.nl \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.