Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 830660 - app-crypt/johntheripper-jumbo-1.9.0: Perl lib files are not installed
Summary: app-crypt/johntheripper-jumbo-1.9.0: Perl lib files are not installed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Rick Farina (Zero_Chaos)
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: 832452
  Show dependency tree
 
Reported: 2022-01-05 22:17 UTC by Daniel Peters
Modified: 2022-10-02 02:24 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Peters 2022-01-05 22:17:00 UTC
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.
Comment 1 korte 2022-01-28 16:28:39 UTC
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.
Comment 2 korte 2022-01-31 21:30:28 UTC
As far as  I understand this could be related:
* https://bugs.archlinux.org/task/63626
* https://github.com/openwall/john/issues/4089
Comment 3 korte 2022-01-31 21:58:36 UTC
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
Comment 4 Daniel Peters 2022-02-02 20:47:06 UTC
(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).
Comment 5 Larry the Git Cow gentoo-dev 2022-10-02 02:24:16 UTC
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(+)