D6846: packaging: script the building of a MacOS installer using a custom python
mharbison72 (Matt Harbison)
phabricator at mercurial-scm.org
Wed Feb 12 16:59:37 UTC 2020
mharbison72 added a comment.
In D6846#120513 <https://phab.mercurial-scm.org/D6846#120513>, @indygreg wrote:
> macOS supports a `@loader_path` and related magic tokens in rpath to load libraries relative to the current binary. See e.g. https://blogs.oracle.com/dipol/dynamic-libraries,-rpath,-and-mac-os and https://medium.com/@donblas/fun-with-rpath-otool-and-install-name-tool-e3e41ae86172 for examples.
I saw those, thanks. I guess what's confusing is I don't see RPATH being configured when building OpenSSL for the TortoiseHg build, nor do I see it being overwritten when running py2app. I also interpreted this to mean that is should be automatic on Mac, but I guess not:
https://wiki.openssl.org/index.php/Compilation_and_Installation#Using_RPATHs
INLINE COMMENTS
> indygreg wrote in python.py:54
> Where did you get this line and `enable-cms` from?
From the scripts used to build TortoiseHg on Mac, and the OpenSSL wiki:
https://bitbucket.org/Weeds2000/tortoisehg-osx-build-scripts/src/e459bb439730d7e7e3a4b8c474f74aab164d6c9f/toolchain/receipts/openssl.sh#lines-41
https://wiki.openssl.org/index.php/Compilation_and_Installation#OS_X
> indygreg wrote in build.py:170
> `fp.truncate()`?
The original shebang line was much longer, so after writing it out with the shorter one, I think this was meant to trim the file. too the proper content.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D6846/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D6846
To: mharbison72, #hg-reviewers
Cc: indygreg, marmoute, mercurial-devel
More information about the Mercurial-devel
mailing list