Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 388735 - app-i18n/ibus: python flag badly used
Summary: app-i18n/ibus: python flag badly used
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: CJK Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-28 04:30 UTC by Samuel Bauer
Modified: 2017-08-01 14:30 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
python is a default requirement - libnotify is an optional requirement for notifications only (libnotify_patch-ibus-1.4.1.ebuild,2.75 KB, patch)
2012-04-04 07:08 UTC, Federico Scrinzi (RETIRED)
Details | Diff
python is a default requirement - libnotify is an optional requirement for notifications only (libnotify_patch-ibus-1.4.1.ebuild,1.96 KB, text/plain)
2012-04-04 07:26 UTC, Federico Scrinzi (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Samuel Bauer 2011-10-28 04:30:51 UTC
The use flag python for ibus installs necessary dependency to work with libnotify.
Those dependencies are dev-python/dbus-python and dev-python/notify-python.

python - Adds optional support/bindings for the Python language
libnotify - Enable desktop notification support

In this case the python flag is enabling desktop notification.

Reproducible: Always
Comment 2 Maxim Kammerer 2011-12-30 00:16:41 UTC
This is correct, the python USE flag creates the false impression that IBus can be used without Python. However, as /usr/libexec/ibus-ui-gtk is unavailable, ibus-daemon fails with: "Can not execute default panel program".
Comment 3 Federico Scrinzi (RETIRED) gentoo-dev 2012-04-04 07:08:29 UTC
Created attachment 307717 [details, diff]
python is a default requirement - libnotify is an optional requirement for notifications only
Comment 4 Federico Scrinzi (RETIRED) gentoo-dev 2012-04-04 07:26:07 UTC
Created attachment 307719 [details]
python is a default requirement - libnotify is an optional requirement for notifications only
Comment 5 Samuel Bauer 2012-04-04 07:56:48 UTC
(In reply to Comment 3)

Python is default requirement only due to the fact that ui are written with pygtk.
Comment 6 Samuel Bauer 2012-04-04 08:02:03 UTC
(In reply to Comment 2)

Ibus is modular: -s, −−single do not execute panel and config module.
But as said in previous comment, the only ui available are written in pygtk.
Comment 7 Nguyen Thai Ngoc Duy 2012-07-23 05:55:31 UTC
ibus-python is not installed without python USE flag but pkg_postinst() instructs users to run it anyway. If python should be optional, then at least pkg_postint() should be updated to only ask users to run ibus-setup when python is set.
Comment 8 Naohiro Aota gentoo-dev 2012-07-29 20:04:50 UTC
Hi, ibus can be used with non-X system (e.g. ibus-fbterm), so
I'd like to have pygtk optional. I'm considering to replace
the log with:

	elog "2. Setup ibus:"
	if use python; then
		elog "   $ ibus-setup"
		elog
	else
		elog "   You need to copy your existing configuration files or use"
		elog "   gconf tools to set it up manually. If you'd like to use gui,"
		elog "   you need to rebuild ibus with USE=python."
		elog
	fi
Comment 9 Ben de Groot (RETIRED) gentoo-dev 2012-07-30 06:34:27 UTC
Since its function is to provide a GUI under X, I propose to replace it with the X useflag. This would make more sense to users, and would be enabled by default in the desktop profile.
Comment 10 Naohiro Aota gentoo-dev 2012-08-09 16:44:56 UTC
(In reply to comment #9)
> Since its function is to provide a GUI under X, I propose to replace it with
> the X useflag. This would make more sense to users, and would be enabled by
> default in the desktop profile.

Unfortunately, it's also used for python bindings and they are not separated.

See ibus issue here:

http://code.google.com/p/ibus/issues/detail?id=1251