Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 0F3A3B5DC6F for ; Wed, 12 Oct 2011 04:53:28 -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 86914-02 for ; Wed, 12 Oct 2011 07:53:21 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from mail.piware.de (unknown [213.9.93.70]) by mail.postgresql.org (Postfix) with ESMTP id 44448B5DC1E for ; Wed, 12 Oct 2011 04:53:17 -0300 (ADT) Received: from localhost.localdomain (p549B5FB3.dip.t-dialin.net [84.155.95.179]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "Martin Pitt (ThinkPad)", Issuer "piware CA" (verified OK)) by mail.piware.de (Postfix) with ESMTPS id 3A1F71517A7D for ; Wed, 12 Oct 2011 09:48:31 +0200 (CEST) Received: by localhost.localdomain (Postfix, from userid 1000) id 9026A204A7; Wed, 12 Oct 2011 09:53:14 +0200 (CEST) Date: Wed, 12 Oct 2011 09:53:14 +0200 From: Martin Pitt To: PostgreSQL Bugs Subject: *.sql contrib files contain unresolvable MODULE_PATHNAME Message-ID: <20111012075314.GA25470@piware.de> Mail-Followup-To: PostgreSQL Bugs MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="/9DWx/yDrRhgMJTb" Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.107 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RDNS_NONE=0.793 X-Spam-Level: X-Archive-Number: 201110/95 X-Sequence-Number: 31365 --/9DWx/yDrRhgMJTb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello all, In https://launchpad.net/bugs/835502 it was reported that the 9.1.1 contrib *.sql files contain the token "MODULE_PATHNAME", which is unknown: psql test < /usr/share/postgresql/9.1/extension/intarray--1.0.sql This fails with a ton of errors about the file "MODULE_PATHNAME" not existing. When I replace this with "$libdir/_int", it works: sed 's!MODULE_PATHNAME!$libdir/_int!g' /usr/share/postgresql/9.1/extensio= n/intarray--1.0.sql | psql test Is that something I'm doing wrong in the packaging, or should the contrib Makefiles be fixed to do this substitution? It doesn't only affect intarray, but pretty much all *.sql files. Thanks for any insight, Martin Pitt --=20 Martin Pitt | http://www.piware.de Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org) --/9DWx/yDrRhgMJTb Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQIcBAEBCAAGBQJOlUdqAAoJEPmIJawmtHufOL8P/1aWn608Tsv3IN+XVz7nKC9U 1Knvsk7hmA6H1DDbKaIWG9Jh6EWF1GUH8juaoUYIihjdroDW78P11Qiqig2qv5Cy ZYIc/FA84CoN5QosQAhYLtn2SHytZPJLEqLqi5q7orYfaVgml7cGrWs7Gy3kEOQq ZtBLWoAsAjwT4XhlDVZTQc5no0joWgO/l2RoagzDuzrJv/Y9p0L4cfB24rc2Os6k DHsrFt5JcG1Ml06WNuBR8D+gi1rOYtAzqkh/K3Yzfi61z+JfNJy6oP74Xbua37dW iTCUHKMp7bphvjs4rLRWLkdm0Y3peYtzEsR2FPHJ2qjmQd40xA9Cap0lVBRCkmE1 Xws5Wih97KWNNBrXXhaA02T24A+aDLDd6rREvNZjePBlQtNiQCLbuQXcPZ5YIDcQ Jmsa53cVyq0T2+cDBpBf87vlm0g8ArNAaOkgf2qSfjXkQ/DxIicNBjnKjZspbL4Q m+YW+gcKRuglBsEk4ZeMkS6gX9iKlFZ2C7PN1ckU5pkRmt6cFf/WeF2hAuf/9YQp 3ANl+Pu826efZ0tbKQN5hk4D/TFCpGOCasDS/aj4uS6mbY9VMzRlkoLC90d/StH7 EX09hhGBSxQlBEMDnRKRmgTVpBBlKy4RGEVmtsgo09r808SR8j40RB+ZH3tBveRs JlLDC0FfP1sbBOnpeCxb =PFvm -----END PGP SIGNATURE----- --/9DWx/yDrRhgMJTb--