]> 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 17:25:29 +0000 (17:25 +0000)
committerGary V. Vaughan <gary@gnu.org>
Thu, 10 Mar 2005 17:25:29 +0000 (17:25 +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 d1dbe3a219a0436f8f13e16e8ac9336f85081471..54117d0bfa1f34dedb60b51447745bff3688cf16 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 52201ac4a83dd77de68096d1446ff613e2414c6c..c321be21fd36e7bd6bef497a75d233902c4d92d1 100644 (file)
@@ -67,18 +67,21 @@ libltdlc_la_LIBADD  = $(libltdl_la_LIBADD)
 ## These are installed as a subdirectory of pkgdatadir so that
 ## libtoolize --ltdl can find them later:
 ltdldatadir            = $(pkgvdatadir)/libltdl
-ltdldatafiles          = COPYING.LIB Makefile.am README configure.ac \
+ltdldatafiles          = COPYING.LIB README \
+                         Makefile.am Makefile.in \
+                         configure.ac configure \
+                         $(libltdl_la_SOURCES) \
                          $(libltdl_la_SOURCES) \
                          lt__dirent.c libltdl/lt__dirent.h \
-                          lt__strl.c libltdl/lt__strl.h \
+                         lt__strl.c libltdl/lt__strl.h \
                          argz_.h argz.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 -; )
 
 ## Make sure these will be cleaned even when they're not built by default:
 CLEANFILES             = libltdl.la libltdlc.la libdlloader.la
index 3e6947d84bf3c7414caf607139f59f0fbadc00d6..fb6435ea91a249c448846035d3967d4c222fe961 100644 (file)
@@ -47,12 +47,13 @@ dld_link_la_LIBADD  = -ldld
 ## These are installed as a subdirectory of pkgdatadir so that
 ## libtoolize --ltdl can find them later:
 ltdldatadir            = $(pkgvdatadir)/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 ad93a59dcc52747bd078435c1fac7ecd3c9b5ba6..c3d38e51912a8f99b54650621ead9f91d93bafd5 100644 (file)
@@ -242,8 +242,8 @@ 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