Discussion:
[yocto] tzdata overwrites existing localtime/zoneinfo?
Anders Montonen
2018-10-25 16:43:24 UTC
Permalink
Hi,

It seems to me that the tzdata package will overwrite whatever the current time zone is with its default. This is not great if you’re upgrading the package on an existing system. Should the creation of the file and link be removed from the do_install and only be done in the pkg_postinst?

Regards,
Anders Montonen
--
akuster808
2018-10-28 15:27:46 UTC
Permalink
Post by Anders Montonen
Hi,
It seems to me that the tzdata package will overwrite whatever the current time zone is with its default. This is not great if you’re upgrading the package on an existing system. Should the creation of the file and link be removed from the do_install and only be done in the pkg_postinst?
Timely email.. 2018g just got release. I will take a look at this issue
shortly.


- armin
Post by Anders Montonen
Regards,
Anders Montonen
--
Anders Montonen
2018-10-28 18:31:44 UTC
Permalink
Hi,
Post by akuster808
Post by Anders Montonen
It seems to me that the tzdata package will overwrite whatever the current time zone is with its default. This is not great if you’re upgrading the package on an existing system. Should the creation of the file and link be removed from the do_install and only be done in the pkg_postinst?
Timely email.. 2018g just got release. I will take a look at this issue
shortly.
A colleague pointed out that although ${sysconfdir}/localtime is added to CONFFILES, the get_conffiles() function in package.bbclass explicitly removes symlinks from the list of configuration files.

Regards,
Anders Montonen
--
akuster808
2018-10-29 01:43:18 UTC
Permalink
Post by Anders Montonen
Hi,
Post by akuster808
Post by Anders Montonen
It seems to me that the tzdata package will overwrite whatever the current time zone is with its default. This is not great if you’re upgrading the package on an existing system. Should the creation of the file and link be removed from the do_install and only be done in the pkg_postinst?
Timely email.. 2018g just got release. I will take a look at this issue
shortly.
A colleague pointed out that although ${sysconfdir}/localtime is added to CONFFILES, the get_conffiles() function in package.bbclass explicitly removes symlinks from the list of configuration files.
Have you tried setting INSTALL_TIMEZONE_FILE="0" in your local.conf?

- armin
Post by Anders Montonen
Regards,
Anders Montonen
--

Loading...