PostGIS vs. PGXS in 9.0beta3

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: postgres hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: PostGIS vs. PGXS in 9.0beta3
Date: 2010-07-27 17:13:15
Message-ID: 4C4F13AB.1020909@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hackers,

A 9.0b3 tester reported this issue with our single most popular
PostgreSQL extension, PostGIS:

==================
Postgis makes use of 'PGXS' in postgresql > 8.2. Within postgresql-9,
datadir and many other variables are defined as multiple values with an
append operator, like this:

$ grep -i datadir /usr/pgsql-9.0/lib/pgxs/src/Makefile.global
[snip]
datadir := /usr/pgsql-9.0/share

Postgis-1.5.1's Makefile.pgxs makefile override tries to use datadir as
a flat variable, doesn't try to expand the array-like structure with a
for loop or similar. So when 'make install' within postgis-1.5
configured against pgsql-9.x is ran, 'make' treats the second value
within DATADIR as a command it should just run, which fails:

http://postgis.refractions.net/pipermail/postgis-users/2010-May/026654.html

I've tried the latest tarball SVN exports of both postgis-1.5.x and
postgis-2.x without success.
==================

I'm unsure of what the resolution of this issue should be ... it seems
like the fix belongs in PostGIS ... but I also think we can't go final
until this is resolved, given.

--
-- Josh Berkus
PostgreSQL Experts Inc.
http://www.pgexperts.com

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2010-07-27 17:37:02 Re: Query optimization problem
Previous Message Robert Haas 2010-07-27 17:06:50 Re: merge command - GSoC progress