Debian Bug report logs - #660404
tzdata: Building libdatetime-timezone-perl(-data) from tzdata

Package: src:tzdata; Maintainer for src:tzdata is GNU Libc Maintainers <debian-glibc@lists.debian.org>;

Reported by: gregor herrmann <gregoa@debian.org>

Date: Sat, 18 Feb 2012 20:57:02 UTC

Severity: wishlist

Tags: patch

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, debian-perl@lists.debian.org, GNU Libc Maintainers <debian-glibc@lists.debian.org>:
Bug#660404; Package src:tzdata. (Sat, 18 Feb 2012 20:57:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to gregor herrmann <gregoa@debian.org>:
New Bug report received and forwarded. Copy sent to debian-perl@lists.debian.org, GNU Libc Maintainers <debian-glibc@lists.debian.org>. (Sat, 18 Feb 2012 20:57:05 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: gregor herrmann <gregoa@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: tzdata: Building libdatetime-timezone-perl(-data) from tzdata
Date: Sat, 18 Feb 2012 21:53:31 +0100
[Message part 1 (text/plain, inline)]
Source: tzdata
Severity: wishlist
Tags: patch

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hi Aurelien,

following up on our short discussion at FOSDEM, I've now looked into the
possibility to build the libdatetime-timezone-perl binary package from the
tzdata source package.

The idea (I hope that matches your memories :)) was to create a new binary
package (I've named it libdatetime-timezone-perl-tools) that contains the
script to build the perl modules from the Olson DB data, and use this
package/script in tzdata to build the libdatetime-timezone-perl package from
there.

Unfortunately this doesn't work this way because libdatetime-timezone-perl
doesn't contain just the generated-from-Olson-DB perl modules but also some
generic ones (esp. DateTime/TimeZone.pm itself).

So my next idea was to split the generated modules out into a new
libdatetime-timezone-perl-data package, and to build this one from tzdata
with the help of libdatetime-timezone-perl-tools.

That means, from a procedural POV:
1) add new libdatetime-timezone-perl-tools and
   libdatetime-timezone-perl-data binary packages to the
   libdatetime-timezone-perl source package, wait for them to pass the NEW
   queue
2) update tzdata to create libdatetime-timezone-perl-data with the help of
   libdatetime-timezone-perl-tools
3) drop the libdatetime-timezone-perl-data binary package from the
   libdatetime-timezone-perl source package again

I'm attaching two debdiffs that show a preliminary implementation for this
idea; any comments from tzdata and perl people highly welcome! I'm not sure
if this all makes sense or is just ... a mess.

Some remarks/obversations:
- - libdatetime-timezone-perl has an epoch (current version 1:42-1+2011n), so
  tzdata will probably need to add an epoch too to get a higher version for
  libdatetime-timezone-perl-data. Ugly. Other options?
- - We have a circular dependency when building
  libdatetime-timezone-perl-data: libdatetime-timezone-perl-tools (i.e. the
  parse_olson script there) needs libdatetime-timezone-perl which now
  depends on libdatetime-timezone-perl-data. Shouldn't hurt in pratice but
  still ... Other options?
- - Building the timezone perl modules takes ages, at least on my old machine.
- - Maybe we need some more versioned dependencies?


Cheers,
gregor

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQIcBAEBCAAGBQJPQA/KAAoJELs6aAGGSaoG+PwP/3cgH2eN/57hK6wR4E5UdyUt
85qlMF4LwSd8f1bnr9FuT6jsRQlZ4JylVMr9Ddut8LdoP51aOIU0q39CAkht2sUa
T0wcSWgADQTpEg+KJfNvrnbtPcsnqfBQvLGUKNduJKkJqM0uBZz+JRxEOMmGOA30
8HlKYPqaq41FU6bfSu2woI1Tmc8pIgaZ7Pxrusnmy5fWevn1HAP7zeZX+q+DA174
mWE0W0Wso8QKbFM+ZFhNpfp8d4Uu0gTdijFyFWJxJGKTdg4b3ApCO4uvBvn9H1lH
Km0rc926cVXv81d45y4CvB3MUt1nbh/G0XLNxz6BCzoMUNv2llrjJ7EMvQH1UWeX
mB/zj3Z4VlwC2sOg35/DvU3WXcWRc3xQQnNOO0DrtcMr3GpNxUYVw224ChfHS8ls
HuaLzFilXWsNH37Rbdw2ETiPL3AzjKCUwiLZ+UBboQnjyI89wYBpsQKNy8TAh5De
IL0A6VjTw1n6HpbRFlEIcd/2IXNatJe72WguFdX99jcRvxCd3kyph2f3agbvwUls
gGNEgP6fYIheJXb66FrXnnbOtOQ8QWh1g0JUBZciM8tfJ65gZxMU7YMdv3UeMMrq
qieuXFoRPDQQAZbPv0GdBk+nFiHrKd6isJLthitPQH9h4WjIZwwjq11EtXvA8P/I
VZULv/H+I5CBwDqOAiGt
=I8wm
-----END PGP SIGNATURE-----
[tzdata.debdiff (text/x-diff, attachment)]
[libdatetime-timezone-perl.debdiff (text/x-diff, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, GNU Libc Maintainers <debian-glibc@lists.debian.org>:
Bug#660404; Package src:tzdata. (Mon, 19 Mar 2012 22:39:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to gregor herrmann <gregoa@debian.org>:
Extra info received and forwarded to list. Copy sent to GNU Libc Maintainers <debian-glibc@lists.debian.org>. (Mon, 19 Mar 2012 22:39:03 GMT) Full text and rfc822 format available.

Message #10 received at 660404@bugs.debian.org (full text, mbox):

From: gregor herrmann <gregoa@debian.org>
To: 660404@bugs.debian.org
Cc: debian-perl@lists.debian.org
Subject: Re: Bug#660404: tzdata: Building libdatetime-timezone-perl(-data) from tzdata
Date: Mon, 19 Mar 2012 23:34:33 +0100
[Message part 1 (text/plain, inline)]
On Sat, 18 Feb 2012 21:53:31 +0100, gregor herrmann wrote:

> So my next idea was to split the generated modules out into a new
> libdatetime-timezone-perl-data package, and to build this one from tzdata
> with the help of libdatetime-timezone-perl-tools.

Good news: The module will be split upstream anyway:
http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/2012-March/052645.html

(I haven't looked at the details yet but that might make it easier
for us.)
 
Cheers,
gregor

-- 
 .''`.  Homepage: http://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06
 : :' : Debian GNU/Linux user, admin, and developer  -  http://www.debian.org/
 `. `'  Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe
   `-   NP: Bob Dylan: Standing In The Doorway
[signature.asc (application/pgp-signature, inline)]

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Mon Apr 21 15:55:57 2014; Machine Name: beach.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.