Package: ntp / 1:4.2.8p12+dfsg-4

Metadata

Package Version Patches format
ntp 1:4.2.8p12+dfsg-4 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
openssl_libdir.patch | (download)

sntp/m4/ntp_openssl.m4 | 15 0 + 15 - 0 !
1 file changed, 15 deletions(-)

 don't set an rpath for openssl just because it's not in /usr/lib
dfsg.patch | (download)

adjtimed/adjtimed.c | 2 0 + 2 - 0 !
configure.ac | 45 22 + 23 - 0 !
include/Makefile.am | 4 0 + 4 - 0 !
libntp/Makefile.am | 1 0 + 1 - 0 !
libparse/Makefile.am | 2 0 + 2 - 0 !
scripts/Makefile.am | 1 0 + 1 - 0 !
6 files changed, 22 insertions(+), 33 deletions(-)

 make the package compile with non dfsg compatible parts removed.
includes.patch | (download)

include/ntp_control.h | 4 4 + 0 - 0 !
include/ntpd.h | 1 1 + 0 - 0 !
2 files changed, 5 insertions(+)

---
ntpdate ipv6.patch | (download)

ntpdate/ntpdate.c | 3 1 + 2 - 0 !
1 file changed, 1 insertion(+), 2 deletions(-)

---
ntpd linux caps runtime.patch | (download)

ntpd/ntpd.c | 22 22 + 0 - 0 !
1 file changed, 22 insertions(+)

 runtime check for capabilities
Bug: http://bugs.ntp.org/1433
Bug-Debian: http://bugs.debian.org/282941
Bug-Debian: http://bugs.debian.org/298059

add runtime check whether the kernel really supports capabilities; do
not drop root privileges if not


openssl disable check.patch | (download)

libntp/ssl_init.c | 12 0 + 12 - 0 !
1 file changed, 12 deletions(-)

---
libedit.patch | (download)

libntp/ntp_lineedit.c | 4 2 + 2 - 0 !
1 file changed, 2 insertions(+), 2 deletions(-)

---
reproducible build.patch | (download)

scripts/build/mkver.in | 2 0 + 2 - 0 !
1 file changed, 2 deletions(-)

---
sntp sysexits.patch | (download)

sntp/main.c | 4 4 + 0 - 0 !
1 file changed, 4 insertions(+)

 building 4.2.8p8 with disabled local libopts fails
Bug: http://bugs.ntp.org/show_bug.cgi?id=3132

When trying to build 4.2.8p8 with the --disable-local-libopts option on Fedora,
it fails with the following error:

main.c: In function ‘sntp_main’:
main.c:143:8: error: ‘EX_SOFTWARE’ undeclared (first use in this function)
   exit(EX_SOFTWARE);      
        ^~~~~~~~~~~        
...


It seems the problem is that sntp/main.c is missing "#include <sysexits.h>".
The configure script detects that the system has sysexits.h, but then the sntp
code doesn't use it, expecting the local definitions of the EX_* macros.

The following patch fixes the problem for me:


debian locfile.patch | (download)

sntp/loc/debian | 8 4 + 4 - 0 !
1 file changed, 4 insertions(+), 4 deletions(-)

---
sntp kod location.patch | (download)

sntp/sntp-opts.def | 2 1 + 1 - 0 !
sntp/sntp.man.in | 2 1 + 1 - 0 !
2 files changed, 2 insertions(+), 2 deletions(-)

 use fhs compliant path for sntp kod database
 /var/db/ntp-kod is hardcoded in the sources and not permitted by FHS
 .
 The path is also present in sntp/sntp-opts.c and sntp/sntp.1sntpman, which
 get regenerated by autogen at build time
disable test decodenetnum.patch | (download)

tests/libntp/Makefile.am | 1 0 + 1 - 0 !
1 file changed, 1 deletion(-)

 disable failing test-decodenetnum unit test
CVE 2019 8936.patch | (download)

ntpd/ntp_control.c | 26 17 + 9 - 0 !
1 file changed, 17 insertions(+), 9 deletions(-)

---