From owner-freebsd-current Wed Jul 4 22:25:11 2001 Delivered-To: freebsd-current@freebsd.org Received: from rover.village.org (rover.bsdimp.com [204.144.255.66]) by hub.freebsd.org (Postfix) with ESMTP id 89A9C37B403 for ; Wed, 4 Jul 2001 22:25:05 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.11.3/8.11.3) with ESMTP id f655P4Q45139; Wed, 4 Jul 2001 23:25:04 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.11.3/8.11.4) with ESMTP id f655P3J44858; Wed, 4 Jul 2001 23:25:03 -0600 (MDT) (envelope-from imp@harmony.village.org) Message-Id: <200107050525.f655P3J44858@harmony.village.org> To: Julian Elischer Subject: Re: kernel getting files from out of kernel tree. Cc: current@FreeBSD.ORG In-reply-to: Your message of "Wed, 04 Jul 2001 22:11:35 PDT." <3B43F707.768085D5@elischer.org> References: <3B43F707.768085D5@elischer.org> <3B43EE2E.5BB03624@elischer.org> <3B43E764.3333C898@elischer.org> <200107050428.f654S0J44503@harmony.village.org> <200107050502.f6552VJ44682@harmony.village.org> Date: Wed, 04 Jul 2001 23:25:03 -0600 From: Warner Losh Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <3B43F707.768085D5@elischer.org> Julian Elischer writes: : Warner Losh wrote: : > : > In message <3B43EE2E.5BB03624@elischer.org> Julian Elischer writes: : > : that doesn't make it right.. : > : If you do the make depend with the /usr/src not present (excepg for sys) : > : it doesn't grab the others. That raises the possibility that a compile may : > : be different depending on whether or not the kernel tree was in a : > : populated /usr/src, or just isolated. : > : (e.g. whether the system install was of type "Kernel-developer" or "developer") : > : > I'm saying that the kernel depends on ../../../include or /usr/include : > and that dependency is codified in the Makefiles. It would take a lot : > of effort to remove that dependency. : > : > You must have includes installed. : : no, the kernel compiles fine without /usr/src/includes installed : but if it IS installed, it finds them first. No it does not. Try extreme version skew, like building -current on a 3.2-STABLE system without /usr/src/includes. Even using current build toolks, it dies a horrible death (at least it did last time I tried it). It happens to work with /usr/includes. If you look at the makefile, you'll see this is explicit there: # This hack is to allow kernel compiles to succeed on machines w/out srcdist .if exists($S/../include) INCLUDES+= -I$S/../include .else INCLUDES+= -I/usr/include .endif Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message