libtool-patches
[Top][All Lists]
Advanced

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

Fix all Mac OS X 10.1 Test Failures


From: Noah Misch
Subject: Fix all Mac OS X 10.1 Test Failures
Date: Wed, 23 Jun 2004 22:34:46 -0700
User-agent: Mutt/1.5.6i

This patch against CVS HEAD, in combination with the Autoconf patch I just
submitted to address@hidden and cc:-ed to address@hidden, fixes all
outstanding test failures on Mac OS X 10.1 with the (default) zsh in /bin/sh.

The spirit and nature of this patch is the same as that of the Autoconf patch,
so please consult that posting for detailed rationale.  This patch does what the
aforementioned patch does to configure scripts to (a) the libtool script and (b)
the test scripts themselves.

Note that the code blocks this patch inserts come straight from earlier work by
Peter O'Gorman in libtool.m4.  I just found that it was needed in more places.

If libtool starts failing for you on Mac OS X 10.0 or 10.1 in the future, you
are welcome to bug me, by the way.  I welcome feedback on this patch as well.

2004-06-24  Noah Misch  <address@hidden>

        * ltmain.in: Unset the zsh GLOB_SUBST option, which makes zsh
        handle backslash quoting poorly, before doing anything else.
        * tests/defs: Likewise.

Index: ltmain.in
===================================================================
RCS file: /cvsroot/libtool/libtool/ltmain.in,v
retrieving revision 1.398
diff -u -r1.398 ltmain.in
--- ltmain.in   21 Jun 2004 14:52:57 -0000      1.398
+++ ltmain.in   24 Jun 2004 04:51:16 -0000
@@ -24,6 +24,11 @@
 # configuration script generated by Autoconf, you may include it under
 # the same distribution terms that you use for the rest of that program.
 
+# See if we are running on zsh, and set the options which allow our
+# commands through without removal of \ escapes.
+if test -n "${ZSH_VERSION+set}" ; then
+  setopt NO_GLOB_SUBST
+fi
 
 basename="s,^.*/,,g"
 
Index: tests/defs
===================================================================
RCS file: /cvsroot/libtool/libtool/tests/defs,v
retrieving revision 1.9
diff -u -r1.9 defs
--- tests/defs  17 May 2004 17:42:44 -0000      1.9
+++ tests/defs  24 Jun 2004 04:51:18 -0000
@@ -3,6 +3,12 @@
 # Gord Matzigkeit <address@hidden>, 1996
 # Gary V. Vaughan <address@hidden>, 2003
 
+# See if we are running on zsh, and set the options which allow our
+# commands through without removal of \ escapes.
+if test -n "${ZSH_VERSION+set}" ; then
+  setopt NO_GLOB_SUBST
+fi
+
 # Check that srcdir is set to an absolute path.
 case "$srcdir" in
 /* | [A-Za-z]:\\*) ;;




reply via email to

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