[Buildroot] [PATCH] zeromq: disable test using fork() when fork() is no available

Samuel Martin s.martin49 at gmail.com
Sat May 3 12:09:28 UTC 2014


Thomas,

On Fri, May 2, 2014 at 5:45 PM, Thomas Petazzoni
<thomas.petazzoni at free-electrons.com> wrote:
> Dear Samuel Martin,
>
> On Fri,  2 May 2014 16:21:38 +0200, Samuel Martin wrote:
>> zeromp's configure script correctly detects the fork availability, but
>> unconditionally build all tests.
>>
>> This patch just disables the piece of code using fork() in the given
>> test. This avoids the autoreconf step of the package.
>
> Huh, but then it completely breaks the test, no? Would it be better to
> find an upstreamable solution instead?

I don't think so.
Zeromq code already uses "#ifdef HAVE_FORK ... #endif" to protect the
section using fork; I just did the same in the test source (disabling
most/all of this test, so it now has not real meaning when fork() is
not available).

BTW, I've just come up with a proper solution just by hacking the
autotools (<ironic>my favorite build-system! </ironic>), so I'll
repost this fix shortly.

Regards,

>
> Thomas
> --
> Thomas Petazzoni, CTO, Free Electrons
> Embedded Linux, Kernel and Android engineering
> http://free-electrons.com



-- 
Samuel


More information about the buildroot mailing list