Tue Jul 7 17:26:10 2015 UTC ()
Add a TODO about a build issue.

When postgis is built as a non-root user, but postgresql was built as
root, postgis's use of pgxs.mk leads to install -o root, which fails.


(gdt)
diff -r1.8 -r1.9 pkgsrc/databases/postgresql-postgis2/Makefile

cvs diff -r1.8 -r1.9 pkgsrc/databases/postgresql-postgis2/Makefile (expand / switch to unified diff)

--- pkgsrc/databases/postgresql-postgis2/Makefile 2015/07/07 15:49:48 1.8
+++ pkgsrc/databases/postgresql-postgis2/Makefile 2015/07/07 17:26:10 1.9
@@ -1,34 +1,37 @@ @@ -1,34 +1,37 @@
1# $NetBSD: Makefile,v 1.8 2015/07/07 15:49:48 gdt Exp $ 1# $NetBSD: Makefile,v 1.9 2015/07/07 17:26:10 gdt Exp $
2 2
3DISTNAME= postgis-2.1.8 3DISTNAME= postgis-2.1.8
4PKGNAME= postgresql${PGSQL_VERSION}-${DISTNAME} 4PKGNAME= postgresql${PGSQL_VERSION}-${DISTNAME}
5CATEGORIES= databases geography 5CATEGORIES= databases geography
6MASTER_SITES= http://download.osgeo.org/postgis/source/ 6MASTER_SITES= http://download.osgeo.org/postgis/source/
7 7
8MAINTAINER= gdt@NetBSD.org 8MAINTAINER= gdt@NetBSD.org
9HOMEPAGE= http://postgis.net/ 9HOMEPAGE= http://postgis.net/
10COMMENT= Spatial database capabilities for PostgreSQL 10COMMENT= Spatial database capabilities for PostgreSQL
11 11
12LICENSE= gnu-gpl-v2 12LICENSE= gnu-gpl-v2
13 13
14DEPENDS+= postgresql${PGSQL_VERSION}-server>=0:../../databases/postgresql${PGSQL_VERSION}-server 14DEPENDS+= postgresql${PGSQL_VERSION}-server>=0:../../databases/postgresql${PGSQL_VERSION}-server
15 15
16CONFLICTS= postgis-[0-9]* 16CONFLICTS= postgis-[0-9]*
17 17
18# TODO section 18# TODO section
19# 1. File ticket upstream about make->$(MAKE) in doc/html/image_src/Makefile. 19# 1. File ticket upstream about make->$(MAKE) in doc/html/image_src/Makefile.
20# 2. Update to upstream with fixes for: 20# 2. Update to upstream with fixes for:
21# http://trac.osgeo.org/postgis/ticket/2909 21# http://trac.osgeo.org/postgis/ticket/2909
 22# 3. Fix installation use of "install -o root" from pgxs.mk, when postgresql
 23# was built as root and postgis is built/installed as a non-root user.
 24# https://lists.osgeo.org/pipermail/postgis-devel/2015-July/025045.html
22 25
23# gmake complains about adding + to parent rule 26# gmake complains about adding + to parent rule
24MAKE_JOBS_SAFE= no 27MAKE_JOBS_SAFE= no
25 28
26PGSQL_VERSIONS_ACCEPTED= 90 91 92 93 94 29PGSQL_VERSIONS_ACCEPTED= 90 91 92 93 94
27 30
28USE_GCC_RUNTIME= yes 31USE_GCC_RUNTIME= yes
29USE_LANGUAGES= c c++ c99 32USE_LANGUAGES= c c++ c99
30USE_LIBTOOL= yes 33USE_LIBTOOL= yes
31USE_TOOLS+= gmake lex pax perl 34USE_TOOLS+= gmake lex pax perl
32GNU_CONFIGURE= yes 35GNU_CONFIGURE= yes
33CONFIGURE_ARGS+= --enable-rpath 36CONFIGURE_ARGS+= --enable-rpath
34CONFIGURE_ARGS+= --datadir=${PREFIX}/share/postgresql/contrib 37CONFIGURE_ARGS+= --datadir=${PREFIX}/share/postgresql/contrib