Bug 263565 - print/latex-biber: Fails to run: missing perl modules: Can't locate <extension>
Summary: print/latex-biber: Fails to run: missing perl modules: Can't locate <extension>
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Tex Mailing List (Nobody)
URL:
Keywords: needs-patch, needs-qa
Depends on:
Blocks:
 
Reported: 2022-04-25 14:55 UTC by Robert Clausecker
Modified: 2023-12-04 13:10 UTC (History)
3 users (show)

See Also:
bugzilla: maintainer-feedback? (tex)
koobs: merge-quarterly?


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Clausecker freebsd_committer freebsd_triage 2022-04-25 14:55:26 UTC
When running biber on one of my files, I got the following error messages:

$ biber pospop
Can't locate Class/Accessor.pm in @INC (you may need to install the Class::Accessor module) (@INC contains: /usr/local/lib/perl5/site_perl/mach/5.32 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.32/mach /usr/local/lib/perl5/5.32) at /usr/local/lib/perl5/5.32/parent.pm line 16.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/Biber.pm line 5.

After installing p5-Class-Accessor:

$ biber pospop                                                             
Can't locate DateTime.pm in @INC (you may need to install the DateTime module) (@INC contains: /usr/local/lib/perl5/site_perl/mach/5.32 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.32/mach /usr/local/lib/perl5/5.32) at /usr/local/lib/perl5/site_perl/Biber/Date/Format.pm line 6.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/Biber/Date/Format.pm line 6.
Compilation failed in require at /usr/local/lib/perl5/site_perl/Biber/Constants.pm line 10.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/Biber/Constants.pm line 10.
Compilation failed in require at /usr/local/lib/perl5/site_perl/Biber/Internals.pm line 7.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/Biber/Internals.pm line 7.
Compilation failed in require at /usr/local/lib/perl5/5.32/parent.pm line 16.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/Biber.pm line 5.
Compilation failed in require at /usr/local/bin/biber line 17.
BEGIN failed--compilation aborted at /usr/local/bin/biber line 17.

After installing p5-DateTime:
$ biber pospop                                                             
Can't locate DateTime/Format/Builder.pm in @INC (you may need to install the DateTime::Format::Builder module) (@INC contains: /usr/local/lib/perl5/site_perl/mach/5.32 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.32/mach /usr/local/lib/perl5/5.32) at /usr/local/lib/perl5/site_perl/Biber/Date/Format.pm line 8.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/Biber/Date/Format.pm line 8.
Compilation failed in require at /usr/local/lib/perl5/site_perl/Biber/Constants.pm line 10.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/Biber/Constants.pm line 10.
Compilation failed in require at /usr/local/lib/perl5/site_perl/Biber/Internals.pm line 7.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/Biber/Internals.pm line 7.
Compilation failed in require at /usr/local/lib/perl5/5.32/parent.pm line 16.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/Biber.pm line 5.
Compilation failed in require at /usr/local/bin/biber line 17.
BEGIN failed--compilation aborted at /usr/local/bin/biber line 17.


After installing p5-DateTime-Format-Builder:

$ biber pospop                                                             
Can't locate DateTime/Calendar/Julian.pm in @INC (you may need to install the DateTime::Calendar::Julian module) (@INC contains: /usr/local/lib/perl5/site_perl/mach/5.32 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.32/mach /usr/local/lib/perl5/5.32) at /usr/local/lib/perl5/site_perl/Biber/Date/Format.pm line 9.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/Biber/Date/Format.pm line 9.
Compilation failed in require at /usr/local/lib/perl5/site_perl/Biber/Constants.pm line 10.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/Biber/Constants.pm line 10.
Compilation failed in require at /usr/local/lib/perl5/site_perl/Biber/Internals.pm line 7.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/Biber/Internals.pm line 7.
Compilation failed in require at /usr/local/lib/perl5/5.32/parent.pm line 16.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/Biber.pm line 5.
Compilation failed in require at /usr/local/bin/biber line 17.
BEGIN failed--compilation aborted at /usr/local/bin/biber line 17.

After installing p5-DateTime-Calendar-Julian:

$ biber pospop                                                             
Can't locate Text/CSV.pm in @INC (you may need to install the Text::CSV module) (@INC contains: /usr/local/lib/perl5/site_perl/mach/5.32 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.32/mach /usr/local/lib/perl5/5.32) at /usr/local/lib/perl5/site_perl/Biber/Constants.pm line 11.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/Biber/Constants.pm line 11.
Compilation failed in require at /usr/local/lib/perl5/site_perl/Biber/Internals.pm line 7.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/Biber/Internals.pm line 7.
Compilation failed in require at /usr/local/lib/perl5/5.32/parent.pm line 16.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/Biber.pm line 5.
Compilation failed in require at /usr/local/bin/biber line 17.
BEGIN failed--compilation aborted at /usr/local/bin/biber line 17.

After installing p5-Text-CSV:

$ biber pospop                                                             
Can't locate Data/Uniqid.pm in @INC (you may need to install the Data::Uniqid module) (@INC contains: /usr/local/lib/perl5/site_perl/mach/5.32 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.32/mach /usr/local/lib/perl5/5.32) at /usr/local/lib/perl5/site_perl/Biber/Entry/Name.pm line 14.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/Biber/Entry/Name.pm line 14.
Compilation failed in require at /usr/local/lib/perl5/site_perl/Biber/Utils.pm line 20.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/Biber/Utils.pm line 20.
Compilation failed in require at /usr/local/lib/perl5/site_perl/Biber/Internals.pm line 8.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/Biber/Internals.pm line 8.
Compilation failed in require at /usr/local/lib/perl5/5.32/parent.pm line 16.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/Biber.pm line 5.
Compilation failed in require at /usr/local/bin/biber line 17.
BEGIN failed--compilation aborted at /usr/local/bin/biber line 17.

After installing p5-Data-Uniqid:

$ biber pospop                                                             
Can't locate Parse/RecDescent.pm in @INC (you may need to install the Parse::RecDescent module) (@INC contains: /usr/local/lib/perl5/site_perl/mach/5.32 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.32/mach /usr/local/lib/perl5/5.32) at /usr/local/lib/perl5/site_perl/Biber/LangTags.pm line 7.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/Biber/LangTags.pm line 7.
Compilation failed in require at /usr/local/lib/perl5/site_perl/Biber.pm line 22.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/Biber.pm line 22.
Compilation failed in require at /usr/local/bin/biber line 17.
BEGIN failed--compilation aborted at /usr/local/bin/biber line 17.

After installing p5-Parse-RecDescent:

$ biber pospop                                                             
Can't locate Sort/Key.pm in @INC (you may need to install the Sort::Key module) (@INC contains: /usr/local/lib/perl5/site_perl/mach/5.32 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.32/mach /usr/local/lib/perl5/5.32) at /usr/local/lib/perl5/site_perl/Biber.pm line 41.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/Biber.pm line 41.
Compilation failed in require at /usr/local/bin/biber line 17.
BEGIN failed--compilation aborted at /usr/local/bin/biber line 17.

After installing p5-Sort-Key it finally worked.
Seems like the dependency list of this port needs to be updated to account for these packages.
Comment 1 rfcantao@gmail.com 2022-05-20 14:35:10 UTC
I can confirm this behavior on a new installation of 13.0-RELEASE, updated to 13.1-RELEASE.

After manually installing all needed Perl5 packages, landed on bug #263134.
Comment 2 Maja Reberc 2022-07-23 15:10:35 UTC
I confirm the same behaviour on 13.1-RELEASE.

For convenience, I am providing a condensed list of packages I had to install and should probably be added as dependencies of biber:

p5-Class-Accessor
p5-DateTime
p5-DateTime-Format-Builder
p5-DateTime-Calendar-Julian
p5-Text-CSV
p5-File-Slurper
p5-Data-Uniqid
p5-Parse-RecDescent
p5-Sort-Key

After the required Perl modules were installed, I've encountered bug #263134.
Comment 3 Rainer Hurling freebsd_committer freebsd_triage 2023-12-03 07:12:44 UTC
(In reply to Maja Reberc from comment #2)

The missing dependencies were added in commit [1] from 2022-09-30. Unfortunately I had not mentioned this patch here, sorry for that. Also bug #263134 seems to be fixed.

Can you please check whether Latex-Biber is now building and working correctly. If so, I would like to close the PR, thank you.

[1] https://cgit.freebsd.org/ports/commit/?id=0db54da92864b0e4f649f36653d704d753142a06
Comment 4 Robert Clausecker freebsd_committer freebsd_triage 2023-12-03 08:11:35 UTC
Seems to work now, thanks!
Comment 5 rfcantao@gmail.com 2023-12-04 13:10:28 UTC
Thank you very much for your time sorting this out! Unfortunatelly I'm not using FreeBSD right now, so I cannot check, but I'll go with Robert.
Cheers!