Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 292 - fetchmail missing tk toolkit dependencies
Summary: fetchmail missing tk toolkit dependencies
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Damon Conway (RETIRED)
Depends on:
Reported: 2002-01-23 16:35 UTC by Yannick Koehler (RETIRED)
Modified: 2003-02-04 19:42 UTC (History)
0 users

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


Note You need to log in before you can comment on or make changes to this bug.
Description Yannick Koehler (RETIRED) gentoo-dev 2002-01-23 16:35:53 UTC
The thing compile fine but I can't run fetchmailconf which require the python 
module for Tk toolkit.

I think the version was fetchmail-5.9.6

My guess is they all have the issue because I've not seen any package called Tk-
toolkit for python in the whole portage package list.
Comment 1 Tod M. Neidt (RETIRED) gentoo-dev 2002-02-14 11:00:14 UTC

tkinter (the python tk widget stuff) is installed with the python ebuild.
However you must have 'tk' in your USE variable.
Comment 2 Tod M. Neidt (RETIRED) gentoo-dev 2002-02-14 11:27:35 UTC

Ok, maybe some einfo lines to inform the user that if they want to use
fetchmailconf they need to have python installed with tk support enabled, i.e
'tk' in USE when python is merged. It is too bad portage can't handle
dependencies with specified USE variables, then we could

    tk? ( dev-lang/python USE="tk" )"

If we wanted to get fancy, we could test for the tkinter module and inform the
user of the current state. For example (the test is bogus and just illustrative,
I think :),

pkg_postinst() {

    einfo "In order to use fetchmailconf, you need to have python merged"
    einfo "with tkinter support enabled, i.e. merge python with 'tk' in USE."

    if [ $( python -c "import tkinter" )] then
        einfo "You currently have tkinter support."
        einfo "You do not currently have tkinter support."
Comment 3 Arcady Genkin (RETIRED) gentoo-dev 2002-02-14 23:05:06 UTC
Tod, I used a version of your idea in the ebuild for fetchmail 5.9.7.  It warns
the user if fetchmailconf cannot be used.