From owner-freebsd-current@FreeBSD.ORG Wed Mar 11 10:20:34 2015 Return-Path: Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 030806E8 for ; Wed, 11 Mar 2015 10:20:34 +0000 (UTC) Received: from mail.turbocat.net (heidi.turbocat.net [88.198.202.214]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B87651EF for ; Wed, 11 Mar 2015 10:20:33 +0000 (UTC) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 4DA131FE022 for ; Wed, 11 Mar 2015 11:20:30 +0100 (CET) Message-ID: <5500171D.6060303@selasky.org> Date: Wed, 11 Mar 2015 11:21:17 +0100 From: Hans Petter Selasky User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: freebsd-current@FreeBSD.ORG Subject: Extending PATH variable in top-level Makefile Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 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: Wed, 11 Mar 2015 10:20:34 -0000 Hi, When installing bmake from ports, the binary ends up in /usr/local/bin and our top-level Makefile doesn't check there: diff --git a/Makefile b/Makefile index e89a5b1..35ade48 100644 --- a/Makefile +++ b/Makefile @@ -129,7 +129,7 @@ TGTS+= ${BITGTS} .ORDER: buildkernel reinstallkernel .ORDER: buildkernel reinstallkernel.debug -PATH= /sbin:/bin:/usr/sbin:/usr/bin +PATH= /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin > bmake -m $PWD/share/mk buildkernel > env: bmake: No such file or directory > bmake: "/usr/img/freebsd/Makefile" line 136: warning: "/usr/bin/env -i PATH=/sbin:/bin:/usr/sbin:/usr/bin bmake __MAKE_CONF=/etc/make.conf -f /dev/null -V MAKEOBJDIRPREFIX dummy" returned non-zero status > --- buildkernel --- > --- buildkernel --- > ERROR: Missing kernel configuration file(s) (NOIP). > *** [buildkernel] Error code 1 > Any objections against extending the PATH= in our top-level Makefile? --HPS