Opened 11 years ago

Closed 10 years ago

Last modified 10 years ago

#42498 closed defect (fixed)

rrdtool: generating perl lib only for 5.12, depending ports need to adjust

Reported by: jul_bsd@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc: cooljeanius (Eric Gallager)
Port: rrdtool

Description

$ port contents rrdtool|grep RRDs.pm
  /opt/local/lib/perl5/vendor_perl/5.12.4/darwin-thread-multi-2level/RRDs.pm

as a result, other port should also be restricted to the same perl version like argus-clients (ragraph which by default executes w 5.16).

$ ragraph
Can't locate RRDs.pm in @INC (@INC contains: /Library/Perl/5.16/darwin-thread-multi-2level /Library/Perl/5.16 /Network/Library/Perl/5.16/darwin-thread-multi-2level /Network/Library/Perl/5.16 /Library/Perl/Updates/5.16.2 /System/Library/Perl/5.16/darwin-thread-multi-2level /System/Library/Perl/5.16 /System/Library/Perl/Extras/5.16/darwin-thread-multi-2level /System/Library/Perl/Extras/5.16 .) at /opt/local/bin/ragraph line 37.
BEGIN failed--compilation aborted at /opt/local/bin/ragraph line 37.
$ perl5.12 /opt/local/bin/ragraph 
Can't locate RRDs.pm in @INC (@INC contains: /Library/Perl/5.12/darwin-thread-multi-2level /Library/Perl/5.12 /Network/Library/Perl/5.12/darwin-thread-multi-2level /Network/Library/Perl/5.12 /Library/Perl/Updates/5.12.5 /System/Library/Perl/5.12/darwin-thread-multi-2level /System/Library/Perl/5.12 /System/Library/Perl/Extras/5.12/darwin-thread-multi-2level /System/Library/Perl/Extras/5.12 .) at /opt/local/bin/ragraph line 37.
BEGIN failed--compilation aborted at /opt/local/bin/ragraph line 37.
$ perl5.12 -I/opt/local/lib/perl5/vendor_perl/5.12.4/darwin-thread-multi-2level /opt/local/bin/ragraph
usage: /opt/local/bin/ragraph metric(s) object [ragraph-options] [ra-options]

if possible add variant to each perl release?

Thanks

Attachments (1)

patch-rrdtool-Portfile.diff (4.0 KB) - added by jul_bsd@… 10 years ago.

Download all attachments as: .zip

Change History (9)

comment:1 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: markd@… removed
Owner: changed from macports-tickets@… to markd@…

rrdtool does not specify which version of perl to use; this is a bug. And since apparently the modules installed by the rrdtool port are used by other ports, those modules should be split out into a p5-rrdtool port or similar, so that subports can exist for each supported version of perl.

comment:2 Changed 11 years ago by jul_bsd@…

I added variants inside the port.

comment:3 Changed 11 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:4 Changed 10 years ago by jul_bsd@…

any blocking points?

update to 1.4.8; add variant for perl 5.20

Changed 10 years ago by jul_bsd@…

Attachment: patch-rrdtool-Portfile.diff added

comment:5 Changed 10 years ago by mf2k (Frank Schima)

Owner: changed from markd@… to macports-tickets@…

markd has retired. See #44782.

comment:6 Changed 10 years ago by dbevans (David B. Evans)

Resolution: fixed
Status: newclosed

As of r129018, rrdtool now uses perl 5.16. Since we are actively trying to actively remove (or at least reduce) support for multiple perl versions, perl variants are not added at this time.

comment:7 Changed 10 years ago by jul_bsd@…

Ok but why perl 5.16 vs 5.18 or 5.20?

comment:8 Changed 10 years ago by dbevans (David B. Evans)

Because 5.16 is the current default for port perl5. All (non p5*) ports now depend on perl5.16 including ports that depend on rrdtool.

Note: See TracTickets for help on using tickets.