Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 26194

Summary: courier-imap >=1.7.2 ebuild ignores "-tcltk" USE flag
Product: Gentoo Linux Reporter: nils wikström <nils.w>
Component: New packagesAssignee: Robin Johnson <robbat2>
Status: VERIFIED INVALID    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description nils wikström 2003-08-08 04:50:00 UTC
courier-imap-1.7.1 builds fine without tcltk (USE="-tcltk").
courier-imap 1.7.2, 1.7.3, 1.7.3-r1 & 2.0 forces tcltk to be included.

relevant (correct?) line [21] (courier-imap-1.7.1.ebuild):

    tcltk? ( >=dev-tcltk/expect-5.33.0 )


relevant (wrong?) line [22] (courier-imap-1.7.3-r1.ebuild):

    >=dev-tcltk/expect-5.33.0"
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-08-11 02:15:47 UTC
The problem was that the courier-imap ebuild has a hard dependancy on expect as it really needs it for one of the authdaemond components.
Previously if you had USE="-tcltk", that part of authdaemond just didn't work at all.
Comment 2 nils wikström 2003-08-11 02:54:26 UTC
Maybe -without-authdaemon could be used instead of forcing tcl, tk, expect and X to be installed? Seems like a nicer solution to me...
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-08-11 03:21:35 UTC
Nothing is forcing tk and Xfree at all in courier-imap and expect.

expect will ONLY pull in tk (and thus xfree) if you have the X use flag set.

If i run:
USE="-X -tcltk" emerge -epv courier-imap
It shows me that only TCL is being installed, and not X.

If you are getting xfree pulled in, then something else on your system is wanting it.
Comment 4 nils wikström 2003-08-11 05:08:50 UTC
Ok... already have X installed just misread the ebuilds. But wouldn't it be preferable not having to install expect and tcl, just to use courier, when authdaemon is not used.

Debian
(http://packages.debian.org/unstable/mail/courier-imap.html)
and FreeBSD (http://www.freebsd.org/cgi/cvsweb.cgi/ports/mail/courier-imap/Makefile?rev=1.51&content-type=text/x-cvsweb-markup) seems to do fine without them (tcl and expect that is).

As noted earlier when -without-authdaemon expect (and tcl) is not needed.

Would it be exceptable to modify the ebuild (for inclusion in gentoo) that disables authdeamon based on the tcltk use flag? ... or any other existing use flag?
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-08-11 08:33:58 UTC
1. the tcltk use flag is being split up soon to 'tcl' and 'tk' components.
2. What I would consider acceptable is a patch that would disable the module properly (I tried once before, but didn't continue very far. The module is 'authsystem.passwd').