[rrd-users] RRDs perl library not on CPAN?

Maxwell Carey mcarey at ucar.edu
Thu Sep 10 23:56:16 CEST 2015


On Thu, Sep 10, 2015 at 3:32 PM, Tobias Oetiker <tobi at oetiker.ch> wrote:

> Today Maxwell Carey wrote:
>
> > > Today Cosimo Streppone wrote:
> > >
> > > > I started out by including RRD::Simple, then I noticed it uses
> > > > RRDs.pm under the hood, so I converted my code to it.
> > > >
> > > > I searched for RRDs on the CPAN, but I can't find it,
> > > > not on metacpan nor on search.cpan.org.
> > > >
> > > > Doesn't that make CPAN distributions that need to depend
> > > > on RRDs/RRDtool automatically broken?
> > > >
> > >
> >
> > No more broken than any Perl module that has a dependency on an external
> > library or binary, e.g. SNMP.pm, XML::LibXML, most of the DBD::* modules,
> > the list goes on.
> >
> > If you try to install one of these from CPAN without first installing the
> > dependency, the build will break. This makes sense, if you think about
> it.
> > I wouldn't expect DBD::mysql to install properly if I didn't have the
> MySQL
> > client installed on my system, for example.
>
> so you would want me to maintain packages for each of the scripting
> languages supported by rrdtool (which are tied to features in
> certain versions of the library) independently of the main program
> and keep them updated in the different scripting languages
> repositories ?
>

Nope, not what I'm saying at all, sorry if I was unclear. I was responding
to Cosimo's question, "Doesn't that make CPAN distributions that need to
depend on RRDs/RRDtool automatically broken?" My point was that RRD::Simple
is not "automatically broken" because it's dependent on RRDs/rrdtool, just
like XML::LibXML is not broken because it's dependent on libxml2. Some Perl
modules have external dependencies; if you want to use those modules, you
have to install the dependencies yourself. You can't expect the CPAN shell
to install libxml2 for you, and you can't expect it to install rrdtool for
you either.

The way you're currently packaging RRDs is fine, and I can't imagine it
working very well on CPAN because of the version dependencies you mention.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.oetiker.ch/pipermail/rrd-users/attachments/20150910/7ca5b313/attachment.html>


More information about the rrd-users mailing list