Bug 8344 - update-alternatives: Support change of link path during upgrade (old issue #113)
Summary: update-alternatives: Support change of link path during upgrade (old issue #113)
Status: RESOLVED FIXED
Alias: None
Product: opkg
Classification: Yocto Project Subprojects
Component: opkg (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Undecided normal
Target Milestone: 0.3.6
Assignee: Alejandro del Castillo
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2015-09-20 22:52 UTC by Alejandro del Castillo
Modified: 2018-02-01 18:00 UTC (History)
0 users

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alejandro del Castillo 2015-09-20 22:52:03 UTC
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

Originally reported by paul.betafive, Nov 18, 2013
-----------------------------------------------------------------------------
Comment 1 Alejandro del Castillo 2018-02-01 18:00:16 UTC
fixed on commit fcb26339000021eb9bb711aa264247aebcfdd4ae