Bug 35848 - Lack of /etc/localtime in the build environment
Summary: Lack of /etc/localtime in the build environment
Status: NEW
Alias: None
Product: Infrastructure
Classification: Infrastructure
Component: cross-component (show other bugs)
Version: unspecified
Hardware: all Linux
: P3 normal
Assignee: placeholder@altlinux.org
QA Contact: Andrey Cherepanov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-05 10:13 MSK by Vladimir D. Seleznev
Modified: 2021-11-19 04:14 MSK (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir D. Seleznev 2019-01-05 10:13:15 MSK
$ hsh --initroot-only && hsh-run -- stat /etc/localtime                                                                 
<86>Jan  5 06:58:00 userdel[12013]: delete user 'rooter'
<86>Jan  5 06:58:00 groupadd[12018]: group added to /etc/group: name=rooter, GID=501                                                                          
<86>Jan  5 06:58:00 groupadd[12018]: group added to /etc/gshadow: name=rooter
<86>Jan  5 06:58:00 groupadd[12018]: new group: name=rooter, GID=501
<86>Jan  5 06:58:00 useradd[12022]: new user: name=rooter, UID=501, GID=501, home=/root, shell=/bin/bash                                                      
<86>Jan  5 06:58:00 userdel[12029]: delete user 'builder'
<86>Jan  5 06:58:00 groupadd[12034]: group added to /etc/group: name=builder, GID=502                                                                         
<86>Jan  5 06:58:00 groupadd[12034]: group added to /etc/gshadow: name=builder
<86>Jan  5 06:58:00 groupadd[12034]: new group: name=builder, GID=502
<86>Jan  5 06:58:00 useradd[12038]: new user: name=builder, UID=502, GID=502, home=/usr/src, shell=/bin/bash                                                  
stat: cannot stat '/etc/localtime': No such file or directory

This file is used in some software tests.
Comment 1 Dmitry V. Levin 2019-01-05 12:04:48 MSK
(In reply to comment #0)
> stat: cannot stat '/etc/localtime': No such file or directory
> 
> This file is used in some software tests.

This file is optional.  What kind of software tests needs it?
Comment 2 Vladimir D. Seleznev 2020-02-26 17:21:16 MSK
(In reply to Dmitry V. Levin from comment #1)
> (In reply to comment #0)
> > stat: cannot stat '/etc/localtime': No such file or directory
> > 
> > This file is used in some software tests.
> 
> This file is optional.  What kind of software tests needs it?

This file is required for some packages tests:

http://git.altlinux.org/gears/t/tcl.git?p=tcl.git;a=blob;f=tcl.spec;h=e7c654c1c74ccd465629e3e3df364dcd63b3e4da;hb=a8b9dbca53f582c70ea03106722b0900656bf15f#l202