Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Feb 2013 21:57:55 +0100
From:      "O. Hartmann" <ohartman@zedat.fu-berlin.de>
To:        Yamaya Takashi <yamayan@kbh.biglobe.ne.jp>
Cc:        Tom Evans <tevans.uk@googlemail.com>, "free >> Current FreeBSD" <freebsd-current@freebsd.org>, Ports FreeBSD <freebsd-ports@freebsd.org>
Subject:   Re: ports include /etc/src.conf? i.e. graphics/libfpx
Message-ID:  <511D4FD3.2070605@zedat.fu-berlin.de>
In-Reply-To: <511CE470.4070003@kbh.biglobe.ne.jp>
References:  <511B662C.7030602@zedat.fu-berlin.de> <511B874A.7080901@kbh.biglobe.ne.jp> <CAFHbX1Lg4w8g30DrcEbvm%2B6sFvTDpRAt7OouBBBUs1iiMaEL5g@mail.gmail.com> <511CE470.4070003@kbh.biglobe.ne.jp>

next in thread | previous in thread | raw e-mail | index | archive | help
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
>> <yamayan@kbh.biglobe.ne.jp> 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 <bsd.lib.mk>,
>>> /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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?511D4FD3.2070605>