Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 1DF84B5DF76 for ; Sat, 18 Jun 2011 15:17:57 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 01272-02 for ; Sat, 18 Jun 2011 18:17:50 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from kepler.df7cb.de (kepler.df7cb.de [178.63.218.14]) by mail.postgresql.org (Postfix) with ESMTP id B0ABEB5DC74 for ; Sat, 18 Jun 2011 15:12:31 -0300 (ADT) Received: from lehmann.df7cb.de (lehmann.df7cb.de [IPv6:2a01:198:618:0:221:ff:fe2a:21a6]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "lehmann.df7cb.de", Issuer "df7cb.de CA" (verified OK)) by kepler.df7cb.de (Postfix) with ESMTPS id 00E601019B1; Sat, 18 Jun 2011 20:12:29 +0200 (CEST) Received: by lehmann.df7cb.de (Postfix, from userid 2062) id 321063117E; Sat, 18 Jun 2011 20:12:29 +0200 (CEST) Date: Sat, 18 Jun 2011 20:12:29 +0200 From: Christoph Berg To: Dimitri Fontaine Cc: PostgreSQL in Debian Subject: Re: Updated pg_buildext Message-ID: <20110618181228.GB19843@msgid.df7cb.de> References: <20110617152500.GH4130@msgid.df7cb.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="J2SCkAp4GZ/dPZZf" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201106/5 X-Sequence-Number: 5 --J2SCkAp4GZ/dPZZf Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Re: Dimitri Fontaine 2011-06-18 > I recall that doing the build in the vtarget directory was important in > my usage, but it could be that you new -f $makefile style allows to run > the build from any directory=E2=80=A6 I didn't really change that, I just replaced "cd && make" with "make -C". Usually, there won't be a Makefile in the build directory, so $makefile is "-f $srcdir/Makefile" as before. The other case was added for plsh which uses autoconf. (build) - cd $vtarget - make -f $srcdir/Makefile CFLAGS=3D"$cflags $opt" PG_CONFIG=3D"$pgc" VP= ATH=3D"$srcdir" - cd - + # if a Makefile was created by configure, use it, else the top level M= akefile + [ -f $vtarget/Makefile ] || makefile=3D"-f $srcdir/Makefile" + make -C $vtarget $makefile CFLAGS=3D"$cflags" PG_CONFIG=3D"$pgc" VPATH= =3D"$srcdir" > > (Todo: think about a smart and policy-compliant way to update > > debian/control. Also, try using with 9.1 modules.) >=20 > As we rely on the extension's Makefile I think we're as good as can be > for 9.1. For debian/control, we have the mechanism to automatically > derive it from supported-versions, we need to reach on a conclusion > about its use being safe. The thread on debian-release wasn't 100% conclusive, but there were voices against automatically updating: http://lists.debian.org/debian-release/2011/04/msg00413.html Here's what I would do: * add all supported (by the package) versions to debian/control, but only build those from supported-versions * have some way to update debian/control (ideally not involving debian/control.in because manual changes to debian/control get lost) * have some way to indicate that we want to build a different set of versions, 1) it would make sense to build 9.1 modules when uploading to experimental now, 2) we need that for apt.postgresql.org > The other TODO would be what to do about VPATH unfriendly extensions. > Some of them are using subdirectories where to stash regression tests, > docs, etc. Then building from another place is a problem: maybe that's > why you removed my forcing building in $vtarget? These probably require full (configure,) build && install cycles for each version. Usually install is invoked via fakeroot, but maybe we can go without. Christoph --=20 cb@df7cb.de | http://www.df7cb.de/ --J2SCkAp4GZ/dPZZf Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQIcBAEBCAAGBQJN/OqKAAoJEExaa6sS0qeuTxoQAJeH81DNzftDOi/Zghjec6FX eA15koFDqjnDpAymAnCkQNTQXDJRbxAnWwEX0pWOeSOtHADE76Qj6mKWG3u6AVfk xzouZKmaV9Jqo6HJ+vXcpCcOAwY6SkGwLxkoiN+hNQzMGn1FjfKMWvwW5q+8M8jY anbs5IOCx2jCHfBI+lnDdLCvwyaqYajZDuBs/ZVkJUAsyYdlc7tkdxH+L2VwPwxW fLWN+2K6P1UJlYXNNQSRSm4KWTbM5wlqG9pGWhmT9QO7JDT1sglVRXKtbKIH/ela MnVWlxB8k2oFuNGkq5upnoEPGCyAy81cuMwd+bk3zU9+xKBdC3ivYDZSmOUV+Zu3 fcVoSfSXfV1V7KtjxzsiiZbIPzXEp62HNZGy64J63oFxeN0K0z5gngx/sDpFT+Gy u4SHFZny6YG9HX6L7ewQnLQUxjGVZwOrIO/BmKb9sF/+YTiWvdMg/M3+iI9f+jqc erIJXkdbdrt+OtUD67Q48qO4wXEvRjuYmaEylLMPtOXJXUNG/cOb3FVf7X46Du8E KV4uRMec3nSymgRh+4nY+zZ8xdNzp+0J6U7Qct5/lMAPOHjwcrsF/kyI57KXx5dK BBsRwlsuhJkJSWBUk9lCgDEIRP8yn+LkikJTE8eZ8yA5RIYrBvD6R0A03Nan1JML FLX/6es+AYcsBQuJ1PgD =3YF3 -----END PGP SIGNATURE----- --J2SCkAp4GZ/dPZZf--