Author: qboosh                       Date: Sun Mar 23 01:42:00 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- fix arguments passing in execute mode

---- Files affected:
SOURCES:
   libtool-execute-mode.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/libtool-execute-mode.patch
diff -u /dev/null SOURCES/libtool-execute-mode.patch:1.1
--- /dev/null   Sun Mar 23 02:42:00 2008
+++ SOURCES/libtool-execute-mode.patch  Sun Mar 23 02:41:55 2008
@@ -0,0 +1,48 @@
+--- libtool-2.2/libltdl/config/ltmain.m4sh     2008/01/28 15:49:46     1.97
++++ libtool-2.2/libltdl/config/ltmain.m4sh     2008/03/04 21:25:48     1.98
+@@ -1694,12 +1694,14 @@
+       # Do a test to see if this is really a libtool program.
+       if func_ltwrapper_script_p "$file"; then
+         func_source "$file"
++        # Transform arg to wrapped name.
++        file="$progdir/$program"
+       elif func_ltwrapper_executable_p "$file"; then
+         func_ltwrapper_scriptname "$file"
+         func_source "$func_ltwrapper_scriptname_result"
++        # Transform arg to wrapped name.
++        file="$progdir/$program"
+       fi
+-      # Transform arg to wrapped name.
+-      file="$progdir/$program"
+       ;;
+       esac
+       # Quote arguments (to preserve shell metacharacters).
+@@ -2468,7 +2470,7 @@
+         ;;
+       esac
+       $ECHO "\
+-      \$ECHO \"\$0: cannot exec \$program \$*\"
++      \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
+       exit 1
+     fi
+   else
+--- libtool-2.2/libltdl/config/ltmain.m4sh     2008/03/04 21:25:48     1.98
++++ libtool-2.2/libltdl/config/ltmain.m4sh     2008/03/05 20:14:43     1.99
+@@ -648,7 +648,7 @@
+ func_lalib_unsafe_p ()
+ {
+     lalib_p=no
+-    if test -r "$1" && exec 5<&1 <"$1"; then
++    if test -r "$1" && exec 5<&0 <"$1"; then
+       for lalib_p_l in 1 2 3 4
+       do
+           read lalib_p_line
+@@ -656,7 +656,7 @@
+               \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;;
+           esac
+       done
+-      exec 1<&5 5<&-
++      exec 0<&5 5<&-
+     fi
+     test "$lalib_p" = yes
+ }
================================================================
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to