From owner-cvs-all Sun Sep 15 5:59:33 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 81DC737B400; Sun, 15 Sep 2002 05:59:32 -0700 (PDT) Received: from shale.csir.co.za (shale.csir.co.za [146.64.46.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4472043E42; Sun, 15 Sep 2002 05:59:28 -0700 (PDT) (envelope-from reg@shale.csir.co.za) Received: (from reg@localhost) by shale.csir.co.za (8.11.6/8.11.6) id g8FCwwQ30843; Sun, 15 Sep 2002 14:58:58 +0200 (SAT) (envelope-from reg) Date: Sun, 15 Sep 2002 14:58:57 +0200 From: Jeremy Lea To: Maxim Sobolev Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: ports/security/openssl Makefile ports/archivers/bzip2 Makefile ports/archivers/unzip Makefile ports/devel/gmake Makefile ports/devel/automake Makefile ports/devel/automake14 Makefile ports/devel/autoconf213 Makefile ports/devel/libtool Makefile ... Message-ID: <20020915125857.GA30691@shale.csir.co.za> Mail-Followup-To: Jeremy Lea , Maxim Sobolev , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org References: <200209141332.g8EDW7Yl048862@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200209141332.g8EDW7Yl048862@freefall.freebsd.org> User-Agent: Mutt/1.4i Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, On Sat, Sep 14, 2002 at 06:32:07AM -0700, Maxim Sobolev wrote: > Due to popular demant into each port which might be inserted into > dependency list by bsd.port.mk insert anti foot-shooting device, > which prevents infinite fork loop when the user defines > corresponding USE_XXX in global make.conf, command line or > environment. Probably a better fix is to build a list of directories where we have come from in the build and pass this to the sub-makes in the depends targets. Then check to see if we start building in a directory which exists in the lists. i.e. something like this: MY_DIR!=pwd .if ${_PARENT_DIRS:S/${MY_DIR}//}!=${_PARENT_DIRS:S/ / /g} .error Recursive build. .else _PARENT_DIRS+= ${MY_DIR} .endif depends: make _PARENT_DIRS=${_PARENT_DIRS} ... Thoughts? -Jeremy -- FreeBSD - Because the best things in life are free... http://www.freebsd.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message