Just upgraded to Big Sur 11.3.1.
On the MacPorts front, I tried the universal variant, but got an error:
sudo port install subversion +universal
sudo port install subversion-javahlbindings +universal
Error: Problem while installing python38
Error: Unable to execute port: upgrade cyrus-sasl2 failed
main.log: :info:build ValueError: Don't know machine value for
archs=('arm64', 'x86_64')
On May 5, Eclipse beta builds for MacOS AArch64 became available (see
https://bugs.eclipse.org/bugs/show_bug.cgi?id=565690), so I tried to
move the complete stack to AArch64:
- Installed Eclipse for MacOS (AArch64) Early Access:
https://download.eclipse.org/eclipse/downloads/index.html
- Downloaded and extracted OpenJDK 17 for MacOS (AArch64):
https://jdk.java.net/17/ (Zulu also offers an early access build)
- Edited eclipse.ini to use
/Library/Java/JavaVirtualMachines/jdk-17.jdk/Contents/Home (see
https://wiki.eclipse.org/Eclipse.ini)
- Reinstalled the default MacPorts for subversion and
subversion-javahlbindings:
- sudo port install subversion
- sudo port install subversion-javahlbindings
- sudo mkdir -p /Library/Java/Extensions
- sudo ln -s /opt/local/lib/lib svnjavahl-1.dylib
/Library/Java/Extensions/libsvnjavahl-1.dylib
- Reinstalled Subclipse Plugin: https://subclipse.github.io/updates/
- Eclipse Team Settings: Changed SVN Client to JavaHL and ran "Team -
Update to HEAD" action
It worked! And I must say Eclipse runs a LOT snappier. And Subclipse
with JavaHL as well, like subsecond to open the commit dialog compared
to tens of seconds for many files!
Since I use Eclipse on Mac currently for the sole purpose of using my
favorite SVN Client Subclipse (and the file search/replace
functionality), I'm fine with using early access builds for now.
Homebrew closed my issue and asked for a PR, so not sure how that front
will develop.
Thank you all for your help!
------ Original Message ------
From: "Ryan Schmidt" <subversion-2...@ryandesign.com>
To: "Reto Hoehener" <reto.hoehe...@gmail.com>
Cc: "Subversion Users" <users@subversion.apache.org>
Sent: 04.05.2021 23:13:22
Subject: Re: How to install Subversion JavaHL library with homebrew in
2021?
On May 4, 2021, at 12:56, Reto Hoehener wrote:
I uninstalled Homebrew Subversion and tried with MacPorts, but no luck (the
library seems to be build for amd64). So back to square one.
sudo port install subversion
sudo port -N install subversion-javahlbindings
sudo mkdir -p /Library/Java/Extensions
sudo ln -s /opt/local/lib/libsvnjavahl-1.dylib
/Library/Java/Extensions/libsvnjavahl-1.dylib (note: opt not usr)
Opening the Eclipse SVN preferences showed me this error:
Failed to load JavaHL Library.
These are the errors that were encountered:
no libsvnjavahl-1 in java.library.path:
/Users/reto/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.
/opt/local/lib/libsvnjavahl-1.0.dylib:
dlopen(/opt/local/lib/libsvnjavahl-1.0.dylib, 1): no suitable image found. Did
find:
/opt/local/lib/libsvnjavahl-1.0.dylib: mach-o, but wrong architecture
Hmm, I am not on an Apple Silicon machine but I downloaded our arm64
subversion-javahlbindings archive and verified that it does contain an arm64
library, not an x86_64 one:
$ curl -O
https://packages.macports.org/subversion-javahlbindings/subversion-javahlbindings-1.13.0_0.darwin_20.arm64.tbz2
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 809k 100 809k 0 0 1336k 0 --:--:-- --:--:-- --:--:-- 1336k
$ tar xf subversion-javahlbindings-1.13.0_0.darwin_20.arm64.tbz2
$ file opt/local/lib/libsvnjavahl-1.0.dylib
opt/local/lib/libsvnjavahl-1.0.dylib: Mach-O 64-bit arm64 dynamically linked shared
library,
flags:<NOUNDEFS|DYLDLINK|TWOLEVEL|WEAK_DEFINES|BINDS_TO_WEAK|NO_REEXPORTED_DYLIBS>
Can you show me some more info about your system and your MacPorts installation
like:
uname -mpv
xcodebuild -version
port version
port -v installed subversion-javahlbindings
grep _arch /opt/local/etc/macports/macports.conf