From: Christoph Berg <myon@debian.org>
To: Ole Streicher <olebole@debian.org>
Cc: pkg-postgresql-public@lists.alioth.debian.org
Cc: pgsql-pkg-debian@postgresql.org
Subject: Re: Debian packaging of the q3c and pgsphere extensions
Date: Thu, 3 Aug 2017 11:25:45 +0200
Message-ID: <20170803092545.bloxbt6sfsq5j4sd@msg.df7cb.de> (raw)
In-Reply-To: <d478ece1-f884-0576-91f3-910820d54669@debian.org>
References: <d478ece1-f884-0576-91f3-910820d54669@debian.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-pkg-debian>
Re: Ole Streicher 2017-07-31 <d478ece1-f884-0576-91f3-910820d54669@debian.org>
> I am posting to both lists since I am unsure where the best place is. I
> am however not subscribed to any of them, so please keep in Cc for the
> moment:
Hi Ole,
both lists are fine.
> As a dependency of the Virtual Observatory "DACHS" package [1], which I
> am planning to package, I need to have the "q3c" [2] and "pgsphere" [3]
> packages in Debian. All packages already exist in a separate repository
> [4]; the initial packaging was done by Florian Rothmaier.
Florian was talking to me about these some years back, iirc we were
close to getting the packages polished up, but then communication got
stuck at some point. Thanks for taking this up again!
I'd also like to include the packages on apt.postgresql.org.
> However, I am very new to Postgresql extension packaging, and therefore
> I would ask to get some useful hints here. Especially: Is there a Debian
> policy for postgresql extensions that documents the preferred way for
> packaging?
pg_buildext(1) and dh_make_pgxs(1) (both from postgresql-server-dev-all)
should provide a working skeleton at least for the case of extension-only
packages.
> A preferred git repository? Or is the Debian Science git
> repository OK?
Any git repo works.
> Are extensions dependent on the postgresql version, and
> if yes, how should I create the package to enable smooth transitions?
The server major version is encoded in the .so files built and the
path names, so they are dependent, yes.
> What are the preferred names for the packages?
postgresql-9.6-q3c etc.
> I would be glad to get some initial startup here (maybe a simple
> template or so)?
See pg_buildext(1) and dh_make_pgxs(1).
The existing
https://anonscm.debian.org/cgit/debian-science/packages/q3c.git/https://anonscm.debian.org/cgit/debian-science/packages/pgsphere.git/
repositories seem mostly fine even by today's packaging standards
(maybe some of the extra clutter in debian/rules could be removed), so
you should probably go from there.
Fwiw, I'd strongly recommend to add a debian/tests/ testsuite (see
also pg_buildext(1)), even if it's just a "create extension q3c;", so
we have some test coverage.
Thanks,
Christoph
Attachments:
signature.asc (application/pgp-signature, 832B) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-pkg-debian@postgresql.org
Cc: myon@debian.org, olebole@debian.org, pkg-postgresql-public@lists.alioth.debian.org
Subject: Re: Debian packaging of the q3c and pgsphere extensions
In-Reply-To: <20170803092545.bloxbt6sfsq5j4sd@msg.df7cb.de>
References: <d478ece1-f884-0576-91f3-910820d54669@debian.org> <20170803092545.bloxbt6sfsq5j4sd@msg.df7cb.de>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox