zhengzkkai / opkg

Automatically exported from code.google.com/p/opkg
0 stars 0 forks source link

update-alternatives: Support change of link path during upgrade #113

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Quoting https://bugzilla.yoctoproject.org/show_bug.cgi?id=4836, dated 
2013-07-10:

> A few days ago, Martin pointed out an upgrade error of busybox.
> 
> '''
> update-alternatives: Error: cannot register alternative addgroup to
> /usr/sbin/addgroup since it is already registered to /bin/addgroup
> update-alternatives: Error: cannot register alternative adduser to
> /usr/sbin/adduser since it is already registered to /bin/adduser
> 
> '''
> 
> The real problem here is that opkg's update-alternatives has a simple 
assumption in its design, that is, the links for the same command should be the 
same.
> 
> Note that it's not unusual to create symlinks with update-alternatives in 
OE/Yocto. So my conclusion is opkg's update-alternatives should at least handle 
this situation, as it may indicate a package upgrade.
> 
> Then I explored the status of update-alternatives in OE and found the flaws 
stated above.
> 
> //Chen Qi

Original issue reported on code.google.com by paul.betafive on 18 Nov 2013 at 9:19