ports include /etc/src.conf? i.e. graphics/libfpx

O. Hartmann ohartman at zedat.fu-berlin.de
Wed Feb 13 16:22:10 UTC 2013


Am 02/13/13 15:05, schrieb Kimmo Paasiala:
> On Wed, Feb 13, 2013 at 3:33 PM, Tom Evans <tevans.uk at googlemail.com> wrote:
>> On Wed, Feb 13, 2013 at 12:30 PM, Yamaya Takashi
>> <yamayan at 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, 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 <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 FreeBSD
>>   source code, which is usually located in /usr/src.
>>
>> Cheers
>>
>> Tom
> 
> If this is taken literally then could it be said that ports that use
> bsd.lib.mk are broken because they are using makefile includes from
> the source tree?
> 
> -Kimmo
> 


I would consider them broken!

How could I track down problems if they are results of intermixed config
files when the manpage explicitely tells me, that the /etc/src.conf is
only for the build of the operating system?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20130213/468335a6/attachment.sig>


More information about the freebsd-current mailing list