Gentoo Archives: gentoo-dev

From: erik.nolf@×××××.be
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] sanity checking libtool versions & portability
Date: Fri, 23 Dec 2005 14:34:59
Message-Id: Pine.LNX.4.44.0512231337070.727-100000@sandaal.UGent.be
1 Hello,
2
3 We recently switched development platform from RedHat/Fedora to Gentoo.
4 Great you'd say. However, now our users (most notably on Solaris) complain
5 that our small utility's "./configure" bails out with the dreadful message:
6
7 *** [Gentoo] sanity check failed! ***
8 *** libtool.m4 and ltmain.sh have a version mismatch! ***
9 *** (libtool.m4 = 1.5.20, ltmain.sh = ) ***
10
11 Please run: ...
12
13 When in fact there is no mismatch. It seems Solaris regular "grep" or "sed" do
14 not handle "[[:space:]]" syntax used in libtool.m4's _LT_VERSION_CHECK macro.
15
16 gentoo_ltmain_version=`grep '^[[:space:]]*VERSION=' $ltmain | sed -e...
17
18 In other words, it breaks portability. And let this be the one thing people
19 expect from using GNU's ubiquitous autotools. Our comments follow:
20
21 a) wouldn't a '^VERSION=' be sufficient?
22
23 (strict but portable, at least we patched our libtool.m4 this way)
24
25 b) keep syntax, checks needed for proper grep/sed
26
27 (too elaborated)
28
29 c) follow advice on <http://www.mail-archive.com/libtool@×××.org/msg08172.html>
30
31 (func_check_version_match sounds neat, don't know how to use yet ;-)
32
33 Thanks for reading. If one considers to implement c) we 'll be eager to help.
34 After all, we appreciate Gentoo very much.
35
36 Greetings,
37
38 Erik
39
40
41
42 --
43 gentoo-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-dev] sanity checking libtool versions & portability Mike Frysinger <vapier@g.o>