Recent

Author Topic: SOLVED : Can svn2revision be fooled or bypassed?  (Read 4697 times)

vfclists

  • Hero Member
  • *****
  • Posts: 1013
    • HowTos Considered Harmful?
SOLVED : Can svn2revision be fooled or bypassed?
« 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?
« Last Edit: March 26, 2015, 01:19:31 pm by vfclists »
Lazarus 3.0/FPC 3.2.2

Bart

  • Hero Member
  • *****
  • Posts: 5290
    • Bart en Mariska's Webstek
Re: Can svn2revision be fooled or bypassed?
« Reply #1 on: March 09, 2015, 09:49:28 pm »
In Tool->Configure Build lazarus you can uncheck the option to use it.

Bart

Cyrax

  • Hero Member
  • *****
  • Posts: 836
Re: Can svn2revision be fooled or bypassed?
« Reply #2 on: March 09, 2015, 10:36:49 pm »
If you are using command line, add USESVN2REVISIONINC=0 into your make options.

vfclists

  • Hero Member
  • *****
  • Posts: 1013
    • HowTos Considered Harmful?
Re: Can svn2revision be fooled or bypassed?
« Reply #3 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
Lazarus 3.0/FPC 3.2.2

Cyrax

  • Hero Member
  • *****
  • Posts: 836
Re: Can svn2revision be fooled or bypassed?
« Reply #4 on: March 26, 2015, 12:28:25 am »
You need to generate ide/revision.inc manually.

vfclists

  • Hero Member
  • *****
  • Posts: 1013
    • HowTos Considered Harmful?
Re: Can svn2revision be fooled or bypassed?
« Reply #5 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.
« Last Edit: March 26, 2015, 01:22:06 pm by vfclists »
Lazarus 3.0/FPC 3.2.2

 

TinyPortal © 2005-2018