Bug 4829 - 'make deb' produces a package that lacks hgk
Summary: 'make deb' produces a package that lacks hgk
Status: RESOLVED FIXED
Alias: None
Product: Mercurial
Classification: Unclassified
Component: packaging (show other bugs)
Version: default branch
Hardware: PC Linux
: wish feature
Assignee: Bugzilla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-16 10:45 UTC by Chris Angelico
Modified: 2015-09-22 19:52 UTC (History)
2 users (show)

See Also:
Python Version: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Angelico 2015-09-16 10:45 UTC
Building Mercurial from source and producing a Debian package works on Debian Jessie, but the resulting package doesn't contain the 'hgk' command, so 'hg view' fails.

The hgk executable does exist in the hg/contrib directory, so adding an .hgrc directive pointing to it does enable hg view, but it'd be tidier to have in the package.

Poked around in the source a bit, but can't find where the "--install-layout=deb" option to setup.py is implemented, or where hgk would be added to the list of installed files - sorry!
Comment 1 HG Bot 2015-09-22 19:30 UTC
Fixed by https://selenic.com/repo/hg/rev/79e1064f7c5e
Augie Fackler <augie@google.com>
debian: install hgk as part of mercurial-common (issue4829)

Leaving the hgk binary in /usr/bin causes some lintian warnings, and
downstream packages poke it in /usr/share/mercurial, so we'll just
stash it in there. Rather than patch hgk.py as part of the Mercurial
install, just drop a config file in /etc/mercurial/hgrc.d that points
to the installed hgk.

(please test the fix)
Comment 2 Chris Angelico 2015-09-22 19:52 UTC
Thank you, that's working! Tested it as an upgrade over my current Mercurial (also built from source), and as a brand new package on a system that hadn't had any Mercurial installed on it, and in both cases, 'hg view' is functional.