From nobody@FreeBSD.org  Thu Jun 11 12:12:16 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 809A71065673
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 11 Jun 2009 12:12:16 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 6EDB48FC1E
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 11 Jun 2009 12:12:16 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n5BCCFbi096161
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 11 Jun 2009 12:12:15 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n5BCCFCx096160;
	Thu, 11 Jun 2009 12:12:15 GMT
	(envelope-from nobody)
Message-Id: <200906111212.n5BCCFCx096160@www.freebsd.org>
Date: Thu, 11 Jun 2009 12:12:15 GMT
From: Alexander Kriventsov <avk@vl.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: add possibility to redefine PHP_PORT
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         135473
>Category:       misc
>Synopsis:       add possibility to redefine PHP_PORT
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 11 12:20:01 UTC 2009
>Closed-Date:    Thu Jun 11 15:58:09 UTC 2009
>Last-Modified:  Thu Jun 11 15:58:09 UTC 2009
>Originator:     Alexander Kriventsov
>Release:        FreeBSD 7.2
>Organization:
.masterhost
>Environment:
FreeBSD dstest1.akriventsov.dev.masterhost.ru 7.2-i386-20090314-RELENG_7 FreeBSD 7.2-i386-20090314-RELENG_7 #0: Sat Mar 14 08:25:52 UTC 2009     root@svc12.masterhost.ru:/usr/obj/usr/src/sys/GENERICDEBUG  i386

>Description:
This patch to add possibility to redefine PHP_PORT. 
In our projects we need to create slave port of original lang/php5 with some extra patches.
At this moment I can't redefine php port, and have some broken deps.
For example: 
I installed php-mysql and it has dep of lang/php5, but php5 I built from another port.

>How-To-Repeat:

>Fix:


Patch attached with submission follows:

--- /usr/ports/Mk/bsd.php.mk.orig	2009-06-11 11:48:03.000000000 +0000
+++ /usr/ports/Mk/bsd.php.mk	2009-06-11 12:04:49.000000000 +0000
@@ -136,7 +136,7 @@
 
 .endif
 
-PHP_PORT=	${PORTSDIR}/lang/php${PHP_VER}
+PHP_PORT?=	${PORTSDIR}/lang/php${PHP_VER}
 
 .if defined(USE_PHP_BUILD)
 BUILD_DEPENDS+=	${PHPBASE}/include/php/main/php.h:${PHP_PORT}


>Release-Note:
>Audit-Trail:

From: Alexander Kriventsov <akriventsov@masterhost.ru>
To: bug-followup@FreeBSD.org, avk@vl.ru
Cc:  
Subject: Re: misc/135473: add possibility to redefine PHP_PORT
Date: Thu, 11 Jun 2009 16:30:45 +0400

 Sorry, I didn't change category and class.
 I created new PR.
 Please close or delete this.
 Thanks
 
 -- 
 Best Regards,
 Alexander Kriventsov
 .masterhost
State-Changed-From-To: open->closed 
State-Changed-By: linimon 
State-Changed-When: Thu Jun 11 15:58:01 UTC 2009 
State-Changed-Why:  
Closed at submitter's request. 

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