java-sun dep loops

Przemyslaw Iskra sparky at pld-linux.org
Wed Dec 10 14:19:27 CET 2008


On Wed, Dec 10, 2008 at 10:36:08AM +0200, Elan Ruusamäe wrote:
> hmm. what to do here?
> 
> libmawt.so()(64bit) is provided by both packages,
> so they don't actually depend on each other in loop
> proves that i can uninstall  java-sun-jre-X11 without java-sun-jre being pulled down too.
> 
> moving headless to x11 package isn't proper either, as it doesn't link with x11 libs
> 
> dropping provides likely not good either, as programs may link with it
> (i have no samples to provide) and such deep library path makes it more suspicious anybody able to link with it at all
> 
> is there anything to change in rpm side?
> like if self package provides dependency don't go looking it elsewhere?
 
> error: LOOP:                                                                                                                                                  
> error: removing java-sun-jre-X11-1.6.0.11-1.x86_64 "Requires: java-sun-jre = 1.6.0.11-1" from tsort relations.                                                
> error:     java-sun-jre-X11-1.6.0.11-1.x86_64       Requires: java-sun-jre = 1.6.0.11-1                                                                       
> error: removing java-sun-jre-1.6.0.11-1.x86_64 "Requires(auto): libmawt.so()(64bit)" from tsort relations.                                                    
> error:     java-sun-jre-1.6.0.11-1.x86_64           Requires(auto): libmawt.so()(64bit)                                                                       
> error: LOOP:                                                                                                                                                  
> error: removing java-sun-jre-X11-1.6.0.10-5.x86_64 "Requires(auto): libmawt.so()(64bit)" from tsort relations.                                                
> error:     java-sun-jre-X11-1.6.0.10-5.x86_64       Requires(auto): libmawt.so()(64bit)                                                                       
> error: removing java-sun-jre-1.6.0.10-5.x86_64 "Requires: java-sun-jre = 1.6.0.10-5" from tsort relations.                                                    
> error:     java-sun-jre-1.6.0.10-5.x86_64           Requires: java-sun-jre = 1.6.0.10-5                                                                       
> Preparing...                ########################################### [100%]                                                                                
> Repackaging...


Removing libmawt.so* from java-sun-jre requires list should to the
trick, and it won't brake anything as -jre provides the library anyways.

But I think the proper way to solve this would be to teach rpm/poldek to
remove all the Requires which are provided by the same package before
starting sort procedure. Alternatively, do it at the sort time - start
looking for the provided dependancy in the package that requires it.
Or would it brake something ?

-- 
 ____  Sparky{PI] -- Przemyslaw _  ___  _  _  ........... LANG...Pl..Ca..Es..En
/____) ___  ___  _ _ || Iskra  |  | _ \| |  | : WWW........ppcrcd.pld-linux.org
\____\| -_)'___| ||^'||//\\// <   |  _/| |  | : JID......sparky<at>jabberes.org
(____/||   (_-_|_||  ||\\ ||   |_ |_|  |_| _| : Mail....sparky<at>pld-linux.org


More information about the pld-devel-en mailing list