From owner-freebsd-hackers@FreeBSD.ORG  Wed Mar 19 21:12:48 2008
Return-Path: <owner-freebsd-hackers@FreeBSD.ORG>
Delivered-To: freebsd-hackers@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 6D7A41065680
	for <freebsd-hackers@freebsd.org>; Wed, 19 Mar 2008 21:12:48 +0000 (UTC)
	(envelope-from max@love2party.net)
Received: from moutng.kundenserver.de (moutng.kundenserver.de
	[212.227.126.187])
	by mx1.freebsd.org (Postfix) with ESMTP id EFEAC8FC15
	for <freebsd-hackers@freebsd.org>; Wed, 19 Mar 2008 21:12:47 +0000 (UTC)
	(envelope-from max@love2party.net)
Received: from vampire.homelinux.org (dslb-088-066-042-203.pools.arcor-ip.net
	[88.66.42.203])
	by mrelayeu.kundenserver.de (node=mrelayeu8) with ESMTP (Nemesis)
	id 0ML31I-1Jc5aY1LOv-0003eC; Wed, 19 Mar 2008 22:12:46 +0100
Received: (qmail 31732 invoked from network); 19 Mar 2008 21:12:02 -0000
Received: from myhost.laiers.local (192.168.4.151)
	by mx.laiers.local with SMTP; 19 Mar 2008 21:12:02 -0000
From: Max Laier <max@love2party.net>
Organization: FreeBSD
To: freebsd-hackers@freebsd.org
Date: Wed, 19 Mar 2008 22:11:32 +0100
User-Agent: KMail/1.9.7
References: <47E02602.1050102@sh.cvut.cz> <20080319043647.GA6088@kobe.laptop>
In-Reply-To: <20080319043647.GA6088@kobe.laptop>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <200803192211.32728.max@love2party.net>
X-Provags-ID: V01U2FsdGVkX1/GLrrPgrrZrS+rswXTyFB2tlkW8ycRjzbN+/e
	L+BGDB7EV29kuj6I6zg2V8Xsanv504hGpwmvPvW/sSKuTy4C1g
	AVYz1HbVWYNMPVX3L1qMw==
Cc: Giorgos Keramidas <keramida@ceid.upatras.gr>,
	V??clav Haisman <v.haisman@sh.cvut.cz>
Subject: Re: Building in /usr/src copied to $HOME
X-BeenThere: freebsd-hackers@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Technical Discussions relating to FreeBSD
	<freebsd-hackers.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-hackers>, 
	<mailto:freebsd-hackers-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-hackers>
List-Post: <mailto:freebsd-hackers@freebsd.org>
List-Help: <mailto:freebsd-hackers-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-hackers>,
	<mailto:freebsd-hackers-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Wed, 19 Mar 2008 21:12:48 -0000

On Wednesday 19 March 2008 05:36:47 Giorgos Keramidas wrote:
> On 2008-03-18 21:28, V??clav Haisman <v.haisman@sh.cvut.cz> wrote:
> > Hi,
> > I am trying to use /usr/src copied to my $HOME but the build process
> > doesn't want to work. For example when I try build /bin/cp I get the
> > following:
> >
> > shell::wilx:~/freebsd/src/bin/cp> make
> > "/usr/home/users/wilx/freebsd/src/bin/cp/../Makefile.inc", line 9:
> > Malformed conditional (${MK_DYNAMICROOT} == "no")
> > "/usr/share/mk/bsd.init.mk", line 15: if-less endif
> > make: fatal errors encountered -- cannot continue

Looks like a problem with /usr/share/mk being out of date (not sure this 
should be an issue, though).  A simple fix should be to add "-m 
`pwd`/share/mk" to make ... or "-m `pwd`/../../share/mk" in your example 
above.  The buildworld target seems to pick this automatically.

> > Is there any sort of tutorial/prescription anywhere how to use
> > /usr/src tree that does not reside in /usr/src?
>
> Hmmm, that should work.  I regularly build as a non-root user, at
> `/home/build/src'.
>
> The error about ``Malformed conditional'' seems a bit odd too.  Are you
> using /usr/bin/make?  What version of FreeBSD is the build host
> running, and what version of the source tree have you checked out?


-- 
/"\  Best regards,                      | mlaier@freebsd.org
\ /  Max Laier                          | ICQ #67774661
 X   http://pf4freebsd.love2party.net/  | mlaier@EFnet
/ \  ASCII Ribbon Campaign              | Against HTML Mail and News