pkg/60181: devel/py-mercurial should provide unversioned path to hgweb static content

"[email protected] via gnats" <[email protected]> Tue, 7 Apr 2026 16:00:01 +0000 (UTC)
Newsgroups gmane.os.netbsd.devel.pkgsrc.bugs
Message-ID <[email protected]>
>Number:         60181
>Category:       pkg
>Synopsis:       devel/py-mercurial should provide unversioned path to hgweb static content
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Apr 07 16:00:00 +0000 2026
>Originator:     Taylor R Campbell
>Release:        current
>Organization:
The NetBSD Foundafile-3.13
>Environment:
>Description:

	The devel/py-mercurial package ships an _unversioned_ binary
	bin/hg.  If it's going to do that, it should also ship an
	_unversioned_ path (or symlink) to what is currently installed
	as lib/python${PYVERS}/site-packages/mercurial/templates/static
	so that file can be easily put into httpd configuration.

>How-To-Repeat:

	try to configure apache2 or nginx to serve hgweb static content
	so it won't break when python is inevitably upgraded next month

>Fix:

	Something like this:

post-install:
	mkdir ${DESTDIR}${PREFIX}/share/mercurial
	ln -sfn ../../../lib/python${PYVERS}/site-packages/mercurial/templates ${DESTDIR}${PREFIX}/share/mercurial/