Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 320231 - media-libs/libpng-1.2.43-r3 fails to install on IRIX: multilib.eclass get_libname error?
Summary: media-libs/libpng-1.2.43-r3 fails to install on IRIX: multilib.eclass get_lib...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All IRIX
: High major (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-17 17:24 UTC by Stuart Shelton
Modified: 2010-10-06 08:29 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stuart Shelton 2010-05-17 17:24:18 UTC
media-libs/libpng-1.2.43-r3 fails with:

>>> Install libpng-1.2.43-r3 into /usr/opt/gentoo/var/tmp/portage/media-libs/libpng-1.2.43-r3/image/opt/gentoo/ category media-libs
!!! newexe: .libs/libpng12.so.0.43.0 does not exist
 * ERROR: media-libs/libpng-1.2.43-r3 failed:
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  54:  Called call-ebuildshell 'src_install'
 *   environment, line 461:  Called src_install
 *   environment, line 2924:  Called die
 * The specific snippet of code:
 *       newexe .libs/libpng12$(get_libname 0.43.0) libpng12$(get_libname 0) || die

... because on IRIX the library name is 'libpng12.so.0.43':

$ cd ~/../var/tmp/portage/media-libs/libpng-1.2.43-r3/work/libpng-1.2.43/
$ ls -l .libs/libpng12*
lrwxr-xr-x 1 portage portage   14 2010-05-17 18:07 .libs/libpng12.la -> ../libpng12.la
-rw-r--r-- 1 portage portage  990 2010-05-17 18:07 .libs/libpng12.lai
lrwxr-xr-x 1 portage portage   16 2010-05-17 18:07 .libs/libpng12.so -> libpng12.so.0.43*
lrwxr-xr-x 1 portage portage   16 2010-05-17 18:07 .libs/libpng12.so.0 -> libpng12.so.0.43*
-rwxr-xr-x 1 portage portage 207K 2010-05-17 18:07 .libs/libpng12.so.0.43*
-rw-r--r-- 1 portage portage 9.8K 2010-05-17 18:07 .libs/libpng12_la-pngerror.o
-rw-r--r-- 1 portage portage  17K 2010-05-17 18:07 .libs/libpng12_la-pngget.o
-rw-r--r-- 1 portage portage 8.0K 2010-05-17 18:07 .libs/libpng12_la-pngmem.o
-rw-r--r-- 1 portage portage  34K 2010-05-17 18:07 .libs/libpng12_la-pngpread.o
-rw-r--r-- 1 portage portage  32K 2010-05-17 18:07 .libs/libpng12_la-pngread.o
-rw-r--r-- 1 portage portage 3.9K 2010-05-17 18:07 .libs/libpng12_la-pngrio.o
-rw-r--r-- 1 portage portage  70K 2010-05-17 18:07 .libs/libpng12_la-pngrtran.o
-rw-r--r-- 1 portage portage  66K 2010-05-17 18:07 .libs/libpng12_la-pngrutil.o
-rw-r--r-- 1 portage portage  25K 2010-05-17 18:07 .libs/libpng12_la-pngset.o
-rw-r--r-- 1 portage portage  13K 2010-05-17 18:07 .libs/libpng12_la-pngtrans.o
-rw-r--r-- 1 portage portage 4.6K 2010-05-17 18:07 .libs/libpng12_la-pngwio.o
-rw-r--r-- 1 portage portage  31K 2010-05-17 18:07 .libs/libpng12_la-pngwrite.o
-rw-r--r-- 1 portage portage 9.5K 2010-05-17 18:07 .libs/libpng12_la-pngwtran.o
-rw-r--r-- 1 portage portage  56K 2010-05-17 18:07 .libs/libpng12_la-pngwutil.o
-rw-r--r-- 1 portage portage  24K 2010-05-17 18:07 .libs/libpng12_la-png.o

This appears to be because most (but not all*) packages install libraries with version numbers matching the two hardcoded major- and minor- version numbers.

In any case, $(get_libname ...) is returning the wrong thing - surely an eclass bug?

* Actually, of 212 actual DSOs (e.g. binaries, excluding symlinks) installed on this system , only 4 have three-part version numbers.  All 208 others stick to the SGI numbering scheme of '<name>.so.<major>.<minor>'.  The other 4 libraries not matching this are libcrypto(.so.0.9.8), libperl(.so.5.10.1), libslang(.so.2.2.2), and libssl(.so.0.9.8).  Therefore, it strikes me that get_libname should be dropping version numbers following (and including) the second full-stop/period on IRIX.
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2010-07-08 03:19:15 UTC
actually this was fixed in portage for 1.2.44... if prefix overlay is up-to-date, it should just work for you
Comment 2 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-07-08 03:25:45 UTC
Stuart, do you actually need the binary compat package? I didn't port 1.2.4* to prefix when I moved libpng to gx86.
Comment 3 Stuart Shelton 2010-07-08 16:46:18 UTC
(In reply to comment #2)
> Stuart, do you actually need the binary compat package? I didn't port 1.2.4* to
> prefix when I moved libpng to gx86.
> 

Sorry, I'm not following - which is the binary compat package?  libpng itself?  If it's not generally needed, what package does now provide the png library?

I'm giving libpng-1.2.44 a try right now.
Comment 4 Stuart Shelton 2010-07-08 16:52:11 UTC
Okay, I see what's going on - I hadn't noticed the 1.4.x versions.

I'm *now* trying 1.4.3, to check that's okay.  You're right, I probably don't need the 1.2.x packages at all...
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2010-10-06 08:29:37 UTC
(In reply to comment #4)
> Okay, I see what's going on - I hadn't noticed the 1.4.x versions.
> 
> I'm *now* trying 1.4.3, to check that's okay.  You're right, I probably don't
> need the 1.2.x packages at all...
> 

Closing then, reopen if 1.4.3 or 1.4.4 is still a problem