From owner-freebsd-current@FreeBSD.ORG Thu Feb 14 20:58:10 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 628CE6C1; Thu, 14 Feb 2013 20:58:10 +0000 (UTC) (envelope-from ohartman@zedat.fu-berlin.de) Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) by mx1.freebsd.org (Postfix) with ESMTP id 20443D9A; Thu, 14 Feb 2013 20:58:09 +0000 (UTC) Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost1.zedat.fu-berlin.de (Exim 4.69) with esmtp (envelope-from ) id <1U65sY-002cu8-I7>; Thu, 14 Feb 2013 21:58:02 +0100 Received: from e178009043.adsl.alicedsl.de ([85.178.9.43] helo=thor.walstatt.dyndns.org) by inpost2.zedat.fu-berlin.de (Exim 4.69) with esmtpsa (envelope-from ) id <1U65sY-000lcP-Dz>; Thu, 14 Feb 2013 21:58:02 +0100 Message-ID: <511D4FD3.2070605@zedat.fu-berlin.de> Date: Thu, 14 Feb 2013 21:57:55 +0100 From: "O. Hartmann" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130131 Thunderbird/17.0.2 MIME-Version: 1.0 To: Yamaya Takashi 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> In-Reply-To: <511CE470.4070003@kbh.biglobe.ne.jp> X-Enigmail-Version: 1.4.6 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigEBF4C681640CC53BE9FDF60B" X-Originating-IP: 85.178.9.43 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: Thu, 14 Feb 2013 20:58:10 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigEBF4C681640CC53BE9FDF60B Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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, fo= r >>>> instance >>>> >>>> # >>>> CXXFLAGS+=3D -stdlib=3Dlibc++ >>>> CXXFLAGS+=3D -std=3Dc++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 w= orld >>>> 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 Fr= eeBSD >> 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 a= n > option will cause it to be honoured by make(1). >=20 > The following list provides a name and short description for varia= bles > that can be used for source builds. >=20 > Does it mean ONLY WITH_* and WITHOUT_* variables are allowed in > /etc/src.conf? >=20 >=20 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. This implies w have setting only applicable for the core system and we deal with settings for various ports. I though, until now, FreeBSD, as other *BSDs, follow a strict logical policy and this implies, in my opinion, that there is in strictu sensu a separation between the sources of the core system and those for the ports= =2E 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? I feel confused by having /etc/src.conf also involved in port's compilations and in my opinion, this is a bug! It torpedos the logic described in the manpage with sounds reasonable to me (the manpage of src.conf). If the build system really needs to intertwine both make.conf and src.conf for ports, then something is illconditioned. --------------enigEBF4C681640CC53BE9FDF60B Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iQEcBAEBAgAGBQJRHU/aAAoJEOgBcD7A/5N8GMQIAKY/cmG4/Y4WaguaheVskqCJ 9SM803fPjvCxs7DqU3nv6kn1nlHITZvzSB9AY4rSA5wuoeCtyYHt31+Qv4L4JSKm EtTdFD5G9dzHo/v2gEYjGQ+pJmk2flIiPEAzrGCyQC9WmvNp/FDqxGVWeCrwoBXQ XBUVeaJXx71+CyJ1dIrI3cabi+x5UbhO4L6UPweBhqS8Zr8gnXLvBreZJAv94xpd 6fmNAX5g/i3T6WP6jEOgiGQ2adbzt9VFg85KhfuxNsGRlG1PFpaBMxoPQ0upGaX5 8+uG1jOCQgREfQ4IyVppeld8HDNw+LcHoyU3vg3KrT0mWPNCM5ghAyUI2melRtY= =/2cN -----END PGP SIGNATURE----- --------------enigEBF4C681640CC53BE9FDF60B--