Bug 41911

Summary: typelib.req генерирует неверсионированные зависимости
Product: Sisyphus Reporter: Vladimir D. Seleznev <vseleznv>
Component: rpm-build-girAssignee: Alexey Shabalin <shaba>
Status: NEW --- QA Contact: qa-sisyphus
Severity: normal    
Priority: P5 CC: aris, shaba
Version: unstable   
Hardware: all   
OS: Linux   
Bug Depends on:    
Bug Blocks: 42255    

Description Vladimir D. Seleznev 2022-02-09 21:43:37 MSK
Устанавливаем gajim, запускаем, видим backtrace:

$ gajim
No translations found
Dirs searched: [PosixPath('/home/wladmis_im/.local/share'), PosixPath('/usr/local/share'), PosixPath('/usr/share')]
Traceback (most recent call last):
  File "/usr/bin/gajim", line 33, in <module>
    sys.exit(load_entry_point('gajim==1.3.3', 'gui_scripts', 'gajim')())
  File "/usr/lib/python3/site-packages/gajim/gajim.py", line 156, in main
    _check_required_deps()
  File "/usr/lib/python3/site-packages/gajim/gajim.py", line 48, in _check_required_deps
    import nbxmpp
  File "/usr/lib/python3/site-packages/nbxmpp/__init__.py", line 5, in <module>
    gi.require_version('Soup', '2.4')
  File "/usr/lib64/python3/site-packages/gi/__init__.py", line 129, in require_version
    raise ValueError('Namespace %s not available for version %s' %
ValueError: Namespace Soup not available for version 2.4

Смотрим:

$ rpm -qR gajim |grep Soup
typelib(Soup)
$ rpm -q --whatprovides 'typelib(Soup)'
libsoup3.0-gir-3.0.4-alt1.x86_64

Доустановка libsoup-gir решила проблему.

$ rpm -q --whatprovides 'typelib(Soup)'
libsoup3.0-gir-3.0.4-alt1.x86_64
libsoup-gir-2.74.2-alt1.x86_64

Возможно, стоит генерировать версионированные требования зависимостей.