Lazarus

Installation => General => Topic started by: vfclists on July 03, 2016, 08:41:53 pm

Title: How can I configure FPCup to avoid downloading files over and over again?
Post by: vfclists on July 03, 2016, 08:41:53 pm
I want to configure FPCup to avoid downloading stuff repeatedly.

The main things I see are

1. Build Tools -  bootstrap compiler, binutils, gdb etc.
2. The repository - Make local mirrors and synchronize them regularly and checkout from it. This is something I did with Git and it takes just seconds to keep it up to date and checkout the revisions I want.
Title: Re: How can I configure FPCup to avoid downloading files over and over again?
Post by: shobits1 on July 03, 2016, 09:45:06 pm
Quote
1. Build Tools -  bootstrap compiler, binutils, gdb etc.
use:
Code: [Select]
binutilsdir=...
fpcbootstrapdir=...
... is the path to directory

Quote
2. The repository - Make local mirrors and synchronize them regularly and checkout from it. This is something I did with Git and it takes just seconds to keep it up to date and checkout the revisions I want.
I use
Code: [Select]
getfullrepo=trueIt will do a regular svn checkout and get the full repo inside  `.svn` directory... refreshing won't take much time recompiling/building would.

you may take a look at
Code: [Select]
; Keeps changes you made to the svn checkout:
keeplocalchanges=true/false
Title: Re: How can I configure FPCup to avoid downloading files over and over again?
Post by: vfclists on July 03, 2016, 10:17:13 pm
I use
Code: [Select]
getfullrepo=trueIt will do a regular svn checkout and get the full repo inside  `.svn` directory... refreshing won't take much time recompiling/building would.

When you use the getfullrepo option how do you configure the directory to be shared among multiple build configurations? For instance if I build fixes1.6 using fixes3.0 compiler, and I want to create another configuration using lazarus trunk and fpc trunk, how do I share the repo between them?
I want to have to separate source checkouts which will not clobber one another.

Thanks
Title: Re: How can I configure FPCup to avoid downloading files over and over again?
Post by: shobits1 on July 04, 2016, 01:21:19 am
you need to use
Code: [Select]
installdir=INSTALL_PATH
fpcdir=FPC_PATH
lazdir=LAZARUS_PATH

also you can share repos/brunch between builds, but you can't mix them up (didn't try it but should work).

to explain it more let say you have:
Build1: lazarus fixes1.6 + fpc 3.0.0
installdir=c:\dev
fpcdir=c:\dev\fpc300
lazdir=c:\dev\laz16

and you want to do second build
Build2: lazarus trunk + fpc 3.0.0
installdir=c:\dev
fpcdir=c:\dev\fpc300 -- > OK
lazdir=c:\dev\laz16   -- > WRONG, because repository already have URL of  lazarus fixes1.6 so you need to specify other directory.

so Build 1 & 2 can share fpc repo (same brunch) but can't share lazarus (different brunch)

PS: personally I prefer to not share repo/brunch between builds.
TinyPortal © 2005-2018