Copy Subversion to Big Sur from another Mac lazarus / 33-macOS - Mac OS X ---------------------------------------------------------------------- Igor · 2020-11-16 08:27 Hi, It's offtopic, but can you help me copy Subversion from another Mac to Big Sur? I don't know what files should be copied. Even on Intel Mac with Big Sur I can't install SVN. I tried new Macports adapted for Big Sur and it fails to compile dependencies for SVN, the same problem with Brew. We use SVN in our work to synchronize the source code. Thanks in advance for any advice! ---------------------------------------------------------------------- trev · 2020-11-16 08:37 Pre-Xcode 11.4 command line tools include svn. I don't know what happens if you install them and then the later ones (ie whether the later ones remove svn or simply overwrite anything that already exists). I did, once, copy svn files from a Mac mini to a VM running Catalina successfully - I don't recall the exact files. I copied the binary which then asked for the missing library files which I copied one by one until it stopped complaining. You could probably use otool  to list the needed libraries. ---------------------------------------------------------------------- Igor · 2020-11-16 18:03 trev, Thanks! I'll try again tomorrow. ---------------------------------------------------------------------- Igor · 2020-11-19 11:53 trev, I manually copied all svn binaries, dylibs and dependencies (openssl, lz4, apr, etc) from Intel Mac to Apple DTK on ARM. Now I can get files from a server (svn up). But I can't perform commit of local changes to a server: Segmentation fault: 11 It seems that SVN doesn't work correctly. ---------------------------------------------------------------------- Cyrax · 2020-11-19 12:13 Quote from: Igor Kokarev on November 19, 2020, 12:53:36 pmtrev, I manually copied all svn binaries, dylibs and dependencies (openssl, lz4, apr, etc) from Intel Mac to Apple DTK on ARM. Now I can get files from a server (svn up). But I can't perform commit of local changes to a server: Segmentation fault: 11 It seems that SVN doesn't work correctly. Uh, you need ARM binaries for that. You can't execute binaries built for x86 with ARM CPU. Unless there is a some sort of transpiler there. ---------------------------------------------------------------------- trev · 2020-11-19 21:05 Quote from: Igor Kokarev on November 19, 2020, 12:53:36 pmI manually copied all svn binaries, dylibs and dependencies (openssl, lz4, apr, etc) from Intel Mac to Apple DTK on ARM. Now I can get files from a server (svn up). But I can't perform commit of local changes to a server: Segmentation fault: 11 I don't have access to an ARM system - my advice related to Intel, sorry. ---------------------------------------------------------------------- Igor · 2020-11-20 07:29 trev, Do you know any alternate package with SVN which includes binary files? Probably something with GUI. Cyrax, macOS on ARM includes Rosetta 2 translator which automatically run x86-64 apps on ARM. ---------------------------------------------------------------------- PascalDragon · 2020-11-20 14:31 Quote from: Cyrax on November 19, 2020, 01:13:26 pmUh, you need ARM binaries for that. You can't execute binaries built for x86 with ARM CPU. Unless there is a some sort of transpiler there. As Igor Kokarev wrote macOS on ARM provides Rosetta 2 which allows to transparently run x86 applications on the ARM system (just like Windows on ARM64 allows the running of 32-bit x86 binaries). ---------------------------------------------------------------------- skalogryz · 2020-11-21 02:05 I've just built SVN for Arm64 If anyone is interested, you will find binaries at the end of the post. Disclaimer: it's not an installer, so some command-line file copying will be needed. It's not a FAT binary, it will not work on Intel CPU. Binaries are not signed, you will have to "clear" them manually. I was able to check out and commit to my GitHub repo (via svn). Which is good. (i.e. an old svn version on my MacOSX 10.6, refuses to deal with GitHub... actually it's vice versa, github doesn't like the old svn client) ---------------------------------------------------------------------- Igor · 2020-11-21 11:46 skalogryz, Thank you very much for the compiled SVN for ARM64! I'll try it on Monday. ---------------------------------------------------------------------- Igor · 2020-11-23 11:44 skalogryz, I got this error with SVN: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i Igors- Mac:local mac$ svndyld: Library not loaded: /Users/dmitry/FPC_Laz/svn/serf-1.3.9/libserf-1.dylib  Referenced from: /usr/local/bin/svn  Reason: image not foundAbort trap: 6 Check dependencies for your svn binary to find other shared libraries: otool -L /usr/local/bin/svn ---------------------------------------------------------------------- Igor · 2020-11-24 12:17 skalogryz, I found a script to compile SVN on Apple Silicon. And it works for me, but this script doesn't include support of HTTP/HTTPS for SVN. If you could improve this script, it would be great: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i #!/usr/bash## use your own local mirror for the apache sources#curl -O https://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gzcurl -O https://mirrors.gigenet.com/apache/apr/apr-1.7.0.tar.gzcurl -O https://mirrors.gigenet.com/apache/apr/apr-util-1.6.1.tar.gzcurl -O ht tps://mirrors.gigenet.com/apache/subversion/subversion- 1.14.0.tar.gztar xzf autoconf-2.69.tar.gztar xzf apr-1.7.0.tar.gztar xzf apr-util-1.6.1.tar.gztar xzf subversion-1.14.0.tar.gzcd autoconf-2.69./configuremakesudo make installcd ..cd apr-1.7.0## this patch courtesy of homebrew, and might not be appropriate for newer APRs#curl -O https://raw.githubusercontent.com/Homebrew/formula-patche s/7e2246542543bbd3111a4ec29f801e6e4d538f88/apr/r1871981- macos11.patchpatch -p0 -i r1871981-macos11.patchautoconf./configuremakesudo make installcd ..cd apr-util-1.6.1autoconf./configure --with-apr=/usr/local/aprmakesudo make installcd ..cd subversion-1.14.0autoconf./configure --with- lz4=internal --with-utf8proc=internalmakesudo make installcd .. ---------------------------------------------------------------------- trev · 2020-11-25 06:23 This worked for me copying svn from Mojave to Big Sur (Intel) just now: Code: Bash  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i cd /Applications/Xcode.app/Contents/Developer/usr/binscp svn* cd /Applications/Xcode.app/Contents/Developer/usr/libscp libsvn_*.dylib scp libserf*.dylib ---------------------------------------------------------------------- Igor · 2020-11-25 12:24 trev, Thanks! Your solution works for me. Now I can run svn via Rosetta on Apple Silicon. I modified your script. Because since Xcode 11.4 and higher SVN exists in Command Line Tools folder (Intel version only): Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i rm -rf svn_backupmkdir svn_backupcd svn_backupmkdir binmkdir libcd ..scp /Library/Developer/CommandLineTools/usr/bin/svn* svn_backup/binscp /Library/Developer/CommandLineTools/usr/lib/libsvn_*.dylib svn_backup/libscp /Library/Developer/CommandLineTools/usr/lib/libserf*.dylib svn_backup/lib