From owner-freebsd-current@FreeBSD.ORG Sun Feb 17 11:24:30 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 71FE81B9; Sun, 17 Feb 2013 11:24:30 +0000 (UTC) (envelope-from yamayan@kbh.biglobe.ne.jp) Received: from rcpt-expgw.biglobe.ne.jp (rcpt-expgw.biglobe.ne.jp [IPv6:2001:260:401:16::1]) by mx1.freebsd.org (Postfix) with ESMTP id D26371EE; Sun, 17 Feb 2013 11:24:29 +0000 (UTC) Received: from vc-gw.biglobe.ne.jp by rcpt-expgw.biglobe.ne.jp (shby/5910021009) with SMTP id r1HBORiV030112; Sun, 17 Feb 2013 20:24:27 +0900 Received: from smtp-gw.biglobe.ne.jp ([172.21.175.155]) by vc-gw.biglobe.ne.jp (kbkr/0716090908) with ESMTP id r1HBORBd027094; Sun, 17 Feb 2013 20:24:27 +0900 X-Biglobe-Sender: Received: from [192.168.0.100] (KD027083060020.ppp-bb.dion.ne.jp [27.83.60.20]) by smtp-gw.biglobe.ne.jp id UACKAC15AFDB; Sun, 17 Feb 2013 20:24:27 +0900 (JST) Message-ID: <5120BDF9.7030300@kbh.biglobe.ne.jp> Date: Sun, 17 Feb 2013 20:24:41 +0900 From: Yamaya Takashi User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130129 Thunderbird/17.0.2 MIME-Version: 1.0 To: "O. Hartmann" Subject: Re: ports include /etc/src.conf? i.e. graphics/libfpx References: <511B662C.7030602@zedat.fu-berlin.de> <511B874A.7080901@kbh.biglobe.ne.jp> <511CE470.4070003@kbh.biglobe.ne.jp> <511D4FD3.2070605@zedat.fu-berlin.de> In-Reply-To: <511D4FD3.2070605@zedat.fu-berlin.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Sun, 17 Feb 2013 12:42:01 +0000 Cc: Tom Evans , "free >> Current FreeBSD" , Ports FreeBSD X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 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: Sun, 17 Feb 2013 11:24:30 -0000 On 2013/02/15 05:57, O. Hartmann wrote: > Am 02/14/13 14:19, schrieb Yamaya Takashi: >> On 2013/02/13 22:33, Tom Evans wrote: >>> On Wed, Feb 13, 2013 at 12:30 PM, Yamaya Takashi >>> wrote: >>>> On 2013/02/13 19:08, O. Hartmann wrote: >>>>> Setting only base system source compiler optins in /etc/src.conf, for >>>>> instance >>>>> >>>>> # >>>>> CXXFLAGS+= -stdlib=libc++ >>>>> CXXFLAGS+= -std=c++11 >>>>> >>>>> >>>>> which do NOT appear in /etc/make.conf, make building port >>>>> grahpics/libfpx complaining about unrecognized compiler options. >>>>> >>>>> As far a sI know, /etc/src.conf is ONLY for building the source tree of >>>>> the operating system and make.conf is supposed to contain all stuff >>>>> necessary for compiling both world and ports, but /etc/src.conf is world >>>>> only. >>>>> >>>>> Am I wrong? >>>>> >>>>> Oliver >>>>> >>>> Yes. >>>> Because files/Makefile.bsd includes , >>>> /etc/src.conf is included. >>>> >>>> >>> src.conf(5) says: >>> >>> The only purpose of src.conf is to control the compilation of the FreeBSD >>> source code, which is usually located in /usr/src. >>> >>> Cheers >>> >>> Tom >>> >>> >> src.conf(5) says: >> The values of variables are ignored regardless of their setting; >> even if >> they would be set to ``FALSE'' or ``NO''. Just the existence of an >> option will cause it to be honoured by make(1). >> >> The following list provides a name and short description for variables >> that can be used for source builds. >> >> Does it mean ONLY WITH_* and WITHOUT_* variables are allowed in >> /etc/src.conf? >> >> > > Shortly, there was a discussion about a fully installed LLVM/CLANG and > the portion of LLVM/CLANG, that is only needed to compile the system's > source. In this case, a strict separartion was intended. Not about llvm/clang. Including /etc/src.conf has problem of conflicting world knob and port knob. Skipping to include /etc/src.conf by is needed. It's difficult for base system. Then define _WITHOUT_SRCCONF and skip including /etc/src.conf. But some ports include (exclude ) has bug, because they don't define _WITHOUT_SRCCONF. > If the manpage of /etc/src.conf says that only bool knobs are allowed > like WITH_XXX or WITHOUT_XXX, then: where to put the options? NOT bool, the variable is defined or not. The options are written in /etc/make.conf