From 273c1c1189d824b86ae531bd1b5df601f0e7e838 Mon Sep 17 00:00:00 2001 Message-ID: <273c1c1189d824b86ae531bd1b5df601f0e7e838.1721522810.git.zhengjunjie@iscas.ac.cn> In-Reply-To: <5cbb346385201fb6fce1057a13a49c7977e9dd34.1721522810.git.zhengjunjie@iscas.ac.cn> References: <5cbb346385201fb6fce1057a13a49c7977e9dd34.1721522810.git.zhengjunjie@iscas.ac.cn> From: Zheng Junjie Date: Sun, 21 Jul 2024 08:36:28 +0800 Subject: [PATCH 2/2] gnu: coreutils: Disable 64bit time_t on 32bit platform. * gnu/packages/nss.scm (nss)[arguments]<#:configure-flags>: Pass gl_cv_type_time_t_bits_macro=no on 32bit platform. Change-Id: I3ba9e21733727a41f2070a27ccba39c9d5f2d406 --- gnu/packages/base.scm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm index bc30d73426..47488c1603 100644 --- a/gnu/packages/base.scm +++ b/gnu/packages/base.scm @@ -471,6 +471,13 @@ (define-public coreutils " test-renameatu" " test-utimensat"))) '()) + ,@(if (target-64bit?) + '() + ;; We currently do not support 64-bit time_t on 32-bit platforms, + ;; mixing different bits of time_t will cause a lot of problems + ;; so forcibly disable it. + ;; see https://wiki.gentoo.org/wiki/Project:Toolchain/time64_migration + '(#:configure-flags (list "gl_cv_type_time_t_bits_macro=no"))) #:phases (modify-phases %standard-phases (add-before 'build 'patch-shell-references (lambda _ -- 2.45.2