From blank@sliphost37.uni-trier.de  Tue May  5 10:29:41 1998
Received: from sliphost37.uni-trier.de (blank@sliphost37.uni-trier.de [136.199.240.37])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA28245
          for <FreeBSD-gnats-submit@freebsd.org>; Tue, 5 May 1998 10:29:32 -0700 (PDT)
          (envelope-from blank@sliphost37.uni-trier.de)
Received: (from blank@localhost)
	by sliphost37.uni-trier.de (8.8.8/8.8.8) id KAA00413;
	Tue, 5 May 1998 10:13:45 +0200 (CEST)
	(envelope-from blank)
Message-Id: <199805050813.KAA00413@sliphost37.uni-trier.de>
Date: Tue, 5 May 1998 10:13:45 +0200 (CEST)
From: blank@fox.uni-trier.de (Sascha Blank)
Reply-To: blank@fox.uni-trier.de
To: FreeBSD-gnats-submit@freebsd.org
Subject: ports: p5-DBD-Pg depens on wrong library version
X-Send-Pr-Version: 3.2

>Number:         6527
>Category:       ports
>Synopsis:       ports: p5-DBD-Pg depends on wrong library version
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue May  5 10:30:02 PDT 1998
>Closed-Date:    Sun May 10 15:15:30 PDT 1998
>Last-Modified:  Sun May 10 15:15:57 PDT 1998
>Originator:     Sascha Blank
>Release:        FreeBSD 2.2.6-STABLE i386
>Organization:
>Environment:

ident /usr/ports/databases/p5-DBD-Pg/Makefile

Makefile:
     $Id: Makefile,v 1.5 1998/05/03 19:26:53 steve Exp $

>Description:

The port still depends on version 1.0 of libpq:

BUILD_DEPENDS=  ${PREFIX}/lib/perl5/site_perl/DBI.pm:${PORTSDIR}/databases/p5-DBI \
                ${PREFIX}/pgsql/lib/libpq.so.1.0:${PORTSDIR}/databases/postgresql

The version 1.0 for libpq is no longer valid for PostgreSQL 6.3.2 as it
now comes with version 1.1.  Therefore the Makefile fails to detect
libpq even though it is installed on the system.

>How-To-Repeat:

Try to build this port yourself and watch what happens.

>Fix:

Raise the version number from 1.0 to 1.1 in the BUILD_DEPENDS line.  I
have done this myself and now the port builds correctly again.

One issue needs to be considered though: This fix will break the port
on systems where 6.3.0 (or 6.3.1, I'm not sure) is still installed,
because that version comes with libpq.so.1.0.  Therefore it should be
considered that the PostgreSQL port creates a symlink from libpq.so.1.?
to libpq.so.1 and p5-DBD-Pg depends on libpq.so.1 instead of
libpq.so.1.?

--
             Sascha Blank            | "I prefer to work behind the scenes. The
   Student and System Administrator  | reward is nearly as great,  and the risk
 at the University of Trier, Germany | is far far less" - Ambassador Mollari in
    mailto:blank@fox.uni-trier.de    | in Babylon 5, "The coming of shadows"

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: steve 
State-Changed-When: Sun May 10 15:15:30 PDT 1998 
State-Changed-Why:  
Fixed, thanks for the report. 
>Unformatted:
