From mn@shodan.homeunix.net  Sat Jul 30 22:14:51 2011
Return-Path: <mn@shodan.homeunix.net>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 7AD92106566C
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 30 Jul 2011 22:14:51 +0000 (UTC)
	(envelope-from mn@shodan.homeunix.net)
Received: from shodan.homeunix.net (hnvr-4dbd55aa.pool.mediaWays.net [77.189.85.170])
	by mx1.freebsd.org (Postfix) with ESMTP id E723C8FC08
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 30 Jul 2011 22:14:50 +0000 (UTC)
Received: from shodan.homeunix.net (localhost [127.0.0.1])
	by shodan.homeunix.net (8.14.5/8.14.5) with ESMTP id p6ULhPFW065772
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 30 Jul 2011 23:43:25 +0200 (CEST)
	(envelope-from mn@shodan.homeunix.net)
Received: (from mn@localhost)
	by shodan.homeunix.net (8.14.5/8.14.5/Submit) id p6ULhPAJ065771;
	Sat, 30 Jul 2011 23:43:25 +0200 (CEST)
	(envelope-from mn)
Message-Id: <201107302143.p6ULhPAJ065771@shodan.homeunix.net>
Date: Sat, 30 Jul 2011 23:43:25 +0200 (CEST)
From: Martin Neubauer <mn@shodan.homeunix.net>
Reply-To: Martin Neubauer <m.ne@gmx.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: databases/postgresql-plpython doesn't build with postgresql91
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         159319
>Category:       ports
>Synopsis:       databases/postgresql-plpython doesn't build with postgresql91
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jul 30 22:20:09 UTC 2011
>Closed-Date:    Fri Sep 09 13:10:53 UTC 2011
>Last-Modified:  Fri Sep 09 13:10:53 UTC 2011
>Originator:     Martin Neubauer
>Release:        FreeBSD 8.2-STABLE amd64
>Organization:
>Environment:
System: FreeBSD shodan.homeunix.net 8.2-STABLE FreeBSD 8.2-STABLE #0: Wed Jul 27 10:02:33 CEST 2011 root@shodan.homeunix.net:/usr/obj/usr/src/sys/SHODAN amd64


>Description:
	The regex for getting the postgresql version doesn't match the output for version 9.1beta3 causing the build to fail.
>How-To-Repeat:
>Fix:

	See attached patch (cf. http://www.freebsd.org/cgi/query-pr.cgi?pr=158740)

--- postgresql-plpython.patch begins here ---
--- databases/postgresql-plpython/Makefile.bak	2011-04-05 08:29:48.000000000 +0200
--- databases/postgresql-plpython/Makefile	2011-07-30 23:21:23.204359643 +0200
@@ -28,9 +28,9 @@
 
 # Setting/finding PostgreSQL version we want.
 .if exists(${LOCALBASE}/bin/postmaster)
-PGSQL_VER!=	${LOCALBASE}/bin/postmaster -V | ${SED} -n 's/.*PostgreSQL[^0-9]*\([0-9][0-9]*\)\.\([0-9][0-9]*\)\..*/\1\2/p'
+PGSQL_VER!=	${LOCALBASE}/bin/postmaster -V | ${SED} -n 's/.*PostgreSQL[^0-9]*\([0-9][0-9]*\)\.\([0-9][0-9]*\).*/\1\2/p'
 .elif exists(${LOCALBASE}/bin/pg_config)
-PGSQL_VER!=	${LOCALBASE}/bin/pg_config --version | ${SED} -n 's/PostgreSQL[^0-9]*\([0-9][0-9]*\)\.\([0-9][0-9]*\)\..*/\1\2/p'
+PGSQL_VER!=	${LOCALBASE}/bin/pg_config --version | ${SED} -n 's/PostgreSQL[^0-9]*\([0-9][0-9]*\)\.\([0-9][0-9]*\).*/\1\2/p'
 .else
 PGSQL_VER=	${DEFAULT_PGSQL_VER}
 .endif
--- postgresql-plpython.patch ends here ---


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: bapt 
State-Changed-When: Fri Sep 9 13:10:52 UTC 2011 
State-Changed-Why:  
merged in ports/159843 

http://www.freebsd.org/cgi/query-pr.cgi?pr=159319 
>Unformatted:
