Using mergemaster to keep /etc/localtime updated

Olivier Smedts olivier at
Mon Mar 28 23:00:52 UTC 2011

2011/3/28 Doug Barton <dougb at>:
> I'm starting a new thread since while the previous one contained a lot of
> good information it was starting to get a big fragmented, and as someone
> pointed out mergemaster is not a general solution so I want to focus on the
> area that I'm actually responsible for. :)
> Having read everything in the thread (and thanks to all who contributed,
> btw) my current plan is to add some code to the end (in the section that
> deals with things like running cap_mkdb if you update login.conf) to do the
> following. Please let me know if this sounds reasonable, or if I'm missing
> something:
> 1. If /var/db/zoneinfo exists, check to see if /etc/localtime is the same as
> /usr/share/`cat /var/db/zoneinfo` and if not, prompt the user to run
> tzsetup.
> 2. If /var/db/zoneinfo does not exist,

and /etc/localtime is not a symlink to a tz file ?

> check to see if kern.osreldate is
> after the date that the code was added, and if so, prompt the user to run
> tzsetup.

So how would mergemaster behave after a fresh "make installworld
distribution" in an empty DESTDIR ? Isn't it supposed to do nothing in
this case, because all should already be up-to-date ?

> 3. If /var/db/zoneinfo does not exist, and the new code has not been added
> yet, attempt to determine the right answer, and create a /var/db/zoneinfo
> file. (Note, I do not look forward to writing that bit.) :)
> Sound reasonable?
> Doug
> --
>        Nothin' ever doesn't change, but nothin' changes much.
>                        -- OK Go
>        Breadth of IT experience, and depth of knowledge in the DNS.
>        Yours for the right price.  :)
> _______________________________________________
> freebsd-hackers at mailing list
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at"

Olivier Smedts                                                 _
                                        ASCII ribbon campaign ( )
e-mail: olivier at        - against HTML email & vCards  X
www:    - against proprietary attachments / \

  "Il y a seulement 10 sortes de gens dans le monde :
  ceux qui comprennent le binaire,
  et ceux qui ne le comprennent pas."

More information about the freebsd-hackers mailing list