Gentoo Archives: gentoo-dev

From: "Haelwenn (lanodan) Monnier" <contact@×××××××××.me>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Defining TZ in the base system profile?
Date: Tue, 14 Feb 2023 12:45:04
Message-Id: Y+uCRv4Xo8itiDdV@cloudsdale.the-delta.net.eu.org
In Reply to: [gentoo-dev] Defining TZ in the base system profile? by Joshua Kinard
1 [2023-01-18 20:48:56-0500] Joshua Kinard:
2 >So is adding a default definition of TZ to our base system /etc/profile something we want to look at? I
3 >haven't tried any other methods of benchmarking to see if not making those additional syscalls is just placebo
4 >or if there are actual impacts. Given how long this oddity has been around, I can't tell if it's a genuine
5 >bug in glibc, an unoptimized corner case, or just a big nothingburger.
6
7 I would take it as a glibc bug / lack of optimisation. At least definitely one
8 where the fault lies in glibc given that your showed other libc as more
9 optimized.
10
11 And given that POSIX puts ":/etc/localtime" as implementation defined[1],
12 I think we should avoid it, glibc isn't alone in dealing with timezones.
13
14 1: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap08.html#tag_08_03