]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commit
libressl: fix musl build with older kernel headers
authorBaruch Siach <baruch@tkos.co.il>
Fri, 29 Sep 2017 09:13:24 +0000 (12:13 +0300)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Fri, 6 Oct 2017 18:39:15 +0000 (20:39 +0200)
commit7adc268b58a1eea9967ed5c7a3b7b4471575d73a
tree307887b9efb6be77e8444622e321222fdec58c65
parentda34a889d218ba5722774a769842ed08a64279ae
libressl: fix musl build with older kernel headers

musl provides its own SYS_getrandom definition, but not GRND_NONBLOCK.
This breaks the build with kernel headers older than v3.17. Add a patch
adding a local definition of GRND_NONBLOCK to fix the build.

The following defconfig reproduces the build failure:

BR2_x86_pentium_mmx=y
BR2_TOOLCHAIN_BUILDROOT_MUSL=y
BR2_KERNEL_HEADERS_3_12=y
BR2_PACKAGE_LIBRESSL=y

The getentropy_linux.c file is in upstream tarball, but not in its git
repository. It originates from OpenBSD. For this reason the patch is
against the tarball, but not git formatted.

Cc: Adam Duskett <aduskett@gmail.com>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
[Arnout: change filename to correspond to how git creates it]
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
package/libressl/0002-Fix-build-with-musl-and-older-Linux-kernel.patch [new file with mode: 0644]