From owner-freebsd-current@freebsd.org Sun May 21 08:54:57 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 2ED7ED77AFD for ; Sun, 21 May 2017 08:54:57 +0000 (UTC) (envelope-from mueller6722@twc.com) Received: from dnvrco-oedge-vip.email.rr.com (dnvrco-outbound-snat.email.rr.com [107.14.73.225]) (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 0F93D1041 for ; Sun, 21 May 2017 08:54:55 +0000 (UTC) (envelope-from mueller6722@twc.com) Received: from [74.134.208.22] ([74.134.208.22:50626] helo=localhost) by dnvrco-omsmta03 (envelope-from ) (ecelerity 3.6.9.48312 r(Core:3.6.9.0)) with ESMTP id 4E/66-25473-9D551295; Sun, 21 May 2017 08:54:49 +0000 Date: Sun, 21 May 2017 08:54:49 +0000 Message-ID: <4E.66.25473.9D551295@dnvrco-omsmta03> From: "Thomas Mueller" To: freebsd-current@freebsd.org Subject: Bug in make setting wrong MAKESYSPATH X-RR-Connecting-IP: 107.14.64.88: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: Sun, 21 May 2017 08:54:57 -0000 I tried building ports, starting with ports-mgmt/synth, on HEAD (12-current) and ran into difficulties with syntax error in bsd.compiler.mk . With PORTSDIR on another partition, mounted as /BETA1, I got these errors, but not when I null-mounted /BETA1/usr/ports as /usr/ports. I shouldn't have to resort to this kludge, didn't have to in the recent past. This bug shows in both 11.0-STABLE and 12.0-CURRENT. I looked into "man make" and found that make got the wrong path for MAKESYSPATH, setting to /BETA1/usr/share/mk instead of what it should be, /usr/share/mk . Going into /BETA1/usr/ports/archivers/zip (for a short and simple example), make all-depends-list produced sh: Syntax error: ")" unexpected make: "/BETA1/usr/share/mk/bsd.compiler.mk" line 52: warning: "echo 4.0.0 4.0.0) | awk -F. '{print $1 * 10000 + $2 * 100 + $3;}'" returned non-zero status sh: Syntax error: ")" unexpected make[1]: "/BETA1/usr/share/mk/bsd.compiler.mk" line 52: warning: "echo 4.0.0 4.0.0) | awk -F. '{print $1 * 10000 + $2 * 100 + $3;}'" returned non-zero status /BETA1/usr/ports/ports-mgmt/pkg make -m /usr/share/mk all-depends-list produces /BETA1/usr/ports/ports-mgmt/pkg This looks like a bug that ought to be fixed, though there is a workaround using "make -m /usr/share/mk ..." every time, or presumably, setting MAKESYSPATH=/usr/share/mk in the environment. Should I file a bug report? I could get much more verbose outputs when there are more dependencies, such as in /BETA1/usr/ports/ports-mgmt/synth, or more so, /BETA1/usr/ports/www/seamonkey I also noticed that in newer versions of FreeBSD, /usr/share/mk/bsd.compiler.mk has greatly increased in size (not a bug. except when "make" goes to the wrong MAKESYSPATH. Maybe add in .cshrc and .profile MAKESYSPATH=/usr/share/mk ? Tom