Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Newb: How to patch for Commonwealth Games DST
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
glowworm
Tux's lil' helper
Tux's lil' helper


Joined: 28 Jun 2005
Posts: 85

PostPosted: Mon Jan 16, 2006 4:43 am    Post subject: Newb: How to patch for Commonwealth Games DST Reply with quote

Sorry for such a basic linux question.

The Commonwealth Games are being held in March in Melbourne, Australia.

A few Australian states, mine included, have changed the daylight saving time transition end dates to the first Sunday of April 2006.

How do I alter my time-zone information to take this change into account?
_________________
2.6.18-gentoo-r1 x86
Core2Duo E6300 on an Intel DG965WH M/B
NVidia 7600GT / AIGLX / KDE / Beryl CVS
Back to top
View user's profile Send private message
soxbox
n00b
n00b


Joined: 25 Feb 2005
Posts: 3

PostPosted: Wed Feb 15, 2006 12:22 am    Post subject: Reply with quote

The instructions here apply:

http://www.macosxhints.com/article.php?story=20060117170839977

I don't know if there's a more "gentoo" way to do it.
Since the files under /usr/share/zoneinfo are owned by glibc and not their own package, I doubt it.
Back to top
View user's profile Send private message
firefishy
n00b
n00b


Joined: 18 Apr 2002
Posts: 6
Location: London, United Kingdom

PostPosted: Mon Mar 06, 2006 2:54 pm    Post subject: A way to correct this... Reply with quote

ACCEPT_KEYWORDS="~x86" emerge sys-libs/timezone-data -a

PS: If you reinstall glibc-2.3.5-r2 or below you will be required to remerge this package.

UPDATE!!! [27/March/2006] The above way is not the best/correct way as commented by amne below.

Added to /etc/portage/package.keywords (if on the x86 architecture):
Code:
=sys-libs/timezone-data-2006b ~x86


Then emerge timezone-data-2006b:
Code:
emerge =sys-libs/timezone-data-2006b -a


Last edited by firefishy on Mon Mar 27, 2006 7:11 am; edited 3 times in total
Back to top
View user's profile Send private message
twyford
n00b
n00b


Joined: 14 Dec 2004
Posts: 13

PostPosted: Mon Mar 06, 2006 2:55 pm    Post subject: Reply with quote

Its not a bug, its a feature! :)
Back to top
View user's profile Send private message
firefishy
n00b
n00b


Joined: 18 Apr 2002
Posts: 6
Location: London, United Kingdom

PostPosted: Mon Mar 06, 2006 3:06 pm    Post subject: Reply with quote

twyford wrote:
Its not a bug, its a feature! :)


And it's going to badly affect some Australians, especially those who run NTP and believe that their time will be correct... Their time will be off by an hour for an entire week and most likely not know how to correct it.

I think someone in the Gentoo Community should be speaking loudly and warning the affected users...
Back to top
View user's profile Send private message
col
l33t
l33t


Joined: 08 May 2002
Posts: 818
Location: Melbourne - Australia

PostPosted: Thu Mar 23, 2006 10:51 pm    Post subject: Reply with quote

why is this critical update masked ? ...surely this should have been unmasked months ago ?
Back to top
View user's profile Send private message
parsim
Guru
Guru


Joined: 12 Aug 2004
Posts: 347
Location: Melbourne, Australia

PostPosted: Sun Mar 26, 2006 12:24 am    Post subject: Reply with quote

Yikes!!! 8O

I had heard that Microsoft was scrambling to issue a patch for this, and was feeling all smug that of course my Gentoo system wouldn't be affected.

This morning I realized my clock was 1 hour off!

Code:
emerge timezone-data
/etc/init.d/ntp-client restart

That fixed it. But geez, I shouldn't have to go around manually fixing the time on all my systems!

[Edit: I run an amd64 system, on which timezone-data is unmasked. On x86, bizarrely, it's currently still masked. So you first need to add "sys-libs/timezone-data ~x86" to /etc/portage/package.keywords.]


Last edited by parsim on Sun Mar 26, 2006 11:46 pm; edited 1 time in total
Back to top
View user's profile Send private message
Conditional_Zenith
Tux's lil' helper
Tux's lil' helper


Joined: 22 Sep 2004
Posts: 144
Location: Australia

PostPosted: Sun Mar 26, 2006 12:55 am    Post subject: Reply with quote

I agree, this was handled rather poorly by gentoo.
Back to top
View user's profile Send private message
Trejkaz
Guru
Guru


Joined: 14 Nov 2002
Posts: 479
Location: Sydney, Australia

PostPosted: Sun Mar 26, 2006 9:02 pm    Post subject: Reply with quote

That's okay. You should just be happy that you don't use your Gentoo box to wake you up on Monday morning...

FWIW, my phone incorrectly changed back an hour too. I'm damn lucky that I woke up of my own accord... going to have to set it an hour ahead for this week.

Stupid DST. :-(
Back to top
View user's profile Send private message
lplatypus
n00b
n00b


Joined: 26 Mar 2004
Posts: 16

PostPosted: Sun Mar 26, 2006 11:18 pm    Post subject: Reply with quote

I filed a bug:
http://bugs.gentoo.org/show_bug.cgi?id=127680
Back to top
View user's profile Send private message
amne
Bodhisattva
Bodhisattva


Joined: 17 Nov 2002
Posts: 6377
Location: Graz / EU

PostPosted: Sun Mar 26, 2006 11:40 pm    Post subject: Re: The "offical" way to correct this... Reply with quote

firefishy wrote:
ACCEPT_KEYWORDS="~x86" emerge sys-libs/timezone-data -a


Please don't give misleading advice to people, this method for installing masked packages is obsolete for a while now and has some nasty side effects.
Either add "sys-libs/timezone-data" to your /etc/portage/package.keywords to always get the newest unstable version, or if you only want a specific version, use an entry like "=sys-libs/timezone-data-2006b".

Look at the Handbook for more information.
_________________
Dinosaur week! (Ok, this thread is so last week)
Back to top
View user's profile Send private message
j-m
Retired Dev
Retired Dev


Joined: 31 Oct 2004
Posts: 975

PostPosted: Mon Mar 27, 2006 8:25 pm    Post subject: Reply with quote

col wrote:
why is this critical update masked ? ...surely this should have been unmasked months ago ?


Because it requires stabilizing new glibc revision, otherwise you'll get file collisions. So emerge timezone-data with FEATURES="-collision-protect" and be done with it. :idea:
Back to top
View user's profile Send private message
syg00
l33t
l33t


Joined: 23 Aug 2004
Posts: 907
Location: Brisbane, AUS

PostPosted: Mon Mar 27, 2006 10:35 pm    Post subject: Reply with quote

Move to Brisbane, and ignore the world .... :roll:
Back to top
View user's profile Send private message
thesnowman
Guru
Guru


Joined: 08 May 2003
Posts: 365
Location: Sydney, Australia

PostPosted: Tue Mar 28, 2006 6:17 am    Post subject: Reply with quote

Move to Brisbane and be ignored by the rest of the world :P
Back to top
View user's profile Send private message
parsim
Guru
Guru


Joined: 12 Aug 2004
Posts: 347
Location: Melbourne, Australia

PostPosted: Wed Mar 29, 2006 1:47 am    Post subject: Reply with quote

Zing!

:lol:
Back to top
View user's profile Send private message
alexeyp
n00b
n00b


Joined: 15 Sep 2003
Posts: 31
Location: Melbourne, Australia

PostPosted: Wed Mar 29, 2006 10:58 am    Post subject: Reply with quote

Nah.. Keep your Gentoo in "~~x86", and don't worry about the damn planet
_________________
Alexey Parshin
Back to top
View user's profile Send private message
twyford
n00b
n00b


Joined: 14 Dec 2004
Posts: 13

PostPosted: Wed Mar 29, 2006 11:14 am    Post subject: Reply with quote

alexeyp wrote:
Nah.. Keep your Gentoo in "~~x86", and don't worry about the damn planet


Isn't that how its supposed to be? :)
Back to top
View user's profile Send private message
syg00
l33t
l33t


Joined: 23 Aug 2004
Posts: 907
Location: Brisbane, AUS

PostPosted: Sat Apr 01, 2006 12:49 am    Post subject: Reply with quote

It gets better folks. The dopey bastards in the Tassie Tourism Board want to extend this again next year.
Maybe for good ...
Maybe extend it even more after that ...
Maybe for good ...
Good one.

None of which will affect me one iota of course.
Back to top
View user's profile Send private message
alexeyp
n00b
n00b


Joined: 15 Sep 2003
Posts: 31
Location: Melbourne, Australia

PostPosted: Sat Apr 01, 2006 1:14 am    Post subject: Reply with quote

Yeah

I don't trust my wrist watch for a long time :) I simply rely on my trusted Gentoo and its allmighty ntpdate :))
_________________
Alexey Parshin
Back to top
View user's profile Send private message
Schooner
Tux's lil' helper
Tux's lil' helper


Joined: 15 Jan 2005
Posts: 86
Location: My Computer

PostPosted: Thu Mar 08, 2007 7:38 am    Post subject: Silly Question Reply with quote

I haven't dealt with portage in a long while.

I have walked in to an environment where I have some Gentoo servers that have not been touched in quite a while. Do I have to do an emerge sync before trying to emerge the new time zone package? When I try to emerge it in (I added the entry to my package.keywords file) I get:

emerge: there are no ebuilds to satisfy "=sys-libs/timezone-data-2006b".

Since these boxes have not been touched in a while (I am told about a year)... is there any harm in running emerge sync?
_________________
- Schooner
"OOOH! They have the internet on computers now!" - Homer Simpson
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum