FS#62995 - [ibus] Hard dependency on on python2-dbus
Attached to Project:
Arch Linux
Opened by Bernie Innocenti (codewiz) - Monday, 24 June 2019, 15:17 GMT
Last edited by Felix Yan (felixonmars) - Sunday, 17 January 2021, 17:59 GMT
Opened by Bernie Innocenti (codewiz) - Monday, 24 June 2019, 15:17 GMT
Last edited by Felix Yan (felixonmars) - Sunday, 17 January 2021, 17:59 GMT
|
Details
ibus-1.5.20-2 is the last package on my desktop still having
dependencies on Python 2.
The ibus RPM in Fedora 30 does not have any dependencies on Python 2, so it should be possible to build it the same way on Arch. |
This task depends upon
Closed by Felix Yan (felixonmars)
Sunday, 17 January 2021, 17:59 GMT
Reason for closing: Fixed
Additional comments about closing: ibus-1.5.23+3+gaa558de8-3
Sunday, 17 January 2021, 17:59 GMT
Reason for closing: Fixed
Additional comments about closing: ibus-1.5.23+3+gaa558de8-3
Please, remove the unneeded dependency. Thanks in advance!
Where only the last one depends on python.
As such, based on the wiki[1] one should use something like
optdepends=(
'python-dbus: for ibus-setup'
'python-gobject: for ibus-setup'
'python2-gobject2: for ibus-setup'
'python2-dbus: for ibus-setup'
'python2-gobject: for ibus-setup'
)
Can we have something like this please?
[1] https://wiki.archlinux.org/index.php/PKGBUILD#optdepends
I'm using a local package which demotes python* as mentioned.
Installed python2* and had a quick test - PYTHON=python2 ibus-setup does bring the GUI prompting to start the daemon.
https://aur.archlinux.org/packages/ibus-clean
On Arch, ibus-googlepinyin does not exist anymore, and ibus-sunpinyin is using Python 3 by now; there are only a few remaining input methods like ibus-pinyin that use Python 2 (I have not checked all packages though)
(also, in Debian Testing, this was updated to Python 3 as well: https://salsa.debian.org/input-method-team/ibus-pinyin/-/blob/master/debian/patches/python3.patch )
It would be great if the Python 2 deps could be moved to the input method packages that actually require them.
FS#42243which added the python2 dependencies was for ibus-googlepinyin which is no longer packaged.Only ibus-pinyin uses python2 of the current dependencies. PKGBUILD.ibus-pinyin.diff converts it to python3. Lua compatibility patch curtsy of Fedora.
PKGBUILD.sunpinyin.diff converts it to python3.
Edit:
Updated PKGBUILD.ibus.diff to ibus 1.5.23 and to build with vala 50.
PKGBUILD.ibus-pinyin.diff (4 KiB)
PKGBUILD.sunpinyin.diff (7.6 KiB)
PKGBUILD.ibus.diff (1.7 KiB)
Yeah, ibus is the only package depending on python2 on my system now.
(BTW, python2-twisted & python2-incremental depend on each other so didn't show up in `pacman -Qtd`, nearly escaping the great broom of history ;)
On top of removing python2-* dependencies, Felix, please also remove ibus.install, since these are handled by alpm hooks already.
The ibus package was updated today, but apparently the python2 dependencies are still included, along with the outdated ibus.install file. Is there a particular reason for why these are still being kept around or is it just an accidental omission?
Sorry for the very long delay.
At install time an annoying "gtk-query-immodules-2.0 not found" message pops up.
You already removed ibus.install, perhaps it should be in the final package (-3)?