From a87b75296d9dfd70ef2294c7d68ab30a10729720 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Sun, 18 Jun 2023 00:16:14 +0200 Subject: [PATCH] Add support for ext-uv (#758) --- MAINTAINERS.md | 5 +++++ data/supported-extensions | 1 + install-php-extensions | 17 +++++++++++++++++ 3 files changed, 23 insertions(+) diff --git a/MAINTAINERS.md b/MAINTAINERS.md index 6f303be..18e9423 100644 --- a/MAINTAINERS.md +++ b/MAINTAINERS.md @@ -115,6 +115,11 @@ The `pdo_sqlsrv` and `sqlsrv` PHP extensions require the Microsoft ODBC Driver f On Alpine Linux there's no way to automatically install its latest version, so we install it manually. We need to monitor new releases at https://docs.microsoft.com/en-us/sql/connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server#alpine18 +### uv + +The only available versions of the `uv` PHP extension are all beta. +We should switch to the stable release once it will be available. + ## xdiff The `xdiff` PHP extension uses the LibXDiff library. diff --git a/data/supported-extensions b/data/supported-extensions index f3453b2..33ef033 100644 --- a/data/supported-extensions +++ b/data/supported-extensions @@ -116,6 +116,7 @@ timezonedb 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 uopz 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 uploadprogress 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 uuid 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 +uv 8.0 8.1 8.2 vips 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 wddx 5.5 5.6 7.0 7.1 7.2 7.3 xdebug 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 diff --git a/install-php-extensions b/install-php-extensions index 545ec07..cd8c588 100755 --- a/install-php-extensions +++ b/install-php-extensions @@ -1336,6 +1336,14 @@ buildRequiredPackageLists() { uuid@debian) buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile uuid-dev" ;; + uv@alpine) + buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libuv" + buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libuv-dev" + ;; + uv@debian) + buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libuv1" + buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libuv1-dev" + ;; vips@alpine) buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent vips" buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile vips-dev" @@ -3571,6 +3579,15 @@ installRemoteModule() { fi fi ;; + uv) + if test -z "$installRemoteModule_version"; then + if test $PHP_MAJMIN_VERSION -lt 800; then + installRemoteModule_version=0.2.4 + else + installRemoteModule_version=beta + fi + fi + ;; xdebug) if test -z "$installRemoteModule_version"; then if test $PHP_MAJMIN_VERSION -le 500; then