Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 731268 - dev-util/sysdig: incorrect --version built in
Summary: dev-util/sysdig: incorrect --version built in
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michał Górny
Keywords: PATCH
Depends on:
Reported: 2020-07-07 11:07 UTC by Holger Hoffstätte
Modified: 2020-07-07 18:46 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---

Correctly set SYSDIG_VERSION during build (sysdig-version.patch,380 bytes, patch)
2020-07-07 11:11 UTC, Holger Hoffstätte
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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

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