This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

AMTAR brokenness


Recent versions of GNU tar correctly use the "-o" option.  This breaks
any project with path lengths >100.  Previously GNU tar incorrectly
produced a POSIX tar file with "-o", but now it produces a crippled
UNIX v7 tarfile.

PR/414 has been filed against automake.  A patch against automake
1.8.3 follows, which uses the correct --format=posix syntax.  Both the
current and patched forms do rely on GNU tar.  A configure check to
check for GNY tar might be better.  Either way, GNU tar should *not*
be given the "-o" option, since it causes horrible breakage.

Regards,
Roger


--- /tmp/distdir.am	2004-04-01 12:32:29.000000000 +0100
+++ distdir.am	2004-04-01 12:30:26.000000000 +0100
@@ -238,19 +238,19 @@
 GZIP_ENV = --best
 .PHONY: dist-gzip
 dist-gzip: distdir
-	$(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
+	$(AMTAR) chf - $(distdir) --format=posix | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
 	$(am__remove_distdir)
 
 ?BZIP2?DIST_ARCHIVES += $(distdir).tar.bz2
 .PHONY: dist-bzip2
 dist-bzip2: distdir
-	$(AMTAR) chof - $(distdir) | bzip2 -9 -c >$(distdir).tar.bz2
+	$(AMTAR) chf - $(distdir) --format=posix | bzip2 -9 -c >$(distdir).tar.bz2
 	$(am__remove_distdir)
 
 ?COMPRESS?DIST_ARCHIVES += $(distdir).tar.Z
 .PHONY: dist-tarZ
 dist-tarZ: distdir
-	$(AMTAR) chof - $(distdir) | compress -c >$(distdir).tar.Z
+	$(AMTAR) chf - $(distdir) --format=posix | compress -c >$(distdir).tar.Z
 	$(am__remove_distdir)
 
 ?SHAR?DIST_ARCHIVES += $(distdir).shar.gz
@@ -281,9 +281,9 @@
 
 .PHONY: dist dist-all
 dist dist-all: distdir
-?GZIP?	$(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
-?BZIP2?	$(AMTAR) chof - $(distdir) | bzip2 -9 -c >$(distdir).tar.bz2
-?COMPRESS?	$(AMTAR) chof - $(distdir) | compress -c >$(distdir).tar.Z
+?GZIP?	$(AMTAR) chf - $(distdir) --format=posix | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
+?BZIP2?	$(AMTAR) chf - $(distdir) --format=posix | bzip2 -9 -c >$(distdir).tar.bz2
+?COMPRESS?	$(AMTAR) chf - $(distdir) --format=posix | compress -c >$(distdir).tar.Z
 ?SHAR?	shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
 ?ZIP?	-rm -f $(distdir).zip
 ?ZIP?	zip -rq $(distdir).zip $(distdir)

-- 
Roger Leigh

                Printing on GNU/Linux?  http://gimp-print.sourceforge.net/
                GPG Public Key: 0x25BFB848.  Please sign and encrypt your mail.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]