Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kpcli.rd: missing resource "File::KDBX" #166174

Closed
4 tasks done
georgeef opened this issue Mar 15, 2024 · 1 comment
Closed
4 tasks done

kpcli.rd: missing resource "File::KDBX" #166174

georgeef opened this issue Mar 15, 2024 · 1 comment
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

Comments

@georgeef
Copy link

georgeef commented Mar 15, 2024

brew gist-logs <formula> link OR brew config AND brew doctor output

> brew config
HOMEBREW_VERSION: 4.2.9
ORIGIN: https://github.com/Homebrew/brew
HEAD: e5fefd73cd97cd36ae3af29551f529ae59b333d6
Last commit: 4 weeks ago
Core tap JSON: 23 Feb 00:33 UTC
Core cask tap JSON: 23 Feb 00:33 UTC
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 8
HOMEBREW_NO_AUTO_UPDATE: set
Homebrew Ruby: 3.1.4 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/3.1.4/bin/ruby
CPU: octa-core 64-bit icelake
Clang: 15.0.0 build 1500
Git: 2.39.3 => /Applications/Xcode.app/Contents/Developer/usr/bin/git
Curl: 8.4.0 => /usr/bin/curl
macOS: 14.3.1-x86_64
CLT: 15.3.0.0.1.1708646388
Xcode: 15.3

> brew doctor
[a few warnings about deprecated formulas]
[a few warnings about unlinked kegs]
[no errors; nothing relevant to the issue]
[It doesn't say Your system is ready to brew, but this is not the problem; see the reason below.]

The same issue appears in an arm64 macOS, only the paths are different. In this system I have a recent homebrew installation and brew doctor says Your system is ready to brew.

Verification

  • My brew doctor output says Your system is ready to brew. and am still able to reproduce my issue.
  • I ran brew update and am still able to reproduce my issue.
  • I have resolved all warnings from brew doctor and that did not fix my problem.
  • I searched for recent similar issues at https://github.com/Homebrew/homebrew-core/issues?q=is%3Aissue and found no duplicates.

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.

kpcli

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.

  • To import a KDBX v4 file, use the import command.
  • For details, see: help import

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.

kpcli-4.0.pl

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.

  • NOTE: You are using Term::ReadLine::Perl.
    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)

brew install kpcli
kpcli --kdb foo.kdbx
@georgeef georgeef added the bug Reproducible Homebrew/homebrew-core bug label Mar 15, 2024
Copy link
Contributor

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@github-actions github-actions bot added the stale No recent activity label Apr 10, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 17, 2024
@ZhongRuoyu ZhongRuoyu added the help wanted Task(s) needing PRs from the community or maintainers label Apr 17, 2024
@github-actions github-actions bot added the outdated PR was locked due to age label May 18, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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
Projects
None yet
Development

No branches or pull requests

3 participants
@georgeef @ZhongRuoyu and others