Hi Isaac, I have prepared a little patch which fixes the build issues when the environment variable GZIP exists. The problem is not that the environment variable overrides the variable in the Makefile, but a little more subtle.
When I do a GZIP=--best ./debian/rules binary, the build fails, but with install=nonexistcmd ./debian/rules binary it succeeds, so it is not caused by make being called with the -e parameter. What seems to be happening is that when the environment variable GZIP exists make decides to override it with the value set in the Makefile. When gzip is called the environment variable $(GZIP) contains "gzip -v9" and gzip reads the environment variable and tries to gzip the file gzip which does not exists. Anyway, by replacing the $(GZIP) with $(gzip) in the ./debian/rules file the problem will be solved. I have attached an patch which replaces $(GZIP) with $(gzip) and remove gzip from the Build-Depends again. It also fixes an unrelated typo in the debian/control file. Greetings Arjan
diff -u hugs98-98.200503.08/debian/changelog hugs98-98.200503.08/debian/changelog --- hugs98-98.200503.08/debian/changelog +++ hugs98-98.200503.08/debian/changelog @@ -1,3 +1,14 @@ +hugs98 (98.200503.08-4.2) unstable; urgency=low + + * Non-maintainer upload. + * debian/rules: replace $(GZIP) variable with $(gzip) to workaround + strange interaction between gzip and make. (Closes: #336201) + * debian/control: + - remove gzip from Build-Depends because it is an essential package. + - fix typo in Build-Depends. s/librealine-dev/libreadline-dev + + -- Arjan Oosting <[EMAIL PROTECTED]> Fri, 11 Aug 2006 01:47:46 +0200 + hugs98 (98.200503.08-4.1) unstable; urgency=low * Non-maintainer upload. diff -u hugs98-98.200503.08/debian/rules hugs98-98.200503.08/debian/rules --- hugs98-98.200503.08/debian/rules +++ hugs98-98.200503.08/debian/rules @@ -14,7 +14,7 @@ install_script := $(install) -m 755 install_zipped := false install_symlink = ln -s -GZIP := gzip -9v +gzip := gzip -9v DEBUG_OPT= ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) @@ -66,7 +66,7 @@ $(install_nonex) debian/copyright $(docdir) # Install the change logs. $(install_nonex) debian/changelog $(docdir)/changelog.Debian - $(GZIP) $(docdir)/changelog.Debian + $(gzip) $(docdir)/changelog.Debian # Install the installation scripts $(install_script) debian/preinst debian/postinst \ debian/prerm debian/postrm \ @@ -96,8 +96,8 @@ cp Credits $(docdir) # Install the manual page # The man pages are all one: - $(GZIP) $(man1dir)/hugs.1 -# $(GZIP) $(man1dir)/hugs-package.1 + $(gzip) $(man1dir)/hugs.1 +# $(gzip) $(man1dir)/hugs-package.1 cd $(man1dir) && $(install_symlink) hugs.1.gz runhugs.1.gz cd $(man1dir) && $(install_symlink) hugs.1.gz runhugs98.1.gz cd $(man1dir) && $(install_symlink) hugs.1.gz ffihugs.1.gz diff -u hugs98-98.200503.08/debian/control hugs98-98.200503.08/debian/control --- hugs98-98.200503.08/debian/control +++ hugs98-98.200503.08/debian/control @@ -3,7 +3,7 @@ Priority: optional Maintainer: Isaac Jones <[EMAIL PROTECTED]> Standards-Version: 3.6.2 -Build-Depends: libncurses5-dev, libreadline5-dev | librealine-dev, autotools-dev, xlibmesa-gl-dev, freeglut3-dev, libxt-dev, bison, gzip +Build-Depends: libncurses5-dev, libreadline5-dev | libreadline-dev, autotools-dev, xlibmesa-gl-dev, freeglut3-dev, libxt-dev, bison Package: hugs Architecture: any diff -u hugs98-98.200503.08/config.guess hugs98-98.200503.08/config.guess diff -u hugs98-98.200503.08/config.sub hugs98-98.200503.08/config.sub
signature.asc
Description: Dit berichtdeel is digitaal ondertekend