Opened 3 years ago

Last modified 3 years ago

#63537 new defect

smokeping uses perl5.30 and uses rrdtool that is using perl5.28

Reported by: pagecp (Christian) Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: Schamschula (Marius Schamschula)
Port: smokeping, rrdtool

Description (last modified by pagecp (Christian))

smokeping needs the perl RRD tools. smokeping uses perl5.30. In the dependencies there is rrdtool, but rrdtool is using perl5.28, so the perl rrd modules are only available for perl5.28, and not perl5.30. This makes configure fail...

checking checking for RRDs perl module... Failed

** Aborting Configure ******************************

   Smokeping requires a copy of rrdtool and its perl module RRDs
   installed for Smokeping to work. Installing rrdtool
   is outside the scope of the package. The easiest is
   to simply install rrdtool from your distro:

   on ubuntu

      sudo apt install rrdtool librrds-perl

   on redhat

      sudo yum install rrdtool perl-rrdtool

   if you install rrdtool from source into a non-standard location
   set PERL5LIB accordingly.
% port info rrdtool
rrdtool @1.7.1 (net)

Description:          RRDtool is a system to store and display time-series data
Homepage:             http://oss.oetiker.ch/rrdtool/

Build Dependencies:   pkgconfig
Library Dependencies: cairo, gettext, glib2, fribidi, libpng, libxml2, pango, tcp_wrappers
Runtime Dependencies: dejavu-fonts, perl5.28
Platforms:            darwin
License:              GPL-2+
Maintainers:          none
% port info smokeping
smokeping @2.8.2 (net, perl)

Description:          SmokePing is a deluxe latency measurement tool. It can measure, store, and display latency, latency distribution, and
                      packet loss. SmokePing uses RRDtool to maintain a longterm data-store and to draw pretty graphs, giving up to the
                      minute information on the state of each network connection.
Homepage:             https://oss.oetiker.ch/smokeping/

Library Dependencies: perl5.30, p5.30-authen-radius, p5.30-cgi-fast, p5.30-config-grammar, p5.30-html-tagset, p5.30-io-html, p5.30-io-tty,
                      p5.30-libwww-perl, p5.30-mozilla-ca, p5.30-net-dns, p5.30-net-ip, p5.30-net-openssh, p5.30-net-radius, p5.30-net-snmp,
                      p5.30-net-telnet, p5.30-perl-ldap, p5.30-pathtools, p5.30-snmp_session, p5.30-xml-sax-base, mod_fcgid, apache2,
                      rrdtool, fping, curl
Platforms:            darwin
License:              GPL-2+
Maintainers:          none
% ls -l /opt/local/lib/perl5/vendor_perl/5.28/RRDp.pm
-r--r--r-- 1 root admin 5497 Feb  4  2019 /opt/local/lib/perl5/vendor_perl/5.28/RRDp.pm
% ls -l /opt/local/lib/perl5/vendor_perl/5.30/RRDp.pm
ls: cannot access '/opt/local/lib/perl5/vendor_perl/5.30/RRDp.pm': No such file or directory

Change History (3)

comment:1 Changed 3 years ago by pagecp (Christian)

Description: modified (diff)

comment:2 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: Schamschula added
Port: smokeping rrdtool added

This change was made by Marius in [49e7dd096dea0480eeefc798b0e9e1569fc9ec94/macports-ports] but his commit message didn't explain why. Where possible, ports that use a single MacPorts perl should use the same version, which per browser:macports-ports/_resources/port1.0/group/perl5-1.0.tcl is still 5.28 at this time but work is underway to update to a more recent version.

If rrdtool provides perl modules that others can use, it should be made available as multiple p5.28-rrdtool, p5.30-rrdtool, p5.32-rrdtool etc. subports.

comment:3 Changed 3 years ago by Schamschula (Marius Schamschula)

The update to perl5.30 was in line with the general update to that Perl version. I agree with Ryan, that perhaps rrdtool needs to support multiple Perl versions.

Note: See TracTickets for help on using tickets.