NetBSD Problem Report #52823

From paul@whooppee.com  Sat Dec 16 06:32:00 2017
Return-Path: <paul@whooppee.com>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 012827A17E
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 16 Dec 2017 06:31:59 +0000 (UTC)
Message-Id: <20171216063157.0D4DE16E44@speedy.whooppee.com>
Date: Sat, 16 Dec 2017 14:31:57 +0800 (+08)
From: paul@whooppee.com
Reply-To: paul@whooppee.com
To: gnats-bugs@NetBSD.org
Subject: config(1) generates wrong cfattach data for pseudo-device ioconf
X-Send-Pr-Version: 3.95

>Number:         52823
>Category:       bin
>Synopsis:       config(1) generates wrong cfattach data for pseudo-device ioconf
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Dec 16 06:35:00 +0000 2017
>Last-Modified:  Thu Jan 17 08:35:01 +0000 2019
>Originator:     Paul Goyette
>Release:        NetBSD 8.99.7
>Organization:
+------------------+--------------------------+----------------------------+
| Paul Goyette     | PGP Key fingerprint:     | E-mail addresses:          |
| (Retired)        | FA29 0E3B 35AF E8AE 6651 | paul at whooppee dot com   |
| Kernel Developer | 0786 F758 55DE 53BA 7731 | pgoyette at netbsd dot org |
+------------------+--------------------------+----------------------------+
>Environment:


System: NetBSD speedy.whooppee.com 8.99.7 NetBSD 8.99.7 (SPEEDY 2017-11-29 22:03:05 UTC) #0: Wed Nov 29 23:14:50 UTC 2017 paul@speedy.whooppee.com:/build/netbsd-local/obj/amd64/sys/arch/amd64/compile/SPEEDY amd64
Architecture: x86_64
Machine: amd64
>Description:
For a pseudo-device which can have children attached, the ioconf.[ch] file
generated by config(1) (and the Makefile IOCONF= directive) is wrong.

It generates a single list-ending {NULL, NULL} entry, rather than providing
an initial entry with the pseudo-device as its name and attachment name.

>How-To-Repeat:
Create a ioconf config file pad.ioconf containing

	pseudo-device pad

Then, config -s $SRC -b $OBJ pad.ioconf

Observe at the bottom the cfattach data.

>Fix:


>Release-Note:

>Audit-Trail:

From: Paul Goyette <paul@whooppee.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: bin/52823: config(1) generates wrong cfattach data for pseudo-device
 ioconf
Date: Thu, 17 Jan 2019 16:33:34 +0800 (PST)

 See also PR kern/48571


 +------------------+--------------------------+----------------------------+
 | Paul Goyette     | PGP Key fingerprint:     | E-mail addresses:          |
 | (Retired)        | FA29 0E3B 35AF E8AE 6651 | paul at whooppee dot com   |
 | Kernel Developer | 0786 F758 55DE 53BA 7731 | pgoyette at netbsd dot org |
 +------------------+--------------------------+----------------------------+

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.