Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 77842 - libtool-1.5.x multi-OS issue. (invalid bash-ism!)
Summary: libtool-1.5.x multi-OS issue. (invalid bash-ism!)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High major (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-13 07:57 UTC by Brad House
Modified: 2005-01-14 16:16 UTC (History)
0 users

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 Brad House 2005-01-13 07:57:52 UTC
The 
files/1.5.2/libtool-1.5-filter-host-tags.patch
and
files/1.5.5/libtool-1.5-filter-host-tags.patch
contain a line like this:
trimedcc="${CC/${host}-}"
That is totally invalid for other platforms that don't use
BASH as their default shell (this fails on FreeBSD in particular).
Please modify it to use
trimmedcc=`echo ${CC} | $SED -e "s/${host}-//g"`
instead.  

To describe the situation, if you run autoconf/automake/libtoolize
on a package for distribution, and an end-user downloads it to compile
and install, the compilation will fail with something like this:
./libtool: 586: Syntax error: Bad substitution
gmake[1]: *** [libmonetra_cdparsing.lo] Error 1
gmake[1]: Leaving directory `/data/crypt/jedgar/ports/libmcve/work/libmonetra-4.2.2'
gmake: *** [all] Error 2
*** Error code 2

-Brad
Comment 1 Brad House 2005-01-13 07:59:10 UTC
note that should be
trimedcc=`echo ${CC} | $SED -e "s/${host}-//g"`

I typed to many m's in the patches spelling of 'trimed'.

-Brad
Comment 2 SpanKY gentoo-dev 2005-01-13 09:01:57 UTC
that code really doesnt matter, it's a fall back routine that's rarely reached (and in fact, never reached if you use up-to-date automake)
Comment 3 Brad House 2005-01-13 09:12:01 UTC
Well, it was reached on FreeBSD, and it was totally autotooled on a
100% up-to-date Gentoo ~x86 box. Anyhow, a basism shouldn't exist
there, so please fix if possible.

brad@brad ~ $ autoconf --version
autoconf (GNU Autoconf) 2.59
Written by David J. MacKenzie and Akim Demaille.

brad@brad ~ $ automake --version
automake (GNU automake) 1.9.3
Written by Tom Tromey <tromey@redhat.com>.

brad@brad ~ $ libtool --version
ltmain.sh (GNU libtool) 1.5.10 (1.1220.2.131 2004/09/19 12:46:56)
Comment 4 SpanKY gentoo-dev 2005-01-14 16:16:46 UTC
i wasnt implying i wasnt going to fix it, just that it shouldnt be a big deal

fixed in cvs