From owner-svn-ports-head@freebsd.org Tue Apr 30 12:29:13 2019 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B0074158F54C; Tue, 30 Apr 2019 12:29:13 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5653B6DAC3; Tue, 30 Apr 2019 12:29:13 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 305AD98B6; Tue, 30 Apr 2019 12:29:13 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x3UCTD25013002; Tue, 30 Apr 2019 12:29:13 GMT (envelope-from mat@FreeBSD.org) Received: (from mat@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x3UCTDjA013001; Tue, 30 Apr 2019 12:29:13 GMT (envelope-from mat@FreeBSD.org) Message-Id: <201904301229.x3UCTDjA013001@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: mat set sender to mat@FreeBSD.org using -f From: Mathieu Arnold Date: Tue, 30 Apr 2019 12:29:13 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r500483 - head/devel/pecl-pthreads X-SVN-Group: ports-head X-SVN-Commit-Author: mat X-SVN-Commit-Paths: head/devel/pecl-pthreads X-SVN-Commit-Revision: 500483 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 5653B6DAC3 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.97 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.97)[-0.973,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US] X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Apr 2019 12:29:13 -0000 Author: mat Date: Tue Apr 30 12:29:12 2019 New Revision: 500483 URL: https://svnweb.freebsd.org/changeset/ports/500483 Log: Try to allow building packages when PHP has ZTS enabled. We cannot use IGNORE here, the package gets ignored anyway because the ignore'd status is checked without any dependency installed. Modified: head/devel/pecl-pthreads/Makefile (contents, props changed) Modified: head/devel/pecl-pthreads/Makefile ============================================================================== --- head/devel/pecl-pthreads/Makefile Tue Apr 30 12:18:10 2019 (r500482) +++ head/devel/pecl-pthreads/Makefile Tue Apr 30 12:29:12 2019 (r500483) @@ -15,16 +15,12 @@ CFLAGS+= -I${LOCALBASE}/include USES= php:pecl IGNORE_WITH_PHP= 71 -.include - -.if !defined(PHP_ZTS) && exists(${LOCALBASE}/bin/php) -PHP_ZTS!= ${LOCALBASE}/bin/php -r 'phpinfo();' | ${GREP} 'Thread Safety' | ${AWK} -F '=> ' '{print $$2}' -.else -PHP_ZTS= disabled -.endif - -.if ${PHP_ZTS} == "disabled" -IGNORE= pthreads requires ZTS, please re-compile PHP with ZTS enabled -.endif +# We cannot use IGNORE here, the package gets ignored anyway because the +# ignore'd status is checked without any dependency installed. +pre-configure: + @if ! ${LOCALBASE}/bin/php -r 'phpinfo();' | ${GREP} -q 'Thread Safety => enabled'; then \ + ${ECHO_MSG} "===> ${PKGNAME} pthreads requires ZTS, please re-compile PHP with ZTS enabled." | ${FMT_80} ; \ + false ; \ + fi .include