Subject: pkg/26174: Incorrect gnats4 installation
To: None <>
From: Hauke Fath <>
List: pkgsrc-bugs
Date: 07/06/2004 17:05:16
>Number:         26174
>Category:       pkg
>Synopsis:       Incorrect gnats4 installation
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jul 06 15:06:00 UTC 2004
>Originator:     Hauke Fath <>
>Release:        NetBSD 2.0_BETA
System: NetBSD bounce 2.0_BETA NetBSD 2.0_BETA (BOUNCE) #0: Tue Jun 1 19:25:03 CEST 2004 hf@heiligenberg:/var/obj/netbsd-builds/2_0/i386/obj/sys/arch/i386/compile/BOUNCE i386
Architecture: i386
Machine: i386
	The databases/gnats4 package creates an installation with
	a few problems.

	(1) The home directory of the user 'gnats' which contains
	database and spool directories is created in
	$PREFIX/share/gnats. From 'man 7 hier':

     /usr/share/    architecture-independent text files
     /var/          multi-purpose log, temporary, transient, and spool files

	Obviously, something under $VARBASE, $VARBASE/spool or
	$VARBASE/db would be more appropriate.

	(2) The MESSAGE file recommends to run
	$PREFIX/libexec/gnats/mkcat as gnats. Unfortunately, this
	results in

[gnats@bounce] /<2>share/gnats > /usr/pkg/libexec/gnats/mkcat
query-pr: The directory /usr/pkg/com/gnatsdb does not exist for database default
query-pr: The directory /usr/pkg/com/gnatsdb does not exist for database default
[gnats@bounce] /<2>share/gnats >

	If $PREFIX/com is intended to be used, it should be
	created. But IMHO the gnatsdb ought to go under $VARBASE. And
	if a different path is used, the mkcat script needs to be
	patched accordingly.

	There may be more problems, but I stopped here.
	The package leaves the impression that it has not been tested

	Install gnats4.