Paul Keusemann writes:
I just finished building XEmacs-21.5.31 and tried to submit a build
report which failed with the following error message:
Wrong-type-argument: stringp, nil
I believe this is due to changes in the output format of autoconf,
which break the sed and Perl scripts that filter configuration
parameters into $build/lib-src/config.values.
I tried to fix it but my autoconf/sed-foo seem to be too weak to get
it right. The Perl code (lib-src/config.values.sh [sic]) seems to be
working with the second diff below, though.
The right thing to do would be to somehow do this via autoconf macros,
but I have no clue about that.
Non-working patch follows:
diff -r f2881cb841b4 configure.ac
--- a/configure.ac Tue Apr 26 23:41:47 2011 +0200
+++ b/configure.ac Tue May 10 00:22:41 2011 +0900
@@ -6034,9 +6034,8 @@
dnl Append AC_DEFINE information to lib-src/config.values
dnl (AC_SUBST information is already there (see config.values.sh).
sed < config.status >> lib-src/config.values \
- -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
- -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
+ -e '/^S\[".*"]=".*"$/!d' \
+ -e 's/^S\["\(.*\)"]="\(.*\)"/\1 \2/' \
-e 's/^\([[^ ]]*\) $/\1 ""/' \
-e 's/ 1$/ t/'
diff -r f2881cb841b4 lib-src/config.values.sh
--- a/lib-src/config.values.sh Tue Apr 26 23:41:47 2011 +0200
+++ b/lib-src/config.values.sh Tue May 10 00:22:41 2011 +0900
@@ -80,7 +80,7 @@
my %done;
for my $var (sort { $a cmp $b }
$configure_contents =~
- /^s\,\@([A-Za-z0-9_]+)\@\,\$[A-Za-z0-9_]+\,;t t/mg) {
+ /^s\&\@([A-Za-z0-9_]+)\@\&\$[A-Za-z0-9_]+\&;t t/mg) {
$new_cvi_contents .= "$var \"\@$var\@\"\n" unless exists
$done{$var};
$done{$var} = 1;
}
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta