Skip to contentSkip to conversation

package/uclibc: deactivate time64 support for older kernel's

PATCH Applied Waldemar Brodkorb 3 participants 3 messages Jan 20, 2025 – Feb 1, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/uclibc: deactivate time64 support for older kernel's

For Linux systems older then 5.1.0 we need to disable time64 support in uClibc-ng to avoid compilation failure.

Fixes Buildroot's arcturus_ucp1020_defconfig.

---
 package/uclibc/uclibc.mk | 12 ++++++++++++
 1 file changed, 12 insertions(+)
package/uclibc/uclibc.mk +12 -0
index fdd5850874..700d2d9f0b 100644
@@ -72,6 +72,17 @@ define UCLIBC_BINFMT_CONFIG
 endef
 endif
 
+
+#
+# 64-bit time_t is enabled by default but needs headers >= 5.1.0
+#
+ifeq ($(BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_1),)
+define UCLIBC_DISABLE_TIME64
+       $(call KCONFIG_DISABLE_OPT,UCLIBC_USE_TIME64)
+endef
+endif
+
+
 #
 # AArch64 definitions
 #
@@ -398,6 +409,7 @@ define UCLIBC_KCONFIG_FIXUP_CMDS
 	$(call KCONFIG_DISABLE_OPT,DOSTRIP)
 	$(UCLIBC_MMU_CONFIG)
 	$(UCLIBC_BINFMT_CONFIG)
+	$(UCLIBC_DISABLE_TIME64)
 	$(UCLIBC_AARCH64_PAGE_SIZE_CONFIG)
 	$(UCLIBC_ARC_PAGE_SIZE_CONFIG)
 	$(UCLIBC_ARC_ATOMICS_CONFIG)
Signature · 6 lines
2.30.2

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 8 lines · Waldemar Brodkorb

For Linux systems older then 5.1.0 we need to disable time64 support in uClibc-ng to avoid compilation failure.

Fixes Buildroot's arcturus_ucp1020_defconfig.

Applied to master, thanks.
For info, I fixed check-package errors.

Best regards,

Julien.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#2 lore raw
In reply to Waldemar Brodkorb
Quoted 10 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Waldemar" == Waldemar Brodkorb <[email protected]> writes:

For Linux systems older then 5.1.0 we need to disable time64 support in uClibc-ng to avoid compilation failure.

Fixes Buildroot's arcturus_ucp1020_defconfig.

Committed to 2024.11.x, thanks.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot