]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
file: fix call to localtime_r()
authorJoe Slater <joe.slater@windriver.com>
Tue, 22 Aug 2023 22:28:00 +0000 (15:28 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 29 Aug 2023 08:40:55 +0000 (09:40 +0100)
commit791145f3064d7807630d3591b9e7c7b2dc37152c
treebc668ce1a1d7ed5051a82713c1b3626f1771da3e
parentbea74c9942a3bb4f71aca0f722b4a7306ae52fb4
file: fix call to localtime_r()

Depending on the version of glibc, localtime_r() must
be preceded by a call to tzset() or it will ignore any
value of TZ in the environment.  This problem will only
be seen when building file-native on outdated hosts.

Signed-off-by: Joe Slater <joe.slater@windriver.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/file/file_5.45.bb
meta/recipes-devtools/file/files/print_c.patch [new file with mode: 0644]