← Back to team overview

kicad-developers team mailing list archive

Re: version info does not get updated

 

Why does CMake not recompute this particular value during the
pre-compile configuration step? It runs checks for changed stuff every
time you "make" anyway and only caches certain things. Is it really that
hard to not cache this particular value?

On Sun, 2014-08-31 at 22:24 +0100, Brian Sidebotham wrote:
> The version is essentially created during the CMake configure step -
> when CMake generates its cache of variables. You need to re-create
> this cache to update the value:
> 
>     make rebuild_cache
> 
> That should update to the same as bzr revno.
> 
> Best Regards, Brian.
> 
> 
> On 31 August 2014 21:47, Andrew Zonenberg <azonenberg@xxxxxxxxxxxxxxx> wrote:
> > I've observed the same issue with my builds. The only workaround I've
> > found to date is to delete the build directory and do a full rebuild.
> >
> > On Sun, 2014-08-31 at 20:56 +0200, Nick Østergaard wrote:
> >> Hi Yann
> >>
> >> Does 'bzr revno --tree' result in the same?
> >>
> >> 2014-08-31 20:21 GMT+02:00 yann jautard <bricofoy@xxxxxxx>:
> >> > REVISION is set to TESTING, I use the script daily, it's the first time I
> >> > notice something like that.
> >> >
> >> > the result of bzr log in my kicad source tree starts by :
> >> >
> >> > ------------------------------------------------------------
> >> > revno: 5106
> >> > fixes bug: https://launchpad.net/bugs/1035151
> >> > committer: Wayne Stambaugh <stambaughw@xxxxxxxxxxx>
> >> > branch nick: kicad
> >> > timestamp: Fri 2014-08-29 16:23:40 -0400
> >> >
> >> >
> >> > so it updated the source correctly.
> >> >
> >> > And considering the number of files that has be recompiled, it updated
> >> > something in the bin files.
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >
> >> > Le 31/08/2014 19:38, Nick Østergaard a écrit :
> >> >
> >> >> That just looks like it did not update.
> >> >>
> >> >> What is the REVISION variable set to in the sript? It should be
> >> >> $TESTING, where that is last:1.
> >> >>
> >> >> 2014-08-31 18:12 GMT+02:00 yann jautard <bricofoy@xxxxxxx>:
> >> >>>
> >> >>> Hi all,
> >> >>>
> >> >>> I don't know if this is important, but I just updated my kicad install
> >> >>> this
> >> >>> afternoon, and I noticed the kicad version information is not up to date
> >> >>> :
> >> >>>
> >> >>>
> >> >>> yann@yann-netbook:~/kicad_sources$ ./kicad-install.sh --install-or-update
> >> >>> (...)
> >> >>> step 3) checking out the source code from launchpad repo...
> >> >>> Tree is up to date at revision *5106* of branch
> >> >>> http://bazaar.launchpad.net/~kicad-product-committers/kicad/product
> >> >>>   local source working tree updated.
> >> >>> (...)
> >> >>> All KiCad "--install-or-update" steps completed, you are up to date.
> >> >>>
> >> >>>
> >> >>>
> >> >>> and then, the kicad windows says this :
> >> >>>
> >> >>>
> >> >>> Application: kicad
> >> >>> Version: (*2014-08-26 BZR 5099*)-product Release build
> >> >>> wxWidgets: Version 3.0.0 (debug,wchar_t,compiler with C++ ABI 1002,GCC
> >> >>> 4.8.2,wx containers,compatible with 2.8)
> >> >>> Platform: Linux 3.13.0-35-generic i686, 32 bit, Little endian, wxGTK
> >> >>> Boost version: 1.54.0
> >> >>>           USE_WX_GRAPHICS_CONTEXT=OFF
> >> >>>           USE_WX_OVERLAY=OFF
> >> >>>           KICAD_SCRIPTING=OFF
> >> >>>           KICAD_SCRIPTING_MODULES=OFF
> >> >>>           KICAD_SCRIPTING_WXPYTHON=OFF
> >> >>>           USE_FP_LIB_TABLE=HARD_CODED_ON
> >> >>>           BUILD_GITHUB_PLUGIN=ON
> >> >>>
> >> >>> you can see the compilation date is wrong (we are the 14 08 31) and the
> >> >>> version number is wrong.
> >> >>>
> >> >>>
> >> >>>
> >> >>>
> >> >>> _______________________________________________
> >> >>> Mailing list: https://launchpad.net/~kicad-developers
> >> >>> Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
> >> >>> Unsubscribe : https://launchpad.net/~kicad-developers
> >> >>> More help   : https://help.launchpad.net/ListHelp
> >> >
> >> >
> >>
> >> _______________________________________________
> >> Mailing list: https://launchpad.net/~kicad-developers
> >> Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
> >> Unsubscribe : https://launchpad.net/~kicad-developers
> >> More help   : https://help.launchpad.net/ListHelp
> >
> > --
> > Andrew Zonenberg
> > PhD student, security group
> > Computer Science Department
> > Rensselaer Polytechnic Institute
> > http://colossus.cs.rpi.edu/~azonenberg/
> >
> > _______________________________________________
> > Mailing list: https://launchpad.net/~kicad-developers
> > Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
> > Unsubscribe : https://launchpad.net/~kicad-developers
> > More help   : https://help.launchpad.net/ListHelp
> >

-- 
Andrew Zonenberg
PhD student, security group
Computer Science Department
Rensselaer Polytechnic Institute
http://colossus.cs.rpi.edu/~azonenberg/

Attachment: signature.asc
Description: This is a digitally signed message part


Follow ups

References