pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

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



>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/




Home | Main Index | Thread Index | Old Index