Subject: misc/5399: lint rules don't grok DESTDIR for includes
To: None <gnats-bugs@gnats.netbsd.org>
From: John Kohl <jtk@kolvir.arlington.ma.us>
List: netbsd-bugs
Date: 05/03/1998 16:37:49
>Number: 5399
>Category: misc
>Synopsis: lint rules don't grok DESTDIR for includes
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: misc-bug-people (Misc Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun May 3 13:50:01 1998
>Last-Modified:
>Originator: John Kohl
>Organization:
NetBSD Kernel Hackers `R` Us
>Release: NetBSD-current, 1998/05/03
>Environment:
System: NetBSD kolvir.arlington.ma.us 1.3E NetBSD 1.3E (KOLVIR) #46: Wed Apr 22 14:44:29 EDT 1998 jtk@kolvir.arlington.ma.us:/u4/sandbox/src/sys/arch/i386/compile/KOLVIR i386
>Description:
Running with new include files only in the installed area at
DESTDIR yields build failures with lint files in libkvm when UVM and
PMAP_NEW are defined.
>How-To-Repeat:
kolvir:/usr/src/lib/libkvm% echo $DESTDIR
/u2/dest
kolvir:/usr/src/lib/libkvm% make
lint -chapbxz -DLIBC_SCCS -DUVM -DPMAP_NEW -i /usr/src/lib/libkvm/kvm_proc.c
/usr/src/lib/libkvm/kvm_proc.c:75: uvm/uvm_extern.h: No such file or directory
*** Error code 1
Stop.
Exit 1
kolvir:/usr/src/lib/libkvm% cat /etc/mk.conf
BSDSRCDIR=/u3/NetBSD-current/src
BSDOBJDIR=/u2/obj
PMAP_NEW=yes
UVM=yes
kolvir:/usr/src/lib/libkvm%
>Fix:
Take account of DESTDIR in the lint build rules
>Audit-Trail:
>Unformatted: