I just installed media-video/tsmuxer-1.10.6-r1 and i get this when i tried to load it : "tsMuxerGUI: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory" I have libpng installed but it's media-libs/libpng-1.4.3. As an temporary fix i did: cd /usr/lib/ ln -s libpng14.so.14.3.0 libpng12.so.0 But this is not really a good solution. Reproducible: Always Steps to Reproduce: 1.Have =media-libs/libpng-1.4.3 installed. 2.Install =media-video/tsmuxer-1.10.6-r1. 3.Load it.
indeed. tsMuxerR is a 32-Bit closed-source software. Are you running x86 or amd64? When installing on amd64, we use app-emulation/emul-linux-x86-baselibs, otherwise we just use the system-libs. Since app-emulation/emul-linux-x86-baselibs includes both, libpng12 and libpng14, you won't get an error. libpng seems to be slotted, so I guess, we just need a dependency to media-libs/libpng:1.2 to fix this issue.
wuahh, it's even worse: ~# ldd /opt/bin/tsMuxerGUI | fgrep png libpng12.so.0 => /usr/lib32/libpng12.so.0 (0xf6d5b000) libpng14.so.14 => /usr/lib32/libpng14.so.14 (0xf64d4000) it links to both. I guess, the libpng14 results from linking against Qt4, the libpng12 from some other linking. Ok, I will add the following dependencies to be on the safe side: media-libs/libpng:0 media-libs/libpng:1.2
(In reply to comment #2) > wuahh, it's even worse: > > ~# ldd /opt/bin/tsMuxerGUI | fgrep png > libpng12.so.0 => /usr/lib32/libpng12.so.0 (0xf6d5b000) > libpng14.so.14 => /usr/lib32/libpng14.so.14 (0xf64d4000) > > it links to both. I guess, the libpng14 results from linking against Qt4, the > libpng12 from some other linking. Ok, I will add the following dependencies to > be on the safe side: > > media-libs/libpng:0 > media-libs/libpng:1.2 > That looks like invalid use of `ldd` since it's printing also indirect dependencies. I've explained it here, bug 330169. Please don't do anything just "to be on safe side", do it because it's needed (or don't do) ;-)
ok, then tell me how to solve it. As you can see, tsMuxerGUI links against both versions of libpng. Ok, libpng 1.4 might be an indirect dependency because of Qt4, which is already a dependency. So I will add just media-libs/libpng:1.2 dependency for now, to solve this bug. Looks valid, because: ~# objdump -p /opt/bin/tsMuxerGUI [..] NEEDED libpng12.so.0 [..]
ok, dependency added to current ebuild.