Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 491432

Summary: media-libs/libpng-1.5.17-r15 should install a libpng15.so symlink
Product: Gentoo Linux Reporter: Rodolphe Rocca <rodolphe.rocca>
Component: [OLD] Core systemAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Rodolphe Rocca 2013-11-16 18:46:26 UTC
libpng-1.5.17-r15 does not create the /usr/lib64/libpng15.so symlink ; it only installs /usr/lib64/libpng15.so.15. 

$ qlist libpng:1.5 | grep 'libpng15.so$'
<nothing>

The consequence is that when a package dependends on libpng:1.5, libtool does not find the library. For instance, building gnome-base/libbonoboui fails with :

make[1]: Leaving directory `/var/tmp/paludis/gnome-base-libbonoboui-2.24.5/work/libbonoboui-2.24.5'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lpng15
collect2: error: ld returned 1 exit status
make[2]: *** [libbonoboui-2.la] Error 1

Please modify the libpng ebuild to create the symlink.

Note : libpng-1.6.6 creates the approriate symlink. :

$ qlist libpng:0/16 | grep 'libpng16.so$'
/usr/lib64/libpng16.so



Reproducible: Always

Steps to Reproduce:
1. emerge libpng-1.5.17-r15
2. emerge libbonoboui-2.24.5
3.
Actual Results:  
Missing symlink, emerge libbonoboui fails.

Expected Results:  
Symlink installed.
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2013-11-18 08:51:20 UTC
nope. if that symlink had existed in your case, it would have caused libpng16 headers to be used and then it would have tried to link against older libpng due to broken libtool archives in your system (.la files)
which would have made things even worse

so no, the symlink is NOT the answer, fixing the broken .la files is

*** This bug has been marked as a duplicate of bug 319101 ***
Comment 2 Rodolphe Rocca 2013-11-18 11:49:42 UTC
Oh, yes you are right. I had a few broken la files and a few orphaned ones too.
I've cleaned up that mess and everything now emerges as expected.
Thank you Samuli and sorry for the noise.