Skip to content
Open

PHP 8.5 #59046

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions srcpkgs/composer8.5/files/composer8.5
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
php8.5 /usr/libexec/composer.phar8.5 "$@"
27 changes: 27 additions & 0 deletions srcpkgs/composer8.5/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Template file for 'composer8.5'
pkgname=composer8.5
version=2.8.4
revision=1
build_style=fetch
depends="php8.5"
short_desc="Dependency manager for PHP"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://getcomposer.org/"
changelog="https://raw.githubusercontent.com/composer/composer/main/CHANGELOG.md"
distfiles="https://github.com/composer/composer/releases/download/${version}/composer.phar
https://raw.githubusercontent.com/composer/composer/main/LICENSE"
checksum="c4c4e2e1beab0ea04e0bd042a5dbba9feda1fbf5eda0d36203958edd343c0a8a
7855ac293067aebe7e51afdd23b9dea54b8be24187dbecc9b9142581c37f596c"
alternatives="composer:composer:/usr/bin/composer8.5"

do_install() {
vbin ${FILESDIR}/composer8.5

vinstall composer.phar 644 usr/libexec composer.phar8.5
vlicense LICENSE

vmkdir /etc/php8.5/conf.d
printf 'extension=%s\n' iconv openssl zip \
>${DESTDIR}/etc/php8.5/conf.d/composer.ini
}
2 changes: 1 addition & 1 deletion srcpkgs/php/template
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Template file for 'php'
pkgname=php
version=8.4
version=8.5
revision=1
metapackage=yes
depends="php${version}"
Expand Down
1 change: 1 addition & 0 deletions srcpkgs/php8.5-apache
3 changes: 3 additions & 0 deletions srcpkgs/php8.5-apcu/files/README.voidlinux
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
To enable APCu add the following line to your php.ini:

extension=apcu.so
29 changes: 29 additions & 0 deletions srcpkgs/php8.5-apcu/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Template file for 'php8.5-apcu'
pkgname=php8.5-apcu
version=5.1.28
revision=1
build_style=gnu-configure
configure_args="--with-php-config=/usr/bin/php-config8.5"
make_check_target=test
hostmakedepends="autoconf php8.5-devel"
makedepends="php8.5-devel pcre2-devel"
depends="php8.5"
short_desc="In-memory key-value store for PHP"
maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
license="PHP-3.01"
homepage="https://pecl.php.net/package/APCu"
distfiles="https://pecl.php.net/get/apcu-${version}.tgz"
checksum=ca9c1820810a168786f8048a4c3f8c9e3fd941407ad1553259fb2e30b5f057bf

pre_configure() {
phpize8.5
}

pre_install() {
make_install_args="INSTALL_ROOT=$DESTDIR"
}

post_install() {
rm -r $DESTDIR/usr/include
vdoc "${FILESDIR}/README.voidlinux"
}
2 changes: 2 additions & 0 deletions srcpkgs/php8.5-apcu/update
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
site="https://pecl.php.net/package/APCu"
pattern="apcu-\K[\d\.]*(?=\.tgz)"
2 changes: 2 additions & 0 deletions srcpkgs/php8.5-ast/files/README.voidlinux
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
To enable the ast extension please add the following to php.ini:
extension=ast.so
28 changes: 28 additions & 0 deletions srcpkgs/php8.5-ast/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Template file for 'php8.5-ast'
pkgname=php8.5-ast
version=1.1.3
revision=1
build_style=gnu-configure
configure_args="--with-php-config=/usr/bin/php-config8.5"
make_check_target="test"
hostmakedepends="php8.5-devel autoconf"
makedepends="php8.5-devel"
depends="php8.5"
checkdepends="${depends}"
short_desc="Exposes the abstract syntax tree generated by PHP"
maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
license="BSD-3-Clause"
homepage="https://github.com/nikic/php-ast"
distfiles="https://pecl.php.net/get/ast-${version}.tgz"
checksum=528b54aabcfce6bf0e94b5940a73cca357d4a52fad9fef4cd4dc025abc1a9fbd
make_check_pre="env NO_INTERACTION=1"

pre_configure() {
phpize8.5
}

do_install() {
make INSTALL_ROOT=${DESTDIR} install
vlicense LICENSE
vdoc "${FILESDIR}/README.voidlinux"
}
1 change: 1 addition & 0 deletions srcpkgs/php8.5-cgi
1 change: 1 addition & 0 deletions srcpkgs/php8.5-devel
1 change: 1 addition & 0 deletions srcpkgs/php8.5-embed
1 change: 1 addition & 0 deletions srcpkgs/php8.5-enchant
1 change: 1 addition & 0 deletions srcpkgs/php8.5-ffi
1 change: 1 addition & 0 deletions srcpkgs/php8.5-fpm
1 change: 1 addition & 0 deletions srcpkgs/php8.5-gd
24 changes: 24 additions & 0 deletions srcpkgs/php8.5-igbinary/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Template file for 'php8.5-igbinary'
pkgname=php8.5-igbinary
version=3.2.17RC1
revision=1
build_style=gnu-configure
configure_args="--with-php-config=/usr/bin/php-config8.5"
hostmakedepends="autoconf php8.5-devel"
makedepends="php8.5-devel"
depends="php8.5"
short_desc="Igbinary is a drop in replacement for the standard php serializer"
maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
license="BSD-3-Clause"
homepage="https://github.com/igbinary/igbinary/"
distfiles="https://pecl.php.net/get/igbinary-${version}.tgz"
checksum=91da821443db125282a6aea039f24588dd28ff5d71e8187f6ecc41165bceafbc

pre_configure() {
phpize8.5
}

do_install() {
make INSTALL_ROOT="${DESTDIR}" install
vlicense COPYING
}
3 changes: 3 additions & 0 deletions srcpkgs/php8.5-imagick/files/README.voidlinux
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
To enable the Imagick extension add the following line to your php.ini:

extension=imagick.so
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
--- a/imagemagick.m4 2021-09-09 10:53:42.287881616 +0200
+++ b/imagemagick.m4 2021-09-09 11:14:47.662312430 +0200
@@ -167,6 +167,14 @@ AC_DEFUN([IM_FIND_IMAGEMAGICK],[

AC_MSG_RESULT([user location ${IM_IMAGEMAGICK_PREFIX}/include/ImageMagick-${IM_MAJOR_VERSION}/wand/MagickWand.h])

+ elif test -r "${IM_IMAGEMAGICK_PREFIX}/include/ImageMagick-${IM_MAJOR_VERSION}/MagickWand/MagickWand.h"; then
+
+ IM_INCLUDE_FORMAT="MagickWand/MagickWand.h"
+ IM_HEADER_STYLE="SEVEN"
+ AC_DEFINE([IM_MAGICKWAND_HEADER_STYLE_SEVEN], [1], [ImageMagick 7.x style header])
+
+ AC_MSG_RESULT([${IM_PREFIX}/include/ImageMagick-${IM_MAJOR_VERSION}/MagickWand/MagickWand.h])
+
elif test -r "${IM_PREFIX}/include/ImageMagick-${IM_MAJOR_VERSION}/MagickWand/MagickWand.h"; then

IM_INCLUDE_FORMAT="MagickWand/MagickWand.h"
29 changes: 29 additions & 0 deletions srcpkgs/php8.5-imagick/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Template file for 'php8.5-imagick'
pkgname=php8.5-imagick
version=3.8.1
revision=1
build_style=gnu-configure
configure_args="--with-imagick=${XBPS_CROSS_BASE}/usr \
--with-php-config=/usr/bin/php-config8.5"
hostmakedepends="php8.5-devel autoconf pkg-config"
makedepends="php8.5-devel pcre2-devel libmagick-devel"
depends="php8.5"
short_desc="Provides a PHP wrapper to the ImageMagick library"
maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
license="PHP-3.01"
homepage="https://pecl.php.net/package/imagick"
distfiles="https://pecl.php.net/get/imagick-$version.tgz"
checksum=3a3587c0a524c17d0dad9673a160b90cd776e836838474e173b549ed864352ee

pre_configure() {
phpize8.5
}

pre_install() {
make_install_args="INSTALL_ROOT=$DESTDIR"
}

post_install() {
rm -r $DESTDIR/usr/include
vdoc "${FILESDIR}/README.voidlinux"
}
1 change: 1 addition & 0 deletions srcpkgs/php8.5-imagick/update
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pattern='<th.*Release \K[\d.]+(?=:</th>)'
1 change: 1 addition & 0 deletions srcpkgs/php8.5-intl
1 change: 1 addition & 0 deletions srcpkgs/php8.5-ldap
3 changes: 3 additions & 0 deletions srcpkgs/php8.5-mongodb/files/README.voidlinux
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
To enable the MongoDB extension add the following line to your php.ini:

extension=mongodb
28 changes: 28 additions & 0 deletions srcpkgs/php8.5-mongodb/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Template file for 'php8.5-mongodb'
pkgname=php8.5-mongodb
version=2.2.1
revision=1
build_style=gnu-configure
configure_args="--with-php-config=/usr/bin/php-config8.5"
hostmakedepends="php8.5-devel autoconf pkg-config"
makedepends="php8.5-devel pcre2-devel openssl-devel"
depends="php8.5"
short_desc="Official MongoDB PHP driver"
maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
license="Apache-2.0"
homepage="https://pecl.php.net/package/mongodb"
changelog="https://pecl.php.net/package-changelog.php?package=mongodb"
distfiles="https://pecl.php.net/get/mongodb-$version.tgz"
checksum=b923617bec3cde420d80bf78aeb05002be3c0e930b93adaacaa5c2e0c25adb42

pre_configure() {
phpize8.5
}

pre_install() {
make_install_args="INSTALL_ROOT=$DESTDIR"
}

post_install() {
vdoc "${FILESDIR}/README.voidlinux"
}
1 change: 1 addition & 0 deletions srcpkgs/php8.5-mongodb/update
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pattern='<th.*Release \K[\d.]+(?=:</th>)'
1 change: 1 addition & 0 deletions srcpkgs/php8.5-mysql
1 change: 1 addition & 0 deletions srcpkgs/php8.5-odbc
1 change: 1 addition & 0 deletions srcpkgs/php8.5-pear
1 change: 1 addition & 0 deletions srcpkgs/php8.5-pgsql
1 change: 1 addition & 0 deletions srcpkgs/php8.5-phpdbg
3 changes: 3 additions & 0 deletions srcpkgs/php8.5-redis/files/README.voidlinux
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
To enable the Redis extension add the following line to your php.ini:

extension=redis
27 changes: 27 additions & 0 deletions srcpkgs/php8.5-redis/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Template file for 'php8.5-redis'
pkgname=php8.5-redis
version=6.3.0
revision=1
build_style=gnu-configure
configure_args="--with-php-config=/usr/bin/php-config8.5"
hostmakedepends="php8.5-devel autoconf pkg-config"
makedepends="php8.5-devel"
depends="php8.5"
short_desc="PHP extension for Redis"
maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
license="PHP-3.01"
homepage="https://pecl.php.net/package/redis"
distfiles="https://pecl.php.net/get/redis-$version.tgz"
checksum=0d5141f634bd1db6c1ddcda053d25ecf2c4fc1c395430d534fd3f8d51dd7f0b5

pre_configure() {
phpize8.5
}

pre_install() {
make_install_args="INSTALL_ROOT=$DESTDIR"
}

post_install() {
vdoc $FILESDIR/README.voidlinux
}
1 change: 1 addition & 0 deletions srcpkgs/php8.5-redis/update
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pattern='<th.*Release \K[\d.]+(?=:</th>)'
1 change: 1 addition & 0 deletions srcpkgs/php8.5-snmp
1 change: 1 addition & 0 deletions srcpkgs/php8.5-sodium
1 change: 1 addition & 0 deletions srcpkgs/php8.5-sqlite
1 change: 1 addition & 0 deletions srcpkgs/php8.5-tidy
1 change: 1 addition & 0 deletions srcpkgs/php8.5-xsl
13 changes: 13 additions & 0 deletions srcpkgs/php8.5/files/apache.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Required modules: dir_module, php_module

<IfModule dir_module>
<IfModule php_module>
DirectoryIndex index.php index.html
<FilesMatch "\.php$">
SetHandler application/x-httpd-php
</FilesMatch>
<FilesMatch "\.phps$">
SetHandler application/x-httpd-php-source
</FilesMatch>
</IfModule>
</IfModule>
3 changes: 3 additions & 0 deletions srcpkgs/php8.5/files/php-fpm8.5/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
[ -r conf ] && . ./conf
exec php-fpm8.5 --nodaemonize ${OPTS}
12 changes: 12 additions & 0 deletions srcpkgs/php8.5/patches/aarch64-musl-off64_t.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/build/php.m4 b/build/php.m4
index d8a5cbf..b23b456 100644
--- a/build/php.m4
+++ b/build/php.m4
@@ -1384,6 +1384,7 @@ int main(void) {
[php_cv_type_cookie_off64_t=yes],
[php_cv_type_cookie_off64_t=no],
[AS_CASE([$host_alias],
+ [aarch64-linux-musl], [php_cv_type_cookie_off64_t=no],
[*linux*], [php_cv_type_cookie_off64_t=yes],
[php_cv_type_cookie_off64_t=no])]
)])
13 changes: 13 additions & 0 deletions srcpkgs/php8.5/patches/apache-zts.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/sapi/apache2handler/config.m4 b/sapi/apache2handler/config.m4
index e335721..d824d5f 100644
--- a/sapi/apache2handler/config.m4
+++ b/sapi/apache2handler/config.m4
@@ -122,7 +122,7 @@ if test "$PHP_APXS2" != "no"; then

AS_IF([$APXS_HTTPD -V 2>/dev/null | grep 'threaded:.*yes' >/dev/null 2>&1], [
APACHE_THREADED_MPM=yes
- enable_zts=yes
+ enable_zts=no
], [APACHE_THREADED_MPM=no])

AC_CONFIG_COMMANDS([apache2handler], [AS_VAR_IF([enable_zts], [yes],,
28 changes: 28 additions & 0 deletions srcpkgs/php8.5/patches/cross-configure.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
diff --git a/build/php.m4 b/build/php.m4
index d8a5cbf..a870ca4 100644
--- a/build/php.m4
+++ b/build/php.m4
@@ -1967,7 +1967,11 @@ AS_VAR_IF([found_pgsql], [no], [dnl
AS_IF([test -x $i/pg_config], [PG_CONFIG="$i/pg_config"; break;])
done

- AS_VAR_IF([PG_CONFIG],, [dnl
+ AS_IF([test -n "$PG_CONFIG" && test "x$cross_compiling" != "xyes"], [dnl
+ AC_MSG_RESULT([$PG_CONFIG])
+ PGSQL_INCLUDE=$($PG_CONFIG --includedir)
+ PGSQL_LIBDIR=$($PG_CONFIG --libdir)
+ ], [dnl
AC_MSG_RESULT([not found])
AS_VAR_IF([pgsql_dir],,
[pgsql_search_paths="/usr /usr/local /usr/local/pgsql"],
@@ -1983,10 +1987,6 @@ AS_VAR_IF([found_pgsql], [no], [dnl
[PGSQL_LIBDIR=$i/$j])
done
done
- ], [dnl
- AC_MSG_RESULT([$PG_CONFIG])
- PGSQL_INCLUDE=$($PG_CONFIG --includedir)
- PGSQL_LIBDIR=$($PG_CONFIG --libdir)
])

AS_IF([test -n "$PGSQL_INCLUDE" && test -n "PGSQL_LIBDIR"], [
Loading