bug-autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] fix test suite failures when using mksh as /bin/sh


From: Arkadiusz Miśkiewicz
Subject: [PATCH] fix test suite failures when using mksh as /bin/sh
Date: Tue, 15 Oct 2013 14:37:18 +0200
User-agent: KMail/1.13.7 (Linux/3.11.5; KDE/4.11.1; x86_64; ; )

Hello.

Patch from Thorsten Glaser that fixes autoconf 2.69 test
suite failures when using with mksh [1] as /bin/sh.

Failures like:
233: AC_CONFIG_COMMANDS with temporary directory     FAILED (torture.at:35)

FSF has required papperwork from him.

1. https://www.mirbsd.org/mksh.htm

--- tests/local.at~     2013-10-15 13:49:09.403970117 +0200
+++ tests/local.at      2013-10-15 13:50:05.868721901 +0200
@@ -274,7 +274,7 @@ m4_define([AT_CHECK_CONFIGURE],
 #   Set by AC_OUTPUT.
 # - AC_SUBST'ed variables
 #   (FIXME: Generate a list of these automatically.)
-# - _|@|.[*#?$].|argv|ARGC|LINENO|OLDPWD|PIPESTATUS|RANDOM|SECONDS
+# - 
_|@|.[*#?$].|argv|ARGC|LINENO|OLDPWD|PIPESTATUS|RANDOM|SECONDS|BASHPID|EPOCHREALTIME
 #   Some variables some shells use and change.
 #   `.[*#?$].' catches `$#' etc. which are displayed like this:
 #      | '!'=18186
@@ -324,7 +324,7 @@ if test -f state-env.before && test -f s
       [AWK|LEX|LEXLIB|LEX_OUTPUT_ROOT|LN_S|M4|MKDIR_P|RANLIB|SET_MAKE|YACC],
       [GREP|[EF]GREP|SED],
       address@hidden|.[*#?$].],
-      [argv|ARGC|LINENO|OLDPWD|PIPESTATUS|RANDOM|SECONDS]))=' \
+      
[argv|ARGC|LINENO|OLDPWD|PIPESTATUS|RANDOM|SECONDS|BASHPID|EPOCHREALTIME]))=' \
      $act_file ||
        test $? -eq 1 || echo failed >&2
     ) 2>stderr-$act_file |
@@ -351,11 +351,13 @@ fi
 # - ^ac_, excluding ^ac_cv_
 #   Autoconf's private shell name space.
 # - PPID [bash, zsh]
-# - RANDOM [zsh]
+# - RANDOM [zsh, mksh]
 # - SECONDS [zsh]
 # - '$' [zsh]
 # - argv [zsh]
 # - ARGC [zsh]
+# - BASHPID [bash, mksh]
+# - EPOCHREALTIME [zsh, mksh]
 #
 # Furthermore, it is okay for a non-cache variable initialized to empty in one
 # run to be unset in another run.  This happens when, for example, cache update
@@ -378,6 +380,8 @@ do
        /^PPID=/ d
        /^RANDOM=/ d
        /^SECONDS=/ d
+       /^BASHPID=/ d
+       /^EPOCHREALTIME=/ d
        /'\'\\\$\''=/ d
        /^argv=/ d
        /^ARGC=/ d



-- 
Arkadiusz Miśkiewicz, arekm / maven.pl



reply via email to

[Prev in Thread] Current Thread [Next in Thread]