Gentoo Archives: gentoo-dev

From: James Le Cuirot <chewi@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [PATCH] profiles/default/linux: set gl_cv_type_time_t_bits_macro=no
Date: Sat, 18 Dec 2021 15:35:56
Message-Id: 4291a56ee0d08b3bc1d122487adfebdfdb146b80.camel@gentoo.org
In Reply to: [gentoo-dev] [PATCH] profiles/default/linux: set gl_cv_type_time_t_bits_macro=no by Mike Gilbert
1 On Fri, 2021-12-17 at 09:41 -0500, Mike Gilbert wrote:
2 > This is intended to prevent packages from automatically switching to
3 > 64-bit time_t on 32-bit ABIs. Making this switch in an uncontrolled
4 > manner will lead to inconsistent library ABIs that fail at runtime.
5 >
6 > At a later time, we will introduce new profiles to enable 64-bit time_t
7 > distro-wide.
8 >
9 > https://wiki.gentoo.org/wiki/Project:Toolchain/time64_migration
10 >
11 > Bug: https://bugs.gentoo.org/828001
12 > Signed-off-by: Mike Gilbert <floppym@g.o>
13 > ---
14 > profiles/default/linux/make.defaults | 4 ++++
15 > 1 file changed, 4 insertions(+)
16 >
17 > diff --git a/profiles/default/linux/make.defaults b/profiles/default/linux/make.defaults
18 > index 6ae7cf297cf..53ace7e229c 100644
19 > --- a/profiles/default/linux/make.defaults
20 > +++ b/profiles/default/linux/make.defaults
21 > @@ -53,3 +53,7 @@ VIDEO_CARDS="dummy fbdev v4l"
22 > # Note that adding LDFLAGS="-Wl,-O1 ${LDFLAGS}" breaks dev-util/boost-build
23 > # because of whitespace.
24 > LDFLAGS="-Wl,-O1 -Wl,--as-needed"
25 > +
26 > +# Mike Gilbert <floppym@g.o> (2021-12-17)
27 > +# Prevent automagic use of 64-bit time_t.
28 > +gl_cv_type_time_t_bits_macro="no"
29
30 What will we do about other build systems? I worry they won't have a
31 consistent approach for all projects.

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies