Bug 5219 - Problem updating vde2 from Mageia 1 to Cauldron
Summary: Problem updating vde2 from Mageia 1 to Cauldron
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Michael Scherer
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 3342
  Show dependency treegraph
 
Reported: 2012-04-04 01:28 CEST by Nicolas Vigier
Modified: 2012-04-28 12:17 CEST (History)
1 user (show)

See Also:
Source RPM: vde2
CVE:
Status comment:


Attachments

Description Nicolas Vigier 2012-04-04 01:28:51 CEST
When upgrading from Mageia 1 to Cauldron, I have this error :

Installation failed:    file /usr/lib64/libvdemgmt.so.0.0.1 from install of lib64vde3-2.3.2-2.mga2.x86_64 conflicts with file from package lib64vde2-2.2.2-5.1.mga1.x86_64
        file /usr/lib64/libvdesnmp.so.0.0.1 from install of lib64vde3-2.3.2-2.mga2.x86_64 conflicts with file from package lib64vde2-2.2.2-5.1.mga1.x86_64

So I think some obsoletes are missing in lib64vde3, or the package should be split with one package for each library.
Manuel Hiebel 2012-04-04 01:50:35 CEST

Blocks: (none) => 3342

Comment 1 Funda Wang 2012-04-07 06:12:44 CEST
Should be fixed in latest vde, I've splitted the libs.

Status: NEW => RESOLVED
CC: (none) => fundawang
Resolution: (none) => FIXED

Comment 2 Michael Scherer 2012-04-07 09:19:57 CEST
Splitting lib for splitting doesn't make sense. I will revert and add obsoletes.

Status: RESOLVED => REOPENED
Resolution: FIXED => (none)

Comment 3 Nicolas Vigier 2012-04-07 11:04:35 CEST
It's not splitting for splitting, it's splitting for fixing upgrade problems with libs with different major.

And that's also what is said in policy :
https://wiki.mageia.org/en/Libraries_policy#Special_cases

"It is not necessary to split each library in separate packages: if a package contains several libraries, the name would be built from the main library of the package. If there are problems keeping libraries in the same package (e.g. their major may differ), the package should be split."
Comment 4 Michael Scherer 2012-04-07 11:34:24 CEST
The previous commit was done without looking at the inter packages requires.

All packages using libvde have a requires on libvdeplug.so.3, so installing qemu would just pull 1 library and not the 3 others one, that's too late in the mageia 2 release cycle to do proper testing for such a change on qemu, xen. 

Also, splitting add small overhead on various levels of the dependency resolution :
- it add more headers in hdlist
- it add one item in the structure that need to be looped over by urpmi
 ( looped for looking for provides, but also looped as a package that need to have his dependency fullfilled ). 

And if the goal is to split library and then have 1 single rpm that requires everything else, it will just add overhead to the system without any notable changes, except added complexity. 

Hence I prefer the Obsoletes solution, because that's the safest fix and the one who add less problem.
Comment 5 Funda Wang 2012-04-28 12:17:47 CEST
Should be fixed in latest vde2 already

Status: REOPENED => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.