From 2367aeb690ba4ab7444e125e8d3ed9a47836ffd6 Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Thu, 26 May 2022 09:10:38 +0200 Subject: [PATCH] Add support for xdiff (#579) --- MAINTAINERS.md | 5 +++++ data/supported-extensions | 1 + install-php-extensions | 15 +++++++++++++++ 3 files changed, 21 insertions(+) diff --git a/MAINTAINERS.md b/MAINTAINERS.md index c522bdc..83ce467 100644 --- a/MAINTAINERS.md +++ b/MAINTAINERS.md @@ -110,6 +110,11 @@ We need to monitor new releases at https://docs.microsoft.com/en-us/sql/connect/ The latest stable release of the `ssh2` PHP extension is very old, so we install the latest beta release. We should switch to the stable release once it will be available. +## xdiff + +The `xdiff` PHP extension uses the LibXDiff library. +We need to monitor new releases at http://www.xmailserver.org/xdiff-lib.html + ### zookeeper The latest stable release of the `zookeeper` PHP extension doesn't support PHP 7.3+, so we install the alpha version. diff --git a/data/supported-extensions b/data/supported-extensions index 0d88f46..9bb8399 100644 --- a/data/supported-extensions +++ b/data/supported-extensions @@ -109,6 +109,7 @@ uuid 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 vips 7.0 7.1 7.2 7.3 7.4 8.0 8.1 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 +xdiff 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 xhprof 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 xlswriter 7.0 7.1 7.2 7.3 7.4 8.0 8.1 xmldiff 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 diff --git a/install-php-extensions b/install-php-extensions index 7cca4bd..b8c698e 100755 --- a/install-php-extensions +++ b/install-php-extensions @@ -3244,6 +3244,21 @@ installRemoteModule() { fi fi ;; + xdiff) + if test -z "$installRemoteModule_version"; then + if test $PHP_MAJMIN_VERSION -le 506; then + installRemoteModule_version=1.5.2 + fi + fi + if ! test -f /usr/local/lib/libxdiff.* && ! test -f /usr/lib/libxdiff.* && ! test -f /usr/lib/x86_64*/libxdiff.*; then + installRemoteModule_src="$(getPackageSource http://www.xmailserver.org/libxdiff-0.23.tar.gz)" + cd -- "$installRemoteModule_src" + ./configure --disable-shared --disable-dependency-tracking --with-pic + make -j$(getProcessorCount) + make install + cd - >/dev/null + fi + ;; xhprof) if test -z "$installRemoteModule_version"; then if test $PHP_MAJMIN_VERSION -le 506; then