Opened 14 years ago

Closed 13 years ago

#25583 closed defect (fixed)

munin-1.4.4 munin-update should use macports perl instead of system perl.

Reported by: wlynch@… Owned by: alpha@…
Priority: Normal Milestone:
Component: ports Version: 1.9.1
Keywords: Cc: pranaitis@…
Port: munin

Description

Hello.

When I last updated macports, it began to require Log4Perl. This is not installed in the system perl, but is installed in the macports dependencies. However, munin-update uses the system perl, so it doesn't find it properly.

/opt/local/lib/munin/munin-update begins with the line "#! /usr/bin/perl"

It should begin with the line: "#! /opt/local/bin/perl"

This seemingly breaks the package. (Atleast it did for me).

Change History (10)

comment:1 Changed 14 years ago by wlynch@…

Cc: wlynch@… added

Cc Me!

comment:2 Changed 14 years ago by mf2k (Frank Schima)

Cc: wlynch@… removed
Owner: changed from macports-tickets@… to alpha@…
Port: munin added

comment:3 Changed 14 years ago by wlynch@…

Cc: wlynch@… added

Cc Me!

comment:4 Changed 14 years ago by wlynch@…

Cc: wlynch@… removed

Cc Me!

comment:5 Changed 14 years ago by wlynch@…

I'm really not sure why my cc is getting removed...

This bug also applies to /Island/macports/sbin/munin-node-configure

comment:6 Changed 14 years ago by mf2k (Frank Schima)

The reporter is automatically Cc'ed.

comment:7 Changed 14 years ago by btihen@…

munin-run also seems to have this problem - I was getting complaints that perl modules were not installed.

# #!/usr/bin/perl -wT

so I changed to (taking the lead from the note in this posting)

#!/opt/local/bin/perl -wT

However, even after I change the perl path to the ports path I still get the error:

$ munin-run load Could not open plugin configuration directory: No such file or directory at /opt/local/lib/perl5/site_perl/5.8.9/Munin/Node/Service.pm line 81

if ($config->{sconffile}) {

# only used by munin-run $config->parse_plugin_config_file($config->{sconffile});

} else {

$config->process_plugin_configuration_files(); # line 81

} $config->apply_wildcards(@plugins);

Can you advise me what to try next?

comment:8 Changed 14 years ago by pranaitis@…

Cc: pranaitis@… added

Cc Me!

comment:9 in reply to:  7 Changed 14 years ago by billmoritz@…

Replying to btihen@…:

munin-run also seems to have this problem - I was getting complaints that perl modules were not installed.

# #!/usr/bin/perl -wT

so I changed to (taking the lead from the note in this posting)

#!/opt/local/bin/perl -wT

However, even after I change the perl path to the ports path I still get the error:

$ munin-run load Could not open plugin configuration directory: No such file or directory at /opt/local/lib/perl5/site_perl/5.8.9/Munin/Node/Service.pm line 81

if ($config->{sconffile}) {

# only used by munin-run $config->parse_plugin_config_file($config->{sconffile});

} else {

$config->process_plugin_configuration_files(); # line 81

} $config->apply_wildcards(@plugins);

Can you advise me what to try next?

mkdir /opt/local/etc/munin/plugin-conf.d

sudo -s

munin-node-configure --suggest --shell | sh

comment:10 Changed 13 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.