kpcli.rd: missing resource "File::KDBX" #166174
Labels
bug
Reproducible Homebrew/homebrew-core bug
help wanted
Task(s) needing PRs from the community or maintainers
outdated
PR was locked due to age
stale
No recent activity
brew gist-logs <formula>
link ORbrew config
ANDbrew doctor
outputVerification
brew doctor
output saysYour system is ready to brew.
and am still able to reproduce my issue.brew update
and am still able to reproduce my issue.brew doctor
and that did not fix my problem.What were you trying to do (and why)?
I try to run kpcli (installed by homebrew) with a .kbdx file, which I created with KeePassXC.
The problem is that kpcli 4.0 needs the File::KDBX perl module in order to open .kdbx (KDBX4) files, which is missing in the formula resources. File::KeePass is included, which is needed for .kdb files, but not File::KDBX.
What happened (include all command output)?
kpcli gives an error message when I open a .kdbx file. This is because it cannot find the File::KDBX module. I have installed File::KDBX manually (with cpan), but /usr/local/bin/kpci (the front-end script installed by homebrew) because it sets PERL5LIB to "/usr/local/Cellar/kpcli/4.0_1/libexec/lib:/usr/local/Cellar/kpcli/4.0_1/libexec/lib/perl5". There is no File/KDBX in this path, because it is missing in the formula.
KeePass CLI (kpcli) v4.0 is ready for operation.
Type 'help' for a description of available commands.
Type 'help ' for details on individual commands.
kpcli:/> open foo.kdbx
Error opening file: Perl module File::KDBX is required for KDBX4 support.
Without it, KDBX4 files can only be imported.
What did you expect to happen?
If I run the kpci-4.0.pl script directly (downloaded from source, exactly the same as the back-end script installed by homebrew - with a fix in the perl executable path in order to make it equivalent to the homebrew script), I can open the same .kbdx file without error. File::KDBX has been installed manually, as before.
KeePass CLI (kpcli-4.0) v4.0 is ready for operation.
Type 'help' for a description of available commands.
Type 'help ' for details on individual commands.
Term::ReadLine::Gnu will provide better functionality.
kpcli-4.0:/> open foo.kdbx
Provide the master password: *************************
kpcli-4.0:/Root>
Step-by-step reproduction instructions (by running
brew
commands)The text was updated successfully, but these errors were encountered: