Bug 8344

Summary: update-alternatives: Support change of link path during upgrade (old issue #113)
Product: [Yocto Project Subprojects] opkg Reporter: Alejandro del Castillo <alejandro.delcastillo>
Component: opkgAssignee: Alejandro del Castillo <alejandro.delcastillo>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Undecided    
Version: unspecified   
Target Milestone: 0.3.6   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

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