Skip to content

github-keygen missing some dependency, cannot run after installation #219910

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

Closed
4 tasks done
Zegnat opened this issue Apr 13, 2025 · 5 comments · Fixed by #220849
Closed
4 tasks done

github-keygen missing some dependency, cannot run after installation #219910

Zegnat opened this issue Apr 13, 2025 · 5 comments · Fixed by #220849

Comments

@Zegnat
Copy link
Contributor

Zegnat commented Apr 13, 2025

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

$ brew config
HOMEBREW_VERSION: 4.4.29
ORIGIN: https://github.com/Homebrew/brew
HEAD: 2eb614a4653421ab6e0cea27c42bbfadcad1a582
Last commit: 6 days ago
Branch: stable
Core tap JSON: 13 Apr 15:15 UTC
HOMEBREW_PREFIX: /home/linuxbrew/.linuxbrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_DISPLAY: :0
HOMEBREW_EDITOR: /usr/bin/nano
HOMEBREW_MAKE_JOBS: 8
SUDO_ASKPASS: /usr/bin/ksshaskpass
Homebrew Ruby: 3.3.7 => /var/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/3.3.7/bin/ruby
CPU: octa-core 64-bit skylake
Clang: N/A
Git: 2.49.0 => /bin/git
Curl: 8.9.1 => /bin/curl
Kernel: Linux 6.13.7-108.bazzite.fc41.x86_64 x86_64 GNU/Linux
OS: Bazzite 41 (FROM Fedora Kinoite) (Holographic)
Host glibc: 2.40
/usr/bin/gcc: 14.2.1
/usr/bin/ruby: N/A
glibc: N/A
gcc@11: N/A
gcc: N/A
xorg: N/A



$ brew doctor
brew doctor

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 installed github-keygen and wanted to run it.

$ brew install github-keygen
==> Downloading https://ghcr.io/v2/homebrew/core/github-keygen/manifests/1.400
######################################################################################################## 100.0%
==> Fetching github-keygen
==> Downloading https://ghcr.io/v2/homebrew/core/github-keygen/blobs/sha256:ce4d2d363e88f82852998fb401ac8bdbcff
######################################################################################################## 100.0%
==> Pouring github-keygen--1.400.all.bottle.tar.gz
🍺  /home/linuxbrew/.linuxbrew/Cellar/github-keygen/1.400: 6 files, 416.8KB

What happened (include all command output)?

After installing the bottled github-keygen, I wanted to run it, but it then reports it is missing a module.

$ github-keygen 
Can't locate filetest.pm in @INC (you may need to install the filetest module) (@INC entries checked: FatPacked::94528330646200=HASH(0x55f91791c2b8) /usr/local/lib64/perl5/5.40 /usr/local/share/perl5/5.40 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at /home/linuxbrew/.linuxbrew/bin/github-keygen line 10357.
BEGIN failed--compilation aborted at /home/linuxbrew/.linuxbrew/bin/github-keygen line 10357.

What did you expect to happen?

Expected all required modules to be on my system after the brew install.

Step-by-step reproduction instructions (by running brew commands)

brew install github-keygen
github-keygen
@Zegnat
Copy link
Contributor Author

Zegnat commented Apr 13, 2025

First installing brew’s perl fixes it, so it might be that github-keygen needs to have a dependency on Perl setup?

brew install perl
github-keygen
# success

@daeho-ro
Copy link
Member

Mostly, perl is included in macOS and ubuntu but not in your case.
I think this is a tier 2 configuration and we will not gonna fix it explicitly.

@Zegnat
Copy link
Contributor Author

Zegnat commented Apr 14, 2025

Perl 5 was available on my system. But it seems like there might be a difference in which modules (?) are included by default in a Perl 5 installation.

I am not sure if module dependencies are ever handled by Homebrew, as I am unfamiliar with Perl packaging. If it is generally accepted that Perl modules are not treated as part of the Homebrew dependency graph, then of course this should be a WONTFIX 👍 If Perl modules can be handled by Homebrew, someone with Perl knowledge might be able to create a PR to add it to the formula.

@cho-m
Copy link
Member

cho-m commented Apr 16, 2025

You could submit a PR adding uses_from_macos "perl" if it fixes your issue. We do allow adding that for Linux rather than relying on whatever state of Perl is on user's system.

Your system Perl is probably split packaged to reduce disk usage, e.g. https://packages.fedoraproject.org/pkgs/perl/perl-filetest/

Zegnat added a commit to Zegnat/homebrew-core that referenced this issue Apr 21, 2025
@Zegnat
Copy link
Contributor Author

Zegnat commented Apr 21, 2025

Thank you for the hint @cho-m, I did not realise that was how uses_from_macos was used. I have now created the PR. Took a few days as I needed time to verify that this fixed the issue on my Bazzite installation.

Zegnat added a commit to Zegnat/homebrew-core that referenced this issue Apr 22, 2025
Zegnat added a commit to Zegnat/homebrew-core that referenced this issue Apr 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants