Subject: Issues with new INSTALL scripts and pkgviews
To: NetBSD Packages Technical Discussion List <tech-pkg@NetBSD.ORG>
From: Johnny C. Lam <>
List: tech-pkg
Date: 01/28/2005 15:41:15
This is a multi-part message in MIME format.
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

There are some problems with the way the new INSTALL scripts work that 
impact pkgviews.  More specifically, the reference-counting mechanism 
won't work properly, although the user will still be warned of any 
directories/users/groups that can be removed at package deinstallation 
time.  I'm still working on a fix for this issue.  This issue has no 
impact on users that are not using pkgviews.


	-- Johnny Lam <>

Content-Type: message/rfc822;
 name="CVS commit: pkgsrc/mk"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="CVS commit: pkgsrc/mk"

From: "Johnny C. Lam" <>
Newsgroups: gmane.os.netbsd.devel.pkgsrc.cvs
Subject: CVS commit: pkgsrc/mk
Date: Fri, 28 Jan 2005 19:06:07 +0000 (UTC)
Message-ID: <>
NNTP-Posting-Date: Fri, 28 Jan 2005 19:06:14 +0000 (UTC)
Original-X-From: Fri Jan 28 20:06:13 2005
Return-path: <>
Original-Received: from ([])
	by with esmtp (Exim 3.35 #1 (Debian))
	id 1CubRc-0004B1-00
	for <>; Fri, 28 Jan 2005 20:06:12 +0100
Original-Received: by (Postfix, from userid 0)
	id ADD8253A2; Fri, 28 Jan 2005 19:06:08 +0000 (UTC)
Original-Received: from ( [])
	by (Postfix) with ESMTP id A01DF5190
	for <>; Fri, 28 Jan 2005 19:06:07 +0000 (UTC)
Original-Received: by (Postfix, from userid 500)
	id 906CF2DA1D; Fri, 28 Jan 2005 19:06:07 +0000 (UTC)
Xref: gmane.os.netbsd.devel.pkgsrc.cvs:51096

Module Name:	pkgsrc
Committed By:	jlam
Date:		Fri Jan 28 19:06:07 UTC 2005

Modified Files:
	pkgsrc/mk/install: dirs usergroup

Log Message:
Avoid hardcoding the refcount database into the INSTALL scripts.  We
now simply make ${PKG_REFCOUNT_DBDIR} always be ${PKG_DBDIR}.refcount
so that it always follows the location of ${PKG_DBDIR}.  This preserves
the ability for PKG_DBDIR (and PKG_REFCOUNT_DBDIR) to be different on
different machines despite using the same binary packages.

To generate a diff of this commit:
cvs rdiff -r1.77 -r1.78 pkgsrc/mk/
cvs rdiff -r1.1 -r1.2 pkgsrc/mk/install/dirs
cvs rdiff -r1.2 -r1.3 pkgsrc/mk/install/usergroup

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.