Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#878066: ganglia-webfrontend: not compatible with PHP 7

52 views
Skip to first unread message

Rike-Benjamin Schuppner

unread,
Oct 9, 2017, 7:40:03 AM10/9/17
to
Package: ganglia-webfrontend
Version: 3.6.1-3
Severity: normal

Hi,

The ganglia-webfrontend code contains calls to split() which is not
available in PHP 7 anymore (and therefore breaks on Debian 9) as can be
seen by accessing http://localhost/ganglia/api/host.php?action=list.

A quick fix seems to be to replace split() with explode() in
/usr/share/ganglia-webfrontend/api/host.php.



-- System Information:
Debian Release: 9.2
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages ganglia-webfrontend depends on:
ii apache2 [httpd-cgi] 2.4.25-3+deb9u3
ii debconf 1.5.61
ii libapache2-mod-php 1:7.0+49
ii libapache2-mod-php7.0 [libapache2-mod-php] 7.0.19-1
ii php-xml 1:7.0+49
ii php7.0 [php] 7.0.19-1
ii php7.0-xml [php-xml] 7.0.19-1
ii rrdtool 1.6.0-1+b2

Versions of packages ganglia-webfrontend recommends:
ii gmetad 3.6.0-7+b1
ii php-gd 1:7.0+49
ii php7.0-gd [php-gd] 7.0.19-1

ganglia-webfrontend suggests no packages.

-- debconf information excluded

Jochen Hein

unread,
Dec 1, 2018, 3:20:03 PM12/1/18
to
Package: ganglia-webfrontend
Version: 3.6.1-3
Followup-For: Bug #878066

Upstream seems to have this fixed with this commit:
https://github.com/ganglia/ganglia-web/commit/c5e5831d23c6db0b04a868578680b32cb03ee952#diff-6e9d3d41e5bc04968be8f28e0b6f7a1a

- list( $_cluster, $_host ) = split( '/', $v );
+ list( $_cluster, $_host ) = str_split( '/', $v );

The patch is from 2016, but no new upstream release with this fix.

Jochen Hein

unread,
Jan 13, 2019, 1:50:02 AM1/13/19
to
Package: ganglia-webfrontend
Version: 3.6.1-3
Followup-For: Bug #878066

I've just upgraded my Ganglia server to buster. Another needed patch is
https://github.com/ganglia/ganglia-web/commit/13d426bcf66fb0f27d44847154ba2180884edcd6


-- System Information:
Debian Release: buster/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages ganglia-webfrontend depends on:
ii apache2 [httpd-cgi] 2.4.37-1
ii debconf 1.5.69
ii libapache2-mod-php7.3 [libapache2-mod-php] 7.3.0-2
ii php 2:7.3+69
ii php-xml 2:7.3+69
ii php7.3 [php] 7.3.0-2
ii php7.3-xml [php-xml] 7.3.0-2
ii rrdtool 1.7.0-1+b3

Versions of packages ganglia-webfrontend recommends:
ii gmetad 3.6.0-7+b2
ii php-gd 2:7.3+69
ii php7.3-gd [php-gd] 7.3.0-2

Jochen Kellner

unread,
Mar 7, 2022, 1:40:04 PM3/7/22
to
Package: ganglia-webfrontend
Followup-For: Bug #878066

Dear Maintainer,

the bug report talks about two needed changes:
1. https://github.com/ganglia/ganglia-web/commit/c5e5831d23c6db0b04a868578680b32cb03ee952#diff-6e9d3d41e5bc04968be8f28e0b6f7a1a
- list( $_cluster, $_host ) = split( '/', $v );
+ list( $_cluster, $_host ) = str_split( '/', $v );
2. https://github.com/ganglia/ganglia-web/commit/13d426bcf66fb0f27d44847154ba2180884edcd6
- $context_metrics = "";
+ $context_metrics = array();

Both changes are in 3.7.5+debian-3, so I suggest to finally close the bug.

Thanks,
Jochen

-- System Information:
Debian Release: 11.2
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.0-11-amd64 (SMP w/4 CPU threads)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages ganglia-webfrontend depends on:
ii apache2 [httpd-cgi] 2.4.52-1~deb11u2
ii debconf [debconf-2.0] 1.5.77
ii libapache2-mod-php 2:8.1+92+0~20220117.43+debian11~1.gbpe0d14e
ii libapache2-mod-php7.4 [libapac 7.4.28-1+deb11u1
ii libapache2-mod-php8.1 [libapac 8.1.3-1+0~20220223.13+debian11~1.gbp7757b9
ii libjs-chosen 1.8.7+dfsg-2
ii libjs-d3 3.5.17-4
ii libjs-jquery 3.5.1+dfsg+~3.5.5-7
ii libjs-jquery-cookie 12-3
ii libjs-jquery-flot 4.2.1+dfsg-5
ii libjs-jquery-jstree 3.3.11+dfsg1-1
ii libjs-jquery-mobile 1.4.5+dfsg-1
ii libjs-jquery-scrollto 2.1.2+dfsg-6
ii libjs-jquery-ui 1.12.1+dfsg-8+deb11u1
ii libjs-jstimezonedetect 1.0.6-5
ii libjs-moment 2.29.1+ds-2
ii libjs-moment-timezone 0.5.32+dfsg1-2+2021a
ii libjs-rickshaw 1.5.1.dfsg-4
ii libjs-select2.js 4.0.13+dfsg1-4
ii php 2:8.1+92+0~20220117.43+debian11~1.gbpe0d14e
ii php-xml 2:8.1+92+0~20220117.43+debian11~1.gbpe0d14e
ii php7.4 [php] 7.4.28-1+deb11u1
ii php7.4-xml [php-xml] 7.4.28-1+deb11u1
ii php8.1 [php] 8.1.3-1+0~20220223.13+debian11~1.gbp7757b9
ii php8.1-xml [php-xml] 8.1.3-1+0~20220223.13+debian11~1.gbp7757b9
ii rrdtool 1.7.2-3+b7

Versions of packages ganglia-webfrontend recommends:
ii gmetad 3.7.2-4
ii php-gd 2:8.1+92+0~20220117.43+debian11~1.gbpe0d14e
ii php7.4-gd [php-gd] 7.4.28-1+deb11u1
ii php8.1-gd [php-gd] 8.1.3-1+0~20220223.13+debian11~1.gbp7757b9
0 new messages