Control: tags -1 + stretch sid patch

Am 05.07.2016 um 09:18 schrieb Helmut Grohne:

> Source: dash
> Version: 0.5.7-4
> Severity: serious
> User: helm...@debian.org
> Usertags: rebootstrap
>
> dash fails to build from source natively when doing an arch-only build.
>
> | dpkg-buildpackage: info: source package dash
> | dpkg-buildpackage: info: source version 0.5.7-4
> | dpkg-buildpackage: info: source distribution unstable
> | dpkg-buildpackage: info: source changed by Gerrit Pape <p...@smarden.org>
> | dpkg-buildpackage: info: host architecture amd64
> |  dpkg-source --before-build dash-0.5.7
> |  fakeroot debian/rules clean
> | rm -rf build-tmp
> | test ! -e patch-stamp || \
> |   for i in `ls -1r debian/diff/*.diff || :`; do patch -p1 -R <$i; done
> | rm -f configure-stamp patch-stamp build-stamp po-templates-stamp
> | rm -rf '/tmp/buildd/dash-0.5.7/debian/dash' 
> '/tmp/buildd/dash-0.5.7/debian/ash'
> | rm -f debian/files debian/substvars debian/dash.templates changelog
> |  debian/rules build-arch
> | make: *** No rule to make target 'build-arch'.  Stop.
> | dpkg-buildpackage: error: debian/rules build-arch gave error exit status 2
>
> Wild guess: dash exploits some behaviour that changed in the last dpkg 
> uploads.

The changed behaviour in dpkg-dev 1.18.8 is this one:

,----
|   * Do not use the debian/rules build target fallback when building both
|     architecture independent and dependent packages in dpkg-buipdpackage.
`----

This change is probably going to trigger quite a few FTBFS problems. :-|

I'm not sure why lintian did not complain, but dash is indeed missing
the build-arch and build-indep targets.  Attached is a debdiff which
implements them.  Note that although the build-indep target is empty,
the binary-indep target will still cause a full build due to the
implicit rules.  I did not feel motivated enough to try and fix that.

Cheers,
       Sven

diff -u dash-0.5.8/debian/changelog dash-0.5.8/debian/changelog
--- dash-0.5.8/debian/changelog
+++ dash-0.5.8/debian/changelog
@@ -1,3 +1,10 @@
+dash (0.5.8-2.3) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Add build-arch and build-indep targets to debian/rules (closes: #829666)
+
+ -- Sven Joachim <svenj...@gmx.de>  Tue, 05 Jul 2016 20:03:22 +0200
+
 dash (0.5.8-2.2) unstable; urgency=medium
 
   * Non-maintainer upload.
diff -u dash-0.5.8/debian/rules dash-0.5.8/debian/rules
--- dash-0.5.8/debian/rules
+++ dash-0.5.8/debian/rules
@@ -50,7 +50,8 @@
 	    --host='$(DEB_HOST_GNU_TYPE)')
 	touch configure-stamp
 
-build: deb-checkdir build-stamp
+build build-arch: deb-checkdir build-stamp
+build-indep:
 build-stamp: configure-stamp
 	-$(CC) -v
 	(cd build-tmp && exec $(MAKE) CFLAGS='$(CFLAGS)' CPPFLAGS='$(CPPFLAGS)' LDFLAGS='$(LDFLAGS)') || \
@@ -110,7 +111,7 @@
 		xargs -0r touch --no-dereference --date='$(BUILD_DATE)'
 	dpkg -b '$(DIR)' ..
 
-.PHONY: configure build po-templates clean patch install install-indep \
+.PHONY: configure build build-arch po-templates clean patch install install-indep \
 	  install-arch binary binary-indep binary-arch
 
 include debian/implicit

Reply via email to