Fixed build against dblib. Added c-client to aur. Forced openssl1.1
Search Criteria
Package Details: php71-cgi 7.1.33-10
Package Actions
Git Clone URL: | https://aur.archlinux.org/php71.git (read-only, click to copy) |
---|---|
Package Base: | php71 |
Description: | CGI and FCGI SAPI for php71 |
Upstream URL: | http://www.php.net |
Keywords: | 7.1 php |
Licenses: | PHP |
Submitter: | synthead |
Maintainer: | wget (el_aur) |
Last Packager: | el_aur |
Votes: | 12 |
Popularity: | 0.000012 |
First Submitted: | 2018-03-26 18:04 (UTC) |
Last Updated: | 2023-02-22 15:33 (UTC) |
Dependencies (57)
- libedit
- libxml2 (libxml2-git, libxml2-2.9)
- pcre2 (pcre2-svn, pcre2-git)
- php71
- acl (acl-git) (make)
- apache (apache-git) (make)
- aspell (aspell-git) (make)
- autoconf (autoconf-git) (make)
- automake (automake-1.7, automake-1.11, automake-1.15, automake-1.14, automake-git) (make)
- bash (bash-devel-static-git, bash-git, bash-xdg, bash-devel-git, busybox-coreutils) (make)
- c-client (make)
- coreutils (coreutils-hybrid-git, coreutils-git, coreutils-selinux, busybox-coreutils, coreutils-hybrid) (make)
- curl (curl-git, curl-quiche-git, curl-http3-ngtcp2) (make)
- db5.3 (make)
- e2fsprogs (busybox-coreutils, e2fsprogs-git) (make)
- enchant (enchant-pure) (make)
- findutils (findutils-selinux, findutils-git, busybox-coreutils) (make)
- freetds (freetds-patched-enum) (make)
- gawk (gawk-git, gawk-fake, busybox-coreutils) (make)
- gd (gd-git) (make)
- Show 37 more dependencies...
Required by (0)
Sources (19)
- debian-php-7.1.33.patch
- fpm-numeric-uid-gid.patch
- fpm-reload-sighup.patch
- https://php.net/distributions/php-7.1.33.tar.xz
- make-tests.patch
- mysql-socket-php7.1.patch
- openssl-sslv3-consts.patch
- pear-config-patcher.php
- php-apache.conf
- php-enchant-depr.patch
- php-enchant-php5.3.patch
- php-freetype-2.9.1.patch
- php-icu-php5.5.patch
- php-makefile-patcher.php
- php-phpinfo.patch
- php71-phar-names.patch
- recode-php5.3.patch
- timezonedb-guess.patch
- timezonedb-php7.1.patch
el_aur commented on 2023-02-21 12:23 (UTC)
cfebs commented on 2023-01-13 16:53 (UTC) (edited on 2023-01-13 16:54 (UTC) by cfebs)
Looks like a dependency has been removed from repos?
error: could not find all required packages:
c-client (wanted by: php71-cli)
el_aur commented on 2022-11-05 21:10 (UTC)
Now builds fine against new openssl ;)
df8oe commented on 2022-11-05 10:31 (UTC)
as php70: does no longer build since update today
Rikj000 commented on 2022-10-20 18:28 (UTC)
Was also struggling with:
FAILED TEST SUMMARY
---------------------------------------------------------------------
Test exception doesn't cause RSHUTDOWN bypass, variation 0 [Zend/tests/exception_011.phpt]
Test exception doesn't cause RSHUTDOWN bypass, variation 1 [Zend/tests/exception_012.phpt]
=====================================================================
Worked around it with adding following lines to the PKGBUILD
file,
right under the rm -f Zend/tests/bug79919.phpt
line:
rm -f Zend/tests/bug74093.phpt
rm -f Zend/tests/exception_011.phpt
rm -f Zend/tests/exception_012.phpt
rm -f Zend/tests/unset_cv06.phpt
df8oe commented on 2022-02-27 15:19 (UTC)
We are staying on your side - the side of freedom and independence for all peoples of the world and hope that war will end immediately. Please take care in the knowledge "you are not alone".
el_aur commented on 2022-02-27 13:58 (UTC)
@dotted thanks for findings. Will proceed with changes after war finishes here, in my country - Ukraine
dotted commented on 2022-02-21 00:42 (UTC)
Last fix did nothing at all, you can/should revert the environment variable changes you made. The issue is that when generating the tmp-php.ini
file for test execution it will read the default php.ini
location which is /etc/php71/php.ini
and if that has been changed to recommended production values the variables_order
directive will be set to "GPCS"
which means the $_ENV
will be empty but run-tests.php
uses this to get the environment variables. The fix here is to patch the Makefile
and make sure variables_order
has a proper value see below patch file:
--- Makefile 2022-02-21 01:26:59.124076674 +0100
+++ Makefile.new 2022-02-21 01:27:25.370513217 +0100
@@ -299,7 +299,7 @@
done; \
fi
-PHP_TEST_SETTINGS = -d 'open_basedir=' -d 'output_buffering=0' -d 'memory_limit=-1'
+PHP_TEST_SETTINGS = -d 'open_basedir=' -d 'output_buffering=0' -d 'memory_limit=-1' -d 'variables_order="EGPCS"'
PHP_TEST_SHARED_EXTENSIONS = ` \
if test "x$(PHP_MODULES)" != "x"; then \
for i in $(PHP_MODULES)""; do \
Unfortunately this does nothing on my end to fix the failing tests. Currently I am stuck on why executing make test TESTS="tests/basic/bug20539.phpt"
causes the test to fail, but if you execute the generated shell script ./tests/basic/bug20539.sh
the output matches what is expected, and as I mentioned in my previous comment REPORT_EXIT_STATUS=1 NO_INTERACTION=1 SKIP_ONLINE_TESTS=1 SKIP_SLOW_TESTS=1 ../build-cli/sapi/cli/php -n run-tests.php -n -P {tests,Zend}
works fine but make test
does not.
el_aur commented on 2022-02-18 10:38 (UTC)
@dotted looks you're right, will change PKGBUILD soon. Thanks for finding
dotted commented on 2022-02-18 06:06 (UTC) (edited on 2022-02-18 06:07 (UTC) by dotted)
If REPORT_EXIT_STATUS=1 NO_INTERACTION=1 SKIP_ONLINE_TESTS=1 SKIP_SLOW_TESTS=1 ../build-cli/sapi/cli/php -n run-tests.php -n -P {tests,Zend}
is run in /php71/src/php-7.1.33
the test succeeds with the following result:
=====================================================================
Number of tests : 3199 3111
Tests skipped : 88 ( 2.8%) --------
Tests warned : 0 ( 0.0%) ( 0.0%)
Tests failed : 0 ( 0.0%) ( 0.0%)
Expected fail : 7 ( 0.2%) ( 0.2%)
Tests passed : 3104 ( 97.0%) ( 99.8%)
---------------------------------------------------------------------
Time taken : 31 seconds
=====================================================================
=====================================================================
EXPECTED FAILED TEST SUMMARY
---------------------------------------------------------------------
Test open_basedir configuration [tests/security/open_basedir_linkinfo.phpt] XFAIL REASON: BUG: open_basedir cannot delete symlink to prohibited file. See also
bugs 48111 and 52176.
Inconsistencies when accessing protected members [Zend/tests/access_modifiers_008.phpt] XFAIL REASON: Discussion: http://marc.info/?l=php-internals&m=120221184420957&w=2
Inconsistencies when accessing protected members - 2 [Zend/tests/access_modifiers_009.phpt] XFAIL REASON: Discussion: http://marc.info/?l=php-internals&m=120221184420957&w=2
Bug #48770 (call_user_func_array() fails to call parent from inheriting class) [Zend/tests/bug48770.phpt] XFAIL REASON: See Bug #48770
Bug #48770 (call_user_func_array() fails to call parent from inheriting class) [Zend/tests/bug48770_2.phpt] XFAIL REASON: See Bug #48770
Bug #48770 (call_user_func_array() fails to call parent from inheriting class) [Zend/tests/bug48770_3.phpt] XFAIL REASON: See Bug #48770
Initial value of static var in method depends on the include time of the class definition [Zend/tests/method_static_var.phpt] XFAIL REASON: Maybe not a bug
=====================================================================
where as the result from the check()
in PKGBUILD
is:
=====================================================================
Number of tests : 3199 3148
Tests skipped : 51 ( 1.6%) --------
Tests warned : 0 ( 0.0%) ( 0.0%)
Tests failed : 5 ( 0.2%) ( 0.2%)
Expected fail : 7 ( 0.2%) ( 0.2%)
Tests passed : 3136 ( 98.0%) ( 99.6%)
---------------------------------------------------------------------
Time taken : 297 seconds
=====================================================================
=====================================================================
EXPECTED FAILED TEST SUMMARY
---------------------------------------------------------------------
Test open_basedir configuration [tests/security/open_basedir_linkinfo.phpt] XFAIL REASON: BUG: open_basedir cannot delete symlink to prohibited file. See also
bugs 48111 and 52176.
Inconsistencies when accessing protected members [Zend/tests/access_modifiers_008.phpt] XFAIL REASON: Discussion: http://marc.info/?l=php-internals&m=120221184420957&w=2
Inconsistencies when accessing protected members - 2 [Zend/tests/access_modifiers_009.phpt] XFAIL REASON: Discussion: http://marc.info/?l=php-internals&m=120221184420957&w=2
Bug #48770 (call_user_func_array() fails to call parent from inheriting class) [Zend/tests/bug48770.phpt] XFAIL REASON: See Bug #48770
Bug #48770 (call_user_func_array() fails to call parent from inheriting class) [Zend/tests/bug48770_2.phpt] XFAIL REASON: See Bug #48770
Bug #48770 (call_user_func_array() fails to call parent from inheriting class) [Zend/tests/bug48770_3.phpt] XFAIL REASON: See Bug #48770
Initial value of static var in method depends on the include time of the class definition [Zend/tests/method_static_var.phpt] XFAIL REASON: Maybe not a bug
=====================================================================
=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
Bug #20539 (PHP CLI Segmentation Fault) [tests/basic/bug20539.phpt]
Test exception doesn't cause RSHUTDOWN bypass, variation 0 [Zend/tests/exception_011.phpt]
Test exception doesn't cause RSHUTDOWN bypass, variation 1 [Zend/tests/exception_012.phpt]
unset() CV 5 (indirect unset() of global variable in session_start()) [Zend/tests/unset_cv05.phpt]
unset() CV 6 (indirect unset() of global variable in session_unset()) [Zend/tests/unset_cv06.phpt]
=====================================================================
make: *** [Makefile:314: test] Error 1
I wonder if the issue is the environment variables such as SKIP_SLOW_TESTS
aren't actually set when tests are executing?
Pinned Comments
el_aur commented on 2022-02-03 18:48 (UTC) (edited on 2022-02-18 10:38 (UTC) by el_aur)
Created binary repository on build.opensuse.org
https://build.opensuse.org/project/show/home:el:archphp
For Arch Linux, edit /etc/pacman.conf and add the following (note that the order of repositories in pacman.conf is important, since pacman always downloads the first found package):
Then run the following as root
Refresh packages database
Now search for php packages you need:
Install with
pacman -S
packages you need or all PHP 7.1 packages with:el_aur commented on 2022-02-03 18:47 (UTC) (edited on 2022-02-03 18:50 (UTC) by el_aur)
Read Carefully! Breaking changes in compare with native PHP package
Console version
/usr/bin/php71
is installed withphp71-cli
subpackage,php71
doesn't include it anymore!!!PEAR and PECL are available as
php71-pear
andphp71-pecl
subpackagesAll shared modules are respresented as stand-alone subpackages and are not included with
php71
package anymore.No more extensions in php.ini itself!
Separate INI files for each extension are placed in
/etc/php71/conf.d
They are loaded in correct order according to priority