automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AMTAR brokenness


From: Roger Leigh
Subject: AMTAR brokenness
Date: Thu, 01 Apr 2004 14:19:07 +0100
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]