Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[wip] php8.4 #53915

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open
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.4/files/composer8.4
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
php8.4 /usr/libexec/composer.phar8.4 "$@"
27 changes: 27 additions & 0 deletions srcpkgs/composer8.4/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Template file for 'composer8.4'
pkgname=composer8.4
version=2.8.4
revision=1
build_style=fetch
depends="php8.4"
short_desc="Dependency manager for PHP"
maintainer="Orphaned <[email protected]>"
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.4"

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

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

vmkdir /etc/php8.4/conf.d
printf 'extension=%s\n' phar iconv openssl zip \
>${DESTDIR}/etc/php8.4/conf.d/composer.ini
}
4 changes: 2 additions & 2 deletions srcpkgs/php/template
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Template file for 'php'
pkgname=php
version=8.3
revision=2
version=8.4
revision=1
build_style=meta
depends="php${version}"
short_desc="Meta package for PHP"
Expand Down
1 change: 1 addition & 0 deletions srcpkgs/php8.4-apache
3 changes: 3 additions & 0 deletions srcpkgs/php8.4-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.4-apcu/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Template file for 'php8.4-apcu'
pkgname=php8.4-apcu
version=5.1.24
revision=1
build_style=gnu-configure
configure_args="--with-php-config=/usr/bin/php-config8.4"
make_check_target=test
hostmakedepends="autoconf php8.4-devel"
makedepends="php8.4-devel pcre2-devel"
depends="php8.4"
short_desc="In-memory key-value store for PHP"
maintainer="Joel Beckmeyer <[email protected]>"
license="PHP-3.01"
homepage="https://pecl.php.net/package/APCu"
distfiles="https://pecl.php.net/get/apcu-${version}.tgz"
checksum=5c28a55b27082c69657e25b7ecf553e2cf6b74ec3fa77d6b76f4fb982e001e43

pre_configure() {
phpize8.4
}

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.4-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.4-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.4-ast/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Template file for 'php8.4-ast'
pkgname=php8.4-ast
version=1.1.2
revision=1
build_style=gnu-configure
configure_args="--with-php-config=/usr/bin/php-config8.4"
make_check_target="test"
hostmakedepends="php8.4-devel autoconf"
makedepends="php8.4-devel"
depends="php8.4"
checkdepends="${depends}"
short_desc="Exposes the abstract syntax tree generated by PHP"
maintainer="Joel Beckmeyer <[email protected]>"
license="BSD-3-Clause"
homepage="https://github.com/nikic/php-ast"
distfiles="https://pecl.php.net/get/ast-${version}.tgz"
checksum=8742427ff7c07ba93f940968f7363972ea040d97d847da3b79b4283c2a369dea
make_check_pre="env NO_INTERACTION=1"

pre_configure() {
phpize8.4
}

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

pre_configure() {
phpize8.4
}

do_install() {
make INSTALL_ROOT="${DESTDIR}" install
vlicense COPYING
}
3 changes: 3 additions & 0 deletions srcpkgs/php8.4-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.4-imagick/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Template file for 'php8.4-imagick'
pkgname=php8.4-imagick
version=3.7.0
revision=1
build_style=gnu-configure
configure_args="--with-imagick=${XBPS_CROSS_BASE}/usr \
--with-php-config=/usr/bin/php-config8.4"
hostmakedepends="php8.4-devel autoconf pkg-config"
makedepends="php8.4-devel pcre2-devel libmagick-devel"
depends="php8.4"
short_desc="Provides a PHP wrapper to the ImageMagick library"
maintainer="Joel Beckmeyer <[email protected]>"
license="PHP-3.01"
homepage="https://pecl.php.net/package/imagick"
distfiles="https://pecl.php.net/get/imagick-$version.tgz"
checksum=5a364354109029d224bcbb2e82e15b248be9b641227f45e63425c06531792d3e

pre_configure() {
phpize8.4
}

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.4-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.4-intl
1 change: 1 addition & 0 deletions srcpkgs/php8.4-ldap
3 changes: 3 additions & 0 deletions srcpkgs/php8.4-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.4-mongodb/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Template file for 'php8.4-mongodb'
pkgname=php8.4-mongodb
version=1.20.1
revision=1
build_style=gnu-configure
configure_args="--with-php-config=/usr/bin/php-config8.4"
hostmakedepends="php8.4-devel autoconf pkg-config"
makedepends="php8.4-devel pcre2-devel openssl-devel"
depends="php8.4"
short_desc="Official MongoDB PHP driver"
maintainer="Joel Beckmeyer <[email protected]>"
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=614e57594918feb621f525e6516d59ce09b78f5172355ba8afb6c2207c1ce900

pre_configure() {
phpize8.4
}

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

post_install() {
vdoc "${FILESDIR}/README.voidlinux"
}
1 change: 1 addition & 0 deletions srcpkgs/php8.4-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.4-mysql
1 change: 1 addition & 0 deletions srcpkgs/php8.4-odbc
1 change: 1 addition & 0 deletions srcpkgs/php8.4-pear
1 change: 1 addition & 0 deletions srcpkgs/php8.4-pgsql
1 change: 1 addition & 0 deletions srcpkgs/php8.4-phpdbg
3 changes: 3 additions & 0 deletions srcpkgs/php8.4-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.4-redis/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Template file for 'php8.4-redis'
pkgname=php8.4-redis
version=6.1.0
revision=1
build_style=gnu-configure
configure_args="--with-php-config=/usr/bin/php-config8.4"
hostmakedepends="php8.4-devel autoconf pkg-config"
makedepends="php8.4-devel"
depends="php8.4"
short_desc="PHP extension for Redis"
maintainer="Joel Beckmeyer <[email protected]>"
license="PHP-3.01"
homepage="https://pecl.php.net/package/redis"
distfiles="https://pecl.php.net/get/redis-$version.tgz"
checksum=f10405f639fe415e9ed4ec99538e72c90694d8dbd62868edcfcd6a453466b48c

pre_configure() {
phpize8.4
}

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

post_install() {
vdoc $FILESDIR/README.voidlinux
}
1 change: 1 addition & 0 deletions srcpkgs/php8.4-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.4-snmp
1 change: 1 addition & 0 deletions srcpkgs/php8.4-sodium
1 change: 1 addition & 0 deletions srcpkgs/php8.4-sqlite
1 change: 1 addition & 0 deletions srcpkgs/php8.4-tidy
1 change: 1 addition & 0 deletions srcpkgs/php8.4-xsl
13 changes: 13 additions & 0 deletions srcpkgs/php8.4/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.4/files/php-fpm8.4/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
[ -r conf ] && . ./conf
exec php-fpm8.4 --nodaemonize ${OPTS}
28 changes: 28 additions & 0 deletions srcpkgs/php8.4/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 e45b22b..a37fd4f 100644
--- a/build/php.m4
+++ b/build/php.m4
@@ -1958,7 +1958,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"],
@@ -1974,10 +1978,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
Loading