Bug 55085

Summary: gamescope --version не выводит версию
Product: Sisyphus Reporter: Boris Yumankulov <boriabloger>
Component: gamescopeAssignee: fidel <fidel>
Status: NEW --- QA Contact: qa-sisyphus
Severity: normal    
Priority: P5 CC: fidel, k0tran
Version: unstable   
Hardware: x86_64   
OS: Linux   

Description Boris Yumankulov 2025-07-06 20:31:59 MSK
gamescope --version
[gamescope] [Info]  console: gamescope version  (gcc 14.2.1)

Должно быть примерно так

[gamescope] [Info]  console: gamescope version 3.16.1-35-g19dc18e (gcc 14.2.1)
Comment 1 Boris Yumankulov 2025-07-07 16:26:13 MSK
Нашёл где проблема

https://github.com/ValveSoftware/gamescope/blob/master/src/GamescopeVersion.h.in


namespace gamescope
{
    static constexpr const char k_szGamescopeVersion[] = "@VCS_TAG@";
}


https://github.com/ValveSoftware/gamescope/blob/master/src/meson.build


vcs_tag_cmd = ['git', 'describe', '--always', '--tags', '--dirty=+']
vcs_tag = run_command(vcs_tag_cmd, check: false).stdout().strip()
version_tag = vcs_tag + ' (' + compiler_name + ' ' + compiler_version + ')'

gamescope_version_conf = configuration_data()
gamescope_version_conf.set('VCS_TAG', version_tag)

gamescope_version = configure_file(
  input : 'GamescopeVersion.h.in',
  output : 'GamescopeVersion.h',
  configuration : gamescope_version_conf
)

По идее обычной BR на гит должно быть достаточно и он сам подставит 3.16.4-alt1