[Debian-med-packaging] Bug#974016: mrs: FTBFS with libzeep-dev 5.0.0-1: "Checking for libzeep...libzeep is not installed"

gregor herrmann gregoa at debian.org
Mon Nov 9 16:35:09 GMT 2020


Control: clone -1 -2
Control: reassign -2 src:libzeep 5.0.0-1
Control: retitle -2 "src:libzeep: override targets never called"
Control: block -1 with -2

On Mon, 09 Nov 2020 15:19:21 +0000, Niko Tyni wrote:

> Looks to me like libzeep-dev is broken because the build
> doesn't pass --enable-shared to ./configure.
> 
> Probably the override_dh_auto_configure-arch and
> override_dh_auto_configure-indep targets in src:libzeep debian/rules
> are not effective because of the earlier override_dh_auto_configure
> target. But I didn't actually test any of this.

This sounds very plausible to me after a quick check:


For arch-dependent packages:

% dh binary --no-act -a | grep configure
   debian/rules override_dh_auto_configure

For arch-independent packages:

% dh binary --no-act -i | grep configure 
   debian/rules override_dh_auto_configure


I.e. both override_dh_auto_configure-arch and
override_dh_auto_configure-indep are never called.

(The's also what the build logs show. Only
override_dh_auto_configure.)


With the following change

#v+
--- debian/rules.orig	2020-11-09 17:21:31.564290254 +0100
+++ debian/rules	2020-11-09 17:21:59.816434767 +0100
@@ -12,9 +12,6 @@
 %:
 	dh $@
 
-override_dh_auto_configure:
-	dh_auto_configure -- --enable-documentation
-
 override_dh_auto_install:
 	$(MAKE) DESTDIR=$(CURDIR)/debian/libzeep5.0 install-libs
 	$(MAKE) DESTDIR=$(CURDIR)/debian/libzeep-dev install-dev
@@ -24,7 +21,7 @@
 	dh_auto_configure -- --enable-shared --disable-documentation
 
 override_dh_auto_configure-indep:
-	dh_auto_configure -- --enable-shared
+	dh_auto_configure -- --enable-shared --enable-documentation
 
 override_dh_auto_build-indep:
 	cd $(CURDIR)/doc/ && bjam
#v-

this looks much better:


% dh binary --no-act -a | grep configure
   debian/rules override_dh_auto_configure-arch

% dh binary --no-act -i | grep configure 
   debian/rules override_dh_auto_configure-indep


Not sure which combination of flags in which override target is
actually needed/useful. Maybe the following also works:

#v+
--- debian/rules.orig	2020-11-09 17:21:31.564290254 +0100
+++ debian/rules	2020-11-09 17:27:26.694107367 +0100
@@ -12,19 +12,13 @@
 %:
 	dh $@
 
-override_dh_auto_configure:
-	dh_auto_configure -- --enable-documentation
-
 override_dh_auto_install:
 	$(MAKE) DESTDIR=$(CURDIR)/debian/libzeep5.0 install-libs
 	$(MAKE) DESTDIR=$(CURDIR)/debian/libzeep-dev install-dev
 	$(MAKE) DESTDIR=$(CURDIR)/debian/libzeep-doc install-doc
 
-override_dh_auto_configure-arch:
-	dh_auto_configure -- --enable-shared --disable-documentation
-
 override_dh_auto_configure-indep:
-	dh_auto_configure -- --enable-shared
+	dh_auto_configure -- --enable-documentation
 
 override_dh_auto_build-indep:
 	cd $(CURDIR)/doc/ && bjam
#v-

% dh binary --no-act -a | grep configure
   dh_auto_configure -O-a

% dh binary --no-act -i | grep configure 
   debian/rules override_dh_auto_configure-indep


Cloning/reassigning. mrs should probably build-depend on a fixed
libzeep afterwards.



Cheers,
gregor

-- 
 .''`.  https://info.comodo.priv.at -- Debian Developer https://www.debian.org
 : :' : OpenPGP fingerprint D1E1 316E 93A7 60A8 104D  85FA BB3A 6801 8649 AA06
 `. `'  Member VIBE!AT & SPI Inc. -- Supporter Free Software Foundation Europe
   `-   NP: Donovan: Oh deed I do
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: Digital Signature
URL: <http://alioth-lists.debian.net/pipermail/debian-med-packaging/attachments/20201109/c6f00478/attachment-0002.sig>


More information about the Debian-med-packaging mailing list