You are not logged in.

#1 2010-05-12 00:36:29

mathfeel
Member
Registered: 2010-05-08
Posts: 36

gitk fails to run after

After just installing git, gitk fails to run:

$ gitk
/usr/bin/gitk: line 3: exec: wish: not found

Which package provides wish? In general is there a way to ask this question with pacman?


Cheers!

M

Offline

#2 2010-05-12 00:39:42

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: gitk fails to run after

$ pacman -Si git
Repository     : extra
Name           : git
Version        : 1.7.1-1
URL            : http://git-scm.com/
Licenses       : GPL2  
Groups         : None
Provides       : git-core  
Depends On     : curl  expat>=2.0  perl-error  perl>=5.10.0  
Optional Deps  : tk: gitk and git gui
                 perl-libwww: git svn
                 perl-term-readkey: git svn
                 subversion: git svn
                 cvsps: git cvsimport

hint: optional dependencies

Last edited by wonder (2010-05-12 00:40:15)


Give what you have. To someone, it may be better than you dare to think.

Offline

#3 2010-05-13 01:32:30

mathfeel
Member
Registered: 2010-05-08
Posts: 36

Re: gitk fails to run after

So the package is compiled with tcl/tk support, but do not automatically pull in tk as a run time dependency? Is this suppose to be correct behavior of package dependency in Arch?


Cheers!

M

Offline

#4 2010-05-13 01:54:11

schen
Member
Registered: 2009-06-06
Posts: 468

Re: gitk fails to run after

It is correct behavior. Optional dependencies just boost the functionality of the program.

Offline

#5 2010-05-14 01:48:32

mathfeel
Member
Registered: 2010-05-08
Posts: 36

Re: gitk fails to run after

Seems to me it makes more sense to have gitk to be separate package which depends on tk. This way the system won't install some nonfunctional part.  And user who wants the boosted functionality can install gitk.


Cheers!

M

Offline

#6 2010-05-14 02:16:17

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,672
Website

Re: gitk fails to run after

Unlike other distros, Arch almost always packages the entire upstream release in a single package.  That means gitk will stay part of the git package.  As not everyone needs gitk, and hence the tk dependency, that is worked around using optdepends.  The optdependes are clearly printed by pacman on the first install of a package and any new ones on subsequent updates.  You are expected to read the pacman output on installs/upgrades.

Offline

Board footer

Powered by FluxBB