Bug#757855: libwx-perl: embeds exact wxWidgets version, needs stricter dependencies

gregor herrmann gregoa at debian.org
Mon Aug 11 22:09:25 UTC 2014


On Mon, 11 Aug 2014 23:31:50 +0300, Niko Tyni wrote:

>  Package: libwx-perl
>  Depends: wxperl-gtk2-3-0-1-uni-gcc-3-4
> 
> Possibly just 'wxperl-3.0.1' would do, I don't really mind.

Here's a prototype for getting the nice string during build:

#v+
diff --git a/debian/rules b/debian/rules
index 5d9f45d..c3f1e93 100755
--- a/debian/rules
+++ b/debian/rules
@@ -15,3 +15,7 @@ PERLAPI := $(shell perl -MConfig -e 'print ($$Config{debian_abi} || $$Config{ver
 
 override_dh_gencontrol:
 	dh_gencontrol -- -V'samewx:Depends=libwxgtk$(WXVER)-dev (>= $(VMAJOR).$(VMINOR).$(VPATCH)), libwxgtk$(WXVER)-dev (<< $(VMAJOR).$(VMINOR).$(NEXTPATCH)~), libwxgtk-media$(WXVER)-dev (>= $(VMAJOR).$(VMINOR).$(VPATCH)), libwxgtk-media$(WXVER)-dev (<< $(VMAJOR).$(VMINOR).$(NEXTPATCH)~)' -V'perlapi:Depends=perlapi-$(PERLAPI)'
+
+override_dh_auto_build:
+	dh_auto_build
+	PERL5LIB=$(CURDIR)/blib/lib:$(CURDIR)/blib/arch perl -MAlien::wxWidgets -e '$$key = Alien::wxWidgets->key; $$key =~ s/_/-/g; print "alien-wxwidgets-$$key";'
#v-

Build output:

   debian/rules override_dh_auto_build
make[1]: Entering directory '/tmp/buildd/libalien-wxwidgets-perl-0.65+dfsg'
dh_auto_build
Building Alien-wxWidgets
PERL5LIB=/tmp/buildd/libalien-wxwidgets-perl-0.65+dfsg/blib/lib:/tmp/buildd/libalien-wxwidgets-perl-0.65+dfsg/blib/arch perl -MAlien::wxWidgets -e '$key = Alien::wxWidgets->key; $key =~ s/_/-/g; print "alien-wxwidgets-$key";'
alien-wxwidgets-gtk2-3-0-1-uni-gcc-3-4

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: Status Quo: Pictures Of Matchstick Men
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: Digital Signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20140812/811645a4/attachment.sig>


More information about the pkg-perl-maintainers mailing list