From 9b24025eabee33c8b1d819ba0b199a800635f0ea Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Fri, 20 Dec 2019 15:01:47 +0100 Subject: [PATCH] Fix amqp for Debian 8 (Jessie) Test: amqp --- install-php-extensions | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/install-php-extensions b/install-php-extensions index 6cc77ba..b8742df 100755 --- a/install-php-extensions +++ b/install-php-extensions @@ -214,7 +214,7 @@ buildRequiredPackageLists () { buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile rabbitmq-c-dev" ;; amqp@debian) - buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent librabbitmq4" + buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent librabbitmq[0-9]" buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile librabbitmq-dev libssh-dev" ;; bz2@alpine) @@ -873,7 +873,16 @@ installPECLModule () { installPECLModule_actual="$2" installPECLModule_stdin='\n' installPECLModule_manuallyInstalled=0 + installPECLModule_distroVersion="$(getDistroVersion)" case "$2" in + amqp) + case "$installPECLModule_distroVersion" in + debian@8) + # in Debian Jessie we have librammitmq version 0.5.2 + installPECLModule_actual="$2-1.9.3" + ;; + esac + ;; apcu) if test $1 -le 506; then installPECLModule_actual="$2-4.0.11"