configure: Avoid nesting cat calls.

Nicolas Le Cam niko.lecam at gmail.com
Mon Feb 10 00:33:01 CST 2014


This fixes a crash when running configure inside proot :
configure: creating ./config.status
../../src/configure: xrealloc: ../bash/subst.c:5188: cannot allocate
2097152 bytes (5230592 bytes allocated)
configure: error: write failure creating ./config.status

-- 
Nicolas Le Cam
-------------- next part --------------
From b32167899c633dec39e926812f105b8631f34ba5 Mon Sep 17 00:00:00 2001
From: Nicolas Le Cam <niko.lecam at gmail.com>
Date: Mon, 10 Feb 2014 07:31:09 +0100
Subject: configure: Avoid nesting cat calls.

---
 configure.ac | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/configure.ac b/configure.ac
index de807d2..5232a28 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3453,9 +3453,7 @@ fi
 AC_CONFIG_COMMANDS([Makefile], [wine_fn_output_makefile Makefile],
 [wine_fn_output_makefile ()
 {
-    cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$[]1 && rm -f Make.tmp && return
-`cat $wine_rules_file`
-_WINE_EOF
+    cat Make.tmp $wine_rules_file >\$tmp/makefile && mv -f \$tmp/makefile \$[]1 && rm -f Make.tmp && return
     AS_ERROR([could not create Makefile])
 }])
 
-- 
1.8.5.3



More information about the wine-patches mailing list