On Mon, 14 May 2012 16:25:17 +0200, Evgeni Golov wrote:

> For the time being, I think the before-mentioned patches should "fix" 
> the issue, right? They would properly tight the depends (build and 
> runtime).

Agreed, and the package on
http://stuff.der-marv.de/debian/taxbird/0.18-2/ implements exactly
these changes.

Except that the resulting binary package has
Depends: …, libgeier0, …
i.e. no versioned runtime dependency.

Attached is a different approach (as a debdiff against -1) that uses
dh_gencontrol (instead of dh_makeshlibs) and leads to
… , libgeier0 (>= 0.13), …


Cheers,
gregor

-- 
 .''`.  Homepage: http://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06
 : :' : Debian GNU/Linux user, admin, and developer  -  http://www.debian.org/
 `. `'  Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe
   `-   NP: The Velvet Underground: Who Loves The Sun
diff -u taxbird-0.18/debian/control taxbird-0.18/debian/control
--- taxbird-0.18/debian/control
+++ taxbird-0.18/debian/control
@@ -2,7 +2,7 @@
 Section: gnome
 Priority: optional
 Maintainer: Marvin Stark <m...@der-marv.de>
-Build-Depends: debhelper (>= 5), libgeier-dev, libgtkhtml3.14-dev,
+Build-Depends: debhelper (>= 5), libgeier-dev (>= 0.13), libgtkhtml3.14-dev,
                libgnomeui-dev, pkg-config, guile-1.8-dev,
                quilt, autotools-dev
 Homepage: http://www.taxbird.de
@@ -10,7 +10,7 @@
 
 Package: taxbird
 Architecture: any
-Depends: libgeier0 (>= 0.12), ${shlibs:Depends}, ${misc:Depends}
+Depends: ${geier:Depends}, ${shlibs:Depends}, ${misc:Depends}
 Recommends: lpr | cups-bsd
 Suggests: html2text, html2ps
 Description: Free Elster client (German Tax Declarations)
diff -u taxbird-0.18/debian/rules taxbird-0.18/debian/rules
--- taxbird-0.18/debian/rules
+++ taxbird-0.18/debian/rules
@@ -11,6 +11,8 @@
 DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 
+GEIER_VERSION := $(shell dpkg -s libgeier-dev | sed -rne 's,^Version: ([^-]+).*,\1,p')
+
 CFLAGS = -Wall -g
 
 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
@@ -94,7 +96,7 @@
 	dh_makeshlibs
 	dh_installdeb
 	dh_shlibdeps
-	dh_gencontrol
+	dh_gencontrol -- -V'geier:Depends=libgeier0 (>= $(GEIER_VERSION))'
 	dh_md5sums
 	dh_builddeb
 

Attachment: signature.asc
Description: Digital signature

Reply via email to