Skip to content

Commit

Permalink
Mac build fix - attempt 9
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Young committed Dec 8, 2023
1 parent 56f6d98 commit 7e47b12
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions bt
Original file line number Diff line number Diff line change
Expand Up @@ -825,23 +825,26 @@ def installDependencies():
abortOnRunFail(subprocess.run(['brew', 'link', '--force', 'qt5']))

#
# Now, install MacPorts - per instructions at https://guide.macports.org/#installing.macports.source
#
# (This is a source install. In principle, we could install a precompiled binary, but it's a bit painful to do
# programatically as even to download the right package you have to know not just the the Darwin version of
# MacOS you are running, but also its "release name" (aka "friendly name"). See
# In theory, we can now install MacPorts. However, I didn't manage to get the following working. The
# configure script complains about the lack of /usr/local/.//mkspecs/macx-clang. So, for now, we comment this
# bit out and install MacPorts for GitHub actions via the mac.yml script.
#
# This is a source install - per instructions at https://guide.macports.org/#installing.macports.source. In
# principle, we could install a precompiled binary, but it's a bit painful to do programatically as even to
# download the right package you have to know not just the the Darwin version of MacOS you are running, but
# also its "release name" (aka "friendly name"). See
# https://apple.stackexchange.com/questions/333452/how-can-i-find-the-friendly-name-of-the-operating-system-from-the-shell-term
# for various ways to do this if we had to, though we might just as easily copy the info
# from https://en.wikipedia.org/wiki/MacOS#Timeline_of_releases
#
log.debug('Installing MacPorts')
abortOnRunFail(subprocess.run(['curl', '-O', 'https://distfiles.macports.org/MacPorts/MacPorts-2.8.1.tar.bz2']))
abortOnRunFail(subprocess.run(['tar', 'xf', 'MacPorts-2.8.1.tar.bz2']))
abortOnRunFail(subprocess.run(['cd', 'MacPorts-2.8.1/']))
abortOnRunFail(subprocess.run(['./configure']))
abortOnRunFail(subprocess.run(['make']))
abortOnRunFail(subprocess.run(['sudo', 'make', 'install']))
abortOnRunFail(subprocess.run(['export', 'PATH=/opt/local/bin:/opt/local/sbin:$PATH']))
## log.debug('Installing MacPorts')
## abortOnRunFail(subprocess.run(['curl', '-O', 'https://distfiles.macports.org/MacPorts/MacPorts-2.8.1.tar.bz2']))
## abortOnRunFail(subprocess.run(['tar', 'xf', 'MacPorts-2.8.1.tar.bz2']))
## abortOnRunFail(subprocess.run(['cd', 'MacPorts-2.8.1/']))
## abortOnRunFail(subprocess.run(['./configure']))
## abortOnRunFail(subprocess.run(['make']))
## abortOnRunFail(subprocess.run(['sudo', 'make', 'install']))
## abortOnRunFail(subprocess.run(['export', 'PATH=/opt/local/bin:/opt/local/sbin:$PATH']))

# Now install Xalan-C via MacPorts
log.debug('Installing xalanc via MacPorts')
Expand Down

0 comments on commit 7e47b12

Please sign in to comment.