Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Jan 2014 14:11:33 -0700
From:      Alan Somers <asomers@freebsd.org>
To:        Garrett Cooper <yaneurabeya@gmail.com>
Cc:        "freebsd-testing@freebsd.org" <freebsd-testing@freebsd.org>, "Simon J. Gerraty" <sjg@freebsd.org>
Subject:   Re: Makefile.inc1.patch
Message-ID:  <CAOtMX2g-ChC3_hnk=NE1ZDfWOQp36eeAxcXt3f-ccxyRShz64Q@mail.gmail.com>
In-Reply-To: <DA04C3C3-486D-4784-87E2-33A73545A250@gmail.com>
References:  <B4D2A908-715F-484F-8028-A1F38884AF3F@gmail.com> <CAOtMX2jQ24JCR2Ct8YKob4MKcHWMhVVv5XG-1usoPWqEOA2OQg@mail.gmail.com> <4A3E3984-73D3-4441-97A7-D58679EFF978@gmail.com> <9775878D-91AB-4BE4-ADFA-32D8DB582AA6@gmail.com> <CAOtMX2hhW9wrN0b4UCKFRS79ata45c-vczMuHMmWcZTic_FeHw@mail.gmail.com> <DA04C3C3-486D-4784-87E2-33A73545A250@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jan 23, 2014 at 2:00 PM, Garrett Cooper <yaneurabeya@gmail.com> wro=
te:
> On Jan 23, 2014, at 12:56 PM, Alan Somers <asomers@freebsd.org> wrote:
>
>> On Thu, Jan 23, 2014 at 1:53 PM, Garrett Cooper <yaneurabeya@gmail.com> =
wrote:
>>> On Jan 22, 2014, at 8:34 AM, Garrett Cooper <yaneurabeya@gmail.com> wro=
te:
>>>
>>>>
>>>>> On Jan 22, 2014, at 7:42, Alan Somers <asomers@freebsd.org> wrote:
>>>>>
>>>>>> On Tue, Jan 21, 2014 at 3:17 PM, Garrett Cooper <yaneurabeya@gmail.c=
om> wrote:
>>>>>> Hi all,
>>>>>>  The attached patch fixes/enhances the build so -DNO_TESTS is passed=
 properly through various sections of the build that don't require tests in=
 order to build/install. This should also fix Alan's recent reported issue =
with -DWITH_TESTS failing on amd64.
>>>>>> Cheers!
>>>>>> -Garrett
>>>>>
>>>>> The patch doesn't work for me.  I get the following error during
>>>>> buildworld during stage 4.4.
>>>>
>>>> ...
>>>>
>>>> Oh yeah... It's that chicken and egg issue due to ATF now being contro=
lled by MK_TESTS=3D=3Dyes... There's more to this patch I need to provide y=
ou in order for things to work...
>>>
>>>        Here=92s the working patch. The difference between this one and =
the prior version is that you have to explicitly override -DNO_TESTS when b=
uilding lib/atf* (Simon: do you have any comments?):
>>>
>>> -.if ${MK_TESTS} !=3D "no"
>>> +.if defined(WITH_ATF) || ${MK_TESTS} !=3D "no"
>>> +# Make sure WITH_ATF overrules -DNO_TESTS
>>> +.if !defined(WITH_ATF)
>>> +MAKE+=3D         -DWITH_ATF
>>> +.endif
>>>
>>>        I unrolled most of the local changes to Makefile.inc1 on my gith=
ub fork so it=92ll be easier to spot if you diff it against my tree.
>>> Thanks!
>>> -Garrett
>>
>> Shouldn't that be "WITH_TESTS" instead of "WITH_ATF"?  Those options
>> got combined awhile back.
>
>         Unfortunately no. The chicken and the egg problem I ran into is l=
ike so:
> 1. make libraries shouldn=92t build tests (in particular it will bomb if =
it tries to build something that needs to link against libatf*.so). This is=
n=92t a problem today, but will become a problem when lib/libc/tests is pus=
hed back to FreeBSD.
> 2. lib/atf needs to be installed sooner so atf-check, etc link properly.
>         This wasn=92t a chicken and egg problem until the two knobs were =
merged=85
> Thanks!
> -Garrett

In that case, I'm missing something.  I can't find any makefiles that
reference MK_ATF or a related variable.  What is the effect of setting
WITH_ATF ?

-Alan



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOtMX2g-ChC3_hnk=NE1ZDfWOQp36eeAxcXt3f-ccxyRShz64Q>