Mac build linking against /usr/local
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.
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.