Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 731268

Summary: dev-util/sysdig: incorrect --version built in
Product: Gentoo Linux Reporter: Holger Hoffstätte <holger>
Component: Current packagesAssignee: Michał Górny <mgorny>
Status: UNCONFIRMED ---    
Severity: normal Keywords: PATCH
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Correctly set SYSDIG_VERSION during build

Description Holger Hoffstätte 2020-07-07 11:07:23 UTC
I just noticed something strange running sysdig-0.26.7:
$sysdig --version
sysdig version 0.1.1dev

As it turns out the CMake file does not set a proper version by itself and instead assumes that a build process sets the version appropriately, see
https://github.com/draios/sysdig/blob/dev/CMakeLists.txt#L45


Reproducible: Always

Steps to Reproduce:
1. emerge sysdig
2. run sysdig --version
3. observe built-in dummy version


Expected Results:  
The correct package version would be nice.
Comment 1 Holger Hoffstätte 2020-07-07 11:11:43 UTC
Created attachment 648232 [details, diff]
Correctly set SYSDIG_VERSION during build

Trivial fix to properly set the version during build. Version output is
now correct:

$sysdig --version
sysdig version 0.26.7