Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

wrong regular expressions in the bootstrap script

(1/3) > >>

SharkCZ:
I have problems when compiling CB on Fedora Development which contains autoconf 2.61. It ends with

+ ./bootstrap
Autoconf 2.50 or above is required. Aborting build...

The reason is a wrong regular expression when checking for the version. The current expression '1.*|2.[0-4]' checks for the following strings
- "1" and zero!!! or more occurences of any character => 2.61 has a match
- "2" and any character and a number between 0 and 4
A point must be checked with '\.' and not with '.'

The secure variant could be '1\.[0-9]+|2\.[0-4]', which will check for version 1.x and 2.0 till 2.4. Similar expression are needed for automake (1\.[0-6]) and libtool (1\.[0-3]) checks.

afb:
Fixed, revision 3275. Thanks for catching this!

SharkCZ:
Automake 1.10 was born one month ago and the current check is wrong and the build is crashing on Fedora Core Development. The expression must be updated again :-)
I cannot find out a positive check that will do >= 1.7, so easier could be a negative one "egrep -v '1\.[7-9]|1\.[1-9][0-9]'". Hopefully is this correct.

afb:
Fixed, revision 3310. Added a $, to match 1.1 but not 1.10

SharkCZ:
So you expect the version string is on the end of line. That is a variant too.

Navigation

[0] Message Index

[#] Next page

Go to full version