[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: dist-xz compression level
From: |
Ralf Wildenhues |
Subject: |
Re: dist-xz compression level |
Date: |
Sun, 11 Apr 2010 20:06:45 +0200 |
User-agent: |
Mutt/1.5.20 (2009-10-28) |
Hello Pavel,
* Pavel Sanda wrote on Wed, Apr 07, 2010 at 01:22:06PM CEST:
> the newly added dist-xz target produce worse compressed archives
> than lzma-dist. The reason is that automake call lzma with
> best compression while it won't use -9 level for xz.
> Is this intention or bug?
Bug, I guess. I'm applying this patch to maint and merging it to
branch-1.11 and master, and adding you to THANKS.
Thanks for the report,
Ralf
Use -9 for maximum xz compression with dist-xz.
* lib/am/distdir.am (dist-xz, dist, dist-all): Pass -9 to xz.
* NEWS, THANKS: Update.
Report by Pavel Sanda.
diff --git a/NEWS b/NEWS
index a3ce191..5af2439 100644
--- a/NEWS
+++ b/NEWS
@@ -12,6 +12,8 @@ Bugs fixed in 1.11.0a:
- The `parallel-tests' test driver works around a GNU make 3.80 bug with
trailing white space in the test list (`TESTS = foo $(EMPTY)').
+ - The `dist-xz' option now uses `xz -9' for maximum compression.
+
* Long standing bugs:
- On Darwin 9, `pythondir' and `pyexecdir' pointed below `/Library/Python'
diff --git a/lib/am/distdir.am b/lib/am/distdir.am
index ec4d5e5..d88656c 100644
--- a/lib/am/distdir.am
+++ b/lib/am/distdir.am
@@ -1,6 +1,6 @@
## automake - create Makefile.in from Makefile.am
-## Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
-## Free Software Foundation, Inc.
+## Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009,
+## 2010 Free Software Foundation, Inc.
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
@@ -353,7 +353,7 @@ dist-lzma: distdir
?XZ?DIST_ARCHIVES += $(distdir).tar.xz
.PHONY: dist-xz
dist-xz: distdir
- tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
+ tardir=$(distdir) && $(am__tar) | xz -9 -c >$(distdir).tar.xz
$(am__remove_distdir)
?COMPRESS?DIST_ARCHIVES += $(distdir).tar.Z
@@ -397,7 +397,7 @@ dist dist-all: distdir
?GZIP? tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c
>$(distdir).tar.gz
?BZIP2? tardir=$(distdir) && $(am__tar) | bzip2 -9 -c
>$(distdir).tar.bz2
?LZMA? tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
-?XZ? tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
+?XZ? tardir=$(distdir) && $(am__tar) | xz -9 -c >$(distdir).tar.xz
?COMPRESS? tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
?SHAR? shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
?ZIP? -rm -f $(distdir).zip
- dist-xz compression level, Pavel Sanda, 2010/04/07
- Re: dist-xz compression level,
Ralf Wildenhues <=
- Re: dist-xz compression level, Andreas Jellinghaus, 2010/04/11
- Re: dist-xz compression level, Pavel Sanda, 2010/04/11
- Re: dist-xz compression level, Bob Friesenhahn, 2010/04/11
- Re: dist-xz compression level, Pavel Sanda, 2010/04/11
- Re: dist-xz compression level, Bob Friesenhahn, 2010/04/11
- Re: dist-xz compression level, Pavel Sanda, 2010/04/11
- Re: dist-xz compression level, Reuben Thomas, 2010/04/12
- Re: dist-xz compression level, Andreas Jellinghaus, 2010/04/12