relenv icon indicating copy to clipboard operation
relenv copied to clipboard

Mac build linking against /usr/local

Open dwoz opened this issue 3 years ago • 1 comments

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 avatar Nov 24 '22 23:11 dwoz

I was able to find others having the same issue: https://github.com/beeware/Python-Apple-support/issues/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.

dwoz avatar Nov 28 '22 22:11 dwoz