ports/159084: lang/php5 sapi/embed extension library libphp5.so

Peter Vereshagin peter at vereshagin.org
Thu Jul 21 12:30:09 UTC 2011


>Number:         159084
>Category:       ports
>Synopsis:       lang/php5 sapi/embed extension library libphp5.so
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 21 12:30:08 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Peter Vereshagin
>Release:        releng_7 as of May, 2011
>Organization:
Private
>Environment:
FreeBSD teh.ost 7.4-STABLE FreeBSD 7.4-STABLE #10: Mon May  2 16:12:55 MSD 2011     peter at vereshagin.oirg:/CONF  i386
>Description:
I have an application (PHP.pm) that requires the sapi libphp5.so library to be
built and installed.

>How-To-Repeat:
# portinstall lang/php5
# perl -MCPAN -e 'install PHP'
>Fix:
I think that is possible with tthe patch supplied.
YMMV about -install target(s)

Patch attached with submission follows:

--- Makefile.old	2011-07-15 21:08:21.000000000 +0400
+++ Makefile	2011-07-15 20:49:01.000000000 +0400
@@ -48,7 +48,8 @@
 		MULTIBYTE "Enable zend multibyte support" off \
 		IPV6 "Enable ipv6 support" on \
 		MAILHEAD "Enable mail header patch" off \
-		LINKTHR "Link thread lib (for threaded extensions)" off
+		LINKTHR "Link thread lib (for threaded extensions)" off \
+		EMBED "Build library for embedding (experimental)" off 
 
 CONFLICTS=	php4-4* php5-pcre-* php5-spl-*
 
@@ -83,6 +84,14 @@
 CONFIGURE_ARGS+=--disable-cli
 .endif
 
+.if defined(WITH_EMBED)
+PHP_SAPI+=	embed
+CONFIGURE_ARGS+=--enable-embed=shared
+PLIST_SUB+=	EMBED=""
+.else
+PLIST_SUB+=	EMBED="@comment "
+.endif
+
 .if !defined(WITHOUT_CGI)
 PHP_SAPI+=	cgi
 PLIST_SUB+=	CGI=""
@@ -192,6 +201,9 @@
 .if defined(WITH_FPM)
 	@${CP} -n ${PREFIX}/etc/php-fpm.conf.default ${PREFIX}/etc/php-fpm.conf
 .endif
+.if defined(WITH_EMBED)
+	@(cd ${WRKSRC} && ${MAKE} install-sapi)
+.endif
 .if defined(WITH_APACHE)
 	@${CAT} ${PKGMESSAGE}
 .endif
--- pkg-plist.old	2011-07-15 20:45:38.000000000 +0400
+++ pkg-plist	2011-07-15 21:06:43.000000000 +0400
@@ -1,4 +1,5 @@
 %%CLI%%bin/php
+%%EMBED%%lib/libphp5.so
 %%CGI%%bin/php-cgi
 bin/php-config
 bin/phpize


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



More information about the freebsd-ports-bugs mailing list