Skip to contentSkip to conversation

time64: Disable CFLAGS for strace

PATCH New Richard Purdie 1 participant 2 messages Jun 26, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 time64: Disable CFLAGS for strace

Until strace can handle the interface with glibc correctly with those flags, disable there for now.

---
 meta/conf/distro/include/time64.inc | 2 ++
 1 file changed, 2 insertions(+)
meta/conf/distro/include/time64.inc +2 -0
index 78569de4337..a0cee4fad67 100644
@@ -29,6 +29,8 @@ GLIBC_64BIT_TIME_FLAGS:pn-pipewire = ""
 # undefines _FILE_OFFSET_BITS, which wont work when _TIME_BITS=64 is set
 GLIBC_64BIT_TIME_FLAGS:pn-pulseaudio = ""
 GLIBC_64BIT_TIME_FLAGS:pn-gcc-sanitizers = ""
+# https://github.com/strace/strace/issues/250
+GLIBC_64BIT_TIME_FLAGS:pn-strace = ""
 
 INSANE_SKIP:append:pn-cargo = " 32bit-time"
 INSANE_SKIP:append:pn-gcc-sanitizers = " 32bit-time"
Signature · 1 line
2.39.2
#1 lore raw

PATCH 2/2 defaultsetup: Enable largefile and 64bit time_t support systemwide for 32 bit platforms

There is a problem with 32 bit time looming for many 32 bit platforms including arm, mip32, powerpc and x86 (but not riscv32) in 2038 when the 32 bit field time_t can no longer store the time value correctly due to overflow.

Preparing for this is tricky as the ABI between libraries and binaries will change and it isn't possible to migrate easily as structures and return values change size.

As we're a source based system, the project has taken the decision that we should change the compiler flags to switch to both largefile and 64 bit time_t. With OE-Core we've ironed out the issues we could spot apart from some testing issues in strace and lttng-tools for which discussions are ongoing upstream. There is more testing to be done but we wanted to make this switch now in good time before our next LTS release so we can work through any issues arrising.

We had already tried to mandate largefile everywhere before this but this gives an opportunity to ensure that at the same time.

---
 meta/conf/distro/defaultsetup.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/conf/distro/defaultsetup.conf +1 -1
index f6894f3ab56..1abb5096293 100644
@@ -2,7 +2,7 @@ include conf/distro/include/default-providers.inc
 include conf/distro/include/default-versions.inc
 include conf/distro/include/default-distrovars.inc
 include conf/distro/include/maintainers.inc
-
+include conf/distro/include/time64.inc
 require conf/distro/include/tcmode-${TCMODE}.inc
 require conf/distro/include/tclibc-${TCLIBC}.inc
 
Signature · 1 line
2.39.2