[Pkg-zope-developers] Re: [Zope] A few questions...

Fabio Tranchitella kobold@kobold.it
Wed, 26 Jan 2005 10:13:04 +0100


--=-PP/5+Q4ppWV99SzBaq0+
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Il giorno mar, 25-01-2005 alle 15:33 -0700, Joel Aelwyn ha scritto:
> [ Mail-Followup-To set; please *do* Cc me, as I do not currently         =
 ]
> [ subscribe to the -python list, though it appears to be the proper place=
 ]
> [ for Zope discussions, at least from what I can find in the archives.   =
 ]
> [ Please redirect me if somewhere else is more appropriate.              =
 ]
>=20
> So I have relatively recently taken over a Zope package, and while it is
> now in (basically) good shape, there are a couple of technical points I
> want to clear up to make sure I'm doing it right, since what I can find o=
n
> the mailing list archives isn't entirely conclusive.

I think the right place for your email is the mailing list of zope
debian packages developers [1], but the list seems to be almost dead.

> 1) Is it proper (assuming that the package works under both Zope 2.6 and
>    Zope 2.7) to Depend on 'zope | zope2.7'? It seems like it should be, b=
ut
>    I wanted to double-check.

IMHO the dependency should be "zope2.7 | zope", so the newer version
will be automatically installed if needed.

> 2) Usage of debconf templates. The debconf manual (and the maintainer)
>    seem to think that every package which uses the shared Zope restart
>    template needs to provide an identical copy.=20

My opinion on this issue is that for zope packages you do not use the
shared template, just read its value in debian/postinst. For this
reason, you haven't (and you shouldn't) provide the template: you'll
never ask the user for that question so providing the template have
really no sense, this just create additional work for the translators.

Here an example from one of my packages:

$ cat zope-cmfphoto-0.5.0/debian/postinst | grep "shared/zope"
        db_get "shared/zope/restart" || true

If db_get fails (the package zope isn't installed, or the template
hasn't been initialized, or something else) the "or true" prevents the
maintainer script to return a bad exit code.

So, why for the hell you provide the template in your package? :)

After this, I maintain a lot of zope packages. Packaging this type of
software is quite easy, and often it is a repetitive job. For this
reason I'd like to see a dh_zope debhelper script, so the packages=20
(at least the easy ones) could get rid of their templates and their
maintainer scripts. I know that Luca De Vitis started working on it,=20
and I tried to mail him but I haven't received any answer so far.=20
His last upload to zope package is on 2004, February. Does anyone=20
know if he is still around?

Fabio

[1] pkg-zope-developers@lists.alioth.debian.org

--=20
Fabio Tranchitella                         http://www.kobold.it
Studio Tranchitella Assoc. Professionale   http://www.tranchitella.it
_____________________________________________________________________
1024D/7F961564, fpr 5465 6E69 E559 6466 BF3D 9F01 2BF8 EE2B 7F96 1564


--=-PP/5+Q4ppWV99SzBaq0+
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: Questa parte del messaggio =?ISO-8859-1?Q?=E8?= firmata

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

iD8DBQBB918fK/juK3+WFWQRAh4xAJ47o62tTVMDSiP6k3Gyu3b3Nr48EACfbiBB
1et3aspV7H7cNk/Zld0jLNc=
=oU/i
-----END PGP SIGNATURE-----

--=-PP/5+Q4ppWV99SzBaq0+--