modpython support missing from Ganglia

Bug #1894045 reported by Andy Botting
30
This bug affects 6 people
Affects Status Importance Assigned to Milestone
ganglia (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

The Python module checks scripts from the ganglia-monitor-python package are effectively useless as libganglia1 does not include /usr/lib/ganglia/modpython.so, which it did in Bionic.

The packages from 19.10 appear to be the same upstream Ganglia version, but do include Python support and in fact, appear to work fine when installed on Focal.

Is it possible to include the Python support again to these packages in Focal, or has it been dropped because it depends on Python 2.7?

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ganglia (Ubuntu):
status: New → Confirmed
Revision history for this message
Niklas Edmundsson (niklas-edmundsson) wrote :

This indeed has to be a packaging bug. The last changelog entry says "Build using python2" but there is no dependency of anything python in the ganglia-monitor package:

Depends: libapr1 (>= 1.2.7), libc6 (>= 2.14), libconfuse2 (>= 3.2.1~), libganglia1 (= 3.6.0-7ubuntu4), libpcre3, zlib1g (>= 1:1.1.4), adduser

So, this package needs to be rebuilt correctly on focal to really build with python2 so modpython.so gets built.

Revision history for this message
Roger Oscarsson (roger-oscarsson) wrote :

Easiest fix is just adding python-dev-is-python2 to build dependencies instead of python2-dev. This creates the magic link that makes the configure script think that python is available.

Debian source/build package uses python-dev instead, but that is just a virtual package which ends up being either python-dev-is-python2 or python-dev-is-python3. But python3 does not work since the configure script uses print without parentheses.

If one is willing one look into if the python binary is actually needed. Since modpython.so is just a plugin for ganglia it should just use libpython2 and that is what configure should look for. But that might be too much work.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.