NetBSD Problem Report #59867

From www@netbsd.org  Sun Dec 28 09:09:50 2025
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
	 client-signature RSA-PSS (2048 bits) client-digest SHA256)
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 8E4081A923C
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 28 Dec 2025 09:09:50 +0000 (UTC)
Message-Id: <20251228090949.1E0351A923D@mollari.NetBSD.org>
Date: Sun, 28 Dec 2025 09:09:49 +0000 (UTC)
From: hpaluch@seznam.cz
Reply-To: hpaluch@seznam.cz
To: gnats-bugs@NetBSD.org
Subject: gnats: install message missing /etc/services+services_mkdb setup
X-Send-Pr-Version: www-1.0

>Number:         59867
>Category:       pkg
>Synopsis:       gnats: install message missing /etc/services+services_mkdb setup
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Dec 28 09:10:00 +0000 2025
>Last-Modified:  Tue Dec 30 15:15:01 +0000 2025
>Originator:     Henryk Paluch
>Release:        11_BETA, repo: https://cdn.netbsd.org/pub/pkgsrc/packages/NetBSD/amd64/11.0/All on 2025-12-28
>Organization:
N/A
>Environment:
NetBSD nbsd11-gnats.example.com 11.0_BETA NetBSD 11.0_BETA (GENERIC) #0: Tue Dec 23 18:48:38 UTC 2025  mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64
>Description:
Current install message is missing step to add "support" service and rebuild service database with services_mkdb (this took me some time to find out). 

Without such setup inetd(8) will fail to server GNAT's service 'support' on 1529/tcp port.




>How-To-Repeat:
On fresh system install pkgin (if not already installed):

which pkgin || \
 PKG_PATH="https://cdn.NetBSD.org/pub/pkgsrc/packages/NetBSD/$(uname -p)/$(uname -r|cut -f '1 2' -d.|cut -f 1 -d_)/All" pkg_add pkgin

Install gnats and watch message:

pkgin install gnats

==== Message
$NetBSD: MESSAGE,v 1.7 2005/08/27 22:24:02 recht Exp $

See http://www.gnu.org/software/gnats/ for the official web page
and don't forget to run /usr/pkg/libexec/gnats/mkdb default
as user gnats to create the default database.

Add the following line to /etc/inetd.conf to activate GNATS:
    support stream tcp nowait gnats /usr/pkg/libexec/gnats/gnatsd gnatsd

Add something like this into the crontab to process incoming bug reports:
    */5 * * * * /usr/pkg/libexec/gnats/queue-pr -r

To accept PRs by mail you'll need some new mail aliases too, e.g.
        gnats-admin:    postmaster
        bugs:           "| /usr/pkg/libexec/gnats/queue-pr -q"
        query-pr:       "| /usr/pkg/libexec/gnats/mail-query"
====

Follow message and add to /etc/inetd.conf:

# gnats
support stream  tcp     nowait  gnats   /usr/pkg/libexec/gnats/gnatsd   gnatsd

Restart inetd with:

/etc/rc.d/inetd restart

/var/log/messages will contain error:

inetd[10072]: support/tcp: unknown service

>Fix:
I suggest to add to MESSAGE:

===
Add to /etc/services:
support         1529/tcp        # GNATS

Run services_mkdb to rebuild services database.
===

>Audit-Trail:
From: "Christos Zoulas" <christos@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/59867 CVS commit: src/etc
Date: Tue, 30 Dec 2025 10:10:41 -0500

 Module Name:	src
 Committed By:	christos
 Date:		Tue Dec 30 15:10:41 UTC 2025

 Modified Files:
 	src/etc: services

 Log Message:
 PR/59867: Henryk Paluch: Add gnats entry


 To generate a diff of this commit:
 cvs rdiff -u -r1.106 -r1.107 src/etc/services

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2025 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.