NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/41580: am-utils uses "netbsd${OSVER}" selector, still



>Number:         41580
>Category:       bin
>Synopsis:       am-utils uses "netbsd${OSVER}" selector, still
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Jun 12 13:20:01 +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.

>Unformatted:
        
        


Home | Main Index | Thread Index | Old Index