Lazarus

Installation => General => Topic started by: vfclists on March 09, 2015, 09:41:23 pm

Title: SOLVED : Can svn2revision be fooled or bypassed?
Post by: vfclists on March 09, 2015, 09:41:23 pm
I am compiling Lazarus by compiling from a local copy of Graeme's git mirror, and because I am not compiling in the working directory (I copy it to a separate directory) svn2revision is outputting "Unversioned directory" as the svn revision.

Can it be bypassed or fooled in some way, so I can add both the Lazarus and FreePascal versions manually?
Title: Re: Can svn2revision be fooled or bypassed?
Post by: Bart on March 09, 2015, 09:49:28 pm
In Tool->Configure Build lazarus you can uncheck the option to use it.

Bart
Title: Re: Can svn2revision be fooled or bypassed?
Post by: Cyrax on March 09, 2015, 10:36:49 pm
If you are using command line, add USESVN2REVISIONINC=0 into your make options.
Title: Re: Can svn2revision be fooled or bypassed?
Post by: vfclists on March 25, 2015, 08:44:39 pm
If you are using command line, add USESVN2REVISIONINC=0 into your make options.

I tried it like this in a build script and it doesn't seem to work

Code: [Select]
make all PP=${FPC_COMPILER} USESVN2REVISIONINC=0
Title: Re: Can svn2revision be fooled or bypassed?
Post by: Cyrax on March 26, 2015, 12:28:25 am
You need to generate ide/revision.inc manually.
Title: Re: Can svn2revision be fooled or bypassed?
Post by: vfclists on March 26, 2015, 10:30:06 am
You need to generate ide/revision.inc manually.

I am generating it manually but the output says 'exported' even when I set 'USESVN2REVISIONINC=0' in the 'make' command.

UPDATE: The solution works, I wasn't creating the revision.inc properly. It has to be the way svn2revision creates its own revision.inc files. I had some different syntax there.
TinyPortal © 2005-2018