Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Jun 2013 13:17:47 +0800 (CST)
From:      John Chen <johnpupu@gmail.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/179565: [MAINTAINER] devel/pecl-pthreads: [SUMMARIZE CHANGES]
Message-ID:  <201306150517.r5F5Hl78075560@www.johnpupu.tw>
Resent-Message-ID: <201306150530.r5F5U06m084488@freefall.freebsd.org>

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

>Number:         179565
>Category:       ports
>Synopsis:       [MAINTAINER] devel/pecl-pthreads: [SUMMARIZE CHANGES]
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jun 15 05:30:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     John Chen
>Release:        FreeBSD 9.1-RELEASE amd64
>Organization:
Watcher
>Environment:
System: FreeBSD www.johnpupu.tw 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec  4 09:23:10
>Description:
Fix PHP Thread-Safe problem.

Generated with FreeBSD Port Tools 0.99_6 (mode: change, diff: suffix)
>How-To-Repeat:
>Fix:

--- pecl-pthreads-0.0.44_1.patch begins here ---
diff -ruN --exclude=CVS ../pecl-pthreads.orig/Makefile ./Makefile
--- ../pecl-pthreads.orig/Makefile	2013-06-10 01:30:33.000000000 +0800
+++ ./Makefile	2013-06-15 13:14:52.000000000 +0800
@@ -3,6 +3,7 @@
 
 PORTNAME=	pthreads
 PORTVERSION=	0.0.44
+PORTREVISION=	1
 CATEGORIES=	devel
 MASTER_SITES=	http://pecl.php.net/get/
 PKGNAMEPREFIX=	pecl-
@@ -21,4 +22,10 @@
 PHP_MODNAME=	pthreads
 IGNORE_WITH_PHP=	52
 
+pre-extract:
+	@if [ ! -d '${LOCALBASE}/lib/php/20090626-zts' ] && [ ! -d '${LOCALBASE}/lib/php/20090626-zts-debug' ] && [ ! -d '${LOCALBASE}/lib/php/20100525-zts' ] && [ ! -d '${LOCALBASE}/lib/php/20100525-zts-debug' ] ; then \
+		${ECHO_MSG} 'pthreads requires ZTS, please re-compile PHP with ZTS enabled'; \
+		exit 1; \
+	fi
+
 .include <bsd.port.mk>
--- pecl-pthreads-0.0.44_1.patch ends here ---

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



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