Subject: pkg/13058: rpm package violates hier(7) and pkgsrc standards.
To: None <>
From: None <>
List: netbsd-bugs
Date: 05/28/2001 14:57:51
>Number:         13058
>Category:       pkg
>Synopsis:       The rpm package installs stuff into /var/pkg.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon May 28 11:57:00 PDT 2001
>Originator:     Thor Lancelot Simon
>Release:        rpm's makefile in my pkgsrc is from 2001-03-27.
	The NetBSD Project
System: NetBSD 1.5.1_ALPHA NetBSD 1.5.1_ALPHA (BOCK) #16: Wed Feb 28 16:55:59 EST 2001 i386

	Building and installing the rpm package creates files and directories
in /var/pkg.  Packages are supposed to use only /usr/pkg, /var/db/pkg, and
/usr/X11R6 (unless these values have been explicitly changed by the user).

This violates hier(7), isn't the documented behaviour, and breaks things for
users who expect pkgsrc to contain itself as documented.
Build the rpm package.  Install the rpm package.  Notice that you've sprouted
a /var/pkg directory, and stuff in it.
Make rpm use some subdirectory of LOCALBASE, *not* /var/pkg.