Gentoo Archives: gentoo-commits

From: "Christian Hoffmann (hoffie)" <hoffie@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-lang/php: ChangeLog php-5.2.6.ebuild php-5.2.6_rc3-r1.ebuild php-5.2.6_rc3.ebuild php-5.2.6_rc1-r1.ebuild
Date: Thu, 01 May 2008 14:58:16
Message-Id: E1JraEe-00032x-Gp@stork.gentoo.org
1 hoffie 08/05/01 14:58:12
2
3 Modified: ChangeLog
4 Added: php-5.2.6.ebuild
5 Removed: php-5.2.6_rc3-r1.ebuild php-5.2.6_rc3.ebuild
6 php-5.2.6_rc1-r1.ebuild
7 Log:
8 version bump to 5.2.6, including kolab support (bug 210977, thanks to wrobel and jakub), fixing bug 215623 in the same go
9 (Portage version: 2.1.5_rc6)
10
11 Revision Changes Path
12 1.266 dev-lang/php/ChangeLog
13
14 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/php/ChangeLog?rev=1.266&view=markup
15 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/php/ChangeLog?rev=1.266&content-type=text/plain
16 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/php/ChangeLog?r1=1.265&r2=1.266
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/dev-lang/php/ChangeLog,v
21 retrieving revision 1.265
22 retrieving revision 1.266
23 diff -u -r1.265 -r1.266
24 --- ChangeLog 16 Apr 2008 18:55:16 -0000 1.265
25 +++ ChangeLog 1 May 2008 14:58:11 -0000 1.266
26 @@ -1,6 +1,15 @@
27 # ChangeLog for dev-lang/php
28 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/ChangeLog,v 1.265 2008/04/16 18:55:16 dertobi123 Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/ChangeLog,v 1.266 2008/05/01 14:58:11 hoffie Exp $
31 +
32 +*php-5.2.6 (01 May 2008)
33 +
34 + 01 May 2008; Christian Hoffmann <hoffie@g.o>
35 + -php-5.2.6_rc1-r1.ebuild, -php-5.2.6_rc3.ebuild, -php-5.2.6_rc3-r1.ebuild,
36 + +php-5.2.6.ebuild:
37 + version bump to 5.2.6, including kolab support (bug 210977, thanks to
38 + wrobel and jakub), fixing bug 215623 in the same go; removing
39 + old/vulnerable
40
41 16 Apr 2008; Tobias Scherbaum <dertobi123@g.o>
42 php-5.2.6_rc4.ebuild:
43
44
45
46 1.1 dev-lang/php/php-5.2.6.ebuild
47
48 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/php/php-5.2.6.ebuild?rev=1.1&view=markup
49 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/php/php-5.2.6.ebuild?rev=1.1&content-type=text/plain
50
51 Index: php-5.2.6.ebuild
52 ===================================================================
53 # Copyright 1999-2008 Gentoo Foundation
54 # Distributed under the terms of the GNU General Public License v2
55 # $Header: /var/cvsroot/gentoo-x86/dev-lang/php/php-5.2.6.ebuild,v 1.1 2008/05/01 14:58:11 hoffie Exp $
56
57 CGI_SAPI_USE="discard-path force-cgi-redirect"
58 APACHE2_SAPI_USE="concurrentmodphp threads"
59 IUSE="cli cgi ${CGI_SAPI_USE} ${APACHE2_SAPI_USE} fastbuild"
60
61 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
62
63 # NOTE: Portage doesn't support setting PROVIDE based on the USE flags
64 # that have been enabled, so we have to PROVIDE everything for now
65 # and hope for the best
66 PROVIDE="virtual/php virtual/httpd-php"
67
68 # php package settings
69 SLOT="5"
70 MY_PHP_PV="${PV}"
71 MY_PHP_P="php-${MY_PHP_PV}"
72 PHP_PACKAGE="1"
73
74 # php patch settings, general
75 PHP_PATCHSET_REV="0"
76 SUHOSIN_PATCH="suhosin-patch-5.2.5_p20080206-0.9.6.2-gentoo.patch.gz"
77 MULTILIB_PATCH="${MY_PHP_PV}/opt/multilib-search-path.patch"
78 # php patch settings, ebuild specific
79 FASTBUILD_PATCH="${MY_PHP_PV}/opt/fastbuild.patch"
80 CONCURRENTMODPHP_PATCH="${MY_PHP_PV}/opt/concurrent_apache_modules.patch"
81 # kolab patch - http://kolab.org/cgi-bin/viewcvs-kolab.cgi/server/patches/php/
82 # bugs about this go to wrobel@g.o
83 KOLAB_PATCH="${MY_PHP_PV}/opt/kolab-imap-annotations.patch"
84
85 inherit versionator php5_2-sapi apache-module
86
87 # Suhosin patch support
88 [[ -n "${SUHOSIN_PATCH}" ]] && SRC_URI="${SRC_URI} suhosin? ( http://gentoo.longitekk.com/${SUHOSIN_PATCH} )"
89
90 DESCRIPTION="The PHP language runtime engine: CLI, CGI and Apache2 SAPIs."
91
92 DEPEND="app-admin/php-toolkit"
93 RDEPEND="${DEPEND}"
94 if [[ -n "${KOLAB_PATCH}" ]] ; then
95 IUSE="${IUSE} kolab"
96 DEPEND="${DEPEND}
97 kolab? ( >=net-libs/c-client-2004g-r1 )"
98 fi
99
100 want_apache
101
102 pkg_setup() {
103 PHPCONFUTILS_AUTO_USE=""
104
105 # Make sure the user has specified at least one SAPI
106 einfo "Determining SAPI(s) to build"
107 phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache2
108
109 # Threaded Apache2 support
110 if use apache2 ; then
111 has_apache_threads
112 fi
113
114 # Concurrent PHP Apache2 modules support
115 if use apache2 ; then
116 if use concurrentmodphp ; then
117 ewarn
118 ewarn "'concurrentmodphp' makes it possible to load multiple, differently"
119 ewarn "versioned mod_php's into the same Apache instance. This is done with"
120 ewarn "a few linker tricks and workarounds, and is not guaranteed to always"
121 ewarn "work correctly, so use it at your own risk. Especially, do not use"
122 ewarn "this in conjunction with PHP modules (PECL, ...) other than the ones"
123 ewarn "you may find in the Portage tree or the PHP Overlay!"
124 ewarn "This is an experimental feature, so please rebuild PHP"
125 ewarn "without the 'concurrentmodphp' USE flag if you experience"
126 ewarn "any problems, and then reproduce any bugs before filing"
127 ewarn "them in Gentoo's Bugzilla or bugs.php.net."
128 ewarn "If you have conclusive evidence that a bug directly"
129 ewarn "derives from 'concurrentmodphp', please file a bug in"
130 ewarn "Gentoo's Bugzilla only."
131 ewarn
132 ebeep 5
133 fi
134 fi
135
136 # fastbuild support
137 if use fastbuild ; then
138 ewarn
139 ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
140 ewarn "This is an experimental feature, so please rebuild PHP"
141 ewarn "without the 'fastbuild' USE flag if you experience"
142 ewarn "any problems, and then reproduce any bugs before filing"
143 ewarn "them in Gentoo's Bugzilla or bugs.php.net."
144 ewarn "If you have conclusive evidence that a bug directly"
145 ewarn "derives from 'fastbuild', please file a bug in"
146 ewarn "Gentoo's Bugzilla only."
147 ewarn
148 fi
149
150 php5_2-sapi_pkg_setup
151 }
152
153 php_determine_sapis() {
154 # holds the list of sapis that we want to build
155 PHPSAPIS=
156
157 if use cli || phpconfutils_usecheck cli ; then
158 PHPSAPIS="${PHPSAPIS} cli"
159 fi
160
161 if use cgi ; then
162 PHPSAPIS="${PHPSAPIS} cgi"
163 fi
164
165 # note - apache SAPI comes after the simpler cli/cgi sapis
166 if use apache2 ; then
167 PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
168 fi
169 }
170
171 src_unpack() {
172 if [[ "${PHP_PACKAGE}" == 1 ]] ; then
173 unpack ${A}
174 fi
175
176 cd "${S}"
177
178 # Concurrent PHP Apache2 modules support
179 if use apache2 ; then
180 if use concurrentmodphp ; then
181 if [[ -n "${CONCURRENTMODPHP_PATCH}" ]] && [[ -f "${WORKDIR}/${CONCURRENTMODPHP_PATCH}" ]] ; then
182 epatch "${WORKDIR}/${CONCURRENTMODPHP_PATCH}"
183 else
184 ewarn "There is no concurrent mod_php patch available for this PHP release yet!"
185 fi
186 fi
187 fi
188
189 # fastbuild support
190 if use fastbuild ; then
191 if [[ -n "${FASTBUILD_PATCH}" ]] && [[ -f "${WORKDIR}/${FASTBUILD_PATCH}" ]] ; then
192 epatch "${WORKDIR}/${FASTBUILD_PATCH}"
193 else
194 ewarn "There is no fastbuild patch available for this PHP release yet!"
195 fi
196 fi
197
198 # kolab support
199 if [[ -n "${KOLAB_PATCH}" ]] ; then
200 use kolab && epatch "${WORKDIR}/${KOLAB_PATCH}"
201 fi
202
203 # Now let the eclass do the rest and regenerate the configure
204 php5_2-sapi_src_unpack
205
206 # Fix Makefile.global:test to consider the CGI SAPI if present
207 if use cgi ; then
208 sed -e "s|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\"|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\" \&\& test \! -z \"\$(top_builddir)/php-cgi\" \&\& test -x \"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
209 sed -e "s|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\"|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\" TEST_PHP_CGI_EXECUTABLE=\"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
210 fi
211
212 # try to fix some test cases which fail because of sandbox otherwise
213 sed -e 's:/no/such/:.\0:' -i ext/standard/tests/file/005_error.phpt \
214 ext/standard/tests/file/006_error.phpt \
215 ext/standard/tests/file/touch.phpt
216
217 # Workaround for autoconf-2.62 behaviour change, bug 217392
218 sed -re 's:(#ifdef HAVE_CONFIG_H.*):#define _GNU_SOURCE\n\1:' -i ext/posix/posix.c
219
220 # REMOVING BROKEN TESTS:
221 # removing this test as it has been broken for ages and is not easily
222 # fixable (depends on a lot of factors)
223 rm ext/standard/tests/general_functions/phpinfo.phpt
224
225 # never worked properly, no easy fix
226 rm ext/iconv/tests/bug16069.phpt ext/iconv/tests/iconv_stream_filter.phpt
227
228 # needs write access to /tmp and others
229 rm ext/session/tests/session_save_path_variation5.phpt
230
231 # sandbox-related (sandbox checks for permissions before even looking
232 # at the fs, but the tests expect "No such file or directory"
233 sed -e 's:/blah:./bla:' -i \
234 ext/session/tests/session_save_path_variation{2,3}.phpt
235
236 # these only fail because of one "sub-test" which might be
237 # Gentoo-specific (sandbox? it's about path normalization, ../ -> ..)
238 sed -e 's:File(\.\./):File(..):g' -i \
239 ext/standard/tests/file/open_basedir*{.inc,.phpt}
240 }
241
242 src_compile() {
243 if use fastbuild && [[ -n "${FASTBUILD_PATCH}" ]] ; then
244 src_compile_fastbuild
245 else
246 src_compile_normal
247 fi
248 }
249
250 src_compile_fastbuild() {
251 php_determine_sapis
252
253 build_cli=0
254 build_cgi=0
255 build_apache2=0
256 my_conf=""
257
258 for x in ${PHPSAPIS} ; do
259 case ${x} in
260 cli)
261 build_cli=1
262 ;;
263 cgi)
264 build_cgi=1
265 ;;
266 apache2)
267 build_apache2=1
268 ;;
269 esac
270 done
271
272 if [[ ${build_cli} = 1 ]] ; then
273 my_conf="${my_conf} --enable-cli"
274 else
275 my_conf="${my_conf} --disable-cli"
276 fi
277
278 if [[ ${build_cgi} = 1 ]] ; then
279 my_conf="${my_conf} --enable-cgi --enable-fastcgi"
280 phpconfutils_extension_enable "discard-path" "discard-path" 0
281 phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
282 else
283 my_conf="${my_conf} --disable-cgi"
284 fi
285
286 if [[ ${build_apache2} = 1 ]] ; then
287 my_conf="${my_conf} --with-apxs2=/usr/sbin/apxs2"
288
289 # Threaded Apache2 support
290 if use threads ; then
291 my_conf="${my_conf} --enable-maintainer-zts"
292 ewarn "Enabling ZTS for Apache2 MPM"
293 fi
294
295 # Concurrent PHP Apache2 modules support
296 if use concurrentmodphp ; then
297 append-ldflags "-Wl,--version-script=${FILESDIR}/php5-ldvs"
298 fi
299 fi
300
301 # Now we know what we are building, build it
302 php5_2-sapi_src_compile
303
304 # To keep the separate php.ini files for each SAPI, we change the
305 # build-defs.h and recompile
306
307 if [[ ${build_cli} = 1 ]] ; then
308 einfo
309 einfo "Building CLI SAPI"
310 einfo
311
312 sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php5"|g;' -i main/build-defs.h
313 sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php5/ext-active"|g;' -i main/build-defs.h
314 for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
315 [[ -f ${x} ]] && rm -f ${x}
316 done
317 make sapi/cli/php || die "Unable to make CLI SAPI"
318 cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
319 fi
320
321 if [[ ${build_cgi} = 1 ]] ; then
322 einfo
323 einfo "Building CGI SAPI"
324 einfo
325
326 sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php5"|g;' -i main/build-defs.h
327 sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php5/ext-active"|g;' -i main/build-defs.h
328 for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
329 [[ -f ${x} ]] && rm -f ${x}
330 done
331 make sapi/cgi/php-cgi || die "Unable to make CGI SAPI"
332 cp sapi/cgi/php-cgi php-cgi || die "Unable to copy CGI SAPI"
333 fi
334
335 if [[ ${build_apache2} = 1 ]] ; then
336 einfo
337 einfo "Building apache${APACHE_VERSION} SAPI"
338 einfo
339
340 sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php5\"|g;" -i main/build-defs.h
341 sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php5/ext-active\"|g;" -i main/build-defs.h
342 for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
343 [[ -f ${x} ]] && rm -f ${x}
344 done
345 make || die "Unable to make apache${APACHE_VERSION} SAPI"
346 fi
347 }
348
349 src_compile_normal() {
350 php_determine_sapis
351
352 CLEAN_REQUIRED=0
353 my_conf=""
354
355 # Support the Apache2 extras, they must be set globally for all
356 # SAPIs to work correctly, especially for external PHP extensions
357 if use apache2 ; then
358 # Concurrent PHP Apache2 modules support
359 if use concurrentmodphp ; then
360 append-ldflags "-Wl,--version-script=${FILESDIR}/php5-ldvs"
361 fi
362 fi
363
364 for x in ${PHPSAPIS} ; do
365 # Support the Apache2 extras, they must be set globally for all
366 # SAPIs to work correctly, especially for external PHP extensions
367 if use apache2 ; then
368 # Threaded Apache2 support
369 if use threads ; then
370 my_conf="${my_conf} --enable-maintainer-zts"
371 ewarn "Enabling ZTS for Apache2 MPM"
372 fi
373 fi
374
375 if [[ "${CLEAN_REQUIRED}" = 1 ]] ; then
376 make clean
377 fi
378
379 PHPSAPI="${x}"
380
381 case ${x} in
382 cli)
383 my_conf="${my_conf} --enable-cli --disable-cgi"
384 php5_2-sapi_src_compile
385 cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
386 ;;
387 cgi)
388 my_conf="${my_conf} --disable-cli --enable-cgi --enable-fastcgi"
389 phpconfutils_extension_enable "discard-path" "discard-path" 0
390 phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
391 php5_2-sapi_src_compile
392 cp sapi/cgi/php-cgi php-cgi || die "Unable to copy CGI SAPI"
393 ;;
394 apache2)
395 my_conf="${my_conf} --disable-cli --with-apxs2=/usr/sbin/apxs2"
396 php5_2-sapi_src_compile
397 ;;
398 esac
399
400 CLEAN_REQUIRED=1
401 my_conf=""
402 done
403 }
404
405 src_install() {
406 php_determine_sapis
407
408 destdir=/usr/$(get_libdir)/php5
409
410 # Let the eclass do the common work
411 php5_2-sapi_src_install
412
413 einfo
414 einfo "Installing SAPI(s) ${PHPSAPIS}"
415 einfo
416
417 for x in ${PHPSAPIS} ; do
418
419 PHPSAPI="${x}"
420
421 case ${x} in
422 cli)
423 einfo "Installing CLI SAPI"
424 into ${destdir}
425 newbin php-cli php || die "Unable to install ${x} sapi"
426 php5_2-sapi_install_ini
427 ;;
428 cgi)
429 einfo "Installing CGI SAPI"
430 into ${destdir}
431 dobin php-cgi || die "Unable to install ${x} sapi"
432 php5_2-sapi_install_ini
433 ;;
434 apache2)
435 einfo "Installing Apache${APACHE_VERSION} SAPI"
436 make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
437 if use concurrentmodphp ; then
438 einfo "Installing Apache${APACHE_VERSION} config file for PHP5-concurrent (70_mod_php5_concurr.conf)"
439 insinto ${APACHE_MODULES_CONFDIR}
440 newins "${FILESDIR}/70_mod_php5_concurr.conf-apache2" "70_mod_php5_concurr.conf"
441
442 # Put the ld version script in the right place so it's always accessible
443 insinto "/var/lib/php-pkg/${CATEGORY}/${PN}-${PVR}/"
444 doins "${FILESDIR}/php5-ldvs"
445
446 # Redefine the extension dir to have the modphp suffix
447 PHPEXTDIR="`"${D}/${destdir}/bin/php-config" --extension-dir`-versioned"
448 else
449 einfo "Installing Apache${APACHE_VERSION} config file for PHP5 (70_mod_php5.conf)"
450 insinto ${APACHE_MODULES_CONFDIR}
451 newins "${FILESDIR}/70_mod_php5.conf-apache2" "70_mod_php5.conf"
452 fi
453 php5_2-sapi_install_ini
454 ;;
455 esac
456 done
457
458 # Install env.d files
459 newenvd "${FILESDIR}/20php5-envd" "20php5"
460 sed -e "s|/lib/|/$(get_libdir)/|g" -i "${D}/etc/env.d/20php5"
461 }
462
463 pkg_postinst() {
464 # Output some general info to the user
465 if use apache2 ; then
466 APACHE2_MOD_DEFINE="PHP5"
467 if use concurrentmodphp ; then
468 APACHE2_MOD_CONF="70_mod_php5_concurr"
469 else
470 APACHE2_MOD_CONF="70_mod_php5"
471 fi
472 apache-module_pkg_postinst
473 fi
474
475 # Update Apache2 to use mod_php
476 if use apache2 ; then
477 "${ROOT}/usr/sbin/php-select" -t apache2 php5 > /dev/null 2>&1
478 exitStatus=$?
479 if [[ ${exitStatus} == 2 ]] ; then
480 php-select apache2 php5
481 elif [[ ${exitStatus} == 4 ]] ; then
482 ewarn
483 ewarn "Apache2 is configured to load a different version of PHP."
484 ewarn "To make Apache2 use PHP v5, use php-select:"
485 ewarn
486 ewarn " php-select apache2 php5"
487 ewarn
488 fi
489 fi
490
491 # Create the symlinks for php-cli
492 if use cli || phpconfutils_usecheck cli ; then
493 "${ROOT}/usr/sbin/php-select" -t php php5 > /dev/null 2>&1
494 exitStatus=$?
495 if [[ ${exitStatus} == 5 ]] ; then
496 php-select php php5
497 elif [[ ${exitStatus} == 4 ]] ; then
498 ewarn
499 ewarn "/usr/bin/php links to a different version of PHP."
500 ewarn "To make /usr/bin/php point to PHP v5, use php-select:"
501 ewarn
502 ewarn " php-select php php5"
503 ewarn
504 fi
505 fi
506
507 # Create the symlinks for php-cgi
508 if use cgi ; then
509 "${ROOT}/usr/sbin/php-select" -t php-cgi php5 > /dev/null 2>&1
510 exitStatus=$?
511 if [[ ${exitStatus} == 5 ]] ; then
512 php-select php-cgi php5
513 elif [[ ${exitStatus} == 4 ]] ; then
514 ewarn
515 ewarn "/usr/bin/php-cgi links to a different version of PHP."
516 ewarn "To make /usr/bin/php-cgi point to PHP v5, use php-select:"
517 ewarn
518 ewarn " php-select php-cgi php5"
519 ewarn
520 fi
521 fi
522
523 # Create the symlinks for php-devel
524 "${ROOT}/usr/sbin/php-select" -t php-devel php5 > /dev/null 2>&1
525 exitStatus=$?
526 if [[ $exitStatus == 5 ]] ; then
527 php-select php-devel php5
528 elif [[ $exitStatus == 4 ]] ; then
529 ewarn
530 ewarn "/usr/bin/php-config and/or /usr/bin/phpize are linked to a"
531 ewarn "different version of PHP. To make them point to PHP v5, use"
532 ewarn "php-select:"
533 ewarn
534 ewarn " php-select php-devel php5"
535 ewarn
536 fi
537
538 php5_2-sapi_pkg_postinst
539 }
540
541 src_test() {
542 vecho ">>> Test phase [test]: ${CATEGORY}/${PF}"
543 if [[ ! -x "${S}"/php-cli ]]; then
544 ewarn "Running the php test suite requires USE=cli"
545 return
546 fi
547
548 export TEST_PHP_EXECUTABLE="${S}"/php-cli
549 if [[ -x "${S}"/php-cgi ]]; then
550 export TEST_PHP_CGI_EXECUTABLE="${S}"/php-cgi
551 fi
552 REPORT_EXIT_STATUS=1 "${S}"/php-cli -n "${S}"/run-tests.php -n
553
554 if [[ $? != 0 ]] ; then
555 eerror "Not all tests were successful!"
556 fi
557 }
558
559
560
561 --
562 gentoo-commits@l.g.o mailing list