From owner-freebsd-current@FreeBSD.ORG Mon Jun 14 14:18:11 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3FFA81065673 for ; Mon, 14 Jun 2010 14:18:11 +0000 (UTC) (envelope-from swell.k@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id BA0A88FC17 for ; Mon, 14 Jun 2010 14:18:10 +0000 (UTC) Received: by fxm7 with SMTP id 7so3036666fxm.13 for ; Mon, 14 Jun 2010 07:18:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:references :date:in-reply-to:message-id:user-agent:mime-version:content-type; bh=Tz9vr6P0sF7bjFdu/MkTWNoBIDq3dTgl/UILy7sJOak=; b=GxJ/qlbTC6skR0RtiOBz1JDE2CZHIA159oPzMnKDNOJ6qPYzoWy1M/Voh2fcywFazp IpY4o+i7wMJ4s5NGDdpMO3oEralD6xfiQEdnNymFujzf2nFeJ2MReF64SUYtBz/fxKa0 JYVVqxFkli5OM7v2xQrSoQVJA70zkjuXHJhWc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; b=bAwfpufWv449iVmbLIMX+IGGXjxJPegOqFwJ9K8maGR/Mpf7v4KSiMOALrMNf0Xior TCQLWtHf6ufJnosCybtXGCH+ltXp5uUVN27XNNmOTx1gPflJP2XLXur5vgqXLnpMXh9u 0Fhp4DdJT2WWdzwmQcQdXsD/dx+IfckiZNFto= Received: by 10.223.20.218 with SMTP id g26mr5539487fab.18.1276525088599; Mon, 14 Jun 2010 07:18:08 -0700 (PDT) Received: from localhost (spftor1.privacyfoundation.de [87.118.104.203]) by mx.google.com with ESMTPS id y2sm7264990faj.39.2010.06.14.07.17.59 (version=SSLv3 cipher=RC4-MD5); Mon, 14 Jun 2010 07:18:05 -0700 (PDT) From: Anonymous To: Alexander Best References: <20100614100500.GA35142@freebsd.org> Date: Mon, 14 Jun 2010 18:17:06 +0400 In-Reply-To: (Alexander Best's message of "Mon, 14 Jun 2010 12:44:46 +0200") Message-ID: <86y6ehsnq5.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-current@freebsd.org Subject: Re: two buildworld problems X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Mon, 14 Jun 2010 14:18:11 -0000 Alexander Best writes: > On Mon, Jun 14, 2010 at 12:05 PM, Roman Divacky wrote: >> On Sun, Jun 13, 2010 at 10:28:23PM +0200, Alexander Best wrote: >>> hi there. i'm experiencing two problems during buildworld. i'm not >>> sure if these are the result of me doing weird stuff or a problem in >>> the src structure: >>> >>> 1. i have the following in my make.conf: >>> >>> .if empty(.CURDIR:M/usr/src/*) && empty(.CURDIR:M/usr/obj/*) && >>> exists(/usr/local/bin/gcc44) >>> CC = gcc44 >>> CXX = g++44 >>> CPP = cpp44 >>> .endif >> >> you may want to reverse the condition, ie. >> >> .if !empty(.CURDIR:M/usr/ports/*) > > yeah i had something like that in my make.conf beforehand. the problem > was however that this would only use gcc44 when 'make' was run in the > ports directory. however i want make to ALWAYS use gcc44 apart from > /usr/src. It may be easier to make gcc44 symlinks for cc/c++/gcc/g++ in e.g. HOME/.bin and add it to PATH before /usr/bin[1]. make buildworld overrides its own PATH and shouldn't be affected but pretty much anything else will use gcc44, not only make(1) targets. You can create basegcc/baseg++ symlinks then for things that don't compile by gcc44 but in case of portmaster you'd have to teach it respect user-defined PATH in order for CC=basegcc in make.conf to work. [1] *after* ccache if you have it installed, e.g. PATH=$LOCALBASE/libexec/ccache:$HOME/.bin:...:/usr/bin:...