Subject: pkg/9438: JDK package violates hier(7)
To: None <gnats-bugs@gnats.netbsd.org>
From: None <tls@cs.stevens-tech.edu>
List: netbsd-bugs
Date: 02/17/2000 07:06:44
>Number:         9438
>Category:       pkg
>Synopsis:       The JDK package (1.1.8) installs in subdirs in /usr/pkg/java
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager (NetBSD software packages system bug manager)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Feb 17 07:06:00 2000
>Last-Modified:
>Originator:     Thor Lancelot Simon
>Organization:
	Stevens Institute of Technology
>Release:        pkgsrc as of 2000-02-17
>Environment:
	NetBSD/i386 1.4Q, ELF
System: NetBSD lamneth 1.4Q NetBSD 1.4Q (LAMENITH) #7: Tue Jan 25 20:22:00 EST 2000 root@lamneth:/usr/src/sys/arch/i386/compile/LAMENITH i386


>Description:
	The 'jdk' package installs itself into /usr/pkg/java, in blatant
	violation of hier(7).  It's bad enough that by default X11 packages
	don't use xpkgwedge, and so end up elsewhere than in the right places
	in /usr/pkg -- but I think it's been pretty well hashed-out that the
	"Standard NetBSD Way" is *not* for every subsystem 'foo' to have its 
	own /usr/pkg (or /, or /usr)/foo.  Oh, sure, java's "special"...
	...and so is any other package whose maintainer decides it's
	"special".  This way lies chaos, with the necessity for me, for
	example, to change /etc/profile on dozens of machines every time a
	package maintainer decides his package is "special" enough to keep
	its executables outside /usr/pkg/bin...

	Please fix this to comply with hier(7).

>How-To-Repeat:
	Install the JDK package.  Observe the resulting directory structure,
	and random lossage for users who don't add /usr/pkg/java/bin to their
	PATHs.
>Fix:
	Install into /usr/pkg, not /usr/pkg/java.
>Audit-Trail:
>Unformatted: