Blame SOURCES/libtool-2.4.2-tar-no-owner.patch

833a7c
diff --git a/libtoolize.in b/libtoolize.in
833a7c
index 2bce172..16b764d 100644
833a7c
--- a/libtoolize.in
833a7c
+++ b/libtoolize.in
833a7c
@@ -69,6 +69,7 @@
833a7c
 # General help using GNU software: <http://www.gnu.org/gethelp/>.
833a7c
 
833a7c
 : ${TAR=tar}
833a7c
+test "$TAR" = "tar" && : ${TAR_NO_OWNER=--no-same-owner}
833a7c
 
833a7c
 PROGRAM=libtoolize
833a7c
 
833a7c
@@ -1279,7 +1280,7 @@ func_copy_cb ()
833a7c
     $RM "$my_destdir/$my_file"
833a7c
     if $opt_copy; then
833a7c
       if { ( cd "$my_srcdir" && $TAR chf - "$my_file" ) 2>/dev/null \
833a7c
-           | ( umask 0 && cd "$my_destdir" && $TAR xf - ) >/dev/null 2>&1; } \
833a7c
+           | ( umask 0 && cd "$my_destdir" && $TAR xf - $TAR_NO_OWNER) >/dev/null 2>&1; } \
833a7c
 	 && touch "$my_destdir/$my_file"; then
833a7c
 	$opt_quiet || func_echo_once "$my_msg_var"
833a7c
 	$opt_quiet || func_echo "copying $my_copy_msg"
833a7c
@@ -1288,7 +1289,7 @@ func_copy_cb ()
833a7c
     else
833a7c
       if test "$my_file" = "aclocal.m4"; then
833a7c
 	if { ( cd "$my_srcdir" && $TAR chf - "$my_file" ) 2>/dev/null \
833a7c
-	     | ( umask 0 && cd "$my_destdir" && $TAR xf - ) >/dev/null 2>&1 ; }
833a7c
+	     | ( umask 0 && cd "$my_destdir" && $TAR xf - $TAR_NO_OWNER) >/dev/null 2>&1 ; }
833a7c
 	then
833a7c
 	  $opt_quiet || func_echo_once "$my_msg_var"
833a7c
 	  $opt_quiet || func_echo "copying $my_copy_msg"