]> git.ipfire.org Git - people/ms/ipfire-3.x.git/commitdiff
python-pycurl: Fix dependencies for curl.
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 3 Aug 2011 10:27:47 +0000 (12:27 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 3 Aug 2011 10:27:47 +0000 (12:27 +0200)
pycurl checks the version of libcurl when it starts and needs
the same or a higher version than it was built with.

pkgs/python-pycurl/python-pycurl.nm

index d78f031d2233b94ee42ea33f6df01de07486f544..712e9066f72e18afc3687d7dfe5125d58bf339d3 100644 (file)
@@ -26,7 +26,7 @@ include $(PKGROOT)/Include
 
 PKG_NAME       = pycurl
 PKG_VER        = 7.19.0
-PKG_REL        = 2
+PKG_REL        = 3
 
 PKG_MAINTAINER =
 PKG_GROUPS     = Development/Languages
@@ -38,6 +38,14 @@ CFLAGS        += -DHAVE_CURL_OPENSSL
 
 PKG_BUILD_DEPS+= libcurl-devel openssl-devel python-devel
 
+# During its initialization, PycURL checks that the actual libcurl version
+# is not lower than the one used when PycURL was built.
+# Yes, that should be handled by library versioning (which would then get
+# automatically reflected).
+# For now, we have to reflect that dependency.
+LIBCURL_VERSION = $(shell curl-config --version | awk '{ print $$NF }')
+PKG_DEPS += libcurl>=$(LIBCURL_VERSION)
+
 define PKG_DESCRIPTION
        PycURL is a Python interface to libcurl. PycURL can be used to fetch \
        objects identified by a URL from a Python program, similar to the \