diff options
author | Khem Raj <raj.khem@gmail.com> | 2017-12-02 00:37:37 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-03-14 07:55:53 -0700 |
commit | a9cf5f2a6e827d0e50a5931cceea0b0b03066b1a (patch) | |
tree | 520b2ec1493a2b50ded91899d83c98d28f0dac48 /meta/recipes-support/gnutls/gnutls_3.5.3.bb | |
parent | 97690dfe87c3c6048c96702cf8f2a77fe787fe15 (diff) | |
download | poky-a9cf5f2a6e827d0e50a5931cceea0b0b03066b1a.tar.gz |
gnutls_3.5.3.bb: Fix native build on distro with kernel < 3.4.17
When using distros which use old kernels gnutls fails to build
due to missing SYS_getrandom, therefore we need to check for this
before using it.
Fixes errorr e.g.
| ../../../gnutls-3.5.3/lib/nettle/rnd-linux.c: In function 'have_getrandom':
| ../../../gnutls-3.5.3/lib/nettle/rnd-linux.c:59:42: error: 'SYS_getrandom' undeclared (first use in this function)
| # define getrandom(dst,s,flags) syscall(SYS_getrandom, (void*)dst, (size_t)s, (unsigned int)flags)
(From OE-Core rev: ce18ec34549cf11d84a906c2abe7a492b8687c4f)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/gnutls/gnutls_3.5.3.bb')
-rw-r--r-- | meta/recipes-support/gnutls/gnutls_3.5.3.bb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-support/gnutls/gnutls_3.5.3.bb b/meta/recipes-support/gnutls/gnutls_3.5.3.bb index b2dbb07124..04005883a9 100644 --- a/meta/recipes-support/gnutls/gnutls_3.5.3.bb +++ b/meta/recipes-support/gnutls/gnutls_3.5.3.bb | |||
@@ -4,6 +4,7 @@ SRC_URI += "file://correct_rpl_gettimeofday_signature.patch \ | |||
4 | file://0001-configure.ac-fix-sed-command.patch \ | 4 | file://0001-configure.ac-fix-sed-command.patch \ |
5 | file://use-pkg-config-to-locate-zlib.patch \ | 5 | file://use-pkg-config-to-locate-zlib.patch \ |
6 | file://0001-Use-correct-include-dir-with-minitasn.patch \ | 6 | file://0001-Use-correct-include-dir-with-minitasn.patch \ |
7 | file://check_SYS_getrandom.patch \ | ||
7 | file://CVE-2016-7444.patch \ | 8 | file://CVE-2016-7444.patch \ |
8 | " | 9 | " |
9 | SRC_URI[md5sum] = "6c2c7f40ddf52933ee3ca474cb8cb63c" | 10 | SRC_URI[md5sum] = "6c2c7f40ddf52933ee3ca474cb8cb63c" |