Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 111353 - gentoo version check in libtool uses non-portable character classes
Summary: gentoo version check in libtool uses non-portable character classes
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Other
: High enhancement (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-03 05:17 UTC by Erik Månsson
Modified: 2005-11-03 18:33 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 Erik Månsson 2005-11-03 05:17:24 UTC
I have a cross platform project that I am testing on both a
"Linux ike 2.6.12-nitro5 #4 SMP Sat Sep 10 12:47:01 CEST 2005 i686 Intel(R)
"Pentium(R) 4 CPU 3.00GHz GenuineIntel GNU/Linux
and a
"SunOS login-9 5.8 Generic_117350-06 sun4u sparc SUNW,Ultra-5_10". I do the main
development on the linux box and every once in a while I make a package and test
it on the SunOS box. My problem is that the libtool version that is shipped with
gentoo (1.5.20) includes a "sanity check" to ensure ltmain.sh and libtool.m4
have same version number. The version number is extracted from ltmain.sh with:
grep '^[[:space:]]*VERSION=' ltmain.sh | sed -e 's|^[[:space:]]*VERSION=||'
but the sed version on the solaris box does not support [:space:] as a character
class and thus I get following error message:

*** [Gentoo] sanity check failed! ***
*** libtool.m4 and ltmain.sh have a version mismatch! ***
*** (libtool.m4 = 1.5.20, ltmain.sh = VERSION=1.5.20) ***

by instead using 
grep '^[[:space:]]*VERSION=' ltmain.sh | sed -e 's|^[ ]*VERSION=||'
the problem is solved.
Comment 1 SpanKY gentoo-dev 2005-11-03 05:45:21 UTC
i dont think we can use any character classes, be it with grep or sed

if we just rewrite it and put in the space/tab ourselves it should be
fine i think
Comment 2 SpanKY gentoo-dev 2005-11-03 18:33:26 UTC
fixed in 1.5.20-r1, thanks for reporting :)