On Mon, 11 Aug 2014 22:57:59 +0300, Niko Tyni wrote: > For the time being, I suppose we need to make the dependencies in libwx-perl > stricter in the same style as we already do with libalien-wxwidgets-perl. [..] > Package: libwx-perl > Depends: perl (>= 5.18.2-2+b1), perlapi-5.18.2, libc6 (>= 2.14), libgcc1 (>= > 1:4.1.1), libwxbase3.0-0 (>= 3.0.0), libwxgtk-media3.0-0 (>= 3.0.0), > libwxgtk3.0-0 (>= 3.0.0), libalien-wxwidgets-perl (>= 0.65+dfsg~) > > I see the current libwx* dependencies come from dpkg-shlibdeps, so I'm > not sure what's the best way to achieve a (<< next~) pair for them all.
It works with overriding dh_gencontrol, cf. the attached quick patch, which leads to: Depends: perl (>= 5.18.2-7), perlapi-5.18.2, libc6 (>= 2.14), libgcc1 (>= 1:4.1.1), libwxbase3.0-0 (>= 3.0.1-2), libwxgtk-media3.0-0 (>= 3.0.1-2), libwxgtk3.0-0 (>= 3.0.1-2), libwxgtk3.0-0 (<< 3.0.2~), libwxgtk-media3.0-0 (<< 3.0.2~), libwxbase3.0-0 (<< 3.0.2~), libalien-wxwidgets-perl (>= 0.65+dfsg~) But yes, maybe the Provides way is more elegant. 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: Tracy Chapman: Baby Can I Hold You
diff --git a/debian/control b/debian/control index d1bba43..183ed94 100644 --- a/debian/control +++ b/debian/control @@ -28,6 +28,7 @@ Architecture: any Depends: ${perl:Depends}, ${shlibs:Depends}, ${misc:Depends}, + ${samewx:Depends}, libalien-wxwidgets-perl (>= 0.65+dfsg~) Description: interface to wxWidgets cross-platform GUI toolkit wxPerl is an extension module allowing the creation of GUI (Graphical diff --git a/debian/rules b/debian/rules index 38d2d64..98862bb 100755 --- a/debian/rules +++ b/debian/rules @@ -7,6 +7,16 @@ DEBIAN_TARGETS := clean binary binary-arch binary-indep build build-arch build-i ARCHLIB := $(shell perl -MConfig -e 'print $$Config{vendorarch}') +# wxWidgets version +WXVER=3.0 +SONAME=0 +export V=`dpkg -s libwxgtk$(WXVER)-dev | grep ^Version |cut -f2 -d' '` +VMAJOR:=$(shell echo $(V) |cut -f 1 -d .) +VMINOR:=$(shell echo $(V) |cut -f 2 -d .) +VPATCH:=$(shell echo $(V) |cut -f 3 -d .) +NEXTPATCH:=$(shell expr $(VPATCH) + 1 2>/dev/null || expr `echo $(VPATCH) | cut -f 1 -d - ` + 1) + + $(DEBIAN_TARGETS): dh $@ --parallel @@ -27,4 +37,8 @@ override_dh_installexamples: chmod 0644 $(TMP)/usr/share/doc/$(PACKAGE)/examples/README.txt find $(TMP)/usr/share/doc/$(PACKAGE)/examples -name '*.pl' -exec chmod 0755 {} \; +override_dh_gencontrol: + dh_gencontrol -- -V'samewx:Depends=libwxgtk$(WXVER)-$(SONAME) (>= $(VMAJOR).$(VMINOR).$(VPATCH)), libwxgtk$(WXVER)-$(SONAME) (<< $(VMAJOR).$(VMINOR).$(NEXTPATCH)~), libwxgtk-media$(WXVER)-$(SONAME) (>= $(VMAJOR).$(VMINOR).$(VPATCH)), libwxgtk-media$(WXVER)-$(SONAME) (<< $(VMAJOR).$(VMINOR).$(NEXTPATCH)~), libwxbase$(WXVER)-$(SONAME) (>= $(VMAJOR).$(VMINOR).$(VPATCH)), libwxbase$(WXVER)-$(SONAME) (<< $(VMAJOR).$(VMINOR).$(NEXTPATCH)~)' + + .PHONY: $(DEBIAN_TARGETS)
signature.asc
Description: Digital Signature