NetBSD Problem Report #41580

From hf@spg.tu-darmstadt.de  Fri Jun 12 13:16:58 2009
Return-Path: <hf@spg.tu-darmstadt.de>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 8D68E63B9E6
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 12 Jun 2009 13:16:58 +0000 (UTC)
Message-Id: <200906120943.n5C9htIT007950@Gstoder.nt.e-technik.tu-darmstadt.de>
Date: Fri, 12 Jun 2009 11:43:55 +0200 (CEST)
From: Hauke Fath <hf@spg.tu-darmstadt.de>
Reply-To: Hauke Fath <hf@spg.tu-darmstadt.de>
To: gnats-bugs@gnats.NetBSD.org
Cc: Hauke Fath <hf@spg.tu-darmstadt.de>
Subject: am-utils uses "netbsd${OSVER}" selector, still
X-Send-Pr-Version: 3.95

>Number:         41580
>Category:       bin
>Synopsis:       am-utils uses "netbsd${OSVER}" selector, still
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Jun 12 13:20:01 +0000 2009
>Closed-Date:    Fri Jun 12 15:47:55 +0000 2009
>Last-Modified:  Wed Jun 17 20:20:02 +0000 2009
>Originator:     Hauke Fath
>Release:        NetBSD 5.0_STABLE
>Organization:
-- 
     The ASCII Ribbon Campaign                    Hauke Fath
()     No HTML/RTF in email	        Institut für Nachrichtentechnik
/\     No Word docs in email                     TU Darmstadt
     Respect for open standards              Ruf +49-6151-16-3281
>Environment:


System: NetBSD Gstoder 5.0_STABLE NetBSD 5.0_STABLE (P4W) #0: Fri Jun 5 14:06:50 CEST 2009 hf@Hochstuhl:/var/obj/netbsd-builds/5/i386/sys/arch/i386/compile/P4W i386
Architecture: i386
Machine: i386
>Description:

	amd(8) maps can select default options based on an 'os'
	selector. This used to be "netbsdelf${OSVER}" before am-utils
	6.1. 

	Back in 2005, I questioned the sensibility of that decision on
	the am-utils mailing-list (see
	<http://www.fsl.cs.sunysb.edu/mailman/private/am-utils/2005-May/thread.html>,
	thread "am-utils-6.1-rc4 released" - login required), and
	Christos and Erez Zadok agreed to change the NetBSD selector
	to an un-versioned "netbsd".

	Now, while the changelog at
	"src/external/bsd/am-utils/dist/NEWS" says


*** Notes specific to am-utils version 6.1-rc5

For NetBSD systems, $os used to say "netbsdelf1" or "netbsdelf2."  Now it
just says "netbsd."


	(what about the trailing period?), the netbsd-5 amd(8) still
	uses 'netbsd5'


Jun 10 12:08:44 Gstoder amd[220]: key /defaults: map selector os (=netbsd5) did not match netbsd1
Jun 10 12:08:44 Gstoder amd[220]: did not match defaults for "os==netbsd1;type:=nfsl;opts:=rw,grpid,nosuid,quota,vers=3,proto=udp,hard,intr,xlatecookie,noac,nolock,rsize=32768,wsize=32768"
Jun 10 12:08:44 Gstoder amd[220]: key /defaults: map selector os (=netbsd5) did not match netbsd2
Jun 10 12:08:44 Gstoder amd[220]: did not match defaults for "os==netbsd2;type:=nfsl;opts:=rw,grpid,nosuid,quota,vers=3,proto=udp,hard,intr,xlatecookie,noac,nolock,rsize=32768,wsize=32768"
Jun 10 12:08:44 Gstoder amd[220]: key /defaults: map selector os (=netbsd5) did not match netbsd3
Jun 10 12:08:44 Gstoder amd[220]: did not match defaults for "os==netbsd3;type:=nfsl;opts:=rw,grpid,nosuid,quota,vers=3,proto=udp,hard,intr,xlatecookie,noac,nolock,rsize=32768,wsize=32768"
Jun 10 12:08:44 Gstoder amd[220]: key /defaults: map selector os (=netbsd5) did not match netbsd4
Jun 10 12:08:44 Gstoder amd[220]: did not match defaults for "os==netbsd4;type:=nfsl;opts:=rw,grpid,nosuid,quota,vers=3,proto=udp,hard,intr,xlatecookie,noac,nolock,rsize=32768,wsize=32768"
Jun 10 12:08:44 Gstoder amd[220]: amfs_nfsl: "/amd/Gstoder/home" does not exist, using type:=nfs
Jun 10 12:08:44 Gstoder amd[220]: skipping selector to "type:=nfsl;opts:=rw,grpid,nosuid,quota,vers=3,proto=udp,hard,intr,xlatecookie,noac,nolock,rsize=32768,wsize=32768"
Jun 10 12:08:44 Gstoder amd[220]: matched default selectors "type:=nfsl;opts:=rw,grpid,nosuid,quota,vers=3,proto=udp,hard,intr,xlatecookie,noac,nolock,rsize=32768,wsize=32768"


	which requires map madness like


/defaults       os==netbsd1;\
                        type:=nfsl;opts:=rw,grpid,nosuid,quota,vers=3,proto=udp,hard,intr,\
                                xlatecookie,nolock,rsize=32768,wsize=32768 \
                os==netbsd2;\
                        type:=nfsl;opts:=rw,grpid,nosuid,quota,vers=3,proto=udp,hard,intr,\
                                xlatecookie,nolock,rsize=32768,wsize=32768 \
                os==netbsd3;\
                        type:=nfsl;opts:=rw,grpid,nosuid,quota,vers=3,proto=udp,hard,intr,\
                                xlatecookie,nolock,rsize=32768,wsize=32768 \
                os==netbsd4;\
                        type:=nfsl;opts:=rw,grpid,nosuid,quota,vers=3,proto=udp,hard,intr,\
                                xlatecookie,nolock,rsize=32768,wsize=32768 \
                os==netbsd5;\
                        type:=nfsl;opts:=rw,grpid,nosuid,quota,vers=3,proto=udp,hard,intr,\
                                xlatecookie,nolock,rsize=32768,wsize=32768 \
                os==linux;\
                        type:=nfsl;opts:=rw,grpid,nosuid,quota,vers=3,proto=udp,hard,intr,\
                                nolock,rsize=32768,wsize=32768


	-- note the *one* linux selector as opposed to five identical netbsd? entries.


>How-To-Repeat:

	Set up an am-utils map with OS dependent default selectors on
	a newer NetBSD version.

>Fix:

	My guess is that this is a 'cvs import' related
	regression. But since I have not been able to find the actual
	code which sets up the os selector, I cannot be sure.

	Please make sure a fix gets pulled up to all stable branches.

>Release-Note:

>Audit-Trail:
From: Christos Zoulas <christos@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/41580 CVS commit: src/external/bsd/am-utils/lib/libamu
Date: Fri, 12 Jun 2009 11:44:58 -0400

 Module Name:	src
 Committed By:	christos
 Date:		Fri Jun 12 15:44:58 UTC 2009

 Modified Files:
 	src/external/bsd/am-utils/lib/libamu: mkconf

 Log Message:
 PR/41580: Hauke Fath: am-utils uses "netbsd${OSVER}" selector, still.
 Changed to "netbsd"


 To generate a diff of this commit:
 cvs rdiff -u -r1.1 -r1.2 src/external/bsd/am-utils/lib/libamu/mkconf

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

State-Changed-From-To: open->closed
State-Changed-By: christos@NetBSD.org
State-Changed-When: Fri, 12 Jun 2009 11:47:55 -0400
State-Changed-Why:
fixed, and pullup requested


From: Manuel Bouyer <bouyer@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/41580 CVS commit: [netbsd-5] src/external/bsd/am-utils/lib/libamu
Date: Wed, 17 Jun 2009 20:18:33 +0000

 Module Name:	src
 Committed By:	bouyer
 Date:		Wed Jun 17 20:18:33 UTC 2009

 Modified Files:
 	src/external/bsd/am-utils/lib/libamu [netbsd-5]: mkconf

 Log Message:
 Pull up following revision(s) (requested by christos in ticket #808):
 	external/bsd/am-utils/lib/libamu/mkconf: revision 1.2
 PR/41580: Hauke Fath: am-utils uses "netbsd${OSVER}" selector, still.
 Changed to "netbsd"


 To generate a diff of this commit:
 cvs rdiff -u -r1.1 -r1.1.6.1 src/external/bsd/am-utils/lib/libamu/mkconf

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

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.