Bug 754701

Summary: Wrong time inside mock chroot
Product: [Fedora] Fedora EPEL Reporter: Tuomo Soini <tis>
Component: mockAssignee: Clark Williams <williams>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: el6CC: kbsingh, mebrown, williams
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-29 11:42:12 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Tuomo Soini 2011-11-17 12:38:57 UTC
Description of problem:

Mock has long time copied /etc/localtime from build system into chroot to get correct tzdata. Change b1f18b0cb4c70e9542049963eefda508a4e3e23 added TZ with hardcoded value into environment breaking local time in chroot.

Version-Release number of selected component (if applicable):

1.1.16, 1.1.17

How reproducible:

Always.

Suggested fix:

Don't set TZ.

Comment 1 Clark Williams 2011-11-18 16:21:16 UTC
Ahh, I didn't think of that when setting up the cleaned-up environment

I'll drop TZ from the environment.

Comment 2 Tuomo Soini 2011-11-18 20:21:46 UTC
Thanks. Removing that one line which sets TZ was enough to fix the issue for me.