summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkroeckx <kroeckx@0070b5ef-2f16-0410-befa-9a02bd1d6ddb>2013-05-20 14:21:20 +0000
committerkroeckx <kroeckx@0070b5ef-2f16-0410-befa-9a02bd1d6ddb>2013-05-20 14:21:20 +0000
commite27645aaddc65bf0dc01cfa85bf5b554abee6a16 (patch)
treebeb48e0b03b911ab0f4b573f2b0f92a6dc8a2473
parentb6061167e3c59cf7553f1795be7627ada1f8d6e8 (diff)
downloadntp-e27645aaddc65bf0dc01cfa85bf5b554abee6a16.tar.gz
Make it depect openssl when it moves it's headers to be multiarch compatible.
(Closes: #696390) git-svn-id: svn://svn.debian.org/pkg-ntp/ntp/trunk@365 0070b5ef-2f16-0410-befa-9a02bd1d6ddb
-rw-r--r--debian/changelog8
-rw-r--r--debian/patches/autotools.patch26
-rw-r--r--debian/patches/openssl-headers.patch23
-rw-r--r--debian/patches/series3
4 files changed, 59 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog
index 942d042..dab8c39 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+ntp (1:4.2.6.p5+dfsg-3) unstable; urgency=low
+
+ * Look for <openssl/opensslv.h> rather than <openssl/opensslconf.h>, which
+ is due to move to a different location in order to support multiarch.
+ Patch by Colin Watson <cjwatson@ubuntu.com> (Closes: #696390)
+
+ -- Kurt Roeckx <kurt@roeckx.be> Mon, 20 May 2013 16:14:07 +0200
+
ntp (1:4.2.6.p5+dfsg-2) unstable; urgency=medium
* Re-enable crypto support by pointing openssl libdir to multiarch dir.
diff --git a/debian/patches/autotools.patch b/debian/patches/autotools.patch
index 100fc2c..373f071 100644
--- a/debian/patches/autotools.patch
+++ b/debian/patches/autotools.patch
@@ -1068,6 +1068,19 @@ until it works.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking VARITEXT clock" >&5
$as_echo_n "checking VARITEXT clock... " >&6; }
+@@ -22915,10 +22964,10 @@
+ case "$ans" in
+ no)
+ ;;
+- *) # look for openssl/opensslconf.h:
++ *) # look for openssl/opensslv.h:
+ for i in $ans no
+ do
+- test -f $i/openssl/opensslconf.h && break
++ test -f $i/openssl/opensslv.h && break
+ done
+ case "$i" in
+ no)
@@ -25112,8 +25161,6 @@
ac_config_files="$ac_config_files Makefile"
@@ -4432,6 +4445,19 @@ until it works.
ac_config_commands="$ac_config_commands libtool"
+@@ -14857,10 +14930,10 @@
+ case "$ans" in
+ no)
+ ;;
+- *) # look for openssl/opensslconf.h:
++ *) # look for openssl/opensslv.h:
+ for i in $ans no
+ do
+- test -f $i/openssl/opensslconf.h && break
++ test -f $i/openssl/opensslv.h && break
+ done
+ case "$i" in
+ no)
@@ -16881,6 +16954,7 @@
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
diff --git a/debian/patches/openssl-headers.patch b/debian/patches/openssl-headers.patch
new file mode 100644
index 0000000..f26d21f
--- /dev/null
+++ b/debian/patches/openssl-headers.patch
@@ -0,0 +1,23 @@
+Description: Make OpenSSL header detection more reliable
+ <openssl/opensslconf.h> is architecture-dependent and so may reside in a
+ different location on multiarch-capable systems. Check for
+ <openssl/opensslv.h> instead.
+Author: Colin Watson <cjwatson@ubuntu.com>
+Forwarded: no
+Last-Update: 2012-12-20
+
+--- a/m4/ntp_openssl.m4
++++ b/m4/ntp_openssl.m4
+@@ -86,10 +86,10 @@
+ case "$ans" in
+ no)
+ ;;
+- *) # look for openssl/opensslconf.h:
++ *) # look for openssl/opensslv.h:
+ for i in $ans no
+ do
+- test -f $i/openssl/opensslconf.h && break
++ test -f $i/openssl/opensslv.h && break
+ done
+ case "$i" in
+ no)
diff --git a/debian/patches/series b/debian/patches/series
index 8fe5cf8..c2ec25e 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -6,6 +6,7 @@ ntpd-linux-caps-inheritable.patch
ntpd-ni-maxhost.patch
openssl-disable-check.patch
libedit.patch
-autotools.patch
format-security.patch
sntp-manpage.patch
+openssl-headers.patch
+autotools.patch