Control: tag -1 + patch

The attached patch changes the detection of libcurl by not checking for
the curl.h header, but for the curl-config command provided by the same
-dev package.

Regards,
  Reiner
diff --git a/debian/patches/curl-detection.patch b/debian/patches/curl-detection.patch
new file mode 100644
index 0000000..8a463d8
--- /dev/null
+++ b/debian/patches/curl-detection.patch
@@ -0,0 +1,18 @@
+Author: Reiner Herrmann <rei...@reiner-h.de>
+Description: Fix detection of libcurl
+ curl headers are now in a multiarch include directory, so the current
+ check no longer succeeds. Check for curl-config instead, which is
+ provided by the same -dev package as the headers.
+Bug-Debian: https://bugs.debian.org/852894
+
+--- a/m4/reorganization/libs/curl.m4
++++ b/m4/reorganization/libs/curl.m4
+@@ -18,7 +18,7 @@
+ AC_MSG_RESULT([$LIBCURL_HOME])
+ ])
+ 
+-if test ! -f "$LIBCURL_HOME/include/curl/curl.h"
++if test ! -f "$LIBCURL_HOME/bin/curl-config"
+ then
+     AC_MSG_WARN([libcurl not found. Please use the web interface for submitting FPs/FNs.])
+ else
diff --git a/debian/patches/series b/debian/patches/series
index 5b943a3..32b7e8b 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -11,3 +11,4 @@ Add-support-for-LLVM-3.7.patch
 Add-support-for-LLVM-3.8.patch
 Add-support-for-LLVM-3.9.patch
 bb11549-fix-temp-file-cleanup-issue.patch
+curl-detection.patch

Attachment: signature.asc
Description: PGP signature

Reply via email to