gnu: php: Properly fix openssl_x509_checkpurpose_basic.phpt.

* gnu/packages/php.scm (php)[source]: Add patch.
* gnu/packages/patches/php-openssl_x509_checkpurpose_basic.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add it.

Thanks to Diego Nicola Barbato <dnbarbato@posteo.de>
This commit is contained in:
Tobias Geerinckx-Rice 2021-12-16 18:44:45 +01:00
parent 13f1355443
commit 88b4dcdabe
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79
3 changed files with 113 additions and 5 deletions

View file

@ -70,7 +70,9 @@
(sha256
(base32
"1y0f1xgfi8cks6npdhrycg8r9g3q0pikqgf5h4xafpy8znmb61g3"))
(patches (search-patches "php-bug-74093-test.patch"))
(patches
(search-patches "php-bug-74093-test.patch"
"php-openssl_x509_checkpurpose_basic.patch"))
(modules '((guix build utils)))
(snippet
'(with-directory-excursion "ext"
@ -343,10 +345,7 @@
;; Renicing a process fails in the build environment.
"ext/standard/tests/general_functions/proc_nice_basic.phpt"
;; Can fail on fast machines?
"Zend/tests/bug74093.phpt"
;; Unknown reason <https://issues.guix.gnu.org/52513>.
"ext/openssl/tests/openssl_x509_checkpurpose_basic.phpt"))
"Zend/tests/bug74093.phpt"))
;; Accomodate two extra openssl errors flanking the expected one:
;; random number generator:RAND_{load,write}_file:Cannot open file