2016-11-11 14:18:29 +00:00
|
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
2020-04-19 20:57:16 +00:00
|
|
|
|
;;; Copyright © 2016-2020 Julien Lepiller <julien@lepiller.eu>
|
2016-11-11 14:18:29 +00:00
|
|
|
|
;;; Copyright © 2016 Marius Bakke <mbakke@fastmail.com>
|
2021-03-04 20:31:50 +00:00
|
|
|
|
;;; Copyright © 2018, 2020, 2021 Tobias Geerinckx-Rice <me@tobias.gr>
|
2018-12-29 12:26:29 +00:00
|
|
|
|
;;; Copyright © 2018 Ricardo Wurmus <rekado@elephly.net>
|
2019-01-01 13:53:25 +00:00
|
|
|
|
;;; Copyright © 2019 Oleg Pykhalov <go.wigust@gmail.com>
|
2020-02-02 21:52:55 +00:00
|
|
|
|
;;; Copyright © 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com>
|
2021-11-28 12:50:54 +00:00
|
|
|
|
;;; Copyright © 2021 Efraim Flashner <efraim@flashner.co.il>
|
2023-06-03 16:12:59 +00:00
|
|
|
|
;;; Copyright © 2023 Timo Wilken <guix@twilken.net>
|
2016-11-11 14:18:29 +00:00
|
|
|
|
;;;
|
|
|
|
|
;;; This file is part of GNU Guix.
|
|
|
|
|
;;;
|
|
|
|
|
;;; GNU Guix is free software; you can redistribute it and/or modify it
|
|
|
|
|
;;; under the terms of the GNU General Public License as published by
|
|
|
|
|
;;; the Free Software Foundation; either version 3 of the License, or (at
|
|
|
|
|
;;; your option) any later version.
|
|
|
|
|
;;;
|
|
|
|
|
;;; GNU Guix is distributed in the hope that it will be useful, but
|
|
|
|
|
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
;;; GNU General Public License for more details.
|
|
|
|
|
;;;
|
|
|
|
|
;;; You should have received a copy of the GNU General Public License
|
|
|
|
|
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
|
|
(define-module (gnu packages php)
|
|
|
|
|
#:use-module (gnu packages)
|
|
|
|
|
#:use-module (gnu packages algebra)
|
|
|
|
|
#:use-module (gnu packages aspell)
|
|
|
|
|
#:use-module (gnu packages base)
|
|
|
|
|
#:use-module (gnu packages bison)
|
|
|
|
|
#:use-module (gnu packages compression)
|
2021-06-18 12:22:57 +00:00
|
|
|
|
#:use-module (gnu packages crypto)
|
2016-11-11 14:18:29 +00:00
|
|
|
|
#:use-module (gnu packages curl)
|
|
|
|
|
#:use-module (gnu packages cyrus-sasl)
|
|
|
|
|
#:use-module (gnu packages databases)
|
gnu: Move dbm databases to new module.
* gnu/packages/databases.scm (gdbm, bdb, bdb-5.3): Move from here...
* gnu/packages/dbm.scm: ...to this new module.
* gnu/local.mk (GNU_SYSTEM_MODULES): Add it.
* gnu/packages/audio.scm,
gnu/packages/avahi.scm,
gnu/packages/backup.scm,
gnu/packages/cobol.scm,
gnu/packages/cyrus-sasl.scm,
gnu/packages/databases.scm,
gnu/packages/finance.scm,
gnu/packages/game-development.scm,
gnu/packages/gnome.scm,
gnu/packages/guile.scm,
gnu/packages/ibus.scm,
gnu/packages/kerberos.scm,
gnu/packages/linux.scm,
gnu/packages/mail.scm,
gnu/packages/man.scm,
gnu/packages/nvi.scm,
gnu/packages/openldap.scm,
gnu/packages/package-management.scm,
gnu/packages/php.scm,
gnu/packages/pulseaudio.scm,
gnu/packages/python.scm,
gnu/packages/rdf.scm,
gnu/packages/ruby.scm,
gnu/packages/sawfish.scm: Update module references.
2019-01-16 13:48:47 +00:00
|
|
|
|
#:use-module (gnu packages dbm)
|
2016-11-11 14:18:29 +00:00
|
|
|
|
#:use-module (gnu packages fontutils)
|
|
|
|
|
#:use-module (gnu packages gd)
|
|
|
|
|
#:use-module (gnu packages gettext)
|
|
|
|
|
#:use-module (gnu packages gnupg)
|
2019-11-10 21:19:09 +00:00
|
|
|
|
#:use-module (gnu packages icu4c)
|
2016-11-11 14:18:29 +00:00
|
|
|
|
#:use-module (gnu packages image)
|
|
|
|
|
#:use-module (gnu packages linux)
|
|
|
|
|
#:use-module (gnu packages multiprecision)
|
|
|
|
|
#:use-module (gnu packages openldap)
|
|
|
|
|
#:use-module (gnu packages pcre)
|
|
|
|
|
#:use-module (gnu packages pkg-config)
|
|
|
|
|
#:use-module (gnu packages readline)
|
gnu: Move sqlite to separate module.
* gnu/packages/databases.scm (sqlite, sqlite-3.26.0, sqlite-with-fts5,
sqlite-with-column-metadata): Move variables from here...
* gnu/packages/sqlite.scm: ...to this new module.
* gnu/local.mk (GNU_SYSTEM_MODULES): Add it.
* gnu/packages/apl.scm,
gnu/packages/bittorrent.scm,
gnu/packages/calendar.scm,
gnu/packages/code.scm,
gnu/packages/crypto.scm,
gnu/packages/databases.scm,
gnu/packages/dc.scm,
gnu/packages/disk.scm,
gnu/packages/ebook.scm,
gnu/packages/education.scm,
gnu/packages/emacs.scm,
gnu/packages/emulators.scm,
gnu/packages/file-systems.scm,
gnu/packages/freedesktop.scm,
gnu/packages/ftp.scm,
gnu/packages/games.scm,
gnu/packages/geo.scm,
gnu/packages/gnome.scm,
gnu/packages/gnunet.scm,
gnu/packages/gnupg.scm,
gnu/packages/gnuzilla.scm,
gnu/packages/gps.scm,
gnu/packages/guile.scm,
gnu/packages/ibus.scm,
gnu/packages/kerberos.scm,
gnu/packages/kodi.scm,
gnu/packages/lisp.scm,
gnu/packages/mail.scm,
gnu/packages/messaging.scm,
gnu/packages/mpd.scm,
gnu/packages/music.scm,
gnu/packages/networking.scm,
gnu/packages/nfs.scm,
gnu/packages/ocaml.scm,
gnu/packages/package-management.scm,
gnu/packages/pdf.scm,
gnu/packages/photo.scm,
gnu/packages/php.scm,
gnu/packages/python.scm,
gnu/packages/qt.scm,
gnu/packages/ruby.scm,
gnu/packages/scheme.scm,
gnu/packages/sync.scm,
gnu/packages/syndication.scm,
gnu/packages/version-control.scm,
gnu/packages/video.scm,
gnu/packages/web-browsers.scm,
gnu/packages/webkit.scm: Adjust module references.
2019-01-15 20:47:05 +00:00
|
|
|
|
#:use-module (gnu packages sqlite)
|
2016-11-11 14:18:29 +00:00
|
|
|
|
#:use-module (gnu packages textutils)
|
|
|
|
|
#:use-module (gnu packages tls)
|
|
|
|
|
#:use-module (gnu packages web)
|
|
|
|
|
#:use-module (gnu packages xml)
|
|
|
|
|
#:use-module (gnu packages xorg)
|
|
|
|
|
#:use-module (guix packages)
|
|
|
|
|
#:use-module (guix download)
|
|
|
|
|
#:use-module (guix build-system gnu)
|
2018-11-29 17:39:53 +00:00
|
|
|
|
#:use-module (guix utils)
|
2016-11-11 14:18:29 +00:00
|
|
|
|
#:use-module ((guix licenses) #:prefix license:))
|
|
|
|
|
|
|
|
|
|
(define-public php
|
|
|
|
|
(package
|
|
|
|
|
(name "php")
|
2023-01-28 13:21:12 +00:00
|
|
|
|
(version "8.2.2")
|
|
|
|
|
(home-page "https://www.php.net/")
|
2016-11-11 14:18:29 +00:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append home-page "distributions/"
|
2019-08-01 19:21:55 +00:00
|
|
|
|
"php-" version ".tar.xz"))
|
2016-11-11 14:18:29 +00:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2023-01-28 13:21:12 +00:00
|
|
|
|
"0czflx9ikxymjfgnzaifjx9kc30ww2x4063075hcifjjwqwami5x"))
|
|
|
|
|
(patches
|
2023-02-12 09:02:45 +00:00
|
|
|
|
(search-patches "php-fix-streams-copy-length.patch"))
|
2016-11-11 14:18:29 +00:00
|
|
|
|
(modules '((guix build utils)))
|
|
|
|
|
(snippet
|
|
|
|
|
'(with-directory-excursion "ext"
|
|
|
|
|
(for-each delete-file-recursively
|
|
|
|
|
;; Some of the bundled libraries have no proper upstream.
|
|
|
|
|
;; Ideally we'd extract these out as separate packages:
|
|
|
|
|
;;"mbstring/libmbfl"
|
|
|
|
|
;;"date/lib"
|
|
|
|
|
;;"bcmath/libbcmath"
|
2019-08-01 19:58:27 +00:00
|
|
|
|
;;"fileinfo/libmagic" ; a patched version of libmagic
|
2016-11-11 14:18:29 +00:00
|
|
|
|
'("gd/libgd"
|
2023-01-28 13:21:12 +00:00
|
|
|
|
"pcre/pcre2lib"))))))
|
2016-11-11 14:18:29 +00:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
2019-03-28 21:55:17 +00:00
|
|
|
|
`(#:configure-flags
|
2016-11-11 14:18:29 +00:00
|
|
|
|
(let-syntax ((with (syntax-rules ()
|
|
|
|
|
((_ option input)
|
|
|
|
|
(string-append option "="
|
|
|
|
|
(assoc-ref %build-inputs input))))))
|
|
|
|
|
(list (with "--with-bz2" "bzip2")
|
|
|
|
|
(with "--with-curl" "curl")
|
|
|
|
|
(with "--with-gdbm" "gdbm")
|
2021-11-28 12:53:53 +00:00
|
|
|
|
(with "--with-gettext" "libc") ; libintl.h
|
2016-11-11 14:18:29 +00:00
|
|
|
|
(with "--with-gmp" "gmp")
|
|
|
|
|
(with "--with-ldap" "openldap")
|
|
|
|
|
(with "--with-ldap-sasl" "cyrus-sasl")
|
|
|
|
|
(with "--with-pdo-pgsql" "postgresql")
|
|
|
|
|
(with "--with-pdo-sqlite" "sqlite")
|
|
|
|
|
(with "--with-pgsql" "postgresql")
|
|
|
|
|
;; PHP’s Pspell extension, while retaining its current name,
|
|
|
|
|
;; now uses the Aspell library.
|
|
|
|
|
(with "--with-pspell" "aspell")
|
|
|
|
|
(with "--with-readline" "readline")
|
2021-06-18 12:22:57 +00:00
|
|
|
|
(with "--with-sodium" "libsodium")
|
2016-11-11 14:18:29 +00:00
|
|
|
|
(with "--with-sqlite3" "sqlite")
|
|
|
|
|
(with "--with-tidy" "tidy")
|
|
|
|
|
(with "--with-xsl" "libxslt")
|
|
|
|
|
(with "--with-zlib-dir" "zlib")
|
|
|
|
|
;; We could add "--with-snmp", but it requires netsnmp that
|
|
|
|
|
;; we don't have a package for. It is used to build the snmp
|
|
|
|
|
;; extension of php.
|
2019-11-29 18:38:02 +00:00
|
|
|
|
"--with-external-pcre"
|
|
|
|
|
"--with-external-gd"
|
2016-11-11 14:18:29 +00:00
|
|
|
|
"--with-iconv"
|
|
|
|
|
"--with-openssl"
|
2017-04-08 15:31:51 +00:00
|
|
|
|
"--with-mysqli" ; Required for, e.g. wordpress
|
2016-11-11 14:18:29 +00:00
|
|
|
|
"--with-pdo-mysql"
|
2019-11-29 18:38:02 +00:00
|
|
|
|
"--with-zip"
|
2016-11-11 14:18:29 +00:00
|
|
|
|
"--with-zlib"
|
2018-12-29 12:26:29 +00:00
|
|
|
|
"--enable-bcmath" ; Required for, e.g. Zabbix frontend
|
2016-11-11 14:18:29 +00:00
|
|
|
|
"--enable-calendar"
|
|
|
|
|
"--enable-dba=shared"
|
|
|
|
|
"--enable-exif"
|
|
|
|
|
"--enable-flatfile"
|
|
|
|
|
"--enable-fpm"
|
|
|
|
|
"--enable-ftp"
|
2019-11-29 18:38:02 +00:00
|
|
|
|
"--enable-gd"
|
2016-11-11 14:18:29 +00:00
|
|
|
|
"--enable-inifile"
|
2019-11-10 21:19:09 +00:00
|
|
|
|
"--enable-intl"
|
2016-11-11 14:18:29 +00:00
|
|
|
|
"--enable-mbstring"
|
|
|
|
|
"--enable-pcntl"
|
2023-06-03 16:12:59 +00:00
|
|
|
|
"--enable-sockets"
|
|
|
|
|
"--enable-sysvsem")) ; Required for, e.g. Nextcloud
|
2016-11-11 14:18:29 +00:00
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-after 'unpack 'do-not-record-build-flags
|
|
|
|
|
(lambda _
|
|
|
|
|
;; Prevent configure flags from being stored and causing
|
|
|
|
|
;; unnecessary runtime dependencies.
|
|
|
|
|
(substitute* "scripts/php-config.in"
|
|
|
|
|
(("@CONFIGURE_OPTIONS@") "")
|
|
|
|
|
(("@PHP_LDFLAGS@") ""))
|
|
|
|
|
;; This file has ISO-8859-1 encoding.
|
|
|
|
|
(with-fluids ((%default-port-encoding "ISO-8859-1"))
|
|
|
|
|
(substitute* "main/build-defs.h.in"
|
2021-07-22 13:49:46 +00:00
|
|
|
|
(("@CONFIGURE_COMMAND@") "(omitted)")))))
|
2016-11-11 14:18:29 +00:00
|
|
|
|
(add-before 'build 'patch-/bin/sh
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* '("run-tests.php" "ext/standard/proc_open.c")
|
2021-07-22 13:49:46 +00:00
|
|
|
|
(("/bin/sh") (which "sh")))))
|
2016-11-11 14:18:29 +00:00
|
|
|
|
(add-before 'check 'prepare-tests
|
|
|
|
|
(lambda _
|
|
|
|
|
;; Some of these files have ISO-8859-1 encoding, whereas others
|
|
|
|
|
;; use ASCII, so we can't use a "catch-all" find-files here.
|
|
|
|
|
(with-fluids ((%default-port-encoding "ISO-8859-1"))
|
|
|
|
|
(substitute* '("ext/mbstring/tests/mb_send_mail02.phpt"
|
|
|
|
|
"ext/mbstring/tests/mb_send_mail04.phpt"
|
|
|
|
|
"ext/mbstring/tests/mb_send_mail05.phpt"
|
|
|
|
|
"ext/mbstring/tests/mb_send_mail06.phpt")
|
|
|
|
|
(("/bin/cat") (which "cat"))))
|
|
|
|
|
(substitute* '("ext/mbstring/tests/mb_send_mail01.phpt"
|
|
|
|
|
"ext/mbstring/tests/mb_send_mail03.phpt"
|
2019-11-29 18:38:02 +00:00
|
|
|
|
"ext/mbstring/tests/bug52681.phpt"
|
2016-11-11 14:18:29 +00:00
|
|
|
|
"ext/standard/tests/general_functions/bug34794.phpt"
|
|
|
|
|
"ext/standard/tests/general_functions/bug44667.phpt"
|
|
|
|
|
"ext/standard/tests/general_functions/proc_open.phpt")
|
|
|
|
|
(("/bin/cat") (which "cat")))
|
2017-02-27 10:15:29 +00:00
|
|
|
|
|
2016-11-11 14:18:29 +00:00
|
|
|
|
;; The encoding of this file is not recognized, so we simply drop it.
|
|
|
|
|
(delete-file "ext/mbstring/tests/mb_send_mail07.phpt")
|
|
|
|
|
|
|
|
|
|
(substitute* "ext/standard/tests/streams/bug60602.phpt"
|
|
|
|
|
(("'ls'") (string-append "'" (which "ls") "'")))
|
|
|
|
|
|
2023-01-28 13:21:12 +00:00
|
|
|
|
,@(if (target-arm32?)
|
2019-03-28 21:55:17 +00:00
|
|
|
|
;; Drop tests known to fail on armhf.
|
|
|
|
|
'((for-each delete-file
|
2023-02-12 09:02:45 +00:00
|
|
|
|
(list
|
2019-03-28 21:55:17 +00:00
|
|
|
|
"ext/calendar/tests/unixtojd_error1.phpt"
|
2023-01-28 13:21:12 +00:00
|
|
|
|
"ext/opcache/tests/preload_006.phpt"
|
|
|
|
|
"ext/opcache/tests/preload_011.phpt"
|
2019-03-28 21:55:17 +00:00
|
|
|
|
;; arm can be a lot slower, so a time-related test fails
|
|
|
|
|
"ext/fileinfo/tests/cve-2014-3538-nojit.phpt"
|
2021-02-09 16:09:49 +00:00
|
|
|
|
"ext/pcntl/tests/pcntl_unshare_01.phpt"
|
2019-03-28 21:55:17 +00:00
|
|
|
|
"ext/pcre/tests/bug76514.phpt"
|
2019-05-01 19:13:00 +00:00
|
|
|
|
"ext/pcre/tests/preg_match_error3.phpt"
|
2021-02-09 16:09:49 +00:00
|
|
|
|
"ext/pcre/tests/cache_limit.phpt"
|
|
|
|
|
"ext/sockets/tests/socket_getopt.phpt"
|
|
|
|
|
"ext/sockets/tests/socket_sendrecvmsg_error.phpt"
|
2019-05-01 19:13:00 +00:00
|
|
|
|
"ext/standard/tests/general_functions/var_export-locale.phpt"
|
2019-11-29 18:38:02 +00:00
|
|
|
|
"ext/standard/tests/general_functions/var_export_basic1.phpt"
|
|
|
|
|
"ext/intl/tests/timezone_getErrorCodeMessage_basic.phpt"
|
2021-02-09 16:09:49 +00:00
|
|
|
|
"ext/intl/tests/timezone_getOffset_error.phpt"
|
|
|
|
|
"sapi/cli/tests/cli_process_title_unix.phpt"
|
2021-02-26 11:53:11 +00:00
|
|
|
|
"sapi/cli/tests/upload_2G.phpt"
|
|
|
|
|
"Zend/tests/concat_003.phpt")))
|
2019-03-29 14:34:37 +00:00
|
|
|
|
'())
|
2019-03-28 21:55:17 +00:00
|
|
|
|
|
2023-01-28 13:21:12 +00:00
|
|
|
|
,@(if (target-x86-32?)
|
2023-02-12 09:02:45 +00:00
|
|
|
|
;; Drop tests known to fail on i686.
|
2023-01-28 13:21:12 +00:00
|
|
|
|
'((for-each delete-file
|
|
|
|
|
(list
|
|
|
|
|
"ext/dba/tests/dba_gdbm.phpt")))
|
|
|
|
|
'())
|
|
|
|
|
|
2021-09-02 17:29:41 +00:00
|
|
|
|
,@(if (target-ppc64le?)
|
|
|
|
|
;; Drop tests known to fail on powerpc64le.
|
|
|
|
|
'((for-each delete-file
|
|
|
|
|
(list
|
|
|
|
|
;; phpdbg watchpoints don't work.
|
|
|
|
|
;; Bug tracked upstream at:
|
|
|
|
|
;; https://bugs.php.net/bug.php?id=81408
|
|
|
|
|
"sapi/phpdbg/tests/watch_001.phpt"
|
|
|
|
|
"sapi/phpdbg/tests/watch_003.phpt"
|
|
|
|
|
"sapi/phpdbg/tests/watch_004.phpt"
|
|
|
|
|
"sapi/phpdbg/tests/watch_005.phpt"
|
|
|
|
|
"sapi/phpdbg/tests/watch_006.phpt")))
|
|
|
|
|
'())
|
|
|
|
|
|
2023-02-12 09:02:45 +00:00
|
|
|
|
,@(if (target-riscv64?)
|
|
|
|
|
;; Drop tests known to fail on riscv64.
|
|
|
|
|
'((for-each delete-file
|
|
|
|
|
(list "sapi/cli/tests/upload_2G.phpt")))
|
|
|
|
|
'())
|
|
|
|
|
|
2016-11-11 14:18:29 +00:00
|
|
|
|
;; Drop tests that are known to fail.
|
|
|
|
|
(for-each delete-file
|
|
|
|
|
'("ext/posix/tests/posix_getgrgid.phpt" ; Requires /etc/group.
|
2019-11-29 18:38:02 +00:00
|
|
|
|
"ext/posix/tests/posix_getgrnam_basic.phpt" ; Requires /etc/group.
|
2016-11-11 14:18:29 +00:00
|
|
|
|
"ext/sockets/tests/bug63000.phpt" ; Fails to detect OS.
|
|
|
|
|
"ext/sockets/tests/socket_shutdown.phpt" ; Requires DNS.
|
|
|
|
|
"ext/sockets/tests/socket_send.phpt" ; Likewise.
|
|
|
|
|
"ext/sockets/tests/mcast_ipv4_recv.phpt" ; Requires multicast.
|
|
|
|
|
;; These needs /etc/services.
|
|
|
|
|
"ext/standard/tests/general_functions/getservbyname_basic.phpt"
|
|
|
|
|
"ext/standard/tests/general_functions/getservbyport_basic.phpt"
|
|
|
|
|
"ext/standard/tests/general_functions/getservbyport_variation1.phpt"
|
|
|
|
|
;; And /etc/protocols.
|
|
|
|
|
"ext/standard/tests/network/getprotobyname_basic.phpt"
|
|
|
|
|
"ext/standard/tests/network/getprotobynumber_basic.phpt"
|
|
|
|
|
;; And exotic locales.
|
|
|
|
|
"ext/standard/tests/strings/setlocale_basic1.phpt"
|
|
|
|
|
"ext/standard/tests/strings/setlocale_basic2.phpt"
|
|
|
|
|
"ext/standard/tests/strings/setlocale_basic3.phpt"
|
|
|
|
|
"ext/standard/tests/strings/setlocale_variation1.phpt"
|
2020-02-02 21:52:55 +00:00
|
|
|
|
;; This failing test is skipped on PHP's Travis CI as it is
|
|
|
|
|
;; supposedly inaccurate.
|
|
|
|
|
"ext/standard/tests/file/disk_free_space_basic.phpt"
|
2020-05-06 13:40:13 +00:00
|
|
|
|
;; The following test erroneously expect the link
|
|
|
|
|
;; count of a sub-directory to increase compared to
|
|
|
|
|
;; its parent.
|
2020-02-02 21:52:55 +00:00
|
|
|
|
"ext/standard/tests/file/lstat_stat_variation8.phpt"
|
2020-10-30 12:53:07 +00:00
|
|
|
|
;; This tests whether microseconds ‘differ enough’ and
|
|
|
|
|
;; fails inconsistently on ‘fast’ machines.
|
|
|
|
|
"ext/date/tests/bug73837.phpt"
|
2016-11-11 14:18:29 +00:00
|
|
|
|
|
|
|
|
|
;; XXX: These gd tests fails. Likely because our version
|
|
|
|
|
;; is different from the (patched) bundled one.
|
|
|
|
|
;; Here, gd quits immediately after "fatal libpng error"; while the
|
|
|
|
|
;; test expects it to additionally return a "setjmp" error and warning.
|
|
|
|
|
"ext/gd/tests/bug39780_extern.phpt"
|
|
|
|
|
"ext/gd/tests/libgd00086_extern.phpt"
|
|
|
|
|
;; Extra newline in gd-png output.
|
|
|
|
|
"ext/gd/tests/bug45799.phpt"
|
|
|
|
|
;; Test expects generic "gd warning" but gets the actual function name.
|
|
|
|
|
"ext/gd/tests/createfromwbmp2_extern.phpt"
|
2017-11-24 14:03:37 +00:00
|
|
|
|
;; This bug should have been fixed in gd 2.2.2.
|
|
|
|
|
;; Is it a regression?
|
|
|
|
|
"ext/gd/tests/bug65148.phpt"
|
2020-05-06 16:55:31 +00:00
|
|
|
|
;; This bug should have been fixed in the gd 2.2
|
|
|
|
|
;; series. Perhaps a regression introduced by gd
|
|
|
|
|
;; 2.3.0?
|
|
|
|
|
"ext/gd/tests/bug66590.phpt"
|
|
|
|
|
;; This bug should have been fixed in the php-5.5
|
|
|
|
|
;; series. Perhaps a regression introduced by gd
|
|
|
|
|
;; 2.3.0?
|
|
|
|
|
"ext/gd/tests/bug70102.phpt"
|
|
|
|
|
;; This bug should have been fixed in the php-5.6
|
|
|
|
|
;; series. Perhaps a regression introduced by gd
|
|
|
|
|
;; 2.3.0?
|
|
|
|
|
"ext/gd/tests/bug73869.phpt"
|
|
|
|
|
;; Some WebP related tests fail.
|
|
|
|
|
"ext/gd/tests/webp_basic.phpt"
|
|
|
|
|
"ext/gd/tests/imagecreatefromstring_webp.phpt"
|
2016-11-11 14:18:29 +00:00
|
|
|
|
;; TODO: Enable these when libgd is built with xpm support.
|
|
|
|
|
"ext/gd/tests/xpm2gd.phpt"
|
|
|
|
|
"ext/gd/tests/xpm2jpg.phpt"
|
|
|
|
|
"ext/gd/tests/xpm2png.phpt"
|
2019-03-07 18:59:59 +00:00
|
|
|
|
;; Whitespace difference, probably caused by a very
|
|
|
|
|
;; long store path
|
|
|
|
|
"ext/gd/tests/bug77479.phpt"
|
2019-05-31 11:29:14 +00:00
|
|
|
|
;; Expected invalid XBM but got EOF before image was
|
|
|
|
|
;; complete. It's a warning in both cases and test
|
|
|
|
|
;; result is the same.
|
|
|
|
|
"ext/gd/tests/bug77973.phpt"
|
2020-02-02 21:52:55 +00:00
|
|
|
|
;; Test expects uninitialized value to be false, but
|
|
|
|
|
;; instead gets "resource(5) of type (gd)".
|
|
|
|
|
"ext/gd/tests/bug79067.phpt"
|
|
|
|
|
;; The following test fails with "The image size
|
|
|
|
|
;; differs: expected 114x115, got 117x117".
|
|
|
|
|
"ext/gd/tests/bug79068.phpt"
|
2023-01-28 13:21:12 +00:00
|
|
|
|
;; AVIF support disabled
|
|
|
|
|
"ext/gd/tests/avif_decode_encode.phpt"
|
|
|
|
|
;; Typo in expected outputs
|
|
|
|
|
"ext/gd/tests/bug72339.phpt"
|
|
|
|
|
"ext/gd/tests/bug77272.phpt"
|
|
|
|
|
"ext/gd/tests/bug66356.phpt"
|
|
|
|
|
;; AVIF support disabled
|
|
|
|
|
"ext/gd/tests/imagecreatefromstring_avif.phpt"
|
2020-02-02 21:52:55 +00:00
|
|
|
|
|
2016-11-11 14:18:29 +00:00
|
|
|
|
;; XXX: These iconv tests have the expected outcome,
|
|
|
|
|
;; but with different error messages.
|
|
|
|
|
;; Expects "illegal character", instead gets "unknown error (84)".
|
|
|
|
|
"ext/iconv/tests/bug52211.phpt"
|
2018-09-15 19:04:44 +00:00
|
|
|
|
"ext/iconv/tests/bug60494.phpt"
|
2016-11-11 14:18:29 +00:00
|
|
|
|
;; Expects "wrong charset", gets unknown error (22).
|
|
|
|
|
"ext/iconv/tests/iconv_strlen_error2.phpt"
|
|
|
|
|
"ext/iconv/tests/iconv_substr_error2.phpt"
|
|
|
|
|
;; Expects conversion error, gets "error condition Termsig=11".
|
|
|
|
|
"ext/iconv/tests/iconv_strpos_error2.phpt"
|
|
|
|
|
"ext/iconv/tests/iconv_strrpos_error2.phpt"
|
2018-07-17 21:25:00 +00:00
|
|
|
|
;; Expects "invalid multibyte sequence" but got
|
|
|
|
|
;; "unknown error".
|
|
|
|
|
"ext/iconv/tests/bug76249.phpt"
|
2016-11-11 14:18:29 +00:00
|
|
|
|
|
|
|
|
|
;; XXX: These test failures appear legitimate, needs investigation.
|
|
|
|
|
;; open_basedir() restriction failure.
|
2019-11-29 18:38:02 +00:00
|
|
|
|
"ext/curl/tests/bug61948-unix.phpt"
|
2023-01-28 13:21:12 +00:00
|
|
|
|
;; Same error reason but error code slightly different
|
|
|
|
|
"ext/curl/tests/curl_setopt_ssl.phpt"
|
|
|
|
|
|
|
|
|
|
;; Fail because there is no "root" in the build container's
|
|
|
|
|
;; /etc/passwd
|
|
|
|
|
"sapi/fpm/tests/bug68591-conf-test-group.phpt"
|
|
|
|
|
"sapi/fpm/tests/bug68591-conf-test-listen-group.phpt"
|
|
|
|
|
"sapi/fpm/tests/bug68591-conf-test-listen-owner.phpt"
|
|
|
|
|
|
|
|
|
|
;; Wrong error name
|
|
|
|
|
"ext/dba/tests/dba_gdbm_creation_matrix.phpt"
|
2016-11-11 14:18:29 +00:00
|
|
|
|
;; Expects a false boolean, gets empty array from glob().
|
|
|
|
|
"ext/standard/tests/file/bug41655_1.phpt"
|
|
|
|
|
"ext/standard/tests/file/glob_variation5.phpt"
|
|
|
|
|
;; The test expects an Array, but instead get the contents(?).
|
|
|
|
|
"ext/gd/tests/bug43073.phpt"
|
|
|
|
|
;; imagettftext() returns wrong coordinates.
|
2017-02-27 10:15:29 +00:00
|
|
|
|
"ext/gd/tests/bug48732-mb.phpt"
|
2016-11-11 14:18:29 +00:00
|
|
|
|
"ext/gd/tests/bug48732.phpt"
|
|
|
|
|
;; Similarly for imageftbbox().
|
2017-02-27 10:15:29 +00:00
|
|
|
|
"ext/gd/tests/bug48801-mb.phpt"
|
2016-11-11 14:18:29 +00:00
|
|
|
|
"ext/gd/tests/bug48801.phpt"
|
|
|
|
|
;; Different expected output from imagecolorallocate().
|
|
|
|
|
"ext/gd/tests/bug53504.phpt"
|
|
|
|
|
;; Wrong image size after scaling an image.
|
|
|
|
|
"ext/gd/tests/bug73272.phpt"
|
|
|
|
|
;; Expects iconv to detect illegal characters, instead gets
|
|
|
|
|
;; "unknown error (84)" and heap corruption(!).
|
|
|
|
|
"ext/iconv/tests/bug48147.phpt"
|
|
|
|
|
;; Expects illegal character ".", gets "=?utf-8?Q?."
|
|
|
|
|
"ext/iconv/tests/bug51250.phpt"
|
|
|
|
|
;; iconv throws "buffer length exceeded" on some string checks.
|
|
|
|
|
"ext/iconv/tests/iconv_mime_encode.phpt"
|
|
|
|
|
;; file_get_contents(): iconv stream filter
|
|
|
|
|
;; ("ISO-8859-1"=>"UTF-8") unknown error.
|
|
|
|
|
"ext/standard/tests/file/bug43008.phpt"
|
|
|
|
|
;; Table data not created in sqlite(?).
|
2020-09-21 12:21:02 +00:00
|
|
|
|
"ext/pdo_sqlite/tests/bug_42589.phpt"
|
2020-10-29 21:06:02 +00:00
|
|
|
|
;; Expects an Array with 3 preg_matches; gets 0.
|
|
|
|
|
"ext/pcre/tests/bug79846.phpt"
|
|
|
|
|
;; Expects an empty Array; gets one with " " in it.
|
2021-04-30 21:32:51 +00:00
|
|
|
|
"ext/pcre/tests/bug80118.phpt"
|
|
|
|
|
;; Renicing a process fails in the build environment.
|
2021-09-07 20:23:00 +00:00
|
|
|
|
"ext/standard/tests/general_functions/proc_nice_basic.phpt"
|
|
|
|
|
;; Can fail on fast machines?
|
2021-12-16 17:44:45 +00:00
|
|
|
|
"Zend/tests/bug74093.phpt"))
|
2016-11-11 14:18:29 +00:00
|
|
|
|
|
2021-03-04 20:31:50 +00:00
|
|
|
|
;; Accomodate two extra openssl errors flanking the expected one:
|
|
|
|
|
;; random number generator:RAND_{load,write}_file:Cannot open file
|
|
|
|
|
;; This is due to an invalid $HOME, but changing it in the test
|
|
|
|
|
;; still prints the first one & changing it globally is overkill.
|
|
|
|
|
(substitute* "ext/openssl/tests/bug80747.phpt"
|
|
|
|
|
((".*error:%s:key size too small.*" match)
|
|
|
|
|
(string-append "%s\n" match "%s\n")))
|
|
|
|
|
|
2016-11-11 14:18:29 +00:00
|
|
|
|
;; Skip tests requiring network access.
|
|
|
|
|
(setenv "SKIP_ONLINE_TESTS" "1")
|
|
|
|
|
;; Without this variable, 'make test' passes regardless of failures.
|
|
|
|
|
(setenv "REPORT_EXIT_STATUS" "1")
|
2018-01-27 10:33:49 +00:00
|
|
|
|
;; Skip tests requiring I/O facilities that are unavailable in the
|
|
|
|
|
;; build environment
|
2021-07-22 13:49:46 +00:00
|
|
|
|
(setenv "SKIP_IO_CAPTURE_TESTS" "1"))))
|
2016-11-11 14:18:29 +00:00
|
|
|
|
#:test-target "test"))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("aspell" ,aspell)
|
|
|
|
|
("bzip2" ,bzip2)
|
|
|
|
|
("curl" ,curl)
|
|
|
|
|
("cyrus-sasl" ,cyrus-sasl)
|
2018-09-09 23:30:06 +00:00
|
|
|
|
("gd" ,gd)
|
2016-11-11 14:18:29 +00:00
|
|
|
|
("gdbm" ,gdbm)
|
|
|
|
|
("gmp" ,gmp)
|
2017-02-27 10:15:29 +00:00
|
|
|
|
("gnutls" ,gnutls)
|
2019-11-10 21:19:09 +00:00
|
|
|
|
("icu4c" ,icu4c)
|
2016-11-11 14:18:29 +00:00
|
|
|
|
("libgcrypt" ,libgcrypt)
|
|
|
|
|
("libpng" ,libpng)
|
2021-06-18 12:22:57 +00:00
|
|
|
|
("libsodium" ,libsodium)
|
2016-11-11 14:18:29 +00:00
|
|
|
|
("libxml2" ,libxml2)
|
|
|
|
|
("libxslt" ,libxslt)
|
|
|
|
|
("libx11" ,libx11)
|
2019-11-10 21:19:09 +00:00
|
|
|
|
("libzip" ,libzip)
|
2019-09-04 18:23:02 +00:00
|
|
|
|
("oniguruma" ,oniguruma)
|
2016-11-11 14:18:29 +00:00
|
|
|
|
("openldap" ,openldap)
|
2022-09-10 17:50:42 +00:00
|
|
|
|
("openssl" ,openssl-1.1)
|
2019-08-04 11:49:45 +00:00
|
|
|
|
("pcre" ,pcre2)
|
2016-11-11 14:18:29 +00:00
|
|
|
|
("postgresql" ,postgresql)
|
|
|
|
|
("readline" ,readline)
|
2016-11-24 16:05:47 +00:00
|
|
|
|
("sqlite" ,sqlite)
|
2023-02-12 03:44:27 +00:00
|
|
|
|
("tidy" ,tidy-html)
|
2016-11-11 14:18:29 +00:00
|
|
|
|
("zlib" ,zlib)))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("pkg-config" ,pkg-config)
|
|
|
|
|
("bison" ,bison)
|
2021-07-22 13:49:46 +00:00
|
|
|
|
("gettext" ,gettext-minimal)
|
2019-08-01 19:58:27 +00:00
|
|
|
|
("procps" ,procps))) ; for tests
|
2016-11-11 14:18:29 +00:00
|
|
|
|
(synopsis "PHP programming language")
|
|
|
|
|
(description
|
2023-02-12 09:02:45 +00:00
|
|
|
|
"PHP (PHP Hypertext Processor) is a server-side (CGI) scripting
|
2016-11-11 14:18:29 +00:00
|
|
|
|
language designed primarily for web development but is also used as
|
|
|
|
|
a general-purpose programming language. PHP code may be embedded into
|
|
|
|
|
HTML code, or it can be used in combination with various web template
|
|
|
|
|
systems, web content management systems and web frameworks." )
|
|
|
|
|
(license (list
|
|
|
|
|
(license:non-copyleft "file://LICENSE") ; The PHP license.
|
|
|
|
|
(license:non-copyleft "file://Zend/LICENSE") ; The Zend license.
|
|
|
|
|
license:lgpl2.1 ; ext/mbstring/libmbfl
|
|
|
|
|
license:lgpl2.1+ ; ext/bcmath/libbcmath
|
|
|
|
|
license:bsd-2 ; ext/fileinfo/libmagic
|
|
|
|
|
license:expat)))) ; ext/date/lib
|