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

Mac build linking against /usr/local #46

Open
dwoz opened this issue Nov 24, 2022 · 1 comment
Open

Mac build linking against /usr/local #46

dwoz opened this issue Nov 24, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@dwoz
Copy link
Contributor

dwoz commented Nov 24, 2022

We discovered this when using the pre-built macos python build to make the Salt Mac package. It seems we're linking to gettext in /usr/local for some reason. When installing salt into the environment we get the following traceback.

dyld: Library not loaded: /usr/local/opt/gettext/lib/libintl.8.dylib
  Referenced from: /Users/saltadmin/src/salt/pkg/osx/build/opt/salt/bin/python3
  Reason: image not found
/Users/saltadmin/src/salt/pkg/osx/install_salt.sh: line 102:   968 Abort trap: 6   

Everything works when using relenv build to build the python on the macos box where this was tested.

@dwoz dwoz added the bug Something isn't working label Nov 24, 2022
@dwoz
Copy link
Contributor Author

dwoz commented Nov 28, 2022

I was able to find others having the same issue:
beeware/Python-Apple-support#91

That issue states a workaround off un-installing gettext from the build host. It's an easy thing to change and we've validated it that resolves the issue. That work has been merged #43 and will be released in 0.4.1. Leaving this issue open in hopes of coming up with a more comprehensive fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant