Bug in subversion sed usage inside configure (Solaris)
From: Rainer Jung <rainer.jung_at_kippdata.de>
Date: Thu, 6 Aug 2015 12:13:07 +0200
This has been observed for Subversion 1.9.0, but visual inspection shows
Subversion 1.9.0 uses the following sed command in configure:
$SED -e 's@^.*/\([0-9.]*\)\(.*$\)@\1@ ; 1q'
On Solaris there are two sed incarnations installed by default,
sed: command garbled: s@^.*/\([0-9.]*\)\(.*$\)@\1@ ; 1q
The reasons is the space before "; 1q". Removing it fixes the "garbled".
Server version: Apache/2.4.4 (Unix)
instead of the expected
2.4.4
The reason for this failure is the "$" character in the sed command
I suggest to use the following easier pattern instead, which would also
$SED -e 's@.*/\([0-9.]*\).*@\1@; 1q'
Motivation:
- Space character before ";" is not needed and harmful at least on Solaris
- Caret "^" and Dollar sign "$" before resp. after ".*" is implicit and
- The second capture "\(...\)" is not used so can be removed
This is the suggested patch for 1.9 head:
--- build/ac-macros/apache.m4 2015-07-27 02:23:40.000000000 +0200
Regards,
Rainer
|
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.