NetBSD Problem Report #60181

From www@netbsd.org  Tue Apr  7 15:58:58 2026
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
	 client-signature RSA-PSS (2048 bits) client-digest SHA256)
	(Client CN "mail.netbsd.org", Issuer "R12" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id CBFFD1A9239
	for <gnats-bugs@gnats.NetBSD.org>; Tue,  7 Apr 2026 15:58:57 +0000 (UTC)
Message-Id: <20260407155856.B61861A923A@mollari.NetBSD.org>
Date: Tue,  7 Apr 2026 15:58:56 +0000 (UTC)
From: campbell+netbsd@mumble.net
Reply-To: campbell+netbsd@mumble.net
To: gnats-bugs@NetBSD.org
Subject: devel/py-mercurial should provide unversioned path to hgweb static content
X-Send-Pr-Version: www-1.0
X-From4GNATS: "campbell+netbsd@mumble.net via gnats" <gnats-admin@NetBSD.org>

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

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.