package/libopenssl: fix build on riscv32
authorYann E. MORIN <yann.morin.1998@free.fr>
Tue, 2 Mar 2021 21:51:47 +0000 (22:51 +0100)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Tue, 2 Mar 2021 22:55:46 +0000 (23:55 +0100)
commit2bb26c1a1d24cdbb946bc2a77680dbc8f9c0d537
tree869078c054a249ced70b9bdcaefee62e5fed0130
parenta0aff89ed2ba39baee10b7f3a4fdc2d2cfd68ea1
package/libopenssl: fix build on riscv32

riscv32 is (surprise!) a 32-bit architecture. But it has been Y2038-safe
from its inception. As such, there are no legacy binaries that may use
the 32-bit time syscalls, and thus they are not available on riscv32.

Code that directly calls to the syscalls without using the C libraries
wrappers thus need to handle this case by themselves.

Backport a patch from the upstream openssl development branch that will
eventually be openssl 3.0, but has not yet been backported to the 1.1.1
stable branch.

Fixes:
    http://autobuild.buildroot.org/results/eb9/eb9a64d4ffae8569b5225083f282cf87ffa7c681/
    ...
    http://autobuild.buildroot.org/results/07e/07e413b24ba8adc9558c80267ce16dda339bf032/

Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Cc: Matt Weber <matthew.weber@rockwellcollins.com>
Cc: Mark Corbin <mark@dibsco.co.uk>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
package/libopenssl/0006-Add-support-for-io_pgetevents_time64-syscall.patch [new file with mode: 0644]