From owner-freebsd-ports@FreeBSD.ORG Wed Dec 20 12:05:14 2006 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 056A316A47E for ; Wed, 20 Dec 2006 12:05:14 +0000 (UTC) (envelope-from tzhuan@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.185]) by mx1.FreeBSD.org (Postfix) with ESMTP id 49B3C43CE7 for ; Wed, 20 Dec 2006 12:03:55 +0000 (GMT) (envelope-from tzhuan@gmail.com) Received: by nf-out-0910.google.com with SMTP id x29so2878108nfb for ; Wed, 20 Dec 2006 04:03:45 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=d8NZfVZMPftISCbizkaII9k8LUn+Et6tuleJo0Tz1/vzzEGlbxYKJbCvohu1bV1YcI5HVjgDXLGUOfQL8++tpcWKT6VB8XD31E8Te7mCEwYk9uu1x5kt0amr1tDlUUONlz+sl83b1PzQib3edgXeviyMgrko5W6rHbjml1v14fc= Received: by 10.82.183.19 with SMTP id g19mr1446653buf.1166614483477; Wed, 20 Dec 2006 03:34:43 -0800 (PST) Received: by 10.82.180.7 with HTTP; Wed, 20 Dec 2006 03:34:43 -0800 (PST) Message-ID: <6a7033710612200334l430da8camfdac4a878519dce5@mail.gmail.com> Date: Wed, 20 Dec 2006 19:34:43 +0800 From: "Tz-Huan Huang" To: "Alexander Botero-Lowry" In-Reply-To: <200611290746.kAT7k148055520@Laptop.mine.box> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <456B5BF1.9080200@lovetemple.net> <200611280058.kAS0wgGx067670@Laptop.mine.box> <456CFFD0.3050206@lovetemple.net> <200611290746.kAT7k148055520@Laptop.mine.box> Cc: ports@freebsd.org, Karel Miklav Subject: Re: SCons build, help needed X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: tzhuan@csie.org List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Dec 2006 12:05:14 -0000 Hi, How about using gmake instead of scons? Tz-Huan On 11/29/06, Alexander Botero-Lowry wrote: > > Alex, thanks for your reply. stiv @ blender forums pointed me to the > > sixth paragraph in the SCons' manual: > > > > "scons does not automatically propagate the external environment used to > > execute scons to the commands used to build target files. This is so > > that builds will be guaranteed repeatable regardless of the environment > > variables set at the time scons is invoked. ..." > Which is just _absurd_ and horrible. It makes it nearly impossible for > operating systems to legitimately package these applications and it makes > for users having applications build in ways that are unexpected and unwanted. > This is one of the larger reasons that XMMS2 is moving towards waf. We've had > to put a lot of pain into making ourselves integrate well with the various > packaging systems because of this attitude. > > > > > I don't know how do they want to integrate with other build tools, but > > the current mechanism in bsd.scons.mk is left at the mercy of each SCons > > user. What do you think? > > > What bsd.scons.mk implements is the common case, most SCons using ports that > bother to obey external environment at all follow these patterns; > CCFLAGS/CXXFLAGS/LINKFLAGS/PREFIX sometimes LIBPATH/CPPPATH passed on command > line to scons (not as part of the external environment). It's called like: > scons CCFLAGS="-O2". > > So bsd.scons.mk is implemented in a way that gets in many scons using ports > (not all). So the answer to ports that don't obey this pattern is to make them > do so. > > Alex > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" >