The ebuild doesn't install the files from run/lib/*.pm which are needed for the perl scripts to run. Reproducible: Always Steps to Reproduce: 1. Install johntheripper-jumbo 2. pdf2john.pl any.pdf Actual Results: Error message: Can't locate ExifTool.pm in @INC (...) Expected Results: Pdf file hash output pdf2john ships its own ExifTool.pm in the run/lib directory. This seems to be much different from media-libs/exiftool which is useless for this case.
Could it be a problem with the path(s)? pdf2john.pl Can't locate ExifTool.pm in @INC (you may need to install the ExifTool module) (@INC contains: /usr/share/john/lib /etc/perl /usr/local/lib64/perl5/5.34/aarch64-linux-thread-multi /usr/local/lib64/perl5/5.34 /usr/lib64/perl5/vendor_perl/5.34/aarch64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.34 /usr/lib64/perl5 /5.34/aarch64-linux-thread-multi /usr/lib64/perl5/5.34) at /usr/bin/pdf2john.pl line 40. BEGIN failed--compilation aborted at /usr/bin/pdf2john.pl line 40. cd /usr/lib64/perl5/vendor_perl/5.34 cp Image/ExifTool.pm . pdf2john.pl Name "ExifTool::langs" used only once: possible typo at /usr/bin/pdf2john.pl line 772. Name "ExifTool::charsetName" used only once: possible typo at /usr/bin/pdf2john.pl line 590. Name "ExifTool::langName" used only once: possible typo at /usr/bin/pdf2john.pl line 772. Name "ExifTool::configFile" used only once: possible typo at /usr/bin/pdf2john.pl line 37. Can't locate object method "new" via package "ExifTool" at /usr/bin/pdf2john.pl line 404.
As far as I understand this could be related: * https://bugs.archlinux.org/task/63626 * https://github.com/openwall/john/issues/4089
I found a workaround for me: sudo bash mkdir /usr/share/john/lib cd /usr/share/john/lib wget https://github.com/openwall/john/raw/bleeding-jumbo/run/lib/RandomAccess.pm wget https://github.com/openwall/john/raw/bleeding-jumbo/run/lib/PDF.pm wget https://github.com/openwall/john/raw/bleeding-jumbo/run/lib/ExifTool.pm If I understand it right: > Yes, the exif lib distributed with john isn't anything similar or compatible to the latest official Image::ExifTool module, in fact it was never meant to be compatible as the use statement explicitly just includes ExifTool instead of Image::ExifTool. from: https://github.com/openwall/john/issues/4089#issuecomment-527456862
(In reply to korte from comment #1) > Could it be a problem with the path(s)? No. The required files are in the workdir under run/lib . They can be installed from there into /usr/share/john/lib (no need for downloading them separately).
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=000432917e31a8f0dbbacde06951ac9a70342be7 commit 000432917e31a8f0dbbacde06951ac9a70342be7 Author: matoro <matoro@users.noreply.github.com> AuthorDate: 2022-09-18 03:29:25 +0000 Commit: Rick Farina <zerochaos@gentoo.org> CommitDate: 2022-10-02 02:10:44 +0000 app-crypt/johntheripper-jumbo: install bundled perl deps Several perl scripts e.g. pdf2john.pl need these local bundled perl deps installed. They are pretty heavily forked from the original upstream versions, and locally contained to this package. Closes: https://bugs.gentoo.org/830660 Signed-off-by: Rick Farina <zerochaos@gentoo.org> .../johntheripper-jumbo-1.9.0_p20211129-r1.ebuild | 159 +++++++++++++++++++++ 1 file changed, 159 insertions(+)