Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 62153 - scim-lib does not depend on gtk stuffs
Summary: scim-lib does not depend on gtk stuffs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Low minor (vote)
Assignee: CJK Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-29 15:31 UTC by liuspider
Modified: 2004-09-07 06:42 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description liuspider 2004-08-29 15:31:44 UTC
Below are copied from /usr/portage/app-i18n/scim/scim-0.99.8.ebuild

RDEPEND="virtual/x11
    gnome? ( >=gnome-base/gconf-1.2
        >=dev-libs/libxml2-2.5
        >=gnome-base/orbit-2.8 )
    >=x11-libs/gtk+-2
    >=dev-libs/atk-1
    >=x11-libs/pango-1
    >=dev-libs/glib-2
    !app-i18n/scim-cvs
    !<app-i18n/scim-chinese-0.4.0"
DEPEND="${RDEPEND}
    dev-lang/perl"

scim-lib can be installed/compiled without gtk stuffs, if the user only wants KDE user interface (given he installs skim afterwards, he can use scim-lib without any problems)

So I think these four should be surrounded by gtk ? (...)
    >=x11-libs/gtk+-2
    >=dev-libs/atk-1
    >=x11-libs/pango-1
    >=dev-libs/glib-2

Thanks

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-08-30 09:25:05 UTC
It does depend on GTK+ stuff. Try `ldd /usr/lib/scim-1.0/scim-panel-gtk`
and see gtk+2, atk, pango and glib are linked. If we cannot disable gtk 
stuff from scim-lib, we have to make scim-lib hard-depend on them. I made a 
patch to disable gtk2 features (gtk-utils) from scim (also added 
--disable-gtk2-immodule --disable-frontend-x11 --disable-setup-ui to 
configure flag), but skim won't run with the modified version of scim 
(it seems to need frontend-x11 and frontend-x11 requires scim-panel-gtk, 
which requires gtk).

If you know how to disable gtk2 completely (i.e. disable gtk2 even if 
it is installed), I'm happy to fix the ebuild. 
Comment 2 liuspider 2004-09-03 20:35:54 UTC
scim-lib 1.0.0 is just released

A new configure parameter was introduced in this version: --disable-panel-gtk, and frontend-x11 does not depend on gtk-utils anymore

so it is possible now to disable gtk stuffs completely:
--disable-panel-gtk --disable-gtk2-immodule --disable-setup-ui

Another concern: IMO most users who do not want gtk user interfaces (panel-gtk and setup-ui) may still use gtk2 based applications, so I think gtk2-immodule should be enabled if gtk2 is installed even if -gtk is present in USE (Just remove --disable-gtk2-immodule in the configure parameters, and the configure script will compile gtk2-immodule if gtk2 is detected).
Comment 3 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-09-03 21:51:29 UTC
Thanks for the headsup, I'll test and add it tonight.

As for gtk2 immodules, if we build them scim will depend on gtk2,
so there isn't any point changing DEPEND to not include gtk2.
If I leave gtk2 immodules and just change gtk interface, I will not 
change DEPEND but pass '--disable-panel-gtk  --disable-setup-ui' 
to configure script if USE="-gtk".
Comment 4 liuspider 2004-09-04 07:32:53 UTC
I know what you mean.

But my point is that: if the user does not have gtk2 installed, then gtk2-immodule is useless to him, and we should not force him to install gtk2. What's your opinion?
Comment 5 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-09-07 06:42:54 UTC
Fixed in CVS. Thanks.