Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Oct 2011 20:43:24 GMT
From:      Ruslan Mahmatkhanov <cvs-src@yandex.ru>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/161822: [MAINTAINER] databases/postgresql-plpython: fix plist
Message-ID:  <201110192043.p9JKhOcl050647@red.freebsd.org>
Resent-Message-ID: <201110192050.p9JKoAgl019950@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         161822
>Category:       ports
>Synopsis:       [MAINTAINER] databases/postgresql-plpython: fix plist
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Oct 19 20:50:10 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Ruslan Mahmatkhanov
>Release:        10.0-CURRENT
>Organization:
>Environment:
10.0-CURRENT i386
>Description:
Fix plist when:
  a) postgresql-plpython installed for postgresql 9.1
  b) postgresql-plpython built with python 3.2

Reported and fix submitted by: Sunpoet Po-Chuan Hsieh (sunpoet@). Thank you!

PostgreSQL versions before 9.1 are not affected because they don't support python 3.2 (doesn't builds). You may also note plist breakage in the logs - but it's not mine, but postgresqlXX-server instead, and it fixed in this pr - ports/161821.

Patch should be applied from /usr/ports/databases, because it touches two ports actually (postgresql91-server and postgresql-plpython).

tinderbuild logs: 
python 2.7: http://happy-nation.by.ru/ports/tb/8.2/postgresql-plpython-with2.7.log
python 3.2: http://happy-nation.by.ru/ports/tb/8.2/postgresql-plpython-with3.2.log


>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff --git a/postgresql-plpython/Makefile b/postgresql-plpython/Makefile
index a8c7885..6cf5614 100644
--- a/postgresql-plpython/Makefile
+++ b/postgresql-plpython/Makefile
@@ -39,6 +39,7 @@ CONFIGURE_ARGS=	--with-python
 BUILD_DIRS=	src/pl/plpython
 SLAVE_ONLY=	yes
 
-POSTGRESQL_PORT=databases/postgresql${PGSQL_VER}-server
+POSTGRESQL_PORT=	databases/postgresql${PGSQL_VER}-server
+PLIST_SUB=	PYTHON_MAJOR_VER=${PYTHON_VER:R}
 
 .include "${MASTERDIR}/Makefile"
diff --git a/postgresql91-server/pkg-plist-plpython b/postgresql91-server/pkg-plist-plpython
index cfc34f4..17701ef 100644
--- a/postgresql91-server/pkg-plist-plpython
+++ b/postgresql91-server/pkg-plist-plpython
@@ -1,5 +1,5 @@
 %%DOCSDIR%%/README-plpython
-lib/postgresql/plpython2.so
+lib/postgresql/plpython%%PYTHON_MAJOR_VER%%.so
 %%DATADIR%%/extension/plpythonu.control
 %%DATADIR%%/extension/plpythonu--1.0.sql
 %%DATADIR%%/extension/plpythonu--unpackaged--1.0.sql


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201110192043.p9JKhOcl050647>