Install the alpha version of zookeeper
parent
5bae34bca3
commit
5ec117a62b
|
@ -103,5 +103,5 @@ We should switch to the stable release once it will be available.
|
||||||
|
|
||||||
### zookeeper
|
### zookeeper
|
||||||
|
|
||||||
The latest stable release of the `zookeeper` PHP extension doesn't support PHP 7.3+, so we install the beta version.
|
The latest stable release of the `zookeeper` PHP extension doesn't support PHP 7.3+, so we install the alpha version.
|
||||||
We should switch to the stable release once it will be available.
|
We should switch to the stable release once it will be available.
|
||||||
|
|
|
@ -2199,16 +2199,32 @@ installRemoteModule() {
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
zookeeper)
|
zookeeper)
|
||||||
|
if test -z "$installRemoteModule_version"; then
|
||||||
|
if test $PHP_MAJMIN_VERSION -le 506; then
|
||||||
|
installRemoteModule_version=0.5.0
|
||||||
|
else
|
||||||
|
installRemoteModule_version=1.0.0
|
||||||
|
fi
|
||||||
|
fi
|
||||||
case "$DISTRO" in
|
case "$DISTRO" in
|
||||||
alpine)
|
alpine)
|
||||||
if ! test -f /usr/local/include/zookeeper/zookeeper.h; then
|
if ! test -f /usr/local/include/zookeeper/zookeeper.h; then
|
||||||
|
if test $(compareVersions "$installRemoteModule_version" 1.0.0) -lt 0; then
|
||||||
|
installRemoteModule_src="$(getPackageSource http://archive.apache.org/dist/zookeeper/zookeeper-3.5.9/apache-zookeeper-3.5.9.tar.gz)"
|
||||||
|
else
|
||||||
installRemoteModule_tmp="$(curl -sSLf https://downloads.apache.org/zookeeper/stable | sed -E 's/["<>]/\n/g' | grep -E '^(apache-)?zookeeper-[0-9]+\.[0-9]+\.[0-9]+\.(tar\.gz|tgz)$' | head -n1)"
|
installRemoteModule_tmp="$(curl -sSLf https://downloads.apache.org/zookeeper/stable | sed -E 's/["<>]/\n/g' | grep -E '^(apache-)?zookeeper-[0-9]+\.[0-9]+\.[0-9]+\.(tar\.gz|tgz)$' | head -n1)"
|
||||||
if test -z "$installRemoteModule_tmp"; then
|
if test -z "$installRemoteModule_tmp"; then
|
||||||
echo 'Failed to detect the zookeeper library URL' >&2
|
echo 'Failed to detect the zookeeper library URL' >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
installRemoteModule_src="$(getPackageSource https://downloads.apache.org/zookeeper/stable/$installRemoteModule_tmp)"
|
installRemoteModule_src="$(getPackageSource https://downloads.apache.org/zookeeper/stable/$installRemoteModule_tmp)"
|
||||||
|
fi
|
||||||
cd -- "$installRemoteModule_src"
|
cd -- "$installRemoteModule_src"
|
||||||
|
if test -d ~/.m2; then
|
||||||
|
installRemoteModule_delm2=n
|
||||||
|
else
|
||||||
|
installRemoteModule_delm2=y
|
||||||
|
fi
|
||||||
mvn -pl zookeeper-jute compile
|
mvn -pl zookeeper-jute compile
|
||||||
cd - >/dev/null
|
cd - >/dev/null
|
||||||
cd -- "$installRemoteModule_src/zookeeper-client/zookeeper-client-c"
|
cd -- "$installRemoteModule_src/zookeeper-client/zookeeper-client-c"
|
||||||
|
@ -2217,16 +2233,12 @@ installRemoteModule() {
|
||||||
make -j$(getProcessorCount) CFLAGS='-Wno-stringop-truncation -Wno-format-overflow'
|
make -j$(getProcessorCount) CFLAGS='-Wno-stringop-truncation -Wno-format-overflow'
|
||||||
make install
|
make install
|
||||||
cd - >/dev/null
|
cd - >/dev/null
|
||||||
|
if test $installRemoteModule_delm2 = y; then
|
||||||
|
rm -rf ~/.m2
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
if test -z "$installRemoteModule_version"; then
|
|
||||||
if test $PHP_MAJMIN_VERSION -le 506; then
|
|
||||||
installRemoteModule_version=0.5.0
|
|
||||||
elif test $PHP_MAJMIN_VERSION -ge 703; then
|
|
||||||
installRemoteModule_version=beta
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
if test $installRemoteModule_manuallyInstalled -eq 0; then
|
if test $installRemoteModule_manuallyInstalled -eq 0; then
|
||||||
|
|
Loading…
Reference in New Issue