Freecad 0.16 source.tar.gz out of date?

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Freecad 0.16 source.tar.gz out of date?

Post by NormandC »

sgrogan wrote:Correct! Everything is autogenerated by github. I created a new release on github, tagged at the HEAD of the 0-16 release branch. I copied the aurogenerated .zip and .tar.bz files to the existing release and deleted the new release.
I didn't know it was automatically built. This may cause trouble for packaging, like on Fedora the package shows "$WCREV$" instead of the revision number... I guess they may have no choice but create the Version.h file from scratch...
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: Freecad 0.16 source.tar.gz out of date?

Post by sgrogan »

NormandC wrote:I didn't know it was automatically built. This may cause trouble for packaging, like on Fedora the package shows "$WCREV$" instead of the revision number... I guess they may have no choice but create the Version.h file from scratch...
Exactly, this is why we need the versioning branch for the PPA. It's not easy though. A commit to bump the version of the commit is not a solution :(
I think other build systems could use a similar method. From my point of view this is a good problem. FreeCAD is cross-platform, these problems are identified as the use spreads.
"fight the good fight"
fafc
Posts: 34
Joined: Mon Jul 20, 2015 7:21 am

Re: Freecad 0.16 source.tar.gz out of date?

Post by fafc »

Hmm, I can't quite follow...

However package was build using https://github.com/FreeCAD/FreeCAD/rele ... 706.tar.gz and it still reports 0.16.5235...

So yeah in the end, I probably was already using the latest version... :evil:

Also during compile:

Code: Select all

error fatal: Invalid revision range 6b3d7b17a749e03bcbf2cf79bbbb903137298c44..HEAD
howeveer build was fine.
ugjka
Posts: 2
Joined: Wed Sep 21, 2016 2:05 pm

Re: Freecad 0.16 source.tar.gz out of date?

Post by ugjka »

Hi, I'm the aformentioned packager for Chakra linux.

It seems that revision number is determined from git repo state, atleast I found a script in sources that does that. If it can't find a valid git repo then it defaults to 5235 for some unknown reason. Since tarballs do not contain any .git repo then obviously all build from them have incorrect revision number

So I had to use the git branch directly in my PKGBUILD using makepkg VCS capabilities. And now revision number shows up correctly.

Thanks, hope this sheds some light! :mrgreen:
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: Freecad 0.16 source.tar.gz out of date?

Post by sgrogan »

ugjka wrote:Hi, I'm the aformentioned packager for Chakra linux.
Hello ugjka and Welcome! Thanks for supporting FreeCAD on your OS :)
Building with git is the best way to go. I thought, obviously wrongly, that if the versioning script failed, then the version would be unknown or "$WCREV$" as NormandC mentioned. The fact that it happily reports the wrong version is troubling.
"fight the good fight"
ugjka
Posts: 2
Joined: Wed Sep 21, 2016 2:05 pm

Re: Freecad 0.16 source.tar.gz out of date?

Post by ugjka »

Thanks!

Here's a snippet from src/Tools/SubWCRev.py that shows where it gets 5235

Code: Select all

   def revisionNumber(self, srcdir,origin=None):
        """sets the revision number
for master and release branches all commits are counted
for other branches the version numver is split in two parts
the first number reflects the number of commits in common with the
blessed master repository.
the second part, seperated by " +"reflects the number of commits that are
different form the master repository"""
        #referencecommit="f119e740c87918b103140b66b2316ae96f136b0e"
        #referencerevision=4138
        referencecommit="6b3d7b17a749e03bcbf2cf79bbbb903137298c44"
        referencerevision=5235
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Freecad 0.16 source.tar.gz out of date?

Post by Kunda1 »

Linking related post: viewtopic.php?f=4&t=19903
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Post Reply