[packages/ntp] - fix build issues related to md5

baggins baggins at pld-linux.org
Wed Dec 31 10:51:49 CET 2025


commit 77c66d865a9b1f614b3cd6748fa6b6eb52429063
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Wed Dec 31 12:51:19 2025 +0100

    - fix build issues related to md5

 ntp-openssl.patch | 11 +++++++++++
 ntp.spec          |  3 ++-
 2 files changed, 13 insertions(+), 1 deletion(-)
---
diff --git a/ntp.spec b/ntp.spec
index e99ebaf..2b8dd2f 100644
--- a/ntp.spec
+++ b/ntp.spec
@@ -63,6 +63,7 @@ BuildRequires:	readline-devel >= 4.2
 BuildRequires:	rpm-build >= 4.6
 BuildRequires:	rpm-perlprov >= 4.1-13
 BuildRequires:	rpmbuild(macros) >= 1.626
+BuildConflicts:	libmd5-devel
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define		_sysconfdir	/etc/ntp
@@ -272,7 +273,7 @@ cd libevent
 %{__automake}
 cd ../..
 
-CPPFLAGS="%{rpmcppflags} -I/usr/include/readline"
+CPPFLAGS="%{rpmcppflags} -I/usr/include/readline -I/usr/include/openssl"
 %configure \
 	--enable-getifaddrs \
 	--enable-ipv6 \
diff --git a/ntp-openssl.patch b/ntp-openssl.patch
index 29fc8b7..ead6390 100644
--- a/ntp-openssl.patch
+++ b/ntp-openssl.patch
@@ -59,3 +59,14 @@
  
  	return d.extract;
  }
+--- ntp-4.2.8p18/include/ntp_md5.h~	2024-05-07 13:21:16.000000000 +0200
++++ ntp-4.2.8p18/include/ntp_md5.h	2025-12-31 12:47:12.883312430 +0100
+@@ -8,7 +8,7 @@
+ 
+ /* Use the system MD5 or fall back on libisc's */
+ # if defined HAVE_MD5_H && defined HAVE_MD5INIT
+-#  include <md5.h>
++#  include <openssl/md5.h>
+ # else
+ #  include "isc/md5.h"
+    typedef isc_md5_t		MD5_CTX;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ntp.git/commitdiff/77c66d865a9b1f614b3cd6748fa6b6eb52429063



More information about the pld-cvs-commit mailing list