diff options
author | Adam Duskett <aduskett@gmail.com> | 2017-11-08 08:04:58 -0500 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2017-11-22 22:51:58 +0100 |
commit | 6e22ed19e1a0e8367f15b10c7727cce5363fe236 (patch) | |
tree | 03b76ecf1f3a64e80329e78dff6aef88d461c852 /package/openntpd/0001-fix-musl.patch | |
parent | 099c2ceaa8adfcdcbbaf039000e1fe26a33a6165 (diff) | |
download | buildroot-6e22ed19e1a0e8367f15b10c7727cce5363fe236.tar.gz buildroot-6e22ed19e1a0e8367f15b10c7727cce5363fe236.zip |
openntpd: update to 6.2p3
Other changes:
- Remove upstream patch.
- Change locally computed hash to hash from the SHA256 URL.
- Add sha256sum for license file.
Note that we need to keep <pkg>_AUTORECONF = YES even though the patch
touching the Makefile.am has been removed, because our libtool patch
doesn't apply on the bundled ltmain.sh.
Signed-off-by: Adam Duskett <aduskett@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/openntpd/0001-fix-musl.patch')
-rw-r--r-- | package/openntpd/0001-fix-musl.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/package/openntpd/0001-fix-musl.patch b/package/openntpd/0001-fix-musl.patch new file mode 100644 index 0000000000..e369d5a8ae --- /dev/null +++ b/package/openntpd/0001-fix-musl.patch @@ -0,0 +1,38 @@ +From: Baruch Siach <baruch@tkos.co.il> +Date: Fri, 29 Sep 2017 10:06:52 +0300 +Subject: [PATCH] Fix build with musl and older Linux kernel + +The musl libc carries its own copy of Linux system calls. When building +with Linux headers older than v3.17, musl provides SYS_getrandom +definition, but not GRND_NONBLOCK. This causes build failure for +libressl and openntpd: + +getentropy_linux.c: In function 'getentropy_getrandom': +getentropy_linux.c:205:42: error: 'GRND_NONBLOCK' undeclared (first use in this function) + ret = syscall(SYS_getrandom, buf, len, GRND_NONBLOCK); + ^~~~~~~~~~~~~ + +Define GRND_NONBLOCK locally when its definition is missing to fix the +build. There should be no run-time effect. Older kernels return ENOSYS +for unsupported syscall(). + +[ from upstream pull request with file location changed ] +Signed-off-by: Baruch Siach <baruch@tkos.co.il> +--- +Upstream status: https://github.com/libressl-portable/openbsd/pull/82 + +diff -Nuar openntpd-6.2p2-orig/compat/getentropy_linux.c openntpd-6.2p2/compat/getentropy_linux.c +--- openntpd-6.2p2-orig/compat/getentropy_linux.c 2017-09-07 22:12:02.000000000 +0300 ++++ openntpd-6.2p2/compat/getentropy_linux.c 2017-09-29 11:54:54.856245770 +0300 +@@ -194,6 +194,11 @@ + } + + #ifdef SYS_getrandom ++ ++#ifndef GRND_NONBLOCK ++#define GRND_NONBLOCK 0x0001 ++#endif ++ + static int + getentropy_getrandom(void *buf, size_t len) + { |