Lazarus

Installation => macOS / Mac OS X => Topic started by: madref on April 19, 2021, 03:58:12 pm

Title: [Solved] Can't install trunk version of FPC and Lazarus. Need help
Post by: madref on April 19, 2021, 03:58:12 pm
I recently updated to Big Sur. Did a clean install. Installed Xcode 12.4 and the Command Line tools for Xcode 12.4
Then downloaded FPCUDeluxe  latest version and tried to install lazarus trunk and FPC 3.3.1.


But is failed.


I do not know what I am doing wrong.
Can anyone try and help me with suggestions?
Title: Re: Can't install trunk version of FPC and Lazarus. Need help
Post by: ccrause on April 19, 2021, 04:15:19 pm
Do you have svn installed?  The log suggests that it tried to download a copy of the source using svn, but failed.
Title: Re: Can't install trunk version of FPC and Lazarus. Need help
Post by: madref on April 19, 2021, 04:20:43 pm
How do install that then?


Never had problems like this before om Mojave
Title: Re: Can't install trunk version of FPC and Lazarus. Need help
Post by: balazsszekely on April 19, 2021, 04:23:25 pm
How do install that then?
Select trunk.git
Title: Re: Can't install trunk version of FPC and Lazarus. Need help
Post by: madref on April 19, 2021, 06:04:43 pm
That did the trick.


But what is the difference between trunk and trunk.git?
Title: Re: Can't install trunk version of FPC and Lazarus. Need help
Post by: balazsszekely on April 20, 2021, 06:17:33 am
That did the trick.

But what is the difference between trunk and trunk.git?
Starting with MacOS Big Sur, subversion(svn) is removed from the command line tools. AFAIK you can still install it via MacPorts or HomeBrew. 
You have two choices:
1. Brew install svn
2. Use the more popular version control git, luckily FpcUpDeluxe supports it

From the user perspective there is no difference between trunk(svn) and trunk(git). Perhaps git is faster on slow connections.
Title: Re: Can't install trunk version of FPC and Lazarus. Need help
Post by: PascalDragon on April 20, 2021, 09:11:20 am
From the user perspective there is no difference between trunk(svn) and trunk(git). Perhaps git is faster on slow connections.

Trunk from SVN is the official repository, Trunk from Git is an unofficial mirror of that SVN repository. It's synced only every 15 minutes or so, thus if you need a specific fix that was committed 5 minutes ago you might need to wait a bit longer for the fix to appear in the Git mirror.
Title: Re: Can't install trunk version of FPC and Lazarus. Need help
Post by: balazsszekely on April 20, 2021, 09:31:19 am
@PascalDragon
Quote
Trunk from SVN is the official repository, Trunk from Git is an unofficial mirror of that SVN repository. It's synced only every 15 minutes or so, thus if you need a specific fix that was committed 5 minutes ago you might need to wait a bit longer for the fix to appear in the Git mirror.

Thanks! 15 minutes lag can indeed be a problem in some cases. If I'm not mistaken, the FPC team planned to switch to git at some point? I prefer svn though.
Title: Re: Can't install trunk version of FPC and Lazarus. Need help
Post by: madref on April 23, 2021, 10:55:35 pm
Thanks for the explanation  !!!
Title: Re: Can't install trunk version of FPC and Lazarus. Need help
Post by: MarkMLl on April 23, 2021, 11:02:19 pm
@PascalDragon
If I'm not mistaken, the FPC team planned to switch to git at some point?

Hope not. "Fixed from revision 12345 onwards" is an unambiguous statement with- AIUI- no easy equivalent in Gitspeak.

MarkMLl
Title: Re: [Solved] Can't install trunk version of FPC and Lazarus. Need help
Post by: trev on April 24, 2021, 03:59:35 am
@MarkMLI: see FPC Git Migration (https://wiki.freepascal.org/git_migration) on the Wiki.

BTW, I agree. Git (when used as an insult) is a reasonably appropriate name for it which is why sites like this (http://ohshitgit.com) (Warning: Adult Content) and this (https://dangitgit.com/en) (same site, but for the more genteel) exist.

[Edit] To continue using svn on macOS, see this thread (https://forum.lazarus.freepascal.org/index.php/topic,52154.msg383904.html#msg383904).
Title: Re: [Solved] Can't install trunk version of FPC and Lazarus. Need help
Post by: MarkMLl on April 24, 2021, 09:15:58 am
@MarkMLI: see FPC Git Migration (https://wiki.freepascal.org/git_migration) on the Wiki.

BTW, I agree. Git (when used as an insult) is a reasonably appropriate name for it which is why sites like this (http://ohshitgit.com) (Warning: Adult Content) and this (https://dangitgit.com/en) (same site, but for the more genteel) exist.

[Edit] To continue using svn on macOS, see this thread (https://forum.lazarus.freepascal.org/index.php/topic,52154.msg383904.html#msg383904).

Git certainly has its uses as a way of coordinating distributed development, but I've never been convinced that it is good for the sort of distribution for which FPC and Lazarus use Subversion.

I've seen an interesting case where PCB design software (KiCAD) uses git as the repository for live templates etc., it seems to work but I think Subversion would work equally well.

I've also seen it used as the principal distribution mechanism for Mycroft https://mycroft.ai/ where arguably it doesn't work: the developers have somehow managed to structure it that you have to pull the entire repository (i.e. depth= can't be used) before anything will work.

So I remain sceptical.

MarkMLl
TinyPortal © 2005-2018