bug#18715: mdate-sh output is timezone dependant triggering rebuilds

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

bug#18715: mdate-sh output is timezone dependant triggering rebuilds

Francisco Blas Izquierdo Riera (klondike)
The output of mdate-sh depends on the local timezone used by the system
which may trigger unneeded rebuilds in some situations (especially when
the packaging machine and the building machine are on different timezones).

An example of such an issue can be found at
https://bugs.gentoo.org/show_bug.cgi?id=520818


signature.asc (254 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

bug#18715: mdate-sh output is timezone dependant triggering rebuilds

Eric Blake-3
merge 18714 18715
tag confirmed
thanks

On 10/13/2014 08:51 PM, Francisco Blas Izquierdo Riera (klondike) wrote:
> The output of mdate-sh depends on the local timezone used by the system
> which may trigger unneeded rebuilds in some situations (especially when
> the packaging machine and the building machine are on different timezones).
>
> An example of such an issue can be found at
> https://bugs.gentoo.org/show_bug.cgi?id=520818

Thanks for the report.  Yes, we should fix mdate-sh to output results in
UTC, if it is easy to write portable shell to normalize dates (with GNU
date it is easy, but mdate-sh has to run on systems that lack GNU date).

--
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


signature.asc (551 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

bug#18715: mdate-sh output is timezone dependant triggering rebuilds

Francisco Blas Izquierdo Riera (klondike)
El 14/10/14 13:58, Eric Blake escribió:
> Thanks for the report. Yes, we should fix mdate-sh to output results
> in UTC, if it is easy to write portable shell to normalize dates (with
> GNU date it is easy, but mdate-sh has to run on systems that lack GNU
> date).
Well the suggested workaround for now is setting the TZ variable to UTC,
I'm not sure how well that'd work though.


signature.asc (254 bytes) Download Attachment