Bug 754701 - Wrong time inside mock chroot
Summary: Wrong time inside mock chroot
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: mock
Version: el6
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Clark Williams
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-17 12:38 UTC by Tuomo Soini
Modified: 2012-02-29 11:42 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-29 11:42:12 UTC
Type: ---


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.