Bug 35848

Summary: Lack of /etc/localtime in the build environment
Product: Infrastructure Reporter: Vladimir D. Seleznev <vseleznv>
Component: cross-componentAssignee: placeholder <placeholder>
Status: NEW --- QA Contact: Andrey Cherepanov <cas>
Severity: normal    
Priority: P3 CC: glebfm, ldv
Version: unspecified   
Hardware: all   
OS: Linux   

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