Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 940931 - net-analyzer/rrdtool: building with "perl" but without "graph" renders the RRDs perl module unusable
Summary: net-analyzer/rrdtool: building with "perl" but without "graph" renders the RR...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2024-10-06 09:44 UTC by kfm
Modified: 2025-03-01 01:14 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
perl -V output (perl-V.txt,8.04 KB, text/plain)
2024-10-06 09:47 UTC, kfm
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kfm 2024-10-06 09:44:10 UTC
Since upgrading to perl-5.40.0, I am unable to use the perl API provided by rrdtool.

# qlist -Ive rrdtool perl
dev-lang/perl-5.40.0
net-analyzer/rrdtool-1.9.0

# qlist -e rrdtool | grep '\.pm$'
/usr/lib64/perl5/vendor_perl/5.40/x86_64-linux/RRDs.pm
/usr/lib64/perl5/vendor_perl/5.40/RRDp.pm

# perl -MRRDs -e 1
Can't load '/usr/lib64/perl5/vendor_perl/5.40/x86_64-linux/auto/RRDs/RRDs.so' for module RRDs: /usr/lib64/perl5/vendor_perl/5.40/x86_64-linux/auto/RRDs/RRDs.so: undefined symbol: rrd_xport at /usr/lib64/perl5/5.40/x86_64-linux/DynaLoader.pm line 206.
 at -e line 0.
Compilation failed in require.
BEGIN failed--compilation aborted.

As an additional data point, Arch Linux provides the same versions of perl and rrdtool and exhibits no such problem. I'm not yet sure as to why.
Comment 1 kfm 2024-10-06 09:47:03 UTC
Created attachment 904952 [details]
perl -V output
Comment 2 kfm 2024-10-06 10:19:21 UTC
Fortunately, it's not a 5.40.0 regression. The solution is to have the "perl" USE flag require that the "graph" flag also be enabled. That is, the combination of USE="perl -graph" should not be tolerated.
Comment 3 kfm 2024-10-06 10:25:30 UTC
One more thing. I would strongly advise checking whether this is an issue for the other bindings also (python, ruby, lua, tcl).
Comment 4 Larry the Git Cow gentoo-dev 2025-03-01 01:14:38 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a3cf7f5b409fe31883c54e9bf2a1032e9288df97

commit a3cf7f5b409fe31883c54e9bf2a1032e9288df97
Author:     Alfred Wingate <parona@protonmail.com>
AuthorDate: 2025-02-15 04:59:09 +0000
Commit:     Conrad Kostecki <conikost@gentoo.org>
CommitDate: 2025-03-01 00:50:29 +0000

    net-analyzer/rrdtool: add missing requirement for perl, add more tests
    
    * Add missing perl? ( graph ) requirement. Other bindings unaffected.
    * Add testing for other bindings and remove graph requirement from
      tests. This would hopefully catch breakage like this quicker.
    * As a bonus build python bindings for multiple implementations.
    
    Bug: https://bugs.gentoo.org/940931
    Signed-off-by: Alfred Wingate <parona@protonmail.com>
    Signed-off-by: Conrad Kostecki <conikost@gentoo.org>

 net-analyzer/rrdtool/Manifest                |   1 +
 net-analyzer/rrdtool/rrdtool-1.9.0-r1.ebuild | 283 +++++++++++++++++++++++++++
 2 files changed, 284 insertions(+)