Hello community,
here is the log from the commit of package gzip
checked in at Wed Dec 6 11:48:44 CET 2006.
--------
--- gzip/gzip.changes 2006-09-13 11:26:29.000000000 +0200
+++ /mounts/work_src_done/STABLE/gzip/gzip.changes 2006-12-04 13:09:22.000000000 +0100
@@ -1,0 +2,18 @@
+Mon Dec 4 13:08:18 CET 2006 - schwab@suse.de
+
+- Update to gzip 1.3.6.
+ * Fix some race conditions in setting file time stamps, permissions, and owner.
+ * Fix some race conditions in signal handling.
+ * When gzip exits due to a signal, it exits with the signal's status, not 1.
+ * gzip now restores file time stamps to the resolution supported by the
+ time-setting primitives of the operating system, typically 1 microsecond.
+ Formerly it restored them only to the nearest second.
+ * gzip -r no longer attempts to reset the last-access times of directories
+ it reads, as this messes up when other processes are reading the directories.
+ * The options --version and --help now work on all gzip-installed executables,
+ and now use a format similar to other GNU programs.
+ * The manual is now distributed under the terms of the GNU Free
+ Documentation License without invariant sections or cover texts.
+ * Port to current versions of Autoconf, Automake, and Gnulib.
+
+-------------------------------------------------------------------
Old:
----
gzip-1.3.5-codecleanup.patch
gzip-1.3.5-tempfile.patch
gzip-1.3.5-zmore.patch
gzip-1.3.5.patch
gzip-1.3.5.tar.bz2
traversal.diff
ungzip.diff
zgrep.patch
New:
----
gzip-1.3.6.tar.gz
tempfile.diff
zgrep.diff
zmore.diff
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ gzip.spec ++++++
--- /var/tmp/diff_new_pack.YfDJ1c/_old 2006-12-06 11:48:05.000000000 +0100
+++ /var/tmp/diff_new_pack.YfDJ1c/_new 2006-12-06 11:48:05.000000000 +0100
@@ -1,5 +1,5 @@
#
-# spec file for package gzip (Version 1.3.5)
+# spec file for package gzip (Version 1.3.6)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
@@ -13,23 +13,19 @@
Name: gzip
%define do_profiling 0
URL: http://www.gzip.org/
-License: GPL
+License: GNU General Public License (GPL)
Group: Productivity/Archiving/Compression
Autoreqprov: on
PreReq: %{install_info_prereq}
-Version: 1.3.5
-Release: 163
+Version: 1.3.6
+Release: 1
Summary: GNU Zip Compression Utilities
-Source: %{name}-%{version}.tar.bz2
-Patch: gzip-1.3.5.patch
-Patch1: gzip-1.3.5-tempfile.patch
-Patch2: gzip-1.3.5-codecleanup.patch
-Patch3: zgrep.patch
-Patch4: gzip-1.3.5-zmore.patch
-Patch5: traversal.diff
-Patch6: non-exec-stack.diff
-Patch7: http://rsync.samba.org/ftp/unpacked/rsync/patches/gzip-rsyncable.diff
-Patch8: ungzip.diff
+Source: %{name}-%{version}.tar.gz
+Patch: zgrep.diff
+Patch1: tempfile.diff
+Patch2: zmore.diff
+Patch3: non-exec-stack.diff
+Patch4: http://rsync.samba.org/ftp/unpacked/rsync/patches/gzip-rsyncable.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
@@ -51,32 +47,27 @@
%patch1
%patch2
%patch3
-%patch4
-%patch5
-%patch6
-%patch7 -p1
-%patch8
+%patch4 -p1
%build
-export CFLAGS="$RPM_OPT_FLAGS \
+CFLAGS="$RPM_OPT_FLAGS -fomit-frame-pointer \
%ifarch %{ix86}
- -mcpu=pentiumpro \
+-mcpu=pentiumpro \
%endif
--fomit-frame-pointer -fno-strength-reduce \
-W -Wall -Wno-unused-parameter -Wstrict-prototypes -Wpointer-arith"
-./configure --prefix=%{_prefix} --infodir=%{_infodir} --mandir=%{_mandir}
+./configure CFLAGS="$CFLAGS" \
+ --prefix=%{_prefix} --infodir=%{_infodir} --mandir=%{_mandir}
%if %{do_profiling}
make CFLAGS="$CFLAGS -fprofile-arcs"
for i in 1 2 3 4 5 6 7 8 9
do
- time ./gzip -$i < texinfo.tex > texinfo.tex.gz
- ./gzip --test texinfo.tex.gz
- ./gzip -d < texinfo.tex.gz > texinfo.test$i
- diff texinfo.tex texinfo.test$i
- time ./gzip -$i < /bin/bash > bash.gz
- ./gzip --test bash.gz
- ./gzip -d < bash.gz > bash.test$i
- cmp /bin/bash bash.test$i
+ for f in build-aux/texinfo.tex /bin/bash; do
+ basef=${f##*/}
+ time ./gzip -$i < $f > $basef.gz
+ ./gzip --test $basef.gz
+ ./gzip -d < $basef.gz > $basef.test$i
+ cmp $f $basef.test$i
+ done
done
make clean
make CFLAGS="$CFLAGS -fbranch-probabilities"
@@ -85,20 +76,16 @@
%endif
for i in 1 2 3 4 5 6 7 8 9
do
- time ./gzip -$i < texinfo.tex > texinfo.tex.gz
- ./gzip --test texinfo.tex.gz
- ./gzip -d < texinfo.tex.gz > texinfo.test$i
- diff texinfo.tex texinfo.test$i
- time ./gzip -$i < /bin/bash > bash.gz
- ./gzip --test bash.gz
- ./gzip -d < bash.gz > bash.test$i
- cmp /bin/bash bash.test$i
+ for f in build-aux/texinfo.tex /bin/bash; do
+ basef=${f##*/}
+ time ./gzip -$i < $f > $basef.gz
+ ./gzip --test $basef.gz
+ ./gzip -d < $basef.gz > $basef.test$i
+ cmp $f $basef.test$i
+ done
done
-ls -l texinfo.test?
-ls -l bash.test?
%install
-rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
mkdir -p $RPM_BUILD_ROOT/bin
mv $RPM_BUILD_ROOT/usr/bin/gzip $RPM_BUILD_ROOT/bin/
@@ -124,6 +111,21 @@
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%changelog -n gzip
+* Mon Dec 04 2006 - schwab@suse.de
+- Update to gzip 1.3.6.
+ * Fix some race conditions in setting file time stamps, permissions, and owner.
+ * Fix some race conditions in signal handling.
+ * When gzip exits due to a signal, it exits with the signal's status, not 1.
+ * gzip now restores file time stamps to the resolution supported by the
+ time-setting primitives of the operating system, typically 1 microsecond.
+ Formerly it restored them only to the nearest second.
+ * gzip -r no longer attempts to reset the last-access times of directories
+ it reads, as this messes up when other processes are reading the directories.
+ * The options --version and --help now work on all gzip-installed executables,
+ and now use a format similar to other GNU programs.
+ * The manual is now distributed under the terms of the GNU Free
+ Documentation License without invariant sections or cover texts.
+ * Port to current versions of Autoconf, Automake, and Gnulib.
* Wed Sep 13 2006 - schwab@suse.de
- Verify hash tables when unpacking [#202365].
* Mon Mar 13 2006 - schwab@suse.de
@@ -152,13 +154,13 @@
- Make sure we have no hardlinks from /bin to /usr/bin [Bug #29522]
* Tue Jun 17 2003 - pthomas@suse.de
- Update to 1.3.5
-- gzip now removes any output symlink before writing output file.
-- zgrep etc. scripts now port to POSIX 1003.1-2001 hosts.
-- zforce no longer assumes 14-byte file name length limit.
-- zless is now implemented using less and LESSOPEN, not zmore and PAGER.
-- assembly-language speedups reenabled; were mistakenly disabled in 1.3.
-- Less output is lost when decompressing a truncated file.
-- zgrep now supports --, -H, -h, -L, -l, -C, -d, -m and their long
+ - gzip now removes any output symlink before writing output file.
+ - zgrep etc. scripts now port to POSIX 1003.1-2001 hosts.
+ - zforce no longer assumes 14-byte file name length limit.
+ - zless is now implemented using less and LESSOPEN, not zmore and PAGER.
+ - assembly-language speedups reenabled; were mistakenly disabled in 1.3.
+ - Less output is lost when decompressing a truncated file.
+ - zgrep now supports --, -H, -h, -L, -l, -C, -d, -m and their long
equivalents.
* Wed Jun 04 2003 - jh@suse.de
- Enable profile feedback
++++++ gzip-rsyncable.diff ++++++
--- /var/tmp/diff_new_pack.YfDJ1c/_old 2006-12-06 11:48:05.000000000 +0100
+++ /var/tmp/diff_new_pack.YfDJ1c/_new 2006-12-06 11:48:05.000000000 +0100
@@ -4,9 +4,10 @@
tried out in the default gzip for Debian Sarge, and may go into the
upstream gzip at somepoint in the not-too-distant future.
---- gzip-1.3.5/deflate.c 1999-10-07 23:46:28 -0700
-+++ rsyncable/deflate.c 2005-02-05 09:40:33 -0800
-@@ -122,6 +122,14 @@
+================================================================================
+--- gzip-1.3.6/deflate.c
++++ gzip-1.3.6/deflate.c
+@@ -135,6 +135,14 @@
#endif
/* Matches of length 3 are discarded if their distance exceeds TOO_FAR */
@@ -21,7 +22,7 @@
/* ===========================================================================
* Local data used by the "longest match" routines.
*/
-@@ -203,6 +211,8 @@
+@@ -216,6 +224,8 @@
unsigned near good_match;
/* Use a faster search when the previous match is longer than this */
@@ -30,7 +31,7 @@
/* Values for max_lazy_match, good_match and max_chain_length, depending on
* the desired pack level (0..9). The values given below have been tuned to
-@@ -301,6 +311,10 @@
+@@ -314,6 +324,10 @@
#endif
/* prev will be initialized on the fly */
@@ -41,7 +42,7 @@
/* Set the default configuration parameters:
*/
max_lazy_match = configuration_table[pack_level].max_lazy;
-@@ -537,6 +551,8 @@
+@@ -550,6 +564,8 @@
memcpy((char*)window, (char*)window+WSIZE, (unsigned)WSIZE);
match_start -= WSIZE;
strstart -= WSIZE; /* we now have strstart >= MAX_DIST: */
@@ -50,7 +51,7 @@
block_start -= (long) WSIZE;
-@@ -564,13 +580,46 @@
+@@ -577,13 +593,46 @@
}
}
@@ -98,7 +99,7 @@
/* ===========================================================================
* Processes a new input file and return its compressed length. This
-@@ -581,7 +630,7 @@
+@@ -594,7 +643,7 @@
local off_t deflate_fast()
{
IPos hash_head; /* head of the hash chain */
@@ -107,7 +108,7 @@
unsigned match_length = 0; /* length of best match */
prev_length = MIN_MATCH-1;
-@@ -610,6 +659,7 @@
+@@ -623,6 +672,7 @@
lookahead -= match_length;
@@ -115,22 +116,22 @@
/* Insert new strings in the hash table only if the match length
* is not too large. This saves time but degrades compression.
*/
-@@ -638,9 +688,14 @@
+@@ -651,9 +701,14 @@
/* No match, output a literal byte */
Tracevv((stderr,"%c",window[strstart]));
flush = ct_tally (0, window[strstart]);
-+ RSYNC_ROLL(strstart, 1);
++ RSYNC_ROLL(strstart, 1);
lookahead--;
- strstart++;
+ strstart++;
}
-+ if (rsync && strstart > rsync_chunk_end) {
-+ rsync_chunk_end = 0xFFFFFFFFUL;
-+ flush = 2;
-+ }
++ if (rsync && strstart > rsync_chunk_end) {
++ rsync_chunk_end = 0xFFFFFFFFUL;
++ flush = 2;
++ }
if (flush) FLUSH_BLOCK(0), block_start = strstart;
/* Make sure that we always have enough lookahead, except
-@@ -713,6 +768,7 @@
+@@ -726,6 +781,7 @@
*/
lookahead -= prev_length-1;
prev_length -= 2;
@@ -138,7 +139,7 @@
do {
strstart++;
INSERT_STRING(strstart, hash_head);
-@@ -725,24 +781,39 @@
+@@ -738,24 +794,39 @@
match_available = 0;
match_length = MIN_MATCH-1;
strstart++;
@@ -182,9 +183,26 @@
strstart++;
lookahead--;
}
---- gzip-1.3.5/gzip.c 2002-09-28 00:38:43 -0700
-+++ rsyncable/gzip.c 2005-02-05 09:40:33 -0800
-@@ -256,6 +256,7 @@
+--- gzip-1.3.6/doc/gzip.texi
++++ gzip-1.3.6/doc/gzip.texi
+@@ -328,6 +328,14 @@
+ into the directory and compress all the files it finds there (or
+ decompress them in the case of @code{gunzip}).
+
++@item --rsyncable
++While compressing, synchronize the output occasionally based on the
++input. This increases size by less than 1 percent most cases, but
++means that the @code{rsync} program can take advantage of similarities
++in the uncompressed input when syncronizing two files compressed with
++this flag. @code{gunzip} cannot tell the difference between a
++compressed file created with this option, and one created without it.
++
+ @item --suffix @var{suf}
+ @itemx -S @var{suf}
+ Use suffix @samp{@var{suf}} instead of @samp{.gz}. Any suffix can be
+--- gzip-1.3.6/gzip.c
++++ gzip-1.3.6/gzip.c
+@@ -218,6 +218,7 @@
unsigned insize; /* valid bytes in inbuf */
unsigned inptr; /* index of next byte to be processed in inbuf */
unsigned outcnt; /* bytes in output buffer */
@@ -192,7 +210,7 @@
struct option longopts[] =
{
-@@ -285,6 +286,7 @@
+@@ -247,6 +248,7 @@
{"best", 0, 0, '9'}, /* compress better */
{"lzw", 0, 0, 'Z'}, /* make output compatible with old compress */
{"bits", 1, 0, 'b'}, /* max number of bits per code (implies -Z) */
@@ -200,27 +218,9 @@
{ 0, 0, 0, 0 }
};
-@@ -365,6 +367,7 @@
- " -Z --lzw produce output compatible with old compress",
- " -b --bits maxbits max number of bits per code (implies -Z)",
- #endif
-+ " --rsyncable Make rsync-friendly archive",
- " file... files to (de)compress. If none given, use standard input.",
- "Report bugs to