+gzip (1.3.12-5) unstable; urgency=low
+
+ * patch for zgrep.in from Daniel Kobras, closes: #434429
+ * patch from upstream to fix compilation with mingw32, and patch from
+ Robert Millan to build a win32 executable if mingw32 is available, all
+ to fix a preseeding problem in the win32-loader for Debian Installer.
+ closes: #457867
+
+ -- Bdale Garbee <bdale@gag.com> Mon, 04 Feb 2008 21:46:42 -0700
+
gzip (1.3.12-4) unstable; urgency=low
* incorporate diffs from NMUs, closes: #434275, #433845, #438675
Priority: required
Maintainer: Bdale Garbee <bdale@gag.com>
Build-Depends: debhelper (>= 5), texinfo
+Build-Depends-Indep: mingw32
Standards-Version: 3.7.3
XS-DM-Upload-Allowed: yes
.
This package can also decompress '.Z' files created with 'compress'.
+Package: gzip-win32
+Architecture: all
+Priority: extra
+Suggests: wine
+Description: The GNU compression utility (win32 build)
+ This is a win32 version of gzip. It's meant to be used by the win32-loader
+ component of Debian-Installer.
--- /dev/null
+usr/share/win32
configure: configure-stamp
configure-stamp:
dh_testdir
- CFLAGS=$(CFLAGS) ./configure \
+ mkdir -p build
+ cd build && CFLAGS=$(CFLAGS) ../configure \
--prefix=/usr --bindir=/bin \
--infodir=`pwd`/debian/gzip/usr/share/info \
--mandir=`pwd`/debian/gzip/usr/share/man $(CONFARGS)
touch configure-stamp
-build: configure-stamp build-stamp
-build-stamp:
+configure-win32: configure-win32-stamp
+configure-win32-stamp:
dh_testdir
- $(MAKE)
+ mkdir -p build-win32
+ cd build-win32 && ../configure --host=i586-mingw32msvc
+ touch configure-win32-stamp
+
+build: build-stamp
+build-stamp: configure-stamp
+ dh_testdir
+ $(MAKE) -C build
touch build-stamp
+build-win32: build-win32-stamp
+build-win32-stamp: configure-win32-stamp
+ dh_testdir
+ $(MAKE) -C build-win32
+ touch build-win32-stamp
+
clean:
dh_testdir
dh_testroot
- -rm -f build-stamp configure-stamp
- make distclean || exit 0
+ -rm -f build-stamp build-win32-stamp configure-stamp configure-win32-stamp
+ -rm -rf build build-win32
dh_clean
install: build
dh_clean -k
dh_installdirs
- make install prefix=debian/gzip/usr bindir=debian/gzip/bin
+ $(MAKE) -C build install prefix=`pwd`/debian/gzip/usr bindir=`pwd`/debian/gzip/bin
install -o root -g root -m 0644 debian/gzip.lintian \
debian/gzip/usr/share/lintian/overrides/gzip
-binary-indep: build install
-
-binary-arch: build install
+install-win32: build-win32
dh_testdir
dh_testroot
- dh_installdocs README* TODO
- dh_installmanpages
- dh_installinfo doc/gzip.info
- dh_installchangelogs ChangeLog
- dh_link
- dh_strip
- dh_compress
+ dh_clean -k
+ dh_installdirs
+
+ install -m 0755 build-win32/gzip.exe debian/gzip-win32/usr/share/win32/
+
+binary-indep: build-win32 install-win32
+ dh_testdir -i
+ dh_testroot -i
+ dh_installdocs -i README* TODO
+ dh_installchangelogs -i ChangeLog
+ dh_compress -i
+ dh_fixperms -i
+ dh_installdeb -i
+ dh_gencontrol -i
+ dh_md5sums -i
+ dh_builddeb -i
+
+binary-arch: build install
+ dh_testdir -s
+ dh_testroot -s
+ dh_installdocs -s README* TODO
+ dh_installmanpages -s
+ dh_installinfo -s doc/gzip.info
+ dh_installchangelogs -s ChangeLog
+ dh_link -s
+ dh_strip -s
+ dh_compress -s
ln -s gunzip.1.gz debian/gzip/usr/share/man/man1/uncompress.1.gz
ln -s zgrep.1.gz debian/gzip/usr/share/man/man1/zegrep.1.gz
ln -s zgrep.1.gz debian/gzip/usr/share/man/man1/zfgrep.1.gz
- dh_fixperms
+ dh_fixperms -s
# You may want to make some executables suid here.
- dh_makeshlibs
- dh_installdeb
- dh_shlibdeps
- dh_gencontrol
- dh_md5sums
- dh_builddeb
+ dh_makeshlibs -s
+ dh_installdeb -s
+ dh_shlibdeps -s
+ dh_gencontrol -s
+ dh_md5sums -s
+ dh_builddeb -s
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install configure
+.PHONY: build-win32 install-win32 configure-win32
unsigned outcnt; /* bytes in output buffer */
int rsync = 0; /* make ryncable chunks */
+static int handled_sig[] =
+ {
+ /* SIGINT must be first, as 'foreground' depends on it. */
+ SIGINT
+
+#ifdef SIGHUP
+ , SIGHUP
+#endif
+#ifdef SIGPIPE
+ , SIGPIPE
+#else
+# define SIGPIPE 0
+#endif
+#ifdef SIGTERM
+ , SIGTERM
+#endif
+#ifdef SIGXCPU
+ , SIGXCPU
+#endif
+#ifdef SIGXFSZ
+ , SIGXFSZ
+#endif
+ };
+
struct option longopts[] =
{
/* { name has_arg *flag val } */
static void
install_signal_handlers ()
{
- static int sig[] =
- {
- /* SIGINT must be first, as 'foreground' depends on it. */
- SIGINT
-
-#ifdef SIGHUP
- , SIGHUP
-#endif
-#ifdef SIGPIPE
- , SIGPIPE
-#else
-# define SIGPIPE 0
-#endif
-#ifdef SIGTERM
- , SIGTERM
-#endif
-#ifdef SIGXCPU
- , SIGXCPU
-#endif
-#ifdef SIGXFSZ
- , SIGXFSZ
-#endif
- };
- int nsigs = sizeof sig / sizeof sig[0];
+ int nsigs = sizeof handled_sig / sizeof handled_sig[0];
int i;
#if SA_NOCLDSTOP
sigemptyset (&caught_signals);
for (i = 0; i < nsigs; i++)
{
- sigaction (sig[i], NULL, &act);
+ sigaction (handled_sig[i], NULL, &act);
if (act.sa_handler != SIG_IGN)
- sigaddset (&caught_signals, sig[i]);
+ sigaddset (&caught_signals, handled_sig[i]);
}
act.sa_handler = abort_gzip_signal;
act.sa_flags = 0;
for (i = 0; i < nsigs; i++)
- if (sigismember (&caught_signals, sig[i]))
+ if (sigismember (&caught_signals, handled_sig[i]))
{
if (i == 0)
foreground = 1;
- sigaction (sig[i], &act, NULL);
+ sigaction (handled_sig[i], &act, NULL);
}
#else
for (i = 0; i < nsigs; i++)
- if (signal (sig[i], SIG_IGN) != SIG_IGN)
+ if (signal (handled_sig[i], SIG_IGN) != SIG_IGN)
{
if (i == 0)
foreground = 1;
- signal (sig[i], abort_gzip_signal);
- siginterrupt (sig[i], 1);
+ signal (handled_sig[i], abort_gzip_signal);
+ siginterrupt (handled_sig[i], 1);
}
#endif
}
files_with_matches=1;;
(-L | --files-witho*)
files_without_matches=1;;
- (--no-f*)
+ (-h | --no-f*)
no_filename=1;;
(-V | --v | --ve | --ver | --vers | --versi | --versio | --version)
echo "$version" || exit 2