reopen 235395
reassign 235395 automake1.7
tag 235395 patch
thanks

While creating "dist" tarball tar is called with "chof" options.
The option "o" forces OLD archive format which only allows for
maximum of 100 chars in a path. 

This problem does not show up if one is using old-enough version of
tar, ex. from woody. As I learned from discussion with Tom Tromey,
the original author of automake, they used "o" option because it
was the only way to make gnu tar produce tarballs readable by other
tars.

The old gnu tar (ex. from Woody) misinterpreted this option and forced
--posix mode. In newer versions of gnu tar this has been fixed, but as
a sideffect - it broke usage of autotools for all software projects
that create "dist" tarballs with paths longer than 100 chars.

The "chof" options passed to tar come from
/usr/share/automake-1.7/am/distdir.am. The attached patch changes
"o" into "--posix". I have tested it and it fixed problem of
creating tarballs of GNU Classpath. It would be very important
to have this problem fixed before Sarge release.

HTH

                                Grzegorz B. Prokopski

PS: For reference see also #414 at
 http://sources.redhat.com/cgi-bin/gnatsweb.pl?database=automake

-- 
Grzegorz B. Prokopski <[EMAIL PROTECTED]>
Debian GNU/Linux      http://www.debian.org
SableVM - LGPLed JVM  http://www.sablevm.org
Why SableVM ?!?       http://devel.sablevm.org/wiki/WhySableVM
--- ./distdir.am-orig	2004-03-19 21:47:57.000000000 -0500
+++ ./distdir.am	2004-03-19 22:27:41.000000000 -0500
@@ -221,13 +221,13 @@
 GZIP_ENV = --best
 .PHONY: dist-gzip
 dist-gzip: distdir
-	$(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
+	$(AMTAR) chf - $(distdir) --posix | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
 	$(am__remove_distdir)
 
 if  %?BZIP2%
 .PHONY: dist-bzip2
 dist-bzip2: distdir
-	$(AMTAR) chof - $(distdir) | bzip2 -9 -c >$(distdir).tar.bz2
+	$(AMTAR) chf - $(distdir) --posix | bzip2 -9 -c >$(distdir).tar.bz2
 	$(am__remove_distdir)
 endif  %?BZIP2%
 
@@ -235,7 +235,7 @@
 if  %?COMPRESS%
 .PHONY: dist-tarZ
 dist-tarZ: distdir
-	$(AMTAR) chof - $(distdir) | compress -c >$(distdir).tar.Z
+	$(AMTAR) chf - $(distdir) --posix | compress -c >$(distdir).tar.Z
 	$(am__remove_distdir)
 endif  %?COMPRESS%
 
@@ -271,9 +271,9 @@
 
 .PHONY: dist dist-all
 dist dist-all: distdir
-	$(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
+	$(AMTAR) chf - $(distdir) --posix | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
+?BZIP2?	$(AMTAR) chf - $(distdir) --posix | bzip2 -9 -c >$(distdir).tar.bz2
+?COMPRESS?	$(AMTAR) chf - $(distdir) --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)
_______________________________________________
Classpath mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/classpath

Reply via email to