Andrew Geissler | 028142b | 2023-05-05 11:29:21 -0500 | [diff] [blame] | 1 | # To simulate Y2038 occurring in qemu, add to your build configuration: |
| 2 | # QB_OPT_APPEND:append = " -rtc base=2040-02-02" |
| 3 | # |
| 4 | # Note that this does result in ptest failures on qemux86: |
| 5 | # perl python3 dbus openssl glibc-tests openssh curl glib-2.0 tcl libmodule-build-perl |
| 6 | # and a subset of those occurs in qemux86-64 as well: |
| 7 | # curl python3 openssl openssl tcl python3-cryptography |
| 8 | # |
| 9 | # Working to address those (before Y2038 rolls in) will be appreciated. |
| 10 | |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 11 | GLIBC_64BIT_TIME_FLAGS = " -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64" |
| 12 | |
| 13 | # Only needed for some 32-bit architectures, some relatively newer |
| 14 | # architectures do not need it ( e.g. riscv32 ) |
| 15 | TARGET_CC_ARCH:append:arm = "${GLIBC_64BIT_TIME_FLAGS}" |
| 16 | TARGET_CC_ARCH:append:armeb = "${GLIBC_64BIT_TIME_FLAGS}" |
| 17 | TARGET_CC_ARCH:append:mipsarcho32 = "${GLIBC_64BIT_TIME_FLAGS}" |
| 18 | TARGET_CC_ARCH:append:powerpc = "${@bb.utils.contains('TUNE_FEATURES', 'm32', '${GLIBC_64BIT_TIME_FLAGS}', '', d)}" |
| 19 | TARGET_CC_ARCH:append:x86 = "${@bb.utils.contains('TUNE_FEATURES', 'm32', '${GLIBC_64BIT_TIME_FLAGS}', '', d)}" |
| 20 | |
| 21 | GLIBC_64BIT_TIME_FLAGS:pn-glibc = "" |
| 22 | GLIBC_64BIT_TIME_FLAGS:pn-glibc-tests = "" |
Andrew Geissler | 028142b | 2023-05-05 11:29:21 -0500 | [diff] [blame] | 23 | GLIBC_64BIT_TIME_FLAGS:pn-glibc-testsuite = "" |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 24 | # pipewire-v4l2 explicitly sets _FILE_OFFSET_BITS=32 to get access to |
| 25 | # both 32 and 64 bit file APIs. But it does not handle the time side? |
| 26 | # Needs further investigation |
| 27 | GLIBC_64BIT_TIME_FLAGS:pn-pipewire = "" |
| 28 | # Pulseaudio override certain LFS64 functions e.g. open64 and intentionally |
| 29 | # undefines _FILE_OFFSET_BITS, which wont work when _TIME_BITS=64 is set |
| 30 | GLIBC_64BIT_TIME_FLAGS:pn-pulseaudio = "" |
| 31 | GLIBC_64BIT_TIME_FLAGS:pn-gcc-sanitizers = "" |
| 32 | |
Andrew Geissler | 028142b | 2023-05-05 11:29:21 -0500 | [diff] [blame] | 33 | INSANE_SKIP:append:pn-cargo = " 32bit-time" |
| 34 | INSANE_SKIP:append:pn-gcc-sanitizers = " 32bit-time" |
| 35 | INSANE_SKIP:append:pn-glibc = " 32bit-time" |
| 36 | INSANE_SKIP:append:pn-glibc-tests = " 32bit-time" |
| 37 | INSANE_SKIP:append:pn-librsvg = " 32bit-time" |
| 38 | INSANE_SKIP:append:pn-libstd-rs = " 32bit-time" |
| 39 | INSANE_SKIP:append:pn-pseudo = " 32bit-time" |
| 40 | INSANE_SKIP:append:pn-pulseaudio = " 32bit-time" |
| 41 | INSANE_SKIP:append:pn-python3-bcrypt = " 32bit-time" |
| 42 | INSANE_SKIP:append:pn-python3-cryptography = " 32bit-time" |
| 43 | INSANE_SKIP:append:pn-rust = " 32bit-time" |
| 44 | INSANE_SKIP:append:pn-rust-hello-world = " 32bit-time" |
| 45 | INSANE_SKIP:append:pn-strace = " 32bit-time" |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 46 | |