Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 215969 - baselayout-1.12.11.1 incorrect localtime instructions
Summary: baselayout-1.12.11.1 incorrect localtime instructions
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-02 23:22 UTC by Arthur Hagen
Modified: 2008-04-03 16:35 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arthur Hagen 2008-04-02 23:22:59 UTC
/etc/conf.d/clock states:

# Select the proper timezone.  For valid values, peek inside of the
# /usr/share/zoneinfo/ directory.  For example, some common values are
# "America/New_York" or "EST5EDT" or "Europe/Berlin".  If you want to
# manage /etc/localtime yourself, set this to "".

However, setting TIMEZONE="" in this file does not work even when /etc/localtime is manually handled correctly.


Reproducible: Always

Steps to Reproduce:
1:  Set TIMEZONE="" in /etc/conf.d/clock
2:  Build a new kernel
3:  uname -a

Actual Results:  
Linux tree 2.6.24-gentoo-r4 #1 SMP Wed Apr 2 16:24:09 Local time zone must be se
t--see zic m i686 Intel(R) Pentium(R) 4 CPU 3.06GHz GenuineIntel GNU/Linux


Expected Results:  
Linux tree 2.6.24-gentoo-r4 #1 SMP Wed Apr 2 16:24:09 EDT 2008 i686 Intel(R) Pentium(R) 4 CPU 3.06GHz GenuineIntel GNU/Linux

/etc/localtime is set correctly (a copy instead of a symlink, since /usr/share is not available early in the boot on this system -- thus the need to manually handle it).

tree log # zdump /etc/localtime
/etc/localtime  Wed Apr  2 19:22:36 2008 EDT
tree log # date
Wed Apr  2 19:22:36 EDT 2008
Comment 1 Arthur Hagen 2008-04-02 23:34:10 UTC
emerge --info:

Portage 2.1.4.4 (selinux/2007.0/x86, gcc-3.4.6, glibc-2.6.1-r0, 2.6.24-gentoo-r4 i686)
=================================================================
System uname: 2.6.24-gentoo-r4 i686 Intel(R) Pentium(R) 4 CPU 3.06GHz
Timestamp of tree: Wed, 02 Apr 2008 20:30:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17-r1
dev-lang/python:     2.4.4-r9
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=pentium4 -momit-leaf-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/php/apache
2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -march=pentium4 -momit-leaf-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y"
FEATURES="ccache distcc distlocks fixpackages loadpolicy metadata-transfer parallel-fetch sandbox selinux sesandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://distro.ibiblio.org/pub/
linux/distributions/gentoo/ ftp://mirror.datapipe.net/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en_GB en_US en"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="gzip"
PORTAGE_COMPRESS_FLAGS="-9"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi apache2 berkdb caps cli cracklib crypt cups dri eds fam flac fortran gdbm gif gmp gtk icc iconv idn ipv6 isdnlog jpeg libnotify logrotate lzo mad mbox midi mmap mmx motif mudflap ncurses nfs nis nls nptl nptlonly offensive openmp pam pcre perl pic png posix pppd python readline reflection sdl selinux session spell spl sse sse2 ssl tcpd threads tiff truetype unicode vhosts x86 xattr xcb xml xorg xulrunner zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LINGUAS="en_GB en_US en" USERLAND="GNU" VIDEO_CARDS="fglrx radeon vesa"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 2 SpanKY gentoo-dev 2008-04-03 01:44:19 UTC
setting TIMEZONE in clock will not update your /etc/localtime automatically.  if you followed installation instructions properly, it'll have you updated /etc/localtime manually.
Comment 3 Doug Goldstein (RETIRED) gentoo-dev 2008-04-03 14:22:50 UTC
hint... You need to set /etc/localtime properly, but when your timezone file changes when you emerge timezone-data, it will read this setting and update the file for you.
Comment 4 Arthur Hagen 2008-04-03 16:25:50 UTC
(In reply to comment #2)
> setting TIMEZONE in clock will not update your /etc/localtime automatically. 
> if you followed installation instructions properly, it'll have you updated
> /etc/localtime manually.

Please read more than the first line of bug reports before closing them.

/etc/localtime *IS* set correctly, copied from the zoneinfo repository.  I even included example outputs *SHOWING THAT TIME WORKS* exactly to avoid someone thinking that it wasn't.

tree ~ # cmp -l /etc/localtime /usr/share/zoneinfo/America/New_York 
tree ~ # 

That is *NOT* the issue.  Re-opening.
Comment 5 Doug Goldstein (RETIRED) gentoo-dev 2008-04-03 16:35:16 UTC
When building the kernel the time info has NOTHING to do with TIMEZONE="". You didn't have /etc/localtime configured properly when you built your kernel, that's all.