package/libopenssl: fix build wrt. 64-bit time-related syscalls & structs
authorYann E. MORIN <yann.morin.1998@free.fr>
Tue, 9 Mar 2021 21:37:17 +0000 (22:37 +0100)
committerYann E. MORIN <yann.morin.1998@free.fr>
Thu, 11 Mar 2021 20:22:09 +0000 (21:22 +0100)
commit359c5c266aeb4db533634494e6970c8bc99de380
tree95ba6a60a38896bf5a8e662f70bc2cc6fb04a5db
parentda6cca38da1584fed17ffb40316cd7c2fdd5e754
package/libopenssl: fix build wrt. 64-bit time-related syscalls & structs

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 two cumulative patches 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: Alistair Francis <alistair.francis@wdc.com>
Cc: Matthew Weber <matthew.weber@rockwellcollins.com>
Cc: Mark Corbin <mark@dibsco.co.uk>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/libopenssl/0006-Add-support-for-io_pgetevents_time64-syscall.patch [new file with mode: 0644]
package/libopenssl/0007-Fixup-support-for-io_pgetevents_time64-syscall.patch [new file with mode: 0644]