public inbox for gnats-devel@sourceware.org
 help / color / mirror / Atom feed
* setting the default database in gnats 3.999.2
@ 2003-06-14  2:15 Erwin, Richard D
  2003-06-14 18:39 ` Brandon Metcalf
  0 siblings, 1 reply; 4+ messages in thread
From: Erwin, Richard D @ 2003-06-14  2:15 UTC (permalink / raw)
  To: help-gnats

Folks;

I get stuck at the following point...

dezolt% /mnt6/gnats-3.999.2/gnats/mkdb default
mkdb: No proper entry for `default' in `/usr/local/etc/gnats/databases':

dezolt% 

I have a /usr/local/com, per the documentation, it should be accessible, and the build otherwise of gnats 4.0 (multiple builds, actually, to see where the hole might be in the logic that creates the above result) was without any problems.  The build is on Solaris 8.

Any help would be useful and appreciated.

Rich Erwin
Boeing SSG - M&CT Support
(425) 865-3414


_______________________________________________
Help-gnats mailing list
Help-gnats@gnu.org
http://mail.gnu.org/mailman/listinfo/help-gnats

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: setting the default database in gnats 3.999.2
  2003-06-14  2:15 setting the default database in gnats 3.999.2 Erwin, Richard D
@ 2003-06-14 18:39 ` Brandon Metcalf
  0 siblings, 0 replies; 4+ messages in thread
From: Brandon Metcalf @ 2003-06-14 18:39 UTC (permalink / raw)
  To: Erwin, Richard D; +Cc: help-gnats

r == richard.d.erwin@boeing.com writes:

 r> dezolt% /mnt6/gnats-3.999.2/gnats/mkdb default
 r> mkdb: No proper entry for `default' in `/usr/local/etc/gnats/databases':

You should have a line like

  default:Bug database:/usr/local/com/gnatsdb

in /usr/local/etc/gnats/databases.


Brandon
-- 
And let me tell you this. The older you do get, the more rules they're
going to try to get you to follow. You just gotta keep livin' man.
L.I.V.I.N.  --Wooderson


_______________________________________________
Help-gnats mailing list
Help-gnats@gnu.org
http://mail.gnu.org/mailman/listinfo/help-gnats

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: setting the default database in gnats 3.999.2
  2003-06-16 18:03 Erwin, Richard D
@ 2003-06-16 20:54 ` Hans-Albert Schneider
  0 siblings, 0 replies; 4+ messages in thread
From: Hans-Albert Schneider @ 2003-06-16 20:54 UTC (permalink / raw)
  To: Erwin, Richard D, Brandon Metcalf; +Cc: help-gnats

On Monday 16 June 2003 19:56, Erwin, Richard D wrote:

> I am going to assume, forthe moment, that can grab a copy of and
> adjust my categories file from my build of gnats 3.113 and adjust
> to suit.

The format did only change slightly.  Here are the explanations
from the "categories" file of the current sources:

# Each entry has the format:
#
# 	category:description:responsible:notify
#
# * `category' is the name of the classification for the PR.  The
#   first category listed will be the default assigned to PRs that
#   arrive without one set.  This is traditionally called "pending".
#
# * `description' can be a normal text description for the
#    category, like "Development Tools" for the `tools' category.
#
# * `responsible' gives the name (which can be found in the responsible
#    file) of the person who will be given responsibility for any PR
#    appearing in this category.
#
# * `notify' are other email addresses which should be given copies of
#    any PR in this category.  These names are also mapped through the
#    responsible file when trying to determine the email address to use.
#

I see the following differences compares to 3.1xx:

- The name of the "pending" category is not fixed anymore; it is simply
  the first one listed. So if you want the old behaviour, make sure there
  is a category named "pending", and that it is the first one listed in the
  categories file.

- According to the documentation cited above, the "notify" field is now
  also mapped through the "responsibles" file; in 3.1xx it contained
  e-mail addresses.  (I did not check the source code for this.)


Please note that both the name and the format of the file are now defined
in the "dbconfig" file, and can be changed there; look for
	field "Category" {
	...
	}
You can also rename the field; but you must keep the line
	builtin-name "category"

If you want to change the name of the category or the format of the file,
also look for cross references like 'Category[notify]'.

> In the meantime, any suggestions on how to fix the abovementioned
> error would be appreciated.

Check the permissions of the files and directories involved.
Especially: can you read the source file? Does it exits?
Try
	ls -l /usr/local/etc/gnats/defaults/categories
	ls -ld /usr/local/etc/gnats/defaults
The file should have mode 644 ("-rw-r--r--" at the beginning of the line),
and the directory should have mode 755 ("drwxr-xr-x"). The same holds
for the directories "above" it; i.e., for /usr/local/etc/gnats, /usr/local/etc,
/usr/local, /usr, and /).
(Well, this is not exactly true, but it simplifies the explanation.)

If one of the directories has fewer permissions, e.g. "drwx------",
please change them with the command
	chmod 755 /usr/local/etc/gnats/defaults
(or whichever directory it is).  The permissions of the file
can be changed with
	chmod 644 /usr/local/etc/gnats/defaults/categories

If
	cat /usr/local/etc/gnats/defaults/categories
works, so should the "cp".  Please also check the other files in
/usr/local/etc/gnats/defaults; they also need mode 644.

If it is really the permissions, please report this to the list.
I suspect that the "umask" which was active when you installed
gnats, so please type (as the user who did the "make install"):
	umask
and include the result in your report.
It may also have happened that someone changed the
permissions after installation.

Other ideas (they may be a bit queer):
- If /usr/local is mounted from another machine (typically via NFS),
  that machine may have been down when you typed mkdb.
- Are you sure you used the "mkdb" from the right place?
  (Not from another installation, or whatever.)
- What about error messages during installation?


Hans-Albert
-- 
Hans-Albert Schneider
Munich, Germany
EMail: Hans-Albert@HA-Schneider.de


_______________________________________________
Help-gnats mailing list
Help-gnats@gnu.org
http://mail.gnu.org/mailman/listinfo/help-gnats

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: setting the default database in gnats 3.999.2
@ 2003-06-16 18:03 Erwin, Richard D
  2003-06-16 20:54 ` Hans-Albert Schneider
  0 siblings, 1 reply; 4+ messages in thread
From: Erwin, Richard D @ 2003-06-16 18:03 UTC (permalink / raw)
  To: Brandon Metcalf; +Cc: help-gnats

Brandon;

Thanks for your advice.  One should also note that gnatsdb is created as part of the mkdb process.  (This isn't very clearly stated in the "Installing the default database) documentation.)  As a result, the directory com, wherever you put it (I have it at /usr/local/com) should be writeable by gnats, since mkdb is supposed to be used to create database(s) while in ~/com.

I'm getting another error, however---


dezolt% ./mkdb default
Copying default files from /usr/local/etc/gnats/defaults
cp: cannot access /usr/local/etc/gnats/defaults/categories
Can't copy file /usr/local/etc/gnats/defaults/categories to /usr/local/com/gnatsdb/gnats-adm/categories, exiting
dezolt% 

I am going to assume, forthe moment, that can grab a copy of and adjust my categories file from my build of gnats 3.113 and adjust to suit.  In the meantime, any suggestions on how to fix the abovementioned error would be appreciated.

Rich Erwin
Boeing SSG - M&CT Support
(425) 865-3414


-----Original Message-----
From: Brandon Metcalf [mailto:bmetcalf@nortelnetworks.com]
Sent: Saturday, June 14, 2003 11:37 AM
To: Erwin, Richard D
Cc: help-gnats@gnu.org
Subject: Re: setting the default database in gnats 3.999.2


r == richard.d.erwin@boeing.com writes:

 r> dezolt% /mnt6/gnats-3.999.2/gnats/mkdb default
 r> mkdb: No proper entry for `default' in `/usr/local/etc/gnats/databases':

You should have a line like

  default:Bug database:/usr/local/com/gnatsdb

in /usr/local/etc/gnats/databases.


Brandon
-- 
And let me tell you this. The older you do get, the more rules they're
going to try to get you to follow. You just gotta keep livin' man.
L.I.V.I.N.  --Wooderson


_______________________________________________
Help-gnats mailing list
Help-gnats@gnu.org
http://mail.gnu.org/mailman/listinfo/help-gnats

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-06-16 20:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-14  2:15 setting the default database in gnats 3.999.2 Erwin, Richard D
2003-06-14 18:39 ` Brandon Metcalf
2003-06-16 18:03 Erwin, Richard D
2003-06-16 20:54 ` Hans-Albert Schneider

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).