Bump buildroot to 2019.02
This commit is contained in:
@@ -1,38 +0,0 @@
|
||||
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 libressl-2.5.5-orig/crypto/compat/getentropy_linux.c libressl-2.5.5/crypto/compat/getentropy_linux.c
|
||||
--- libressl-2.5.5-orig/crypto/compat/getentropy_linux.c 2017-07-09 13:59:48.000000000 +0300
|
||||
+++ libressl-2.5.5/crypto/compat/getentropy_linux.c 2017-09-29 10:03:32.447958829 +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)
|
||||
{
|
||||
@@ -1,2 +1,4 @@
|
||||
# From https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/SHA256
|
||||
sha256 859edfc71019d27c448fe148e679afdd972a0baa91b21f02b2b2f5f8a84ddd2a libressl-2.6.5.tar.gz
|
||||
sha256 9b640b13047182761a99ce3e4f000be9687566e0828b4a72709e9e6a3ef98477 libressl-2.8.3.tar.gz
|
||||
# Locally computed
|
||||
sha256 5c63613f008f16a9c0025c096bbd736cecf720494d121b5c5203e0ec6e5955b1 COPYING
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBRESSL_VERSION = 2.6.5
|
||||
LIBRESSL_VERSION = 2.8.3
|
||||
LIBRESSL_SITE = https://ftp.openbsd.org/pub/OpenBSD/LibreSSL
|
||||
LIBRESSL_LICENSE = ISC (new additions), OpenSSL or SSLeay (original OpenSSL code)
|
||||
LIBRESSL_LICENSE_FILES = COPYING
|
||||
|
||||
Reference in New Issue
Block a user