Processed: Re: Bug#806629: libkarma: FTBFS when built with dpkg-buildpackage -A (dh_clideps fails)

2016-12-16 Thread Debian Bug Tracking System
Processing control commands:

> tags -1 + patch pending
Bug #806629 [src:libkarma] libkarma: FTBFS when built with dpkg-buildpackage -A 
(dh_clideps fails)
Added tag(s) patch and pending.

-- 
806629: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=806629
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems



Bug#806629: libkarma: FTBFS when built with dpkg-buildpackage -A (dh_clideps fails)

2016-12-16 Thread Sébastien Villemot
Control: tags -1 + patch pending

Dear Maintainer,

Le dimanche 29 novembre 2015 à 16:22 +, Santiago Vila a écrit :
> Package: src:libkarma
> Version: 0.1.2-2.3
> User: sanv...@debian.org
> Usertags: binary-indep
> Severity: important
> 
> Dear maintainer:
> 
> I tried to build this package with "dpkg-buildpackage -A"
> (i.e. only architecture-independent packages), and it failed:

I am going to upload an NMU of libkarma fixing this bug. The debdiff is
attached. I am going to upload without a delay, according to usual NMU
rules, and given the very close freeze deadlines.

Best,

-- 
 .''`.Sébastien Villemot
: :' :Debian Developer
`. `' http://sebastien.villemot.name
  `-  GPG Key: 4096R/381A7594

diff -Nru libkarma-0.1.2/debian/changelog libkarma-0.1.2/debian/changelog
--- libkarma-0.1.2/debian/changelog	2015-11-18 13:29:04.0 +0100
+++ libkarma-0.1.2/debian/changelog	2016-12-16 22:36:06.0 +0100
@@ -1,3 +1,13 @@
+libkarma (0.1.2-2.5) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTBFS when building only arch-indep packages. Implement the
+workaround documented in #830416: when dh_makeshlibs has not been
+called, create a phony shlibs.local so that dh_clideps does not crash.
+(Closes: #806629)
+
+ -- Sébastien Villemot   Fri, 16 Dec 2016 22:36:06 +0100
+
 libkarma (0.1.2-2.4) unstable; urgency=medium
 
   * Non-maintainer upload.
diff -Nru libkarma-0.1.2/debian/rules libkarma-0.1.2/debian/rules
--- libkarma-0.1.2/debian/rules	2012-01-18 23:12:07.0 +0100
+++ libkarma-0.1.2/debian/rules	2016-12-16 22:36:06.0 +0100
@@ -15,3 +15,13 @@
 
 %:
 	dh $@
+
+# dh_clideps expects to see dh_makeshlibs called before it, but dh_makeshlibs
+# is never called when building only arch-indep packages. So we force the issue
+# by making a phony shlibs.local file that dh_clideps will accept, if no others
+# exist. See #806629 for the specific case of libkarma and #830416 for the bug
+# in dh_clideps.
+override_dh_clideps:
+	if ! grep -q . debian/*/DEBIAN/shlibs; then echo libkarma 0 libkarma0 > debian/shlibs.local; fi
+	dh_clideps
+	rm -f debian/shlibs.local


signature.asc
Description: This is a digitally signed message part