pg.ddx.io  pgsql-pkg-debian@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christoph Berg <cb@df7cb.de>
To: Daniel Farina <daniel@heroku.com>
Cc: pgsql-pkg-debian@postgresql.org
Subject: Re: wither source packages?
Date: Mon, 6 May 2013 18:16:53 -0700
Message-ID: <20130507011527.GA5150@msgid.df7cb.de> (raw)
In-Reply-To: <CAAZKuFbjbomhPy7Ed5ZWVy8s5C4CLD4UEj4f9dCs1f0tp2GrWw@mail.gmail.com>
References: <CAAZKuFbjbomhPy7Ed5ZWVy8s5C4CLD4UEj4f9dCs1f0tp2GrWw@mail.gmail.com>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-pkg-debian>

Re: Daniel Farina 2013-05-06 <CAAZKuFbjbomhPy7Ed5ZWVy8s5C4CLD4UEj4f9dCs1f0tp2GrWw@mail.gmail.com>
> I did some groveling around the Internet and had little luck in
> figuring out as to how the Debian source packages for Postgres are
> developed.  However, there is a little evidence out there to suggest
> that there may be ways to convert raw git into Debian source packages
> for building, stamped with version numbers and all.

Hi,

I'm not sure I understand your question correctly. I'll assume you
know how Debian packages work in general, so I'll answer what the
difference on apt.postgresql.org is.

For the vast majority of packages we use generate-pgdg-source to
produce a source package (.dsc) from a git/bzr/svn checkout in
Jenkins:

https://github.com/dimitri/apt.postgresql.org/blob/master/jenkins/generate-pgdg-source
https://wiki.postgresql.org/wiki/Apt/Jenkins

Basically it does some minor modifications of the source (on a few
packages), and then modifies the version number for rebuild.

For postgresql-9.3, there is some hack in place to make it possible to
build from git.postgresql.org (which would usually fail because we
don't have nightly snapshot tarballs). We've set the package to
"native", and then threw some sh code on the git checkout:

(
    cd source
    if [ -d .bzr ]; then
      bzr revert debian/control debian/changelog debian/rules
      bzr pull
    else
      bzr branch http://anonscm.debian.org/bzr/pkg-postgresql/postgresql-9.3/trunk/
      mv trunk/.bzr* trunk/debian .
      rmdir trunk
    fi
)
generate-pgdg-source

... that is, there's both a git and a bzr checkout in this directory.

Having said that, I'll now revert the native hackery because the beta1
tarballs have been released to the packagers.

I'm still thinking of how to best implement "nightly git snapshot"
builds in the future, be it with tarballs (which need a version
number), with delta patches (which need reverting for the next day),
or with the current "native" approach (which needs modifications to
the package).

Christoph
-- 
cb@df7cb.de | http://www.df7cb.de/

Attachments:

  signature.asc (application/pgp-signature, 835B) download

view thread (2+ messages)

Message-ID: <20130507011527.GA5150@msgid.df7cb.de>
Permalink:  ../20130507011527.GA5150@msgid.df7cb.de/
Also on:    postgresql.org/message-id/20130507011527.GA5150@msgid.df7cb.de

 · 

reply

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: cb@df7cb.de, daniel@heroku.com
  Subject: Re: wither source packages?
  In-Reply-To: <20130507011527.GA5150@msgid.df7cb.de>
  References: <CAAZKuFbjbomhPy7Ed5ZWVy8s5C4CLD4UEj4f9dCs1f0tp2GrWw@mail.gmail.com> <20130507011527.GA5150@msgid.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