From root@purple.the-7.net  Wed Dec 26 12:10:26 2007
Return-Path: <root@purple.the-7.net>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 599F516A417
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 26 Dec 2007 12:10:26 +0000 (UTC)
	(envelope-from root@purple.the-7.net)
Received: from purple.the-7.net (purple.the-7.net [IPv6:2001:470:1f01:622:230:48ff:fe23:4c67])
	by mx1.freebsd.org (Postfix) with ESMTP id 39FFD13C44B
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 26 Dec 2007 12:10:26 +0000 (UTC)
	(envelope-from root@purple.the-7.net)
Received: from purple.the-7.net (smmsp@localhost.the-7.net [127.0.0.1])
	by purple.the-7.net (8.14.1/8.14.1) with ESMTP id lBQCA1TH066520
	(version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-SHA bits=256 verify=OK)
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 26 Dec 2007 04:10:01 -0800 (PST)
	(envelope-from root@purple.the-7.net)
Received: (from root@localhost)
	by purple.the-7.net (8.14.2/8.14.1/Submit) id lBQCA1km066519;
	Wed, 26 Dec 2007 04:10:01 -0800 (PST)
	(envelope-from root)
Message-Id: <200712261210.lBQCA1km066519@purple.the-7.net>
Date: Wed, 26 Dec 2007 04:10:01 -0800 (PST)
From: "Eugene M. Kim" <freebsd.org@ab.ote.we.lv>
Reply-To: "Eugene M. Kim" <freebsd.org@ab.ote.we.lv>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [PATCH] Incorrect dependency between php5-spl and php5-simplexml
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         119039
>Category:       ports
>Synopsis:       [PATCH] Incorrect dependency between devel/php5-spl and textproc/php5-simplexml
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    ale
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 26 12:20:00 UTC 2007
>Closed-Date:    Thu Dec 27 06:47:37 UTC 2007
>Last-Modified:  Thu Dec 27 06:47:37 UTC 2007
>Originator:     Eugene M. Kim
>Release:        FreeBSD 6.2-STABLE i386
>Organization:
>Environment:
System: FreeBSD purple.the-7.net 6.2-STABLE FreeBSD 6.2-STABLE #9: Sat Oct 13 14:45:27 PDT 2007 ab@purple.the-7.net:/home/FreeBSD/build/RELENG_6/obj/home/FreeBSD/build/RELENG_6/src/sys/PURPLE i386
>Description:
The simplexml module depends on the spl module in the PHP 5.2.5
distribution (according to ext/{spl,simplexml}/config.m4); however, the
dependency is set the other way around in ports/lang/php5/Makefile.ext,
such that spl depends on simplexml instead.

This breaks the build of simplexml in absence of spl (e.g. when
portupgrade decides to install simplexml before spl because it thinks
spl depends on simplexml), because the required spl header files are
not present on the system yet.
>How-To-Repeat:
On a clean system without any php5 ports installed, run "portinstall -R
php5-simplexml php5-spl".
>Fix:
The following patch modifies ports/lang/php5/Makefile.ext so that
simplexml correctly depends on spl, and not spl on simplexml.
--- patch-ports::lang::php5::Makefile.ext begins here ---
--- -	2007-12-26 03:59:37.419630345 -0800
+++ ports/lang/php5/Makefile.ext	2007-12-26 03:56:24.000000000 -0800
@@ -356,6 +356,8 @@
 		--with-libxml-dir=${LOCALBASE}
 
 USE_GNOME=	libxml2
+
+USE_PHP=	spl
 .endif
 
 .if ${PHP_MODNAME} == "snmp"
@@ -386,7 +388,7 @@
 
 USE_GNOME=	libxml2
 
-USE_PHP=	pcre simplexml
+USE_PHP=	pcre
 USE_PHP_BUILD=	yes
 .endif
 
--- patch-ports::lang::php5::Makefile.ext ends here ---
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->ale 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Wed Dec 26 21:54:12 UTC 2007 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=119039 
State-Changed-From-To: open->closed 
State-Changed-By: ale 
State-Changed-When: Thu Dec 27 06:46:17 UTC 2007 
State-Changed-Why:  
The dependency is correct and simplexml builds fine without spl. 
Perhaps you have a screwed up php installation, try remove it completely. 

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