NetBSD Problem Report #51908

From root@nbsd.backwatcher.com  Mon Jan 23 04:04:17 2017
Return-Path: <root@nbsd.backwatcher.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 "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id CC94A7A167
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 23 Jan 2017 04:04:17 +0000 (UTC)
Message-Id: <20170123020909.F30D22EFF0@nbsd.backwatcher.com>
Date: Sun, 22 Jan 2017 18:09:09 -0800 (PST)
From: amonk@backwatcher.com
Reply-To: amonk@backwatcher.com
To: gnats-bugs@NetBSD.org
Subject: cinclude of xen kernel configs
X-Send-Pr-Version: 3.95

>Number:         51908
>Category:       kern
>Synopsis:       xen kernel configs cinclude GENERIC.local
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 23 04:05:00 +0000 2017
>Closed-Date:    Sun Feb 11 23:52:18 +0000 2018
>Last-Modified:  Sun Feb 11 23:52:18 +0000 2018
>Originator:     Kyle Amon
>Release:        NetBSD 7.0.2_PATCH
>Organization:
BackWatcher, Inc.

>Environment:


System: NetBSD nbsd.backwatcher.com 7.0.2_PATCH NetBSD 7.0.2_PATCH (XEN3_DOM0) amd64
Architecture: x86_64
Machine: amd64
>Description:
The XEN3_DOM0 and XEN3_DOMU kernel config files have cinclude
lines that default to including GENERIC.local.  This causes conflicts.  For
example, if one wants Segvguard in a XEN kernel, one would have to add an
'options FILEASSOC' to GENERIC.local (since its a dependency of Segvguard),
and all is well with the XEN_DOM? build, but when one wants to then build
GENERIC (to keep as an emergency/maintenance kernel as well, for example),
the GENERIC build fails because FILEASSOC is alreadu in GENERIC.  So, one
must manually comment and uncomment things in GENERIC.local depending upon
wheather one wants to build a GENERIC or a XEN_DOM? kernel, or modify the
XEN_DOM? kernel config cinclude line (and manage the difference therafter),
or keep seperate XEN_DOM?_FOO kernels with the modified (fixed) cinclude,
all of which are cumbersome and wholely unencessary.

>How-To-Repeat:
Try to build both GENERIC and XEN3_DOM0 with Segvguard.
>Fix:
Change the XEN_DOM? kernel config cinclude lines (for both amd64 and
i386) to include .local files consistent with their own names, like so,
respectively...

cinclude "arch/amd64/conf/XEN3_DOM0.local"
cinclude "arch/amd64/conf/XEN3_DOMU.local"

and...

cinclude "arch/i386/conf/XEN3_DOM0.local"
cinclude "arch/i386/conf/XEN3_DOMU.local"

...so that users can create and use individual, kernel name consistent,
non-conflicting include files, instead of having to resort to some ungainly
method of fighting conflicts which shouldn't exist in the first place.

>Release-Note:

>Audit-Trail:

From: "Christos Zoulas" <christos@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/51908 CVS commit: src/sys/arch/amd64/conf
Date: Mon, 23 Jan 2017 12:35:34 -0500

 Module Name:	src
 Committed By:	christos
 Date:		Mon Jan 23 17:35:34 UTC 2017

 Modified Files:
 	src/sys/arch/amd64/conf: XEN3_DOM0 XEN3_DOMU

 Log Message:
 PR/51908: Kyle Amon: Allow customization of XEN kernels via .local files.


 To generate a diff of this commit:
 cvs rdiff -u -r1.127 -r1.128 src/sys/arch/amd64/conf/XEN3_DOM0
 cvs rdiff -u -r1.68 -r1.69 src/sys/arch/amd64/conf/XEN3_DOMU

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

From: "Christos Zoulas" <christos@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/51908 CVS commit: src/sys/arch/i386/conf
Date: Mon, 23 Jan 2017 12:36:17 -0500

 Module Name:	src
 Committed By:	christos
 Date:		Mon Jan 23 17:36:17 UTC 2017

 Modified Files:
 	src/sys/arch/i386/conf: XEN3_DOM0 XEN3_DOMU

 Log Message:
 PR/51908: Kyle Amon: Allow customization of XEN kernels via .local files.


 To generate a diff of this commit:
 cvs rdiff -u -r1.105 -r1.106 src/sys/arch/i386/conf/XEN3_DOM0
 cvs rdiff -u -r1.71 -r1.72 src/sys/arch/i386/conf/XEN3_DOMU

 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: snj@NetBSD.org
State-Changed-When: Sun, 11 Feb 2018 23:52:18 +0000
State-Changed-Why:
christos fixed it


>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.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.