Control: tags 854474 + patch

Hi,

> make[1]: *** [override_dh_install] Error 2
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
> debian/rules:8: recipe for target 'binary-indep' failed
> make: *** [binary-indep] Error 2
> dpkg-buildpackage: error: fakeroot debian/rules binary-indep gave error exit 
> status 2
> --------------------------------------------------------------------------------
> 
> To reproduce, please try building with "dpkg-buildpackage -A".
> 
> Also, please consider uploading in source-only form (dpkg-buildpackage -S),
> so that this kind of bugs never propagate to testing.

I also confirmed that this problem will occur.
I fixed this problem by adding dh_auto_install to 
override_dh_auto_install-indep,
because the alsa data file is not installed under usr/share/alsa in the 
previous process.

I attached a patch which reviced this problem.

Best regards,
  Nobuhiro

-- 
Nobuhiro Iwamatsu
   iwamatsu at {nigauri.org / debian.org}
   GPG ID: 40AD1FA6
From 089c6e8a556bc0944779638b9e38a1aa6df902f7 Mon Sep 17 00:00:00 2001
From: Nobuhiro Iwamatsu <iwama...@debian.org>
Date: Sat, 11 Feb 2017 06:28:50 +0900
Subject: [PATCH] Fix build with dpkg-buildpackage -A

Add dh_auto_install to target for override_dh_auto_install-indep,
because alsa data file is not installed under usr/share/alsa in
the previous process.

Signed-off-by: Nobuhiro Iwamatsu <iwama...@debian.org>
---
 debian/changelog | 7 +++++++
 debian/rules     | 1 +
 2 files changed, 8 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 74e22d2..34af3b3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+alsa-lib (1.1.3-4.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTBFS when built with dpkg-buildpackage -A (Closes: #854474)
+
+ -- Nobuhiro Iwamatsu <iwama...@debian.org>  Sat, 11 Feb 2017 08:53:54 +0900
+
 alsa-lib (1.1.3-4) unstable; urgency=medium
 
   * Add copyright notes for src/topology. Thanks Thorsten Alteholz for
diff --git a/debian/rules b/debian/rules
index 171d275..b8918f2 100755
--- a/debian/rules
+++ b/debian/rules
@@ -18,6 +18,7 @@ override_dh_auto_build-indep:
 
 override_dh_auto_install-indep:
 	$(MAKE) -C doc install
+	dh_auto_install
 
 override_dh_installdocs:
 	dh_installdocs -X.md5 -Xall_a.js -Xall_f.js -Xall_14.js -Xall_15.js
-- 
2.11.0

Attachment: signature.asc
Description: PGP signature

Reply via email to