Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] tzdata ‘right’ timezones aren’t right
@ 2022-02-20 11:41 dpk
  2022-02-21 20:35 ` dkwo
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: dpk @ 2022-02-20 11:41 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1152 bytes --]

New issue by dpk on void-packages repository

https://github.com/void-linux/void-packages/issues/35715

Description:
<!-- Don't request update of package. We have a script for that. https://alpha.de.repo.voidlinux.org/void-updates/void-updates.txt . However, a quality pull request may help. -->
### System

* xuname:  
Void 5.10.92_1 aarch64-musl Unknown uptodate rF
* package:  
tzdata-2021e_1

### Expected behavior

The ‘right’ timezones in `/usr/share/zoneinfo` should include leap second information, but apparently don’t.

```shell
$ TZ=right/UTC date -d 'Dec 31 2008 23:59:60'
Wed Dec 31 23:59:60 UTC 2008
```

(Test case from the chrony man page)

### Actual behavior

```
date: invalid date ‘Dec 31 2008 23:59:60’
```

This causes Chrony to reject the `leapsectz right/UTC` configuration directive, thus `CLOCK_TAI` on Void is always = UTC, at least when using Chrony. Presumably NTPd also doesn’t know where to get leap second data from, because there doesn’t seem to be any in Void.

The `/usr/share/zoneinfo/leapseconds` file I’ve seen on other systems is also missing, which could be related.


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: tzdata ‘right’ timezones aren’t right
  2022-02-20 11:41 [ISSUE] tzdata ‘right’ timezones aren’t right dpk
@ 2022-02-21 20:35 ` dkwo
  2022-02-21 20:36 ` dkwo
                   ` (12 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: dkwo @ 2022-02-21 20:35 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 449 bytes --]

New comment by dkwo on void-packages repository

https://github.com/void-linux/void-packages/issues/35715#issuecomment-1047213387

Comment:
We have
`install -m444 -t ${DESTDIR}/usr/share/zoneinfo iso3166.tab zone1970.tab zone.tab`
while e.g. Arch has
`install -m644 -t "${pkgdir}"/usr/share/zoneinfo iso3166.tab leap-seconds.list zone1970.tab zone.tab SECURITY # zone.tab is depricated and will go soon`
Have you tried building with the latter?

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: tzdata ‘right’ timezones aren’t right
  2022-02-20 11:41 [ISSUE] tzdata ‘right’ timezones aren’t right dpk
  2022-02-21 20:35 ` dkwo
@ 2022-02-21 20:36 ` dkwo
  2022-02-22 10:17 ` dpk
                   ` (11 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: dkwo @ 2022-02-21 20:36 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 490 bytes --]

New comment by dkwo on void-packages repository

https://github.com/void-linux/void-packages/issues/35715#issuecomment-1047213387

Comment:
We have
`install -m444 -t ${DESTDIR}/usr/share/zoneinfo iso3166.tab zone1970.tab zone.tab`
while e.g. Arch has
`install -m644 -t "${pkgdir}"/usr/share/zoneinfo iso3166.tab leap-seconds.list zone1970.tab zone.tab SECURITY # zone.tab is depricated and will go soon`
Have you tried building with the latter? in particular, adding leap-seconds.list?

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: tzdata ‘right’ timezones aren’t right
  2022-02-20 11:41 [ISSUE] tzdata ‘right’ timezones aren’t right dpk
  2022-02-21 20:35 ` dkwo
  2022-02-21 20:36 ` dkwo
@ 2022-02-22 10:17 ` dpk
  2022-02-22 10:18 ` dpk
                   ` (10 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: dpk @ 2022-02-22 10:17 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 396 bytes --]

New comment by dpk on void-packages repository

https://github.com/void-linux/void-packages/issues/35715#issuecomment-1047638514

Comment:
Hmm, curious. Indeed, sha1sum confirms the actual binary data files `/usr/share/zoneinfo/right/UTC` are identical on Arch and on Void, both with the 2021e release of the tz database. However, putting `leap-seconds.list` in place does not make a difference.

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: tzdata ‘right’ timezones aren’t right
  2022-02-20 11:41 [ISSUE] tzdata ‘right’ timezones aren’t right dpk
                   ` (2 preceding siblings ...)
  2022-02-22 10:17 ` dpk
@ 2022-02-22 10:18 ` dpk
  2022-02-22 10:22 ` Leap second data in tzdata ‘right’ timezones considered invalid by coreutils and Chrony dpk
                   ` (9 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: dpk @ 2022-02-22 10:18 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 493 bytes --]

New comment by dpk on void-packages repository

https://github.com/void-linux/void-packages/issues/35715#issuecomment-1047638514

Comment:
Hmm, curious. Indeed, sha1sum confirms the actual binary data files `/usr/share/zoneinfo/right/UTC` are identical on Arch and on Void, both with the 2021e release of the tz database. However, putting `leap-seconds.list` in place does not make a difference: `date` still does not like the date containing a leap second when its `TZ` is set to `right/UTC`

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Leap second data in tzdata ‘right’ timezones considered invalid by coreutils and Chrony
  2022-02-20 11:41 [ISSUE] tzdata ‘right’ timezones aren’t right dpk
                   ` (3 preceding siblings ...)
  2022-02-22 10:18 ` dpk
@ 2022-02-22 10:22 ` dpk
  2022-06-25  2:15 ` github-actions
                   ` (8 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: dpk @ 2022-02-22 10:22 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 255 bytes --]

New comment by dpk on void-packages repository

https://github.com/void-linux/void-packages/issues/35715#issuecomment-1047643193

Comment:
I’ve updated the report to reflect the actual symptoms, which seemingly don’t have the cause I thought they did

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Leap second data in tzdata ‘right’ timezones considered invalid by coreutils and Chrony
  2022-02-20 11:41 [ISSUE] tzdata ‘right’ timezones aren’t right dpk
                   ` (4 preceding siblings ...)
  2022-02-22 10:22 ` Leap second data in tzdata ‘right’ timezones considered invalid by coreutils and Chrony dpk
@ 2022-06-25  2:15 ` github-actions
  2022-06-25 10:26 ` dkwo
                   ` (7 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: github-actions @ 2022-06-25  2:15 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 293 bytes --]

New comment by github-actions[bot] on void-packages repository

https://github.com/void-linux/void-packages/issues/35715#issuecomment-1166172011

Comment:
Issues become stale 90 days after last activity and are closed 14 days after that.  If this issue is still relevant bump it or assign it.

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Leap second data in tzdata ‘right’ timezones considered invalid by coreutils and Chrony
  2022-02-20 11:41 [ISSUE] tzdata ‘right’ timezones aren’t right dpk
                   ` (5 preceding siblings ...)
  2022-06-25  2:15 ` github-actions
@ 2022-06-25 10:26 ` dkwo
  2022-06-29  9:34 ` paper42
                   ` (6 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: dkwo @ 2022-06-25 10:26 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 450 bytes --]

New comment by dkwo on void-packages repository

https://github.com/void-linux/void-packages/issues/35715#issuecomment-1166250639

Comment:
the command you mention works fine in arch linux.
something seems wrong with the way we package tzdata and tzutils,
but I could not fix it yet (also, i do not see why we package them
separately.) see also the refs in gentoo's package, in particular
https://mm.icann.org/pipermail/tz/2015-February/022024.html


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Leap second data in tzdata ‘right’ timezones considered invalid by coreutils and Chrony
  2022-02-20 11:41 [ISSUE] tzdata ‘right’ timezones aren’t right dpk
                   ` (6 preceding siblings ...)
  2022-06-25 10:26 ` dkwo
@ 2022-06-29  9:34 ` paper42
  2022-06-29 16:25 ` sgn
                   ` (5 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: paper42 @ 2022-06-29  9:34 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 148 bytes --]

New comment by paper42 on void-packages repository

https://github.com/void-linux/void-packages/issues/35715#issuecomment-1169758242

Comment:
@sgn

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Leap second data in tzdata ‘right’ timezones considered invalid by coreutils and Chrony
  2022-02-20 11:41 [ISSUE] tzdata ‘right’ timezones aren’t right dpk
                   ` (7 preceding siblings ...)
  2022-06-29  9:34 ` paper42
@ 2022-06-29 16:25 ` sgn
  2022-06-29 16:25 ` sgn
                   ` (4 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: sgn @ 2022-06-29 16:25 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 338 bytes --]

New comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/issues/35715#issuecomment-1170205783

Comment:
This is not a bug of `tzutils` or `tzdata`.
It's different in implementation of libc.
On a glibc system:
```sh
$ TZ=right/UTC date -d 'Dec 31 2008 23:59:60'
Wed Dec 31 11:59:60 PM UTC 2008
```

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Leap second data in tzdata ‘right’ timezones considered invalid by coreutils and Chrony
  2022-02-20 11:41 [ISSUE] tzdata ‘right’ timezones aren’t right dpk
                   ` (8 preceding siblings ...)
  2022-06-29 16:25 ` sgn
@ 2022-06-29 16:25 ` sgn
  2022-06-29 16:46 ` sgn
                   ` (3 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: sgn @ 2022-06-29 16:25 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 382 bytes --]

New comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/issues/35715#issuecomment-1170205783

Comment:
This is not a bug of `tzutils` or `tzdata`.
It's different in implementation of libc.
On a glibc system:
```sh
$ TZ=right/UTC date -d 'Dec 31 2008 23:59:60'
Wed Dec 31 11:59:60 PM UTC 2008
```

IOW, this is the musl specific behavior.

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Leap second data in tzdata ‘right’ timezones considered invalid by coreutils and Chrony
  2022-02-20 11:41 [ISSUE] tzdata ‘right’ timezones aren’t right dpk
                   ` (9 preceding siblings ...)
  2022-06-29 16:25 ` sgn
@ 2022-06-29 16:46 ` sgn
  2022-06-29 16:46 ` sgn
                   ` (2 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: sgn @ 2022-06-29 16:46 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 382 bytes --]

New comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/issues/35715#issuecomment-1170205783

Comment:
This is not a bug of `tzutils` or `tzdata`.
It's different in implementation of libc.
On a glibc system:
```sh
$ TZ=right/UTC date -d 'Dec 31 2008 23:59:60'
Wed Dec 31 11:59:60 PM UTC 2008
```

IOW, this is the musl specific behavior.

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Leap second data in tzdata ‘right’ timezones considered invalid by coreutils and Chrony
  2022-02-20 11:41 [ISSUE] tzdata ‘right’ timezones aren’t right dpk
                   ` (10 preceding siblings ...)
  2022-06-29 16:46 ` sgn
@ 2022-06-29 16:46 ` sgn
  2022-09-28  2:14 ` github-actions
  2022-10-12  2:14 ` [ISSUE] [CLOSED] " github-actions
  13 siblings, 0 replies; 15+ messages in thread
From: sgn @ 2022-06-29 16:46 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1100 bytes --]

New comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/issues/35715#issuecomment-1170205783

Comment:
This is not a bug of `tzutils` or `tzdata`.
It's different in implementation of libc.
On a glibc system:
```sh
$ TZ=right/UTC date -d 'Dec 31 2008 23:59:60'
Wed Dec 31 11:59:60 PM UTC 2008
```

On a musl system:
```sh
$ date --debug -d 'Dec 31 2008 23:59:60'
date: parsed date part: (Y-M-D) 2022-12-31
date: parsed number part: year: 2008
date: parsed time part: 23:59:60
date: input timezone: TZ="right/UTC" environment value
date: using specified time as starting value: '23:59:60'
date: error: invalid date/time value:
date:     user provided time: '(Y-M-D) 2008-12-31 23:59:60'
date:        normalized time: '(Y-M-D) 2009-01-01 00:00:00'
date:                                  ---- -- -- -- -- --
date:      possible reasons:
date:        invalid day/month combination;
date:        numeric values overflow;
date:        missing timezone
date: invalid date ‘Dec 31 2008 23:59:60’
```

IOW, this is the musl specific behavior.

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Leap second data in tzdata ‘right’ timezones considered invalid by coreutils and Chrony
  2022-02-20 11:41 [ISSUE] tzdata ‘right’ timezones aren’t right dpk
                   ` (11 preceding siblings ...)
  2022-06-29 16:46 ` sgn
@ 2022-09-28  2:14 ` github-actions
  2022-10-12  2:14 ` [ISSUE] [CLOSED] " github-actions
  13 siblings, 0 replies; 15+ messages in thread
From: github-actions @ 2022-09-28  2:14 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 293 bytes --]

New comment by github-actions[bot] on void-packages repository

https://github.com/void-linux/void-packages/issues/35715#issuecomment-1260299501

Comment:
Issues become stale 90 days after last activity and are closed 14 days after that.  If this issue is still relevant bump it or assign it.

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [ISSUE] [CLOSED] Leap second data in tzdata ‘right’ timezones considered invalid by coreutils and Chrony
  2022-02-20 11:41 [ISSUE] tzdata ‘right’ timezones aren’t right dpk
                   ` (12 preceding siblings ...)
  2022-09-28  2:14 ` github-actions
@ 2022-10-12  2:14 ` github-actions
  13 siblings, 0 replies; 15+ messages in thread
From: github-actions @ 2022-10-12  2:14 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1069 bytes --]

Closed issue by dpk on void-packages repository

https://github.com/void-linux/void-packages/issues/35715

Description:
<!-- Don't request update of package. We have a script for that. https://alpha.de.repo.voidlinux.org/void-updates/void-updates.txt . However, a quality pull request may help. -->
### System

* xuname:  
Void 5.10.92_1 aarch64-musl Unknown uptodate rF
* package:  
tzdata-2021e_1
coreutils-8.32_4
chrony-4.2_1

### Expected behavior

```shell
$ TZ=right/UTC date -d 'Dec 31 2008 23:59:60'
Wed Dec 31 23:59:60 UTC 2008
```

(Test case from the chrony man page)

### Actual behavior

```
date: invalid date ‘Dec 31 2008 23:59:60’
```

This causes Chrony to reject the `leapsectz right/UTC` configuration directive, thus `CLOCK_TAI` on Void is always = UTC, at least when using Chrony. Presumably NTPd also doesn’t know where to get leap second data from, because there doesn’t seem to be any in Void.

The `/usr/share/zoneinfo/leapseconds` file I’ve seen on other systems is also missing, which could be related.


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2022-10-12  2:14 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-20 11:41 [ISSUE] tzdata ‘right’ timezones aren’t right dpk
2022-02-21 20:35 ` dkwo
2022-02-21 20:36 ` dkwo
2022-02-22 10:17 ` dpk
2022-02-22 10:18 ` dpk
2022-02-22 10:22 ` Leap second data in tzdata ‘right’ timezones considered invalid by coreutils and Chrony dpk
2022-06-25  2:15 ` github-actions
2022-06-25 10:26 ` dkwo
2022-06-29  9:34 ` paper42
2022-06-29 16:25 ` sgn
2022-06-29 16:25 ` sgn
2022-06-29 16:46 ` sgn
2022-06-29 16:46 ` sgn
2022-09-28  2:14 ` github-actions
2022-10-12  2:14 ` [ISSUE] [CLOSED] " github-actions

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).