From a8aa823a772724abd7c61ee457b208afa44e4e7e Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Sat, 7 Dec 2013 12:49:28 +0000 Subject: Ugly: Bogus dependency on libotr2-dev, but adding a warning to the configure script that this actually won't work. This because I can't figure out how to make a source dependency conditional on whether a certain binary packages is going to be built. It's kind of okay since libotr2-dev is unavailable on new systems anyway. --- configure | 6 ++++++ debian/control | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 1e3a2421..4ba70291 100755 --- a/configure +++ b/configure @@ -511,6 +511,12 @@ elif [ "$otr" = "plugin" ]; then echo "CFLAGS+=-I${otrprefix}/include" >> Makefile.settings echo 'OTR_PI=otr.so' >> Makefile.settings fi +if [ "$otr" != 0 ] && ! pkg-config libotr --atleast-version=4.0; then + echo + echo 'WARNING: Your libotr seems to be old. BitlBee now needs at least libotr 4.0.' + # Not hard-failing because the code above doesn't use pkg-config, so who knows + # what's true at this point... +fi if [ "$skype" = "1" -o "$skype" = "plugin" ]; then if [ "$arch" = "Darwin" ]; then diff --git a/debian/control b/debian/control index 56114bd7..0d4b1739 100644 --- a/debian/control +++ b/debian/control @@ -4,7 +4,7 @@ Priority: optional Maintainer: Wilmer van der Gaast Uploaders: Jelmer Vernooij Standards-Version: 3.9.1 -Build-Depends: libglib2.0-dev (>= 2.4), libevent-dev, gnutls-dev | libgnutls-dev, po-debconf, libpurple-dev, libotr5-dev, debhelper (>= 6.0.7~), asciidoc +Build-Depends: libglib2.0-dev (>= 2.4), libevent-dev, gnutls-dev | libgnutls-dev, po-debconf, libpurple-dev, libotr5-dev | libotr2-dev, debhelper (>= 6.0.7~), asciidoc Homepage: http://www.bitlbee.org/ Vcs-Bzr: http://code.bitlbee.org/bitlbee/ DM-Upload-Allowed: yes -- cgit v1.2.3