Your message dated Tue, 03 Dec 2024 13:29:20 +0100
with message-id <1a044bc19c21ae824c193a6c3116c7821ffb2aea.ca...@debian.org>
and subject line Re: package refuses to configure when in a custom time zone
has caused the Debian Bug report #602569,
regarding package refuses to configure when in a custom time zone
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
602569: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=602569
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: tzdata
Version: 2010m-1
Severity: normal

On this system, /usr/share/zoneinfo/JEST exists, and /etc/timezone
uses it and works fine, but it breaks upgrades of tzdata.

root@gnu:/usr/share/zoneinfo>DEBCONF_DEBUG=developer 
/var/lib/dpkg/info/tzdata.config 
debconf (developer): frontend started
debconf (developer): Trying to find a templates file..
debconf (developer): Trying /var/lib/dpkg/info/tzdata.config.templates
debconf (developer): Trying /var/lib/dpkg/info/tzdata.templates
debconf (developer): I guess it is /var/lib/dpkg/info/tzdata.templates
debconf (developer): frontend running, package name is 
debconf (developer): starting /var/lib/dpkg/info/tzdata.config
debconf (developer): <-- VERSION 2.0
debconf (developer): --> 0 2.0
debconf (developer): <-- CAPB backup
debconf (developer): --> 0 multiselect escape backup
debconf (developer): <-- FSET tzdata/Areas seen true
debconf (developer): --> 0 true
debconf (developer): <-- FSET tzdata/Zones/JEST seen true
debconf (developer): --> 10 tzdata/Zones/JEST doesn't exist
zsh: exit 10    DEBCONF_DEBUG=developer /var/lib/dpkg/info/tzdata.config

When using dpkg-reconfigure tzdata, it fails a little later:

debconf (developer): <-- VERSION 2.0
debconf (developer): --> 0 2.0
debconf (developer): <-- CAPB backup
debconf (developer): --> 0 multiselect escape backup
debconf (developer): <-- SET tzdata/Areas JEST
debconf (developer): --> 0 value set
debconf (developer): <-- SET tzdata/Zones/JEST JEST
debconf (developer): --> 10 tzdata/Zones/JEST doesn't exist

I think it would be reasonable to have the config script
(and postinst) simply bail out without doing anything if a
template does not exist for the system's configured
time zone.

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages tzdata depends on:
ii  debconf [debconf-2.0]         1.5.36     Debian configuration management sy

tzdata recommends no packages.

tzdata suggests no packages.

-- debconf information:
  tzdata/Zones/Australia:
  tzdata/Zones/Asia:
  tzdata/Zones/SystemV:
  tzdata/Zones/Pacific:
  tzdata/Zones/Atlantic:
  tzdata/Zones/US:
* tzdata/Zones/Etc: UTC
  tzdata/Zones/Arctic:
  tzdata/Zones/Antarctica:
  tzdata/Zones/Europe:
  tzdata/Zones/Africa:
* tzdata/Zones/America: New_York
* tzdata/Areas: America
  tzdata/Zones/Indian:

-- 
see shy jo

Attachment: signature.asc
Description: Digital signature


--- End Message ---
--- Begin Message ---
Version: 2024b-3

On Fri, 5 Nov 2010 19:49:44 -0400 Joey Hess <jo...@debian.org> wrote:
> Package: tzdata
> Version: 2010m-1
> Severity: normal
> 
> On this system, /usr/share/zoneinfo/JEST exists, and /etc/timezone
> uses it and works fine, but it breaks upgrades of tzdata.
> 
> root@gnu:/usr/share/zoneinfo>DEBCONF_DEBUG=developer
/var/lib/dpkg/info/tzdata.config 
> debconf (developer): frontend started
> debconf (developer): Trying to find a templates file..
> debconf (developer): Trying /var/lib/dpkg/info/tzdata.config.templates
> debconf (developer): Trying /var/lib/dpkg/info/tzdata.templates
> debconf (developer): I guess it is /var/lib/dpkg/info/tzdata.templates
> debconf (developer): frontend running, package name is 
> debconf (developer): starting /var/lib/dpkg/info/tzdata.config
> debconf (developer): <-- VERSION 2.0
> debconf (developer): --> 0 2.0
> debconf (developer): <-- CAPB backup
> debconf (developer): --> 0 multiselect escape backup
> debconf (developer): <-- FSET tzdata/Areas seen true
> debconf (developer): --> 0 true
> debconf (developer): <-- FSET tzdata/Zones/JEST seen true
> debconf (developer): --> 10 tzdata/Zones/JEST doesn't exist
> zsh: exit 10    DEBCONF_DEBUG=developer
/var/lib/dpkg/info/tzdata.config

This is fixed:

```
$ ln -sf /usr/share/zoneinfo/JEST /etc/localtime
$ DEBCONF_DEBUG=developer /var/lib/dpkg/info/tzdata.config
debconf (developer): frontend started
debconf (developer): Trying to find a templates file..
debconf (developer): Trying /var/lib/dpkg/info/tzdata.config.templates
debconf (developer): Trying /var/lib/dpkg/info/tzdata.templates
debconf (developer): I guess it is /var/lib/dpkg/info/tzdata.templates
debconf (developer): frontend running, package name is 
debconf (developer): starting /var/lib/dpkg/info/tzdata.config
debconf (developer): <-- VERSION 2.0
debconf (developer): --> 0 2.0
debconf (developer): <-- CAPB backup
debconf (developer): --> 0 multiselect escape 
debconf (developer): <-- FGET tzdata/Areas seen
debconf (developer): --> 0 true
debconf (developer): <-- GET tzdata/Areas
debconf (developer): --> 0 Etc
debconf (developer): <-- FGET tzdata/Zones/Etc seen
debconf (developer): --> 0 true
debconf (developer): <-- GET tzdata/Zones/Etc
debconf (developer): --> 0 UTC
debconf (developer): <-- FSET tzdata/Areas seen false
debconf (developer): --> 0 false
debconf (developer): <-- FSET tzdata/Zones/Etc seen false
debconf (developer): --> 0 false
debconf (developer): <-- SET tzdata/Areas Etc
debconf (developer): --> 0 value set
debconf (developer): <-- SET tzdata/Zones/Etc UTC
debconf (developer): --> 0 value set
debconf (developer): <-- INPUT high tzdata/Areas
debconf (developer): --> 0 question will be asked
debconf (developer): <-- GO 
[...]
```

The config script will fall back to UTC if the current timezone is not
known.

> When using dpkg-reconfigure tzdata, it fails a little later:
> 
> debconf (developer): <-- VERSION 2.0
> debconf (developer): --> 0 2.0
> debconf (developer): <-- CAPB backup
> debconf (developer): --> 0 multiselect escape backup
> debconf (developer): <-- SET tzdata/Areas JEST
> debconf (developer): --> 0 value set
> debconf (developer): <-- SET tzdata/Zones/JEST JEST
> debconf (developer): --> 10 tzdata/Zones/JEST doesn't exist
> 
> I think it would be reasonable to have the config script
> (and postinst) simply bail out without doing anything if a
> template does not exist for the system's configured
> time zone.

-- 
Benjamin Drung
Debian & Ubuntu Developer

--- End Message ---

Reply via email to