Bug 41092 - Удалить python3-module-pygobject
Summary: Удалить python3-module-pygobject
Status: ASSIGNED
Alias: None
Product: Sisyphus
Classification: Development
Component: python3-module-pygobject (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Vitaly Lipatov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on: 41093 49591 49592
Blocks:
  Show dependency tree
 
Reported: 2021-10-12 09:46 MSK by Vitaly Lipatov
Modified: 2024-03-30 23:55 MSK (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vitaly Lipatov 2021-10-12 09:46:11 MSK
python3-module-pygobject (deprecated static Python bindings for the GObject library) десять лет как устарел, хорошо бы его удалить.

 $ apt-cache whatdepends python3-module-pygobject
  tortoisehg-5.9.1-altsisyphus+285149.200.1.1@1631543088
  hplip-gui-3.21.8-alt1:sisyphus+284892.100.1.1@1631168155
  python3-module-pygobject-devel-2.28.6-altsisyphus+279128.100.1.1@1626380821
  python3-module-subunit-1.3.0-altsisyphus+277376.100.1.1@1625525102
  uniset2-testsuite-2.7-altsisyphus+286135.100.1.1@1632959822
  python3-module-pyudev-glib-0.22.0-altsisyphus+286375.1600.1.1@1633363025
  python3-module-ipykernel-6.2.0-altsisyphus+286649.500.2.1@1633698256
  python3-module-ipython-7.27.0-altsisyphus+284725.100.1.1@1631005278
  trace-cmd-python3-2.9.1-altsisyphus+262992.100.1.1@1607257457
  screen-message-0.6-altsisyphus+247571.100.1.2@1583868713
  python3-module-twisted-core-20.3.0-altsisyphus+265234.27700.49.1@1613760186
  linuxcnc-2.9.0-alt0.5.sisyphus+285009.200.2.1@1631302222
Comment 1 Vitaly Lipatov 2024-03-02 21:44:00 MSK
На всякий случай напишу, что речь про версию 2, а актуальным является паукет python3-module-pygobject3, с примером использования https://gnome.pages.gitlab.gnome.org/pygobject/

Текущее состояние:
# epm wd python3-module-pygobject
 # apt-cache whatdepends python3-module-pygobject
  tortoisehg-6.5.1-altsisyphus+333660.200.1.1@1699191521
  pyLinuxWheel-0.6.1-altsisyphus+335926.100.1.1@1701857258
  hplip-gui-3.23.12-alt2:sisyphus+341217.100.1.1@1708531115
  python3-module-pygobject-devel-2.28.6-altsisyphus+333513.36010.77.1@1704961841
  python3-module-twisted-core-22.10.0-altsisyphus+333513.32500.72.1@1704589956
  python3-module-ipykernel-6.29.2-altsisyphus+340117.100.1.1@1707406618
  zenmap-7.94-alt2:sisyphus+340146.100.1.1@1707465142
  python3-module-ipython-8.20.0-altsisyphus+338574.100.1.1@1705843189
  screen-message-0.6-altsisyphus+247571.100.1.2@1583868713
  linuxcnc-2.9.2-alt2.sisyphus+340518.300.2.1@1707752999
Comment 2 Grigory Ustinov 2024-03-02 21:53:28 MSK
Спустя 3 года сильно лучше не стало. У меня этот пакет каждое обновление трипитона встаёт костью в горле.

* Thu Jan 11 2024 Grigory Ustinov <grenka@altlinux.org> 2.28.6-alt15
- Fixed build with python3.12.

* Tue Dec 19 2023 Grigory Ustinov <grenka@altlinux.org> 2.28.6-alt14
- Build without distutils.

* Tue Dec 13 2022 Grigory Ustinov <grenka@altlinux.org> 2.28.6-alt13
- Fixed build with python3.11.

* Sun Jan 30 2022 Grigory Ustinov <grenka@altlinux.org> 2.28.6-alt12
- Fixed build with python3.10.

* Sat Jan 30 2021 Grigory Ustinov <grenka@altlinux.org> 2.28.6-alt11
- Fixed build with python3.9.
Comment 3 Vitaly Lipatov 2024-03-02 23:57:38 MSK
Этот модуль (pygobject 2) работает только с python2.7, а его по недосмотру собрали для python3.

При попытке использования
import gobject или
import glib
получается ошибка наподобие
https://bugzilla.altlinux.org/41090

Автоматически зависимость на пакет может находиться из-за конструкций вида

import gi
gi.require_version("Gtk","3.0")
from gi.repository import Gtk
from gi.repository import GObject
from gi.repository import GLib
import glib


которые дают ложную зависимость python3(glib) или python3(gobject).

На данный момент следующие пакеты исправлены:
hplip-1:3.23.12-alt3
python3-module-twisted-core.git=22.10.0-alt3
pyLinuxWheel.git=0.6.1-alt5
screen-message.git=0.6-alt3

Ожидает подтверждения:
341874 EPERM #2 sisyphus tortoisehg.git=6.5.1-alt2

Для непересобирающихся в Сизифе
python3-module-ipykernel
python3-module-ipython
предложены исправления
https://git.altlinux.org/tasks/341872/
https://git.altlinux.org/tasks/341871/


Текущее состояние:
ACLs of affected packages (4):
 ipython3                  rider @everybody
 nmap                      @core
 python3-module-ipykernel  toni @everybody
 tortoisehg                grenka

https://git.altlinux.org/tasks/341878/
Comment 4 Vitaly Lipatov 2024-03-05 10:01:16 MSK
	ACLs of affected packages (2):
 ipython3                  rider @everybody
(сломана сборка в Сизифе)
 nmap                      @core
https://bugzilla.altlinux.org/49592
Comment 5 Vitaly Lipatov 2024-03-30 23:55:36 MSK
Пакет удалён из Сизифа
https://packages.altlinux.org/ru/tasks/341878/
, но выяснились его упоминания при сборке:

sonata-1.7-alt1.a2.git20140903.2
E: Couldn't find package python3-module-pygobject-devel

gnome-extension-manager-0.4.3-alt1
E: Couldn't find package pkgconfig(pygobject-2.0)