From owner-freebsd-questions@FreeBSD.ORG Mon Apr 23 21:27:22 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2C2FB16A406 for ; Mon, 23 Apr 2007 21:27:22 +0000 (UTC) (envelope-from schneecrash@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.171]) by mx1.freebsd.org (Postfix) with ESMTP id B71BF13C4B9 for ; Mon, 23 Apr 2007 21:27:21 +0000 (UTC) (envelope-from schneecrash@gmail.com) Received: by ug-out-1314.google.com with SMTP id 71so36057ugh for ; Mon, 23 Apr 2007 14:27:20 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; b=m89nivTrEJJ9rSESCpF39Pk0zkb4HcTAfoq/F6kL9RyjgJ5PA1JViy0jI5WyfHSJCy6gdJkw1G3+f4EW9aHFcBRB77XSX371DNaj55Yq87WB0vHbgpYImHPsk82DCzAnA/GsWqmN6aREphEmKuvcDZ0pIu0amZREKBAteUto36o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; b=edGqsGk1Fhf+K6Xpb9ysBhXMYhzv3WXgAv672JVdbHxeQTJHX5XCmwFrosOkk9TvGJ6D77yniCQPLOfnIQK21MmmLZ0BQkYQZusUBrPSUERxB4UQhPv5A/CK2zcXLhJuhiJCLm7mmHQGNnlDwlkx2BfAAwANkTuttytzJEmQeTA= Received: by 10.82.188.15 with SMTP id l15mr9976349buf.1177363640572; Mon, 23 Apr 2007 14:27:20 -0700 (PDT) Received: by 10.82.162.19 with HTTP; Mon, 23 Apr 2007 14:27:20 -0700 (PDT) Message-ID: <70f41ba20704231427p6cd8a592rc520bb14ce2c68d7@mail.gmail.com> Date: Mon, 23 Apr 2007 14:27:20 -0700 From: snowcrash+freebsd Sender: schneecrash@gmail.com To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Google-Sender-Auth: 244255984bee6924 Subject: setting ENV VARs in make.conf/ports.conf ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Apr 2007 21:27:22 -0000 hi, i've installed FreeBSD v6.2-RELEASE, plus 'portconf' & 'ccache' from ports. i've setup, /etc/make.conf ----------------------------- PERL_VER=5.8.8 PERL_VERSION=5.8.8 USE_OPENSSL_PORT=true OPENSSLBASE=/usr/local USE_OPENSSH_PORT=true WITHOUT_X11=yes CPUTYPE?=pentium-mmx CFLAGS= -O2 -pipe COPTFLAGS= -O2 -pipe ## Begin portconf settings ## Do not touch these lines .if !empty(.CURDIR:M/usr/ports*) && exists(/usr/local/libexec/portconf) _PORTCONF!=/usr/local/libexec/portconf .for i in ${_PORTCONF:S/|/ /g} ${i:S/%/ /g} .endfor .endif ## End portconf settings .if !defined(NOCCACHE) CC=/usr/local/libexec/ccache/cc CXX=/usr/local/libexec/ccache/c++ CPP=/usr/local/libexec/ccache/cpp .endif ----------------------------- so that i can turn OFF use of ccache for individual ports. i find that different ports 'respond' only to specific ways of setting the NOCCACHE var. e.g., in, cat /usr/local/etc/ports.conf ----------------------------- *:\ CFLAGS= -O2 -pipe -funroll-loops -s -frename-registers -fomit-frame-pointer | \ CXXFLAGS= -O2 -pipe -funroll-loops -s -frename-registers databases/sqlite3-threads:NOCCACHE=true | \ WITHOUT_DEBUG=true|WITH_DOCS=true|WITH_FTS1=true|WITH_TCLWRAPPER=true|BATCH=Yes sysutils/pflogx:MAKE_ENV= NOCCACHE=true | \ WITH_EXPAT=true|BATCH=Yes ----------------------------- pflogx and sqlite3 require DIFFERENT specifications of NOCCACHE ... swapping formate, e.g., causes the conditional ".if !defined(NOCCACHE)" to fail; meaning, that the CC/CXX/CPP defs pointing to ccahce/* are oncorrectly used. is this expected/normal? i would've expected the same method of defining ENV VAR knobs ... is there a _consistent_ way of turning off NOCCACHE via the ports.conf? thanks!