Author Topic: Linux build rev 0  (Read 3331 times)

Offline tigerbeard

  • Almost regular
  • **
  • Posts: 186
Linux build rev 0
« on: April 07, 2022, 10:39:40 am »
When I am building trunc from source the splash screen and the start here page both show svn build rev0.

What file do I have to edit (or create) to get another build number displayed there? 
I am compiling a copy of the source tree with the "C::B by C::B" method in Linux (would expect its not a Linux issue, however).

Offline AndrewCot

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 678
Re: Linux build rev 0
« Reply #1 on: April 07, 2022, 11:11:06 am »
The src/include/autorevision.h is the file you want to hack.

Offline tigerbeard

  • Almost regular
  • **
  • Posts: 186
Re: Linux build rev 0
« Reply #2 on: April 07, 2022, 12:16:14 pm »
Thanks for the pointer.

The raw sources do not have that file, only /src/include/autorevision.h.in. After changing that file without effect I found that somehow during compilation the file autorevision.h got generated. This had the excplicit "rev0" in there. I am rebuilding again to see if it works now.

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1553
Re: Linux build rev 0
« Reply #3 on: April 07, 2022, 12:43:21 pm »
For the revision to appear you must get the source using svn checkout, not using the zip.

Offline tigerbeard

  • Almost regular
  • **
  • Posts: 186
Re: Linux build rev 0
« Reply #4 on: April 07, 2022, 12:45:09 pm »
Thanks for your help, now it worked.

So the procedure to solve "rev0" issues for builds in Linux is:
  • comile the C::B workspace. This creates the file src/include/autorevision.h
  • edit the file src/include/autorevision.h as follows, example for "rev12765". Do not include the file into the workspace 
Code
 const unsinged int svn_revision = 0;               //remove
 const wxString svnRevision(_T"0"));                //remove
 const unsinged int svn_revision = 12765;       
 const wxString svnRevision(_T"12765"));             
  • rebuild C:B workspace [/i]
  • run update30 script to generate the start scripts. [/i]
Now the splash screen and start screen should read "rev 12765"

Offline tigerbeard

  • Almost regular
  • **
  • Posts: 186
Re: Linux build rev 0
« Reply #5 on: April 07, 2022, 12:48:12 pm »
For the revision to appear you must get the source using svn checkout, not using the zip.
I suspected that might be a reason for the issue.

The method above, however, has the big advantage to result in a lot smaller source folders. A bonus when you have to transfer them to different computers manually. Its good to have both options.