Gentoo Archives: gentoo-dev

From: Mike Gilbert <floppym@g.o>
To: gentoo-dev@l.g.o
Cc: base-system@g.o, toolchain@g.o, Mike Gilbert <floppym@g.o>
Subject: [gentoo-dev] [PATCH] profiles/default/linux: set gl_cv_type_time_t_bits_macro=no
Date: Fri, 17 Dec 2021 14:42:07
Message-Id: 20211217144135.20907-1-floppym@gentoo.org
1 This is intended to prevent packages from automatically switching to
2 64-bit time_t on 32-bit ABIs. Making this switch in an uncontrolled
3 manner will lead to inconsistent library ABIs that fail at runtime.
4
5 At a later time, we will introduce new profiles to enable 64-bit time_t
6 distro-wide.
7
8 https://wiki.gentoo.org/wiki/Project:Toolchain/time64_migration
9
10 Bug: https://bugs.gentoo.org/828001
11 Signed-off-by: Mike Gilbert <floppym@g.o>
12 ---
13 profiles/default/linux/make.defaults | 4 ++++
14 1 file changed, 4 insertions(+)
15
16 diff --git a/profiles/default/linux/make.defaults b/profiles/default/linux/make.defaults
17 index 6ae7cf297cf..53ace7e229c 100644
18 --- a/profiles/default/linux/make.defaults
19 +++ b/profiles/default/linux/make.defaults
20 @@ -53,3 +53,7 @@ VIDEO_CARDS="dummy fbdev v4l"
21 # Note that adding LDFLAGS="-Wl,-O1 ${LDFLAGS}" breaks dev-util/boost-build
22 # because of whitespace.
23 LDFLAGS="-Wl,-O1 -Wl,--as-needed"
24 +
25 +# Mike Gilbert <floppym@g.o> (2021-12-17)
26 +# Prevent automagic use of 64-bit time_t.
27 +gl_cv_type_time_t_bits_macro="no"
28 --
29 2.34.1

Replies