From nobody@FreeBSD.org  Sun Jun 30 15:25:02 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
	by hub.freebsd.org (Postfix) with ESMTP id 08244E2
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 30 Jun 2013 15:25:02 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121])
	by mx1.freebsd.org (Postfix) with ESMTP id EFA08116C
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 30 Jun 2013 15:25:01 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r5UFP1Dx055003
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 30 Jun 2013 15:25:01 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r5UFP17a055002;
	Sun, 30 Jun 2013 15:25:01 GMT
	(envelope-from nobody)
Message-Id: <201306301525.r5UFP17a055002@oldred.freebsd.org>
Date: Sun, 30 Jun 2013 15:25:01 GMT
From: "r4721@tormail.org" <r4721@tormail.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [patch] add ZTS option to lang/php5
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         180125
>Category:       ports
>Synopsis:       [patch] add ZTS option to lang/php5
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    ale
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jun 30 15:30:00 UTC 2013
>Closed-Date:    Mon Aug 12 12:55:34 UTC 2013
>Last-Modified:  Mon Aug 12 13:00:01 UTC 2013
>Originator:     r4721@tormail.org
>Release:        
>Organization:
>Environment:
>Description:
patch adds ZTS (zend-thread-safety) option, for assisting in developing PHP extensions.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

Index: lang/php5/Makefile
===================================================================
--- lang/php5/Makefile	(revision 322037)
+++ lang/php5/Makefile	(working copy)
@@ -38,7 +38,7 @@
 
 USE_GNOME=	libxml2
 
-OPTIONS_DEFINE=	CLI CGI FPM APACHE AP2FILTER EMBED DEBUG DTRACE IPV6 MAILHEAD LINKTHR
+OPTIONS_DEFINE=	CLI CGI FPM APACHE AP2FILTER EMBED DEBUG DTRACE IPV6 MAILHEAD LINKTHR ZTS
 OPTIONS_DEFAULT=CLI CGI IPV6 LINKTHR
 
 CLI_DESC=	Build CLI version
@@ -52,6 +52,7 @@
 IPV6_DESC=	Enable ipv6 support
 MAILHEAD_DESC=	Enable mail header patch
 LINKTHR_DESC=	Link thread lib (for threaded extensions)
+ZTS_DESC=	Zend thread safety (for extension development)
 
 CONFLICTS=	php52-5* php53-5*
 
@@ -150,6 +151,10 @@
 CONFIGURE_ENV+=	LIBS="${LIBS} ${PTHREAD_LIBS}"
 .endif
 
+.if ${PORT_OPTIONS:MZTS}
+CONFIGURE_ARGS+=--enable-maintainer-zts
+.endif
+
 .if ${PORT_OPTIONS:MDEBUG}
 CONFIGURE_ARGS+=--enable-debug
 .endif


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->ale 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sun Jun 30 15:30:07 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=180125 
State-Changed-From-To: open->closed 
State-Changed-By: ale 
State-Changed-When: Mon Aug 12 12:55:20 UTC 2013 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=180125 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/180125: commit references a PR
Date: Mon, 12 Aug 2013 12:54:18 +0000 (UTC)

 Author: ale
 Date: Mon Aug 12 12:54:12 2013
 New Revision: 324626
 URL: http://svnweb.freebsd.org/changeset/ports/324626
 
 Log:
   Add an OPTION to force ZTS build.
   
   PR:		ports/180125
   Submitted by:	r4721@tormail.org
 
 Modified:
   head/lang/php5/Makefile
 
 Modified: head/lang/php5/Makefile
 ==============================================================================
 --- head/lang/php5/Makefile	Mon Aug 12 12:45:24 2013	(r324625)
 +++ head/lang/php5/Makefile	Mon Aug 12 12:54:12 2013	(r324626)
 @@ -38,7 +38,7 @@ CONFIGURE_ARGS=	\
  
  USE_GNOME=	libxml2
  
 -OPTIONS_DEFINE=	CLI CGI FPM APACHE AP2FILTER EMBED DEBUG DTRACE IPV6 MAILHEAD LINKTHR
 +OPTIONS_DEFINE=	CLI CGI FPM APACHE AP2FILTER EMBED DEBUG DTRACE IPV6 MAILHEAD LINKTHR ZTS
  OPTIONS_DEFAULT=CLI CGI IPV6 LINKTHR
  
  CLI_DESC=	Build CLI version
 @@ -52,6 +52,7 @@ DTRACE_DESC=	Enable DTrace support
  IPV6_DESC=	Enable ipv6 support
  MAILHEAD_DESC=	Enable mail header patch
  LINKTHR_DESC=	Link thread lib (for threaded extensions)
 +ZTS_DESC=	Force Zend Thread Safety (ZTS) build
  
  CONFLICTS=	php52-5* php53-5* php55-5*
  
 @@ -150,6 +151,10 @@ CONFIGURE_ENV+=	ac_cv_pthreads_lib="" \
  CONFIGURE_ENV+=	LIBS="${LIBS} ${PTHREAD_LIBS}"
  .endif
  
 +.if ${PORT_OPTIONS:MZTS}
 +CONFIGURE_ARGS+=--enable-maintainer-zts
 +.endif
 +
  .if ${PORT_OPTIONS:MDEBUG}
  CONFIGURE_ARGS+=--enable-debug
  .endif
 _______________________________________________
 svn-ports-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-ports-all
 To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
 
>Unformatted:
