Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 244801 - Ebuild for dev-util/mercurial should depend on dev-lang/tk because /usr/bin/hgk depends on wish
Summary: Ebuild for dev-util/mercurial should depend on dev-lang/tk because /usr/bin/h...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Krzysztof Pawlik (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-28 17:55 UTC by Onkel jot
Modified: 2009-01-08 22:45 UTC (History)
1 user (show)

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 Onkel jot 2008-10-28 17:55:21 UTC
I emerged dev-util/mercurial 1.0.2 and tried to start the graphical /usr/bin/hgk. The error is

/usr/bin/env: wish: No such file or directory

wish is part of dev-lang/tk, which is not emerged on my machine. After finding out that wish belongs to dev-lang/tk, i emerged tk.

Reproducible: Always

Steps to Reproduce:
1. unmerge tk
2. emerge mercurial
3. start hgk

Actual Results:  

/usr/bin/env: wish: No such file or directory

Expected Results:  
hgk comes up

After emerging tk, hgk still does not come up, but that's another story...

Error in startup script: can't read "env(HG)": no such variable
    while executing
"exec $env(HG) debug-config"
    (procedure "getconfig" line 4)
    invoked from within
"getconfig"
    invoked from within
"array set config [getconfig]"
    (file "/usr/bin/hgk" line 3904)
Comment 1 Dirkjan Ochtman (RETIRED) gentoo-dev 2008-12-03 09:34:33 UTC
This should be done through some use flag, at least. Just pulling in tcl/tk for a Mercurial extension or contrib script doesn't make much sense.
Comment 2 Krzysztof Pawlik (RETIRED) gentoo-dev 2009-01-08 22:45:27 UTC
I've added tk use flag which pulls in dev-lang/tk.