[openwrt/openwrt] tools: util-linux: allow building with 32-bit time
LEDE Commits
lede-commits at lists.infradead.org
Thu Jul 31 23:49:25 PDT 2025
nick pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/e3637b202da7410db117d7ceafa607059f2de9f3
commit e3637b202da7410db117d7ceafa607059f2de9f3
Author: Michael Pratt <mcpratt at pm.me>
AuthorDate: Fri Aug 1 00:20:48 2025 -0400
tools: util-linux: allow building with 32-bit time
Similar to several GNU tools, util-linux when built using meson
is configured by default to error when 64-bit time is not supported.
To solve this in the same way as standard configure scripts,
check for 64-bit time support ahead of time,
and allow 32-bit time when not supported.
In the future, the YEAR_2038 variable
can be used as a build prerequisite
instead of being used for configuration.
Ref: 39e8ef33bf ("build: add test for 64-bit time support")
Fixes: e15d5cf752 ("tools/util-linux: build with meson")
Signed-off-by: Michael Pratt <mcpratt at pm.me>
Link: https://github.com/openwrt/openwrt/pull/19617
Signed-off-by: Nick Hainke <vincent at systemli.org>
---
tools/util-linux/Makefile | 1 +
1 file changed, 1 insertion(+)
diff --git a/tools/util-linux/Makefile b/tools/util-linux/Makefile
index 23c39103b1..c9a4bbc34f 100644
--- a/tools/util-linux/Makefile
+++ b/tools/util-linux/Makefile
@@ -18,6 +18,7 @@ include $(INCLUDE_DIR)/host-build.mk
include $(INCLUDE_DIR)/meson.mk
MESON_HOST_ARGS += \
+ $(if $(findstring y,$(YEAR_2038)),,-Dallow-32bit-time=true) \
-Dauto_features=disabled \
-Dbuild-hexdump=enabled \
-Dbuild-libuuid=enabled \
More information about the lede-commits
mailing list