Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 224607 - sys-libs/timezone-data-2008c: /etc/conf.d/clock is missing
Summary: sys-libs/timezone-data-2008c: /etc/conf.d/clock is missing
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-02 14:16 UTC by Martin Mokrejš
Modified: 2008-07-23 00:30 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 Martin Mokrejš 2008-06-02 14:16:12 UTC
Hi,
  I get the following upon upgrade of timezone-data:

 * Messages for package sys-libs/timezone-data-2008c:

 * You do not have TIMEZONE set in /etc/conf.d/clock.
 * Skipping auto-update of /etc/localtime.


I do not have this file! I have baselayout-2 so maybe I don't have it since then?

# emerge --info
Portage 2.1.5.3 (default-linux/x86/2007.0/desktop, gcc-4.2.4, glibc-2.7-r2, 2.6.24.7 i686)
=================================================================
System uname: 2.6.24.7 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 1.80GHz
Timestamp of tree: Mon, 02 Jun 2008 09:17:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r4
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.4-r1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.62
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.1-r1
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.25-r3
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -mmmx -msse -msse2 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind /var/qmail/alias /var/qmail/control /var/spool/torque /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /e
tc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium4 -mmmx -msse -msse2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.mirror.web4u.cz"
LDFLAGS=""
LINGUAS="en cs cz"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --excl
ude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="7zip R X Xaw3d a52 aac aalib ace acl acpi alsa amr amrnb amrwb apache2 audacious audiofile bash-completion bcmath berkdb blas boost b
zip2 cairo cblas cddb cdparanoia cdr clamav cli colordiff compress cpio cracklib crypt cscope css ctype cups curl curlwrappers cxx dbus dg
a dia directfb djbfft dri dts dv dvb dvd dvdr dvdread eds emacs emboss emf enblend encode enscript exif expat fam fame fat fbcon ffmpeg ff
tw firefox flac flash foomaticdb fortran fpx ftp gcj gd gdbm ggi gif gimp gimpprint glibc-compat20 glibc-omitfp glitz glut gmp gnuplot gnu
tls gpgme gphoto2 gpm graphviz gs gsl gstreamer gtk gtkhtml hal hdf hdf5 i8x0 icc iconv icu id3 ieee1394 ifc imagemagick imlib inifile inn
odb isdnlog ithreads jack java javascript jbig jikes jpeg jpeg2k kdtree kerberos lame lapack lcms leim libcaca libedit libwww live lzo lzw
 mad maildir matroska mhash midi mikmod mime ming mjpeg mmap mmx mng mod_python modperl modplug motif mozilla moznoirc mp2 mp3 mp4 mpeg mp
i mpi_njtree mplayer mudflap mule musepack mxdatetime mysql mysqli ncurses netcdf netpbm network nls nntp nptl nptlonly nsplugin ntfs nume
ric ogg opengl openmp pam pango pcmcia pcntl pcre pdf perl plotutils plugin png pnm postproc postscript ppds pppd procmail pymol python qt
3 qt3support qt4 quicktime rar raw readline real recode reflection reiserfs rpm rtc samba sasl scanner scp seamonkey server session sftp s
ift slp smime sndfile soap sockets spell spl sqlite srt sse sse2 ssl subtitles subversion svg svgz sysfs sysvipc t1lib tcl tcpd tetex theo
ra threads tidy tiff tk transcode truetype unicode urandom usb userlocales uuencode v4l v4l2 vcd vim-syntax vim-with-x vorbis wifi win32co
decs wmf wxwindows x264 x86 xanim xcb xcf xfs xft xinetd xml xorg xpm xprint xsl xslt xv xvid xvmc yv12 zip zlib" ALSA_CARDS="intel-8x0m" 
ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi nu
ll plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default a
uthn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dbd deflate dir disk_cache env expires
 ext_filter file_cache filter headers ident imagemap include info log_config mem_cache mime mime_magic rewrite setenvif speling status uni
que_id userdir usertrack vhost_alias negotiation" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cf
ontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en cs cz" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RS
YNC_EXTRA_OPTS
Comment 1 Hasse Hagen Johansen 2008-06-02 18:41:45 UTC
I have baselayout-2 /openrc and also have problems with the timezone correctly being set for for non-root users. It seems they are just using UTC(which my hardware clock is set to)

And I think I just got the problem today after updating
Comment 2 Martin Mokrejš 2008-06-02 21:56:04 UTC
I would say my HW clock is local because I have MS windows dual-boot machine, but maybe my setup is screwed up at the moment. :( Basically, I had a look into my history(1) when did I remove /etc/conf.d/clock but couldn't find a hint. I think it got removed automagically in the past. I just have /etc/conf.d/hwclock. The soft-link for localtimezone it existing and for more info I need feedback from ebuild maintainers. I suspect something is wrong on their side but you never know. ;-)
Comment 3 SpanKY gentoo-dev 2008-06-03 14:42:20 UTC
if you're running openrc, you should have /etc/timezone.  if you dont, you need to fix that.

ive updated the warning accordingly in the timezone-data ebuild.

http://sources.gentoo.org/sys-libs/timezone-data/timezone-data-2008c.ebuild?r1=1.1&r2=1.2
Comment 4 Martin Mokrejš 2008-06-04 11:03:46 UTC
# equery files =sys-apps/openrc-0.2.4-r1 | grep timezone
#

After upgrading to 0.2.5 I still do not have it:

[cut]
>>> Original instance of package unmerged safely.
 * You should now update all files in /etc, using etc-update
 * or equivalent before restarting any services or this host.
 * 
 * Please read the migration guide available at:
 * http://www.gentoo.org/doc/en/openrc-migration.xml
>>> Regenerating /etc/ld.so.cache...
>>> sys-apps/openrc-0.2.5 merged.
>>> Recording sys-apps/openrc in "world" favorites file...
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

 * Messages for package sys-apps/openrc-0.2.5:

 * You should now update all files in /etc, using etc-update
 * or equivalent before restarting any services or this host.
 * 
 * Please read the migration guide available at:
 * http://www.gentoo.org/doc/en/openrc-migration.xml

 * GNU info directory index is up-to-date.

 * IMPORTANT: 2 config files in '/etc' need updating.
 * See the CONFIGURATION FILES section of the emerge
 * man page to learn how to update config files.
# etc-update
Scanning Configuration files...
The following is the list of files which need updating, each
configuration file is followed by a list of possible replacement files.
1) /etc/init.d/bootmisc (1)
2) /etc/init.d/fsck (1)
Please select a file to edit by entering the corresponding number.
              (don't use -3, -5, -7 or -9 if you're unsure what to do)
              (-1 to exit) (-3 to auto merge all remaining files)
                           (-5 to auto-merge AND not use 'mv -i')
                           (-7 to discard all updates)
                           (-9 to discard all updates AND not use 'rm -i'): -5

Replacing /etc/init.d/bootmisc with /etc/init.d/._cfg0000_bootmisc


Replacing /etc/init.d/fsck with /etc/init.d/._cfg0000_fsck

Exiting: Nothing left to do; exiting. :)
#
# equery files =sys-apps/openrc-0.2.5 | grep timezone
#

I got something mixed up during my transition in the past:
# ls -la /etc/*time*
-rw-r--r-- 1 root root   47 Apr 17 16:35 /etc/adjtime
-rw-r--r-- 1 root root 2074 Mar 27 18:08 /etc/localtime
# ls -la /etc/conf.d/*clock*
-rw-r--r-- 1 root root 605 Apr 18 00:28 /etc/conf.d/hwclock
# 

It would be nice if the openrc would run some extra check and warn about missing files and files to be deleted since baselayout-1.
Comment 5 Martin Mokrejš 2008-07-23 00:29:24 UTC
# ls -la /etc/timezone
ls: cannot access /etc/timezone: No such file or directory
# emerge -pv baselayout
WARNING: repository at /usr/local/portage is missing a repo_name entry

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] sys-apps/baselayout-2.0.0  USE="-build" 0 kB 

Total: 1 package (1 reinstall), Size of downloads: 0 kB
#

Seems I can love without it. Re-emergeing baselayout doesn't complain and nobody else does. So what? ;)
Comment 6 Martin Mokrejš 2008-07-23 00:30:20 UTC
(In reply to comment #5)

> Seems I can love without it. Re-emergeing baselayout doesn't complain and
---------------^ i  ;-)