Build version 4.0 show version in incorrect.
Added by Chan Tai Man over 9 years ago
Show in comments line as below.
2015-05-22 15:37:22.587 [ NOTICE] START: HTS Tvheadend version 0.0.0~unknown started, running as PID:24592 UID:0 GID:0, CWD:/volume1/Misc/tvh_4/bin CN .
How to show the correct version.
Thanks
Replies (8)
RE: Build version 4.0 show version in incorrect. - Added by Prof Yaffle over 9 years ago
Where did you install from, please? Is this from the PPA, self-build, or from somewhere else?
apt-cache policy tvheadend
... will tell you what's installed and where it came from
RE: Build version 4.0 show version in incorrect. - Added by Chan Tai Man over 9 years ago
Sorry for delay reply.
Get by comments.
wget -c https://github.com/tvheadend/tvheadend/archive/release/4.0.zip on 2015-05-22.
Build comment
./configure --host=i686-pc-linux --build=i686-pc-linux --target=i686-pc-linux --prefix=/opt/tv_ori --disable-avahi --disable-uriparser --enable-bundle --release
make
Thanks
RE: Build version 4.0 show version in incorrect. - Added by Prof Yaffle over 9 years ago
There have been a number of changes to the versioning scheme - I suspect you're just stuck in the middle of one of those, depending on when you checked out the code.
I wouldn't worry about it for the moment, but I'll mention it to the folks who are building it to see if it's been fixed, waiting to be fixed or perhaps just waiting a backport from master to the 4.0 branch.
RE: Build version 4.0 show version in incorrect. - Added by Alex A over 9 years ago
Hi, I was just looking into this and saw in support/version it assigns the version number by mainly doing:
if [ -d ".git" ]; then VER=$(cd "$(dirname "$0")"/..; git describe --dirty --match "v*" 2> /dev/null)
but when you choose to download the zip file (instead of doing a git clone), .git directory is not included. Thus, setting the version number won't work and you would see "0.0.0~unknown" in tvh. This also applies for the above link you used.
I'm also trying to figure out what version I am currently using (I've compiled it several months ago).
RE: Build version 4.0 show version in incorrect. - Added by Chan Tai Man over 9 years ago
Build 4.0.2 still cannot show the correct versiom.
RE: Build version 4.0 show version in incorrect. - Added by Alex A over 9 years ago
Chan Tai Man wrote:
Build 4.0.2 still cannot show the correct versiom.
Did you try git clone as I suggested?
git clone -b release/4.0 https://github.com/tvheadend/tvheadend.git
cd tvheadend
git describe
configure [whatever you need]
make && make install
RE: Build version 4.0 show version in incorrect. - Added by Chan Tai Man over 9 years ago
Your method is work.
I download the source from below.
https://github.com/tvheadend/tvheadend/releases
It cannot show the version correct.
RE: Build version 4.0 show version in incorrect. - Added by ullix tv over 9 years ago
Is compiling the only way to get a "stable" 4.0 version? I am stuck with 3.9.x and can't find a 4.0 in any repository. Is there one?