NetBSD Problem Report #41012
From www@NetBSD.org Sat Mar 14 08:46:38 2009
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id 37DD163BAB8
for <gnats-bugs@gnats.netbsd.org>; Sat, 14 Mar 2009 08:46:38 +0000 (UTC)
Message-Id: <20090314084637.7612863BA0A@www.NetBSD.org>
Date: Sat, 14 Mar 2009 08:46:37 +0000 (UTC)
From: philip@freebsd.org
Reply-To: philip@freebsd.org
To: gnats-bugs@NetBSD.org
Subject: [patch] Fix sys cscope target
X-Send-Pr-Version: www-1.0
>Number: 41012
>Category: kern
>Synopsis: [patch] Fix sys cscope target
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: kern-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Mar 14 08:50:00 +0000 2009
>Closed-Date: Fri Mar 20 09:14:17 +0000 2009
>Last-Modified: Fri Mar 20 09:15:02 +0000 2009
>Originator: Philip Paeps
>Release: -CURRENT
>Organization:
Happily Disorganized
>Environment:
Any build machine.
>Description:
nbmake cscope in the kernel build directory complains loudly about not being able to find the files it wants. Consequently, the cscope database is incomplete.
>How-To-Repeat:
cd $objdir/sys/arch/$arch/compile/GENERIC/
$tooldir/bin/nbmake-$arch cscope
>Fix:
The following patch appears to make the problem go away. I have not checked if this is a perfect solution however.
cvs diff: Diffing sys/conf
Index: sys/conf/Makefile.kern.inc
===================================================================
RCS file: /cvsroot/src/sys/conf/Makefile.kern.inc,v
retrieving revision 1.121
diff -u -r1.121 Makefile.kern.inc
--- sys/conf/Makefile.kern.inc 12 Feb 2009 18:24:18 -0000 1.121
+++ sys/conf/Makefile.kern.inc 14 Mar 2009 08:45:50 -0000
@@ -422,11 +422,11 @@
${_MKTARGET_CREATE}
@${TOOL_SED} 's/[^:]*://;s/^ *//;s/ *\\ *$$//;' lib/kern/.depend \
| tr -s ' ' '\n' \
- | ${TOOL_SED} 's|^\([^.\\]\)|lib/kern/\1|;s|^../../||;' \
+ | ${TOOL_SED} 's|^../../||;' \
> cscope.tmp
@${TOOL_SED} 's/[^:]*://;s/^ *//;s/ *\\ *$$//;' lib/compat/.depend \
| tr -s ' ' '\n' \
- | ${TOOL_SED} 's|^\([^.\\]\)|lib/compat/\1|;s|^../../||;' \
+ | ${TOOL_SED} 's|^../../||;' \
>> cscope.tmp
@echo ${SRCS} | cat - cscope.tmp | tr -s ' ' '\n' | sort -u | \
${CSCOPE} -k -i - -b `echo ${INCLUDES} | ${TOOL_SED} s/-nostdinc//`
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: pooka@NetBSD.org
State-Changed-When: Fri, 20 Mar 2009 12:14:17 +0300
State-Changed-Why:
committed. thank you for your hard work ;)
From: Antti Kantee <pooka@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/41012 CVS commit: src/sys/conf
Date: Fri, 20 Mar 2009 09:13:06 +0000
Module Name: src
Committed By: pooka
Date: Fri Mar 20 09:13:06 UTC 2009
Modified Files:
src/sys/conf: Makefile.kern.inc
Log Message:
fix cscope target
Philip Paeps, PR kern/41012
To generate a diff of this commit:
cvs rdiff -u -r1.121 -r1.122 src/sys/conf/Makefile.kern.inc
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>Unformatted:
(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.