NetBSD-Bugs archive

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

kern/41012: [patch] Fix sys cscope target



>Number:         41012
>Category:       kern
>Synopsis:       [patch] Fix sys cscope target
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Mar 14 08:50:00 +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//`



Home | Main Index | Thread Index | Old Index