ports/106471: INDEX build fails in database/erserver when postgresql-server-8.20 is installed
Kostik Belousov
kostikbel at gmail.com
Fri Dec 8 09:40:06 UTC 2006
>Number: 106471
>Category: ports
>Synopsis: INDEX build fails in database/erserver when postgresql-server-8.20 is installed
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Fri Dec 08 09:40:04 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Kostik Belousov
>Release: RELENG_6
>Organization:
-
>Environment:
>Description:
I have installed postgresql-server-8.2.0. Now, build of INDEX by portsdb -Uu
fails:
Updating the ports index ... Generating INDEX.tmp - please wait..erserver-1.2_3: "/usr/ports/databases/postgresql-server" non-existent -- dependency list incomplete
===> databases/erserver failed
*** Error code 1
1 error
The reason is that output of postmaster -V starts with "postgres" instead of
"postmaster":
% /usr/local/bin/postmaster -V
postgres (PostgreSQL) 8.2.0
>How-To-Repeat:
>Fix:
Index: Makefile
===================================================================
RCS file: /usr/local/arch/ncvs/ports/databases/erserver/Makefile,v
retrieving revision 1.7
diff -u -r1.7 Makefile
--- Makefile 23 Oct 2005 13:20:48 -0000 1.7
+++ Makefile 8 Dec 2006 09:26:06 -0000
@@ -41,7 +41,7 @@
# Setting/finding PostgreSQL version we want.
.if exists(${LOCALBASE}/bin/postmaster)
PGSQL_VER!= ${LOCALBASE}/bin/postmaster -V | \
- ${SED} -n 's/postmaster.*PostgreSQL[^0-9]*\([0-9][0-9]*\)\.\([0-9][0-9]*\)\..*/\1\2/p'
+ ${SED} -n -E 's/(postmaster|postgres).*PostgreSQL[^0-9]*([0-9][0-9]*)\.([0-9][0-9]*)\..*/\2\3/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'
.else
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list