commit:     89d7cf613dc997bcaea196b22295328192fc9ef8
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Fri Dec 17 14:36:27 2021 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Mon Dec 20 19:00:07 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=89d7cf61

profiles/default/linux: set gl_cv_type_time_t_bits_macro=no

This is intended to prevent packages from automatically switching to
64-bit time_t on 32-bit ABIs. Making this switch in an uncontrolled
manner will lead to inconsistent library ABIs that fail at runtime.

At a later time, we will take steps to enable 64-bit time_t distro-wide.

https://wiki.gentoo.org/wiki/Project:Toolchain/time64_migration

Bug: https://bugs.gentoo.org/828001
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>

 profiles/default/linux/make.defaults | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/profiles/default/linux/make.defaults 
b/profiles/default/linux/make.defaults
index 6ae7cf297cf3..db9698a32848 100644
--- a/profiles/default/linux/make.defaults
+++ b/profiles/default/linux/make.defaults
@@ -53,3 +53,8 @@ VIDEO_CARDS="dummy fbdev v4l"
 # Note that adding LDFLAGS="-Wl,-O1 ${LDFLAGS}" breaks dev-util/boost-build
 # because of whitespace.
 LDFLAGS="-Wl,-O1 -Wl,--as-needed"
+
+# Mike Gilbert <[email protected]> (2021-12-17)
+# Prevent automagic use of 64-bit time_t.
+# https://bugs.gentoo.org/828001
+gl_cv_type_time_t_bits_macro="no"

Reply via email to