[Freeciv-Dev] (PR#4238) autogen breaks with sed 4.x
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Debian 'sid' recently upgraded to sed 4.0.7. Now running autogen.sh gives:
[jdorje@debian:~/src/freeciv/freeciv]$ ./autogen.sh
+ checking for autoconf >= 2.52 ... sed: -e expression #1, char 21:
Invalid range end
./autogen.sh: line 84: [: : integer expression expected
./autogen.sh: line 86: [: : integer expression expected
found , ok.
+ checking for automake >= 1.4 ... sed: -e expression #1, char 21:
Invalid range end
./autogen.sh: line 84: [: : integer expression expected
./autogen.sh: line 86: [: : integer expression expected
found , ok.
+ checking for xgettext >= 0.10.36 ... sed: -e expression #1, char 21:
Invalid range end
./autogen.sh: line 84: [: : integer expression expected
./autogen.sh: line 86: [: : integer expression expected
found , ok.
+ checking for msgfmt >= 0.10.36 ... sed: -e expression #1, char 21:
Invalid range end
./autogen.sh: line 84: [: : integer expression expected
./autogen.sh: line 86: [: : integer expression expected
found , ok.
+ using new autoconf configuration (use --disable-autoconf2.52 to use old)
+ creating acinclude.m4
+ running aclocal ...
[...]
autogen works (I think), but gives these errors.
I believe the difference is that [A-z] is no longer supported as a
regular expression. I think the attached patch will fix this.
jason
Index: autogen.sh
===================================================================
RCS file: /home/freeciv/CVS/freeciv/autogen.sh,v
retrieving revision 1.11
diff -u -r1.11 autogen.sh
--- autogen.sh 2003/01/31 23:05:52 1.11
+++ autogen.sh 2003/05/14 13:37:53
@@ -70,7 +70,7 @@
return 1
}
# the following line is carefully crafted sed magic
- pkg_version=`$PACKAGE --version|head -n 1|sed 's/^[a-zA-z\.\ ()]*//;s/
.*$//'`
+ pkg_version=`$PACKAGE --version|head -n 1|sed 's/^[a-zA-Z\.\ ()]*//;s/
.*$//'`
debug "pkg_version $pkg_version"
pkg_major=`echo $pkg_version | cut -d. -f1`
pkg_minor=`echo $pkg_version | sed s/[-,a-z,A-Z].*// | cut -d. -f2`
- [Freeciv-Dev] (PR#4238) autogen breaks with sed 4.x,
Jason Short <=
- Message not available
|
|