autoconf-patches
[Top][All Lists]
Advanced

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

Patch for autoconf-2.59


From: Stewart Andreason
Subject: Patch for autoconf-2.59
Date: Fri, 08 Oct 2004 12:00:46 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040925

This patch eliminates all errors reported by "make check" on my system.

-- Steven Andreason
   Help everyone!!!  Just never expect anything back...
diff -ru old/autoconf-2.59/bin/autoreconf.in new/autoconf-2.59/bin/autoreconf.in
--- old/autoconf-2.59/bin/autoreconf.in Fri Oct  3 00:31:23 2003
+++ new/autoconf-2.59/bin/autoreconf.in Fri Oct  8 09:39:05 2004
@@ -486,7 +486,7 @@
   if (defined $aux_dir && ! -d $aux_dir)
     {
       verb "$configure_ac: creating directory $aux_dir";
-      mkdir $aux_dir
+      mkdir($aux_dir,0777)
        or error "cannot create $aux_dir: $!";
     }
 
diff -ru old/autoconf-2.59/lib/Autom4te/General.pm 
new/autoconf-2.59/lib/Autom4te/General.pm
--- old/autoconf-2.59/lib/Autom4te/General.pm   Thu Aug 21 10:45:30 2003
+++ new/autoconf-2.59/lib/Autom4te/General.pm   Fri Oct  8 11:21:38 2004
@@ -166,6 +166,7 @@
 # ---
 sub END
 {
+  my ($pEnd);
   # $? contains the exit status we will return.
   # It was set using one of the following ways:
   #
@@ -188,8 +189,11 @@
   # from calls to die when `$! = n'.  It's not big deal because
   # we only call `exit (0)' or `exit (1)'.)
 
+  $pEnd=$?;
   if (!$debug && defined $tmp && -d $tmp)
     {
+#  NOTE TO MAINTAINERS:  On some versions of PERL, the <*> construct works by
+#   invoking the shell to do the work; this overwrites $? !
       if (<$tmp/*>)
        {
          if (! unlink <$tmp/*>)
@@ -206,6 +210,8 @@
          return;
        }
     }
+
+  $? = $pEnd;
 
   # This is required if the code might send any output to stdout
   # E.g., even --version or --help.  So it's best to do it unconditionally.

reply via email to

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