Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 May 2010 10:54:34 +0200 (CEST)
From:      Palle Girgensohn <girgen@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/147158: fix broken php5-spl
Message-ID:  <201005280854.o4S8sYND052457@kumquat.pingpong.net>
Resent-Message-ID: <201005280930.o4S9U4Or017910@freefall.freebsd.org>

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

>Number:         147158
>Category:       ports
>Synopsis:       fix broken php5-spl
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 28 09:30:04 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Palle Girgensohn
>Release:        FreeBSD 8.0-STABLE-201004 amd64
>Organization:
>Environment:
System: FreeBSD kumquat.pingpong.net 8.0-STABLE-201004 FreeBSD 8.0-STABLE-201004 #0: Mon Apr 5 15:59:06 UTC 2010 root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64


	
>Description:
php5-spl has not been updated to match php 5.3, it seems.
>How-To-Repeat:
	
>Fix:

--- files/foo-patch-config.m4	2007-02-09 09:31:42.000000000 +0100
+++ files/patch-config.m4	2010-05-28 10:51:09.633810464 +0200
@@ -1,28 +1,27 @@
---- config.m4.orig	Mon Dec  4 19:01:53 2006
-+++ config.m4	Wed Feb  7 12:21:20 2007
-@@ -4,6 +4,11 @@
- PHP_ARG_ENABLE(spl, enable SPL suppport,
- [  --disable-spl           Disable Standard PHP Library], yes)
+--- config.m4-orig	2010-05-28 08:48:52.292495018 +0000
++++ config.m4	2010-05-28 08:50:38.168968425 +0000
+@@ -1,6 +1,11 @@
+ dnl $Id: config.m4 268395 2008-11-06 00:37:13Z colder $
+ dnl config.m4 for extension SPL
  
 +if test -z "$PHP_LIBXML_DIR"; then
 +  PHP_ARG_WITH(libxml-dir, libxml2 install dir,
 +  [  --with-libxml-dir=DIR     SPL: libxml2 install prefix], no, no)
 +fi
 +
- if test "$PHP_SPL" != "no"; then
    AC_MSG_CHECKING(whether zend_object_value is packed)
    old_CPPFLAGS=$CPPFLAGS
-@@ -25,8 +30,12 @@
+   CPPFLAGS="$INCLUDES -I$abs_srcdir $CPPFLAGS"
+@@ -21,7 +26,11 @@
    ])
    CPPFLAGS=$old_CPPFLAGS
    AC_DEFINE_UNQUOTED(HAVE_PACKED_OBJECT_VALUE, $ac_result, [Whether struct _zend_object_value is packed])
 +  PHP_SETUP_LIBXML(DOM_SHARED_LIBADD, [
    AC_DEFINE(HAVE_SPL, 1, [Whether you want SPL (Standard PHP Library) support]) 
--  PHP_NEW_EXTENSION(spl, php_spl.c spl_functions.c spl_engine.c spl_iterators.c spl_array.c spl_directory.c spl_sxe.c spl_exceptions.c spl_observer.c, no)
-+  PHP_NEW_EXTENSION(spl, php_spl.c spl_functions.c spl_engine.c spl_iterators.c spl_array.c spl_directory.c spl_sxe.c spl_exceptions.c spl_observer.c, yes)
-   PHP_INSTALL_HEADERS([ext/spl], [php_spl.h spl_array.h spl_directory.h spl_engine.h spl_exceptions.h spl_functions.h spl_iterators.h spl_observer.h spl_sxe.h])
+-  PHP_NEW_EXTENSION(spl, php_spl.c spl_functions.c spl_engine.c spl_iterators.c spl_array.c spl_directory.c spl_exceptions.c spl_observer.c spl_dllist.c spl_heap.c spl_fixedarray.c, no)
++  PHP_NEW_EXTENSION(spl, php_spl.c spl_functions.c spl_engine.c spl_iterators.c spl_array.c spl_directory.c spl_exceptions.c spl_observer.c spl_dllist.c spl_heap.c spl_fixedarray.c, yes)
+   PHP_INSTALL_HEADERS([ext/spl], [php_spl.h spl_array.h spl_directory.h spl_engine.h spl_exceptions.h spl_functions.h spl_iterators.h spl_observer.h spl_dllist.h spl_heap.h spl_fixedarray.h])
    PHP_ADD_EXTENSION_DEP(spl, pcre, true)
 +  ], [
 +    AC_MSG_ERROR([xml2-config not found. Please check your libxml2 installation.])
 +  ])
- fi
	


>Release-Note:
>Audit-Trail:
>Unformatted:



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