Gentoo Archives: gentoo-dev

From: Yannick Koehler <yannick.koehler@××××××××.com>
To: gentoo-dev@g.o, Martin Schlemmer <azarah@g.o>
Subject: Re: [gentoo-dev] automake wrapper bug
Date: Mon, 22 Apr 2002 13:48:19
Message-Id: 200204221448.18017.yannick.koehler@colubris.com
In Reply to: Re: [gentoo-dev] automake wrapper bug by Martin Schlemmer
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 On April 22, 2002 02:35 pm, Martin Schlemmer wrote:
5 > On Sat, 2002-04-20 at 16:50, Yannick Koehler wrote:
6 > > Hello,
7 > >
8 > > Actually I found my problem. The way the aclocal.m4 is generated on my
9 > > machine is like this
10 > >
11 > > AC_PREREQ([2.13])
12 > >
13 > > Which the am-wrapper incorrectly parse as being version '[2.' instead of
14 > > 2.1 like it should have been.
15 > >
16 > > So there's a bug in this line which doesn't take into account square
17 > >
18 > > brackets:
19 > > || (cat_('aclocal.m4') =~ /^\s*AC_PREREQ\(([^\)]{3})[^\)]*\)/m ? $1 : '')
20 > > || gt
21 > >
22 > > '2.1'
23 >
24 > I think you should verify this. You see, if the wrapper
25 > cannot extract 2.1 it should fall back to automake-1.4.
26
27 I found what was happening but didn't found the proper regexp to replace the
28 existing one with as I'm far away from being an expert at Regexp.
29
30 Right now if you debug the output of
31
32 (cat_('aclocal.m4') =~ /^\s*AC_PREREQ\(([^\)]{3})[^\)]*\)/m ? $1 : '')
33
34 On a file that contain AC_PREREQ([2.13]) you get
35
36 [2.
37
38 That's what I got when I did a print of the variable. This then make gt '2.1'
39 true (I don't know why).
40
41 - --
42
43 Yannick Koehler
44
45 -----BEGIN PGP SIGNATURE-----
46 Version: GnuPG v1.0.6 (GNU/Linux)
47 Comment: For info see http://www.gnupg.org
48
49 iD8DBQE8xFrwfuKOJNEyL1URAl53AJ9d5ddMgc5JsreT3hvawwC1jh5MMQCeNvWW
50 mCB3Sc+sQbgqDBJcFKuRuuk=
51 =EPfb
52 -----END PGP SIGNATURE-----