lesspipe: path for perl in auxiliary scripts assumes perl from home-brew #6415
Replies: 2 comments
-
This is a brew bug for handling
brew will either need to save a record of dependency trees per platforms for Can see wrong info in manifest, e.g. ❯ brew fetch lesspipe
❯ jq '.manifests[0].annotations."sh.brew.tab" | fromjson' $(brew --cache)/lesspipe_bottle_manifest--2.20 | jq '.built_on.os'
"Linux"
❯ jq '.manifests[0].annotations."sh.brew.tab" | fromjson' $(brew --cache)/lesspipe_bottle_manifest--2.20 | jq '.runtime_dependencies | map(select(.full_name == "perl"))'
[
{
"full_name": "perl",
"version": "5.40.2",
"revision": 0,
"bottle_rebuild": 0,
"pkg_version": "5.40.2",
"declared_directly": true
}
] |
Beta Was this translation helpful? Give feedback.
-
I am not familiar with homebrew packaging, but the bug makes lesspipe less capable for users who do not have the homebrew perl installed (basically some colorizing of the output is missing if no external colorizer is installed). As the scripts in question require any perl (even 5.8. would do!) I do see several options
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Output of
brew config
Output of
brew doctor
Description of issue
The first lines of the auxiliary scripts archive_color, code2color, sxw2txt and vim color coming with lesspipe do contain in the original sources on GitHub the line
#!/usr/bin/env perl
while my installed scripts are using
#!/opt/homebrew/opt/perl/bin/perl
As I do not have the homebrew perl installed, these scripts do not work and I get an error message:
zsh: /opt/homebrew/bin/archive_color: bad interpreter: /opt/homebrew/opt/perl/bin/perl: no such file or directory
Could that be fixed without requiring an additional installation of homebrew perl?
Beta Was this translation helpful? Give feedback.
All reactions