From owner-freebsd-current@freebsd.org Thu May 25 01:44:40 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 81E76D80574 for ; Thu, 25 May 2017 01:44:40 +0000 (UTC) (envelope-from mueller6722@twc.com) Received: from dnvrco-oedge-vip.email.rr.com (dnvrco-outbound-snat.email.rr.com [107.14.73.232]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "dnvrco-oedge-vip.email.rr.com", Issuer "dnvrco-oedge-vip.email.rr.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 5FD7B1FA5 for ; Thu, 25 May 2017 01:44:39 +0000 (UTC) (envelope-from mueller6722@twc.com) Received: from [74.134.208.22] ([74.134.208.22:24292] helo=localhost) by dnvrco-omsmta01 (envelope-from ) (ecelerity 3.6.9.48312 r(Core:3.6.9.0)) with ESMTP id 68/62-09002-EB636295; Thu, 25 May 2017 01:43:27 +0000 Date: Thu, 25 May 2017 01:43:25 +0000 Message-ID: <68.62.09002.EB636295@dnvrco-omsmta01> From: "Thomas Mueller" To: freebsd-current@freebsd.org CC: Ngie Cooper , "Simon J. Gerraty" Subject: Re: Bug in make setting wrong MAKESYSPATH References: <4E.66.25473.9D551295@dnvrco-omsmta03> <81057.1495500066@kaos.jnpr.net> <95058.1495555282@kaos.jnpr.net> <24672.1495645494@kaos.jnpr.net> X-RR-Connecting-IP: 107.14.64.6:25 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 May 2017 01:44:40 -0000 >From Simon J. Gerraty: > > Thomas Mueller wrote: > > For building the system, MAKESYSPATH should be $SRCDIR/share/mk , to be in sync. > > I tried "make -V MAKESYSPATH" from several SRCDIRs, and that's what happened. > Yes. If you look at share/mk/src.sys.env.mk > it detects that it was found via a .../ path, and replaces it in > MAKESYSPATH with the actual location - otherwise some makefiles break. > > So maybe I have to set MAKESYSPATH every time I am in ports, don't > > know if this would work from /etc/make.conf (need to experiment). > Probably not, because sys.mk will have already been found before that > ie. the damage may already have been done > > I wonder what would happen if there is no FreeBSD installation at all > > on partition where ports tree is located. > An error like: > make: no system rules (sys.mk). I go into /BETA1/usr/ports/ports-mgmt/synth , run env MAKESYSPATH make all-depends-list and then it seems to work correctly with no syntax error in /BETA1/usr/share/mk/bsd.compiler.mk Maybe I need to file a bug. What happens if src, ports and doc trees are installed on an NFS share, where there would be no FreeBSD installation? Tom