Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UZWWq-0005H1-2U for pgsql-pkg-debian@arkaria.postgresql.org; Tue, 07 May 2013 01:17:16 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UZWWp-0007xE-HP for pgsql-pkg-debian@arkaria.postgresql.org; Tue, 07 May 2013 01:17:15 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UZWWo-0007x8-QX for pgsql-pkg-debian@postgresql.org; Tue, 07 May 2013 01:17:14 +0000 Received: from cl-2390.ham-01.de.sixxs.net ([2001:6f8:900:955::2] helo=feynman.df7cb.de) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UZWWc-0007nP-Av for pgsql-pkg-debian@postgresql.org; Tue, 07 May 2013 01:17:14 +0000 Received: from msgid.df7cb.de (lehmann.df7cb.de [IPv6:2001:6f8:10ee:e:136::2]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by feynman.df7cb.de (Postfix) with ESMTPSA id B22C769630; Tue, 7 May 2013 03:16:58 +0200 (CEST) Date: Mon, 6 May 2013 18:16:53 -0700 From: Christoph Berg To: Daniel Farina Cc: pgsql-pkg-debian@postgresql.org Subject: Re: wither source packages? Message-ID: <20130507011527.GA5150@msgid.df7cb.de> Mail-Followup-To: Christoph Berg , Daniel Farina , pgsql-pkg-debian@postgresql.org References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="0ntfKIWw70PvrIHh" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -1.9 (-) X-Mailing-List: pgsql-pkg-debian List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Precedence: bulk Sender: pgsql-pkg-debian-owner@postgresql.org --0ntfKIWw70PvrIHh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Re: Daniel Farina 2013-05-06 > 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 =2E.. 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 --=20 cb@df7cb.de | http://www.df7cb.de/ --0ntfKIWw70PvrIHh Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQIcBAEBCAAGBQJRiFYDAAoJEExaa6sS0qeu3MYP/3S/FL+mqYCaeJ1iyfS3kfCM V0EzalViOL6IcMiBkhnMVx/RhcCtl7L8mxDuxM394/fsZu01ySNycstSaE5seUac ZnFyLufM0vHdu7szh+rAQeIrmKTrN3R/N/XqXlHVwbFaVJq8G9qvJpSB03XVEjXq EMHLi9099I2pTouvj2vcnQRE+3FF5TiOpPK/fy4QjJf2hdHPx0PDzTHOetEMBdLs wfeELNTcnsI3B9whrW+l0eogAnO7Gt1ThXTBY95tiISDte6fjCHzSiFtoUsgx4Fu WsnUKCnprzfNwaqi8fkF6mBwXUBdpSJ9pUpDG3mxhrmZsSrCQXV+/lMV6Oz0b6j2 bvDDuA6OuMR/+4cRjnSc6Ge1qt4BQsXPeqYIdfU1RnfNaapV1KErs4MgiLYpFGp3 oxLZooCMXqnGcHfUAXjvW9TKfL4+7wZkJfp1QjQfBRfw9Em/DebaCTOvlF6G/PIS +vjEneO0XcHcTZtRP4ykquoJUCgUIClg714ctcsn1f1RA7+xWEwPUd5kOmgE1mA0 /hgheAGKQ8oj+A2sX+ZXJYcJsKFCeNFidPIZybPlZqWknZpKQMzKejVZPqzn6ktt U1EHlSuqBYAUkGuCcOUqSPqs+m3aryZvaVt/Wi0/Esy82jJpNYLkbGRwxngy8uPC ojynWU7UVz6xiwYvlM6A =m9ev -----END PGP SIGNATURE----- --0ntfKIWw70PvrIHh--