Alexander Schier wrote:
> Try to run munin-node-configure (--shell) without python installed. Then you 
> get an error at the end of output and it does not work as it should. And this 
> script seems needed for the postinst-configuration.
> 
> Alex


Hi Alex,

I reposted your response to the bug, please also CC the bug
(545...@bugs.debian.org) in the future, so all correspondences regarding this
issue will be logged.

I tried to reproduce the problem you have faced, and found out that the
following error occurs when python is not installed, and munin-node-configure
(--shell) is run as part of the munin-node.postinst:

bash -x  munin-node.postinst configure
+ set -e
+ prevver=
+ case "$1" in
+ add_munin_system_user
+ getent passwd munin
+ getent group munin
+ fixperms
+ dpkg-statoverride --list /var/log/munin
+ dpkg-statoverride --list /var/lib/munin
+ dpkg-statoverride --list /var/lib/munin/plugin-state
+ dpkg-statoverride --list /etc/munin/plugin-conf.d
+ init_plugins
++ mktemp /tmp/munin-node.configure.XXXXXXXXXX
+ TMPFILE=/tmp/munin-node.configure.oZQnvRAAgM
+ '[' '' ']'
+ echo -n 'Initializing plugins..'
Initializing plugins..+ munin-node-configure --shell
# There were some errors:
# Got junk from smart_: /usr/bin/env: python: No such file or directory
+ rm -f /tmp/munin-node.configure.oZQnvRAAgM
+ '[' -f /tmp/munin-node.configure.oZQnvRAAgM ']'
+ echo failed.
failed.
+ echo done.
done.
+ rm -f /tmp/munin-node.configure.oZQnvRAAgM
+ echo -n 'Restarting munin-node..'
Restarting munin-node..+ invoke-rc.d munin-node restart
Stopping Munin-Node: done.
Starting Munin-Node: done.
+ '[' -x /etc/init.d/munin-node ']'
+ update-rc.d munin-node defaults 98 20
++ which invoke-rc.d
+ '[' -x /usr/sbin/invoke-rc.d ']'
+ invoke-rc.d munin-node start

This is a known bug (http://bugs.debian.org/539886). Once it's fixed, you
won't face this problem, and plugins will be activated successfully even if
python is not installed.

Regarding the question if python should be recommended instead of suggested as
it is today, according to the debian policy
http://www.debian.org/doc/debian-policy/ch-relationships.html:
---
Recommends: This declares a strong, but not absolute, dependency.
The Recommends field should list packages that would be found together with
this one in all but unusual installations.

Suggests: This is used to declare that one package may be more useful with one
or more others. Using this field tells the packaging system and the user that
the listed packages are related to this one and can perhaps enhance its
usefulness, but that installing this one without them is perfectly reasonable.
----

In this case, python merely provides the ability to run one additional plugin
(the smart_ plugin), which is the only one currently written in python in
munin-node, so suggests seems like the correct place.

In any event, thanks for the bug report.

Regards,
    Tom Feiner

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to