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

Add support for finding libmagic install by brew on Apple Silicon #24

Open
tdruez opened this issue May 9, 2022 · 0 comments
Open

Add support for finding libmagic install by brew on Apple Silicon #24

tdruez opened this issue May 9, 2022 · 0 comments

Comments

@tdruez
Copy link

tdruez commented May 9, 2022

From https://github.com/Homebrew/brew/blob/master/docs/Installation.md#installation

This script installs Homebrew to its preferred prefix (/usr/local for macOS Intel, /opt/homebrew for Apple Silicon and /home/linuxbrew/.linuxbrew for Linux)

We only need to add a glob after https://github.com/nexB/typecode/blob/main/src/typecode/magic2.py#L128

glob.glob('/opt/homebrew/Cellar/libmagic/*/lib/libmagic.dylib')

pombredanne added a commit that referenced this issue May 9, 2022
Reported-by: Thomas Druez <[email protected]>
Reference: #24
Signed-off-by: Philippe Ombredanne <[email protected]>
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

No branches or pull requests

1 participant