building "master" under mock buildroot

Phil Mayers p.mayers at imperial.ac.uk
Thu Nov 15 16:27:31 CET 2012


On 15/11/12 13:37, Phil Mayers wrote:
> On 15/11/12 13:15, Alan DeKok wrote:
>> Phil Mayers wrote:
>>> Making all in src/include...
>>> gmake[4]: *** [features.h] Error 1
>>
>>    Ah.  I had fixed that for the new make, but not the old system.  I've
>> pushed a fix.
>
> That's not it sadly :o(
>
>

Ok, I know what it is.

If your locale is UTF-8, grep defaults to using PCRE regexps it seems. 
The existing regexp is such:

   grep "^\#define\s*WITH_.*" autoconf.h

Note the "\s". However, inside the rpmbuild environment, this doesn't 
work, though "grep -P" explicitly does.

I suspect it would be safer to avoid PCRE in grep, and use this:

   egrep '^#define[[:space:]]+WITH_.*'

...which also works. I had to hook onto the "Makefile" with a "bash" 
callout to find this out!


More information about the Freeradius-Users mailing list