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)
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.
I've added tk use flag which pulls in dev-lang/tk.