Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Feb 2004 01:34:51 +0800 (CST)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@sunpoet.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/62741: [ports/databases/p5-postgresql-plperl] Fix: make install/package failed 
Message-ID:  <20040212173451.5EE9817030@IRIS.sunpoet.net>
Resent-Message-ID: <200402121740.i1CHe9Cv084062@freefall.freebsd.org>

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

>Number:         62741
>Category:       ports
>Synopsis:       [ports/databases/p5-postgresql-plperl] Fix: make install/package failed
>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:   Thu Feb 12 09:40:09 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Sunpoet Po-Chuan Hsieh
>Release:        FreeBSD 5.2-CURRENT i386
>Organization:
SUNPOET.net
>Environment:
System: FreeBSD IRIS.sunpoet.net 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Sun Dec 21 18:12:22 CST 2003 root@:/usr/obj/usr/src/sys/sunpoet i386

	
>Description:
  Since postgresql dependency has been updated from postgresql7 to
postgresql-client, p5-postgresql-plperl/Makefile was updated (rev
1.10 -> 1.11).

  p5-postgresql-plperl/Makefile includes ${POSTGRSQL_PORT}/Makefile.
In revision 1.11 of p5-postgresql-plperl/Makefile, it changed
POSTGRESQL_PORT to databases/postgresql-client.
POSTGRESQL_PORT?=      databases/postgresql-client

  Note that there exists MASTERDIR=${.CURDIR}/../../databases/postgresql7
in postgresql-client/Makefile. It affects both PKGMESSAGE and PLIST which
are defined in ports/Mk/bsd.port.mk as follows:
PKGDIR?=        ${MASTERDIR}
PLIST?=         ${PKGDIR}/pkg-plist
PKGMESSAGE?=    ${PKGDIR}/pkg-message

  To solve this problem, you may simple define:
  1. PKGDIR=.
  or
  2. PLIST=pkg-plist
     PKGMESSAGE=pkg-message

	
>How-To-Repeat:
% cd /usr/ports/databases/p5-postgresql-plperl
% make all install

  It stops because ports/databases/postgresql7/pkg-message is missing.

% make package

  It stops for wrong PLIST.

	
>Fix:
--- Makefile.orig	Thu Feb 12 18:13:43 2004
+++ Makefile	Fri Feb 13 01:19:15 2004
@@ -16,6 +16,7 @@
 POSTGRESQL_PORT?=	databases/postgresql-client
 POSTGRESQL_SUBPORT=YES
 .include "../../${POSTGRESQL_PORT}/Makefile"
+PKGDIR=		.
 
 RUN_DEPENDS=	postgres:${PORTSDIR}/${POSTGRESQL_PORT}
 
	
>Release-Note:
>Audit-Trail:
>Unformatted:



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