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

Bug 185536

Summary: sys-devel/libtool cannot install to a directory not ending in /usr/lib
Product: Gentoo Linux Reporter: Marijn Schouten (RETIRED) <hkbst>
Component: [OLD] Core systemAssignee: Marijn Schouten (RETIRED) <hkbst>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 182898    
Attachments: drscheme-370.ebuild
drscheme-370/temp/build.log

Description Marijn Schouten (RETIRED) gentoo-dev 2007-07-16 14:23:21 UTC
these are lines from the build of drscheme-370 which I'm working on:

cd ..; /usr/bin/libtool --mode=install cp mred/libmred3m.la "/usr/lib64"
libtool: install: error: cannot install `mred/libmred3m.la' to a directory not ending in /usr/lib
Comment 1 Marijn Schouten (RETIRED) gentoo-dev 2007-07-16 14:25:12 UTC
Created attachment 125023 [details]
drscheme-370.ebuild

to reproduce run:
ebuild drscheme-370.ebuild digest clean install
Comment 2 Marijn Schouten (RETIRED) gentoo-dev 2007-07-16 14:25:38 UTC
Created attachment 125025 [details]
drscheme-370/temp/build.log
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-07-16 14:30:20 UTC
This is a feature, drscheme is broken if it tries to install .la files outside of $libdir.
Comment 4 Marijn Schouten (RETIRED) gentoo-dev 2007-07-16 14:35:30 UTC
(In reply to comment #3)
> This is a feature, drscheme is broken if it tries to install .la files
> outside of $libdir.

Except that that isn't what is happening. It tries to install to $libdir specified by --libdir=/usr/lib64 to configure, but fails apparently because it does't like the name.
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2007-07-16 14:47:26 UTC
Because you've commented out this thing? :P

<snip>
#	sed "s:-rpath ${absprefix}/lib:-rpath ${absprefix}/$(get_libdir):g" -i configure
</snip>
Comment 6 Marijn Schouten (RETIRED) gentoo-dev 2007-07-16 14:59:48 UTC
(In reply to comment #5)
> Because you've commented out this thing? :P
> 
> <snip>
> #       sed "s:-rpath ${absprefix}/lib:-rpath ${absprefix}/$(get_libdir):g" -i
> configure
> </snip>

no it fails in exactly the same way with that uncommented.

Comment 7 SpanKY gentoo-dev 2007-07-17 06:27:26 UTC
ignoring the fact drscheme should be bundling libtool with it and not using the host's libtool, i think the bug is in drscheme ...

notice how it's trying to install into /usr/lib64 and not ${D}/usr/lib64 ... looks like $(DESTDIR) is missing in that second part:
mred/Makefile.in:       cd ..; $(ICP) mred/libmred.@LIBSFX@ "$(DESTDIR)$(libdir)"
mred/Makefile.in:       cd ..; $(ICP) mred/libmred3m.@LIBSFX@ "$(libdir)"

the important part though is the .la file itself ... it states libdir=/usr/lib instead of libdir=/usr/lib64 which is why you're getting this error ... i'd look into why that is
Comment 8 Marijn Schouten (RETIRED) gentoo-dev 2007-07-19 12:42:31 UTC
Alright, marking this invalid and continuing with internal libtool.