ppa daily build package shows Version: no-vcs-found-undefined
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KiCad |
Invalid
|
Undecided
|
Jean-Samuel Reynaud |
Bug Description
See theme.
Application: kicad
Version: no-vcs-
Libraries: wxWidgets 3.0.2
Platform: Linux 4.8.0-26-generic x86_64, 64 bit, Little endian, wxGTK
- Build Info -
wxWidgets: 3.0.2 (wchar_t,wx containers,
Boost: 1.61.0
Curl: 7.50.1
KiCad - Compiler: GCC 6.2.0 with C++ ABI 1010
Settings: USE_WX_
ah ah, don't bother reporting bugs about version numbering, the head (wayne/charras) is proud to have invented the single product on earth with cumbersome behavior.
Here is what it does :
the makefile tries to guess a revision number from the git tree (and before that baazar). When it cannot find one, it puts "novcs_found".
you have something like $version= "Kicad_ novcs_found"
To solve this (already idiot) behavior, the team added a non clearly documented (not where you expect to find it, eg README.FIRST), a makefile option.
-DKICAD_ BUILD_VERSION= "what you want"
The list of wrong choices :
assume everyone have permanently access to a working free rapid reliable internet connection to compile kicad 'in development'
assume a regular user is interested in compiling kicad.
force a distribution package maker to choose a version number for the build.
assume a Kicad developer will report a bug instead of fixing it at first.....and this 'indication' is a great improvement. Just false. How many dev's reports vs normal user's report ?
assume a regular user want the most recent source instead of the last known good public released.
The rest of the world (not kicad) :
A downloaded source tarball is made available under a specific name. Postfix "Postfix 3.1 stable release".
When making the package, no cumbersome question is asked for selecting a version. By default the package knows 'who it is'. No exception.
The version string will be identical for all distribution (ubuntu, opensuse, debian,gentoo,...) or home made compilation :"POSTFIX-3.1".
If the package's maker needs to tweak the version string, most packages have at disposal a makefile option DEXTRA_ VERSION= "frktest"
resulting in a version string "POSTFIX- 3.1-frktest"
There is absolutely no reason for Kicad not using this universal scheme.
If you (jp/w) want to add a rev suffix, you can do it automatically.
But having "kicad-novcs-found" or other funny name is just due to an idiot implementation, sorry.
Franck