Subject: pkg/13058: rpm package violates hier(7) and pkgsrc standards.
To: None <gnats-bugs@gnats.netbsd.org>
From: None <tls@netbsd.org>
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
>Closed-Date:
>Last-Modified:
>Originator:     Thor Lancelot Simon
>Release:        rpm's makefile in my pkgsrc is from 2001-03-27.
>Organization:
	The NetBSD Project
>Environment:
System: NetBSD timmermans.cs.stevens-tech.edu 1.5.1_ALPHA NetBSD 1.5.1_ALPHA (BOCK) #16: Wed Feb 28 16:55:59 EST 2001 root@amstel.cs.stevens-tech.edu:/usr/src/sys/arch/i386/compile/BOCK i386


>Description:
	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.
>How-To-Repeat:
Build the rpm package.  Install the rpm package.  Notice that you've sprouted
a /var/pkg directory, and stuff in it.
>Fix:
Make rpm use some subdirectory of LOCALBASE, *not* /var/pkg.

>Release-Note:
>Audit-Trail:
>Unformatted: