Subject: pkg/31375: [PATCH] pgsql.buildlink3.mk has incorrect detection for PostgreSQL 8
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <raphael-langerhorst@gmx.at>
List: pkgsrc-bugs
Date: 09/23/2005 10:56:00
>Number:         31375
>Category:       pkg
>Synopsis:       [PATCH] pgsql.buildlink3.mk has incorrect detection for PostgreSQL 8
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Sep 23 10:56:00 +0000 2005
>Originator:     Raphael Langerhorst
>Release:        NetBSD 3.0_BETA
>Organization:
>Environment:
NetBSD home.raphael.g-system.at 3.0_BETA NetBSD 3.0_BETA (HOME-$Revision: 1.42.2.4 $) #0: Wed Sep 21 21:26:31 CEST 2005  raphael@home.raphael.g-system.at:/usr/obj/sys/arch/amd64/compile/HOME amd64
>Description:
The pkgsrc file mk/pgsql.buildlink3.mk contains incorrect detection of a PostgreSQL 8.0 installation (on NetBSD). It checks for the libecpg.so.5.0.0 library but only libecpg.so.5.0 is present on my system. This incorrect detection can result in the build-system trying to install a different (the default) version of PostgreSQL which will conflict with the existing installation.

the following line is incorrect:
.if exists(${LOCALBASE}/lib/libecpg.so.5.0.0)
>How-To-Repeat:
Install PostgreSQL 8.0, then install for example database/php-pgsql, it won't detect the installed version and will try to install PostgreSQL 7.4 instead.
>Fix:
Change this line in mk/pgsql.buildlink3.mk:

.if exists(${LOCALBASE}/lib/libecpg.so.5.0.0)

to:

.if exists(${LOCALBASE}/lib/libecpg.so.5.0)


Best Regards,
Raphael