diff --git a/srcpkgs/openntpd/patches/fix-time_t-overflow.patch b/srcpkgs/openntpd/patches/fix-time_t-overflow.patch new file mode 100644 index 00000000000..4afbf2ed0af --- /dev/null +++ b/srcpkgs/openntpd/patches/fix-time_t-overflow.patch @@ -0,0 +1,12 @@ +--- a/src/constraint.c ++++ b/src/constraint.c +@@ -842,7 +842,7 @@ constraint_update(void) + /* calculate median */ + i = cnt / 2; + if (cnt % 2 == 0) +- conf->constraint_median = (values[i - 1] + values[i]) / 2; ++ conf->constraint_median = ((long long)values[i - 1] + values[i]) / 2; + else + conf->constraint_median = values[i]; + + diff --git a/srcpkgs/openntpd/template b/srcpkgs/openntpd/template index 3460b0fd347..72c43ac0a91 100644 --- a/srcpkgs/openntpd/template +++ b/srcpkgs/openntpd/template @@ -1,7 +1,7 @@ # Template file for 'openntpd' pkgname=openntpd version=6.8p1 -revision=4 +revision=5 build_style=gnu-configure configure_args="--with-privsep-user=openntpd --with-cacert=/etc/ssl/certs.pem" hostmakedepends="automake libtool"