]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libltdl/Makefile.am (install-data-local): Don't force v7 tar
authorGary V. Vaughan <gary@gnu.org>
Thu, 10 Mar 2005 16:40:19 +0000 (16:40 +0000)
committerGary V. Vaughan <gary@gnu.org>
Thu, 10 Mar 2005 16:40:19 +0000 (16:40 +0000)
format with the `o' flag in create mode.
Set the umask to 0 when untarring to avoid copied files taking
their mode from the installer's umask.
* libltdl/loaders/Makefile.am (install-data-local): Ditto.
* libtoolize.m4sh (func_copy_cb): Ditto.
Ignore errors from failed `cd' in the tar processes, since we
may be running in dryrun mode.
Reported by Noah Misch <noah@cs.caltech.edu>,
Bob Friesenhahn <bfriesen@simple.dallas.tx.us>

ChangeLog
libltdl/Makefile.am
libltdl/loaders/Makefile.am
libtoolize.m4sh

index cf6e65f57778827ecb2dc4c6f4ff97cc9b040874..b0653f2ab278aba25083d7e06c1e5494e797c975 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,16 @@
+2005-03-10  Gary V. Vaughan  <gary@gnu.org>
+
+       * libltdl/Makefile.am (install-data-local): Don't force v7 tar
+       format with the `o' flag in create mode.
+       Set the umask to 0 when untarring to avoid copied files taking
+       their mode from the installer's umask.
+       * libltdl/loaders/Makefile.am (install-data-local): Ditto.
+       * libtoolize.m4sh (func_copy_cb): Ditto.
+       Ignore errors from failed `cd' in the tar processes, since we
+       may be running in dryrun mode.
+       Reported by Noah Misch <noah@cs.caltech.edu>,
+               Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
+
 2005-03-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        * libltdl/Makefile.am: $(builddir) is not defined, replace by `.'.
index 8ea403940d729f9d5b9af0a877997c771ebc4f6a..01697c045302009c6eced4301a0458242fae002f 100644 (file)
@@ -67,7 +67,9 @@ libltdlc_la_LIBADD    = $(libltdl_la_LIBADD)
 ## These are installed as a subdirectory of pkgdatadir so that
 ## libtoolize --ltdl can find them later:
 ltdldatadir            = $(pkgdatadir)/libltdl
-ltdldatafiles          = COPYING.LIB Makefile.am README configure.ac \
+ltdldatafiles          = COPYING.LIB README \
+                         Makefile.am Makefile.in \
+                         configure.ac configure \
                          $(libltdl_la_SOURCES) \
                          lt__dirent.c libltdl/lt__dirent.h \
                           lt__strl.c libltdl/lt__strl.h \
@@ -77,8 +79,8 @@ ltdldatafiles         = COPYING.LIB Makefile.am README configure.ac \
 ## with libtoolize, we have to preserve their timestamps carefully:
 install-data-local:
        $(mkinstalldirs) $(DESTDIR)$(ltdldatadir)
-       ( cd $(srcdir) && $(AMTAR) chof - $(ltdldatafiles); ) \
-         | ( cd $(DESTDIR)$(ltdldatadir) && $(AMTAR) xf -; )
+       ( cd $(srcdir) && $(AMTAR) chf - $(ltdldatafiles); ) \
+         | ( umask 0; cd $(DESTDIR)$(ltdldatadir) && $(AMTAR) xf -; )
 
 ## Make sure these will be cleaned even when they're not built by default:
 CLEANFILES             = libltdl.la libltdlc.la libdlloader.la
index 197df4583019958efdde5df3468559525596a381..9c609407c7b15e08d5682fa373929ba0b3cfcafe 100644 (file)
@@ -47,12 +47,14 @@ dld_link_la_LIBADD  = -ldld
 ## These are installed as a subdirectory of pkgdatadir so that
 ## libtoolize --ltdl can find them later:
 ltdldatadir            = $(pkgdatadir)/libltdl/loaders
-ltdldatafiles          = Makefile.am dld_link.c dlopen.c dyld.c \
+ltdldatafiles          = Makefile.am Makefile.in \
+                         dld_link.c dlopen.c dyld.c \
                          load_add_on.c loadlibrary.c shl_load.c
 
 ## To avoid spurious reconfiguration when the user installs these files
 ## with libtoolize, we have to preserve their timestamps carefully:
 install-data-local:
        $(mkinstalldirs) $(DESTDIR)$(ltdldatadir)
-       ( cd $(srcdir) && $(AMTAR) chof - $(ltdldatafiles); ) \
-         | ( cd $(DESTDIR)$(ltdldatadir) && $(AMTAR) xf -; )
+       ( cd $(srcdir) && $(AMTAR) chf - $(ltdldatafiles); ) \
+         | ( umask 0; cd $(DESTDIR)$(ltdldatadir) && $(AMTAR) xf -; )
+
index f35cfd4a126f23dd9772a426d4f4234f2b159bd2..4ff822335d3747307c1f661526c3780a40396c1a 100644 (file)
@@ -230,8 +230,9 @@ func_copy_cb ()
     if $opt_link && $LN_S "$my_srcdir/$my_file" "$my_destdir/$my_file"; then
       $opt_quiet || func_echo "copying file \`$my_destdir/$my_file'"
       copy_return_status=0
-    elif { ( cd "$my_srcdir" && $TAR chof - "$my_file" 2> /dev/null; ) \
-        | ( cd "$my_destdir" && "$TAR" xf - > /dev/null 2>&1; ) } ; then
+    elif { ( cd "$my_srcdir" 2>/dev/null && $TAR chf - "$my_file" 2> /dev/null; ) \
+        | ( umask 0; cd "$my_destdir" 2>/dev/null && "$TAR" xf - > /dev/null 2>&1; ) }
+    then
       $opt_quiet || func_echo "copying file \`$my_destdir/$my_file'"
       copy_return_status=0
     elif $CP -p "$my_srcdir/$my_file" "$my_destdir/$my_file"; then