Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 186042 - dev-util/mercurial installs scripts outside of $PATH
Summary: dev-util/mercurial installs scripts outside of $PATH
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Krzysztof Pawlik (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-20 23:10 UTC by Cristi Magherusan
Modified: 2008-06-09 19:30 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 Cristi Magherusan 2007-07-20 23:10:35 UTC
Hello,
I'm using mercurial (hg) and it seems some of its files, even binaries get installed into /usr/share/doc/mercurial-<VERSION>/contrib/
For example hgk, which is a tk script for commit history browsing gets installed there too, and since "hg view" needs it in $PATH, i have to make a symlink every time i'm updating mercurial.There are other binary tools there too, and since they're binaries they don't belong there.
It would be nice if the install script would put the binaries somewhere in $PATH, or at list make the symlinks instead of the user.

Reproducible: Always
Comment 1 Andrew Ross (RETIRED) gentoo-dev 2007-08-05 03:34:39 UTC
As contrib(uted) scripts which aren't an official part of the upstream package (despite inclusion in the tarball), I'm going to leave most of them in /usr/share - especially those which are single-use utilities (e.g. darcs2hg) and/or require additional programs (e.g. buildrpm, git-viz/*).

Since hgdiff, hg-relink simplemerge and hg-ssh are self-contained and potentially useful, I'll have them installed to /usr/bin when mercurial is next revbumped. rewrite-log is completely undocumented, so will stay in /usr/share for now.

hgk will be controlled by the tk USE flag, but will take some time, as I don't have any Gentoo systems with X on them.
Comment 2 Bill Binder 2007-08-26 11:28:59 UTC
(In reply to comment #0)

> For example hgk, which is a tk script for commit history browsing gets
> installed there too, and since "hg view" needs it in $PATH, i have to make a
> symlink every time i'm updating mercurial.

I don't think you need a symlink for hgk, just add its path into your ~/.hgrc file:

[hgk]
path=/usr/share/doc/mercurial-0.9.4/contrib/hgk
Comment 3 Łukasz Damentko (RETIRED) gentoo-dev 2008-05-27 13:32:40 UTC
aross was retired (#139633), reassigning remaining bugs.
Comment 4 Krzysztof Pawlik (RETIRED) gentoo-dev 2008-06-09 19:30:04 UTC
------------------------------------------------------------------------------
Install additional tools into bin directory, see bug #186042.
(Portage version: 2.1.5.4)
------------------------------------------------------------------------------