dist: remove support for lzma (superseded by xz and lzip)
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sun, 1 Jan 2012 12:23:19 +0000 (13:23 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sun, 1 Jan 2012 12:23:19 +0000 (13:23 +0100)
See also commit `v1.11-611-ge637fa2' (from maint), where support
for lzma compression of distribution archive had been deprecated.

* NEWS: Update.
* lib/Automake/Options.pm: Error out if the `dist-lzma' option
is used.
* lib/am/distdir.am: Remove all support for the creation of a
lzma-compressed distribution archive.
* tests/lzma.test: Update.

NEWS
lib/Automake/Options.pm
lib/am/distdir.am
tests/lzma.test

diff --git a/NEWS b/NEWS
index a64847d..6f6051b 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -4,10 +4,6 @@ New in 1.11a:
 
   - automake now generates silenced rules for texinfo outputs.
 
-  - The `lzma' compression format for distribution archives has been
-    deprecated in favor of `xz' and `lzip', and will be removed in the
-    next major Automake release (1.12).
-
   - The deprecated options `--output-dir', `--Werror' and `--Wno-error'
     have been removed.
 
@@ -109,6 +105,9 @@ New in 1.11a:
 
   - "make dist" can now create lzip-compressed tarballs.
 
+  - The deprecated `lzma' compression format for distribution archives
+    has been removed, in favor of `xz' and `lzip'.
+
   - In the Automake info documentation, the Top node and the nodes about
     the invocation of the automake and aclocal programs have been renamed;
     now, calling "info automake" will open the Top node, while calling
index 34c026c..75a7392 100644 (file)
@@ -274,11 +274,8 @@ sub _process_option_list (\%@)
        }
       elsif ($_ eq 'dist-lzma')
         {
-          # Creation of distribution tarball compressed with lzma is
-          # deprecated, will be removed in the next major release.
-          msg 'obsolete', $where,
-              "lzma compression is deprecated; use `dist-xz' " .
-              "or `dist-lzip' instead\n";
+          error ($where, "support for lzma-compressed distribution " .
+                         "archives has been removed");
         }
       elsif ($_ eq 'no-installman' || $_ eq 'no-installinfo'
             || $_ eq 'dist-shar' || $_ eq 'dist-zip'
index 2697efc..d8c1a89 100644 (file)
@@ -355,12 +355,6 @@ dist-lzip: distdir
        tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz
        $(am__remove_distdir)
 
-?LZMA?DIST_ARCHIVES += $(distdir).tar.lzma
-.PHONY: dist-lzma
-dist-lzma: distdir
-       tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
-       $(am__post_remove_distdir)
-
 ?XZ?DIST_ARCHIVES += $(distdir).tar.xz
 .PHONY: dist-xz
 dist-xz: distdir
@@ -386,7 +380,6 @@ dist-zip: distdir
        zip -rq $(distdir).zip $(distdir)
        $(am__post_remove_distdir)
 
-?LZMA?DIST_TARGETS += dist-lzma
 ?LZIP?DIST_TARGETS += dist-lzip
 ?XZ?DIST_TARGETS += dist-xz
 ?SHAR?DIST_TARGETS += dist-shar
@@ -440,8 +433,6 @@ distcheck: dist
          GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
        *.tar.bz2*) \
          bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
-       *.tar.lzma*) \
-         lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
        *.tar.lz*) \
          lzip -dc $(distdir).tar.lz | $(am__untar) ;;\
        *.tar.xz*) \
index 6c42ae9..28b4198 100755 (executable)
 
 . ./defs || Exit 1
 
-errmsg='lzma.*deprecated.*dist-xz.*dist-lzip.*instead'
+errmsg='support for lzma.*removed'
 
 echo AUTOMAKE_OPTIONS = dist-lzma > Makefile.am
 $ACLOCAL --force
-AUTOMAKE_fails -Wnone -Wobsolete
+AUTOMAKE_fails -Wnone -Wno-error
 grep "^Makefile\\.am:1:.*$errmsg" stderr
 
 cat > configure.in << 'END'
@@ -31,23 +31,10 @@ AM_INIT_AUTOMAKE([no-dist-gzip dist-lzma])
 AC_CONFIG_FILES([Makefile])
 AC_OUTPUT
 END
-
-cat > Makefile.am << 'END'
-test: distcheck
-       test $(DIST_ARCHIVES) = lzma-1.0.tar.lzma
-       test -f $(DIST_ARCHIVES)
-END
+: > Makefile.am
 
 $ACLOCAL --force
-AUTOMAKE_fails
+AUTOMAKE_fails -Wnone -Wno-error
 grep "^configure\\.in:2:.*$errmsg" stderr
 
-$AUTOMAKE -Wno-obsolete
-
-lzma --version || skip_ "lzma compressor required for the rest of the test"
-
-$AUTOCONF
-./configure
-$MAKE test
-
 :