ntpd: update to 4.2.8p18
authorRosen Penev <[email protected]>
Wed, 30 Apr 2025 23:38:11 +0000 (16:38 -0700)
committerRobert Marko <[email protected]>
Thu, 1 May 2025 21:10:30 +0000 (23:10 +0200)
Add small patch fixing compilation with GCC14.

Remove inactive maintainer.

Signed-off-by: Rosen Penev <[email protected]>
net/ntpd/Makefile
net/ntpd/patches/010-gcc14.patch [new file with mode: 0644]

index d9d02d213fea8b09bcd402b9cce8e71c01ae458d..ca7c7a346ea8fe7f7a474851deb0b46910fadeeb 100644 (file)
@@ -8,15 +8,16 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=ntp
-PKG_REALVERSION:=4.2.8p17
+PKG_REALVERSION:=4.2.8p18
 PKG_VERSION:=$(subst p,_p,$(PKG_REALVERSION))
 PKG_RELEASE:=3
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_REALVERSION).tar.gz
 PKG_SOURCE_URL:=http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/
-PKG_HASH:=103dd272e6a66c5b8df07dce5e9a02555fcd6f1397bdfb782237328e89d3a866
+PKG_HASH:=cf84c5f3fb1a295284942624d823fffa634144e096cfc4f9969ac98ef5f468e5
 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_REALVERSION)
 
+PKG_MAINTAINER:=
 PKG_LICENSE:=NTP
 PKG_LICENSE_FILES:=COPYRIGHT html/copyright.html
 PKG_CPE_ID:=cpe:/a:ntp:ntp
@@ -32,7 +33,6 @@ define Package/ntpd/Default
   SECTION:=net
   CATEGORY:=Network
   TITLE:=ISC ntp
-  MAINTAINER:=Peter Wagner <[email protected]>
   URL:=http://www.ntp.org/
   DEPENDS:=+libopenssl +libpthread +libcap
 endef
diff --git a/net/ntpd/patches/010-gcc14.patch b/net/ntpd/patches/010-gcc14.patch
new file mode 100644 (file)
index 0000000..ff8ce0b
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/libntp/machines.c
++++ b/libntp/machines.c
+@@ -477,7 +477,7 @@ ntp_set_tod(
+ #endif /* HAVE_SETTIMEOFDAY */
+ #ifdef HAVE_STIME
+       if (rc && (SET_TOD_STIME == tod || !tod)) {
+-              long tp = tvp->tv_sec;
++              time_t tp = tvp->tv_sec;
+               errno = 0;
+               rc = stime(&tp); /* lie as bad as SysVR4 */