Bug 55085 - gamescope --version не выводит версию
Summary: gamescope --version не выводит версию
Status: NEW
Alias: None
Product: Sisyphus
Classification: Development
Component: gamescope (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: fidel@altlinux.org
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-07-06 20:31 MSK by Boris Yumankulov
Modified: 2025-07-07 16:26 MSK (History)
2 users (show)

See Also:


Attachments

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