Subject: toolchain/30903: config(8) fails with nested includes
To: None <toolchain-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <apb@cequrux.com>
List: netbsd-bugs
Date: 08/03/2005 12:58:00
>Number: 30903
>Category: toolchain
>Synopsis: config(8) fails with nested includes
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: toolchain-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Aug 03 12:58:00 +0000 2005
>Originator: Alan Barrett
>Release: NetBSD 3.99.7
>Organization:
Not much
>Environment:
System: NetBSD 3.99.7
Architecture: i386
Machine: i386
>Description:
Kernel configuration files with two levels of includes
cause config(8) to fail.
>How-To-Repeat:
$ cd /usr/src/sys/arch/i386/conf
$ echo 'include "arch/i386/conf/GENERIC"' >GENERIC-INC
$ echo 'include "arch/i386/conf/GENERIC-INC"' >GENERIC-INC-INC
$ config GENERIC # works
Build directory is ../compile/GENERIC
Don't forget to run "make depend"
$ config GENERIC-INC # works
Build directory is ../compile/GENERIC-INC
Don't forget to run "make depend"
$ config GENERIC-INC-INC # gives the following error
../../../../arch/i386/conf/GENERIC-INC:1: syntax error
../../../../arch/i386/conf/GENERIC-INC:1: cannot proceed without machine specifier
>Fix: