[oe] [meta-webserver] [PATCH] fix nginx with large files support

Andre McCurdy armccurdy at gmail.com
Wed Oct 25 03:04:05 UTC 2017


On Tue, Oct 24, 2017 at 7:55 PM, Khem Raj <raj.khem at gmail.com> wrote:
> On Tue, Oct 24, 2017 at 6:47 PM, Wangchong Zhou <fffonion at gmail.com> wrote:
>> Thanks! This should work.
>>
>> Signed-off-by: Wangchong Zhou <fffonion at gmail.com>
>> ---
>>  meta-webserver/recipes-httpd/nginx/nginx.inc | 8 +++++++-
>>  1 file changed, 7 insertions(+), 1 deletion(-)
>>
>> diff --git a/meta-webserver/recipes-httpd/nginx/nginx.inc
>> b/meta-webserver/recipes-httpd/nginx/nginx.inc
>> index 4a97e2670..00ce132b3 100644
>> --- a/meta-webserver/recipes-httpd/nginx/nginx.inc
>> +++ b/meta-webserver/recipes-httpd/nginx/nginx.inc
>> @@ -41,6 +41,12 @@ do_configure () {
>>      else
>>          PTRSIZE=4
>>      fi
>> +    if ${@bb.utils.contains('DISTRO_FEATURES', 'largefile', 'true',
>> 'false', d)}; then
>> +        OFFTSIZE=8
>> +    else
>> +        OFFTSIZE=${PTRSIZE}
>> +    fi
>> +
>
> I was looking for something like
>
>  --with-off-t=${@bb.utils.contains('DISTRO_FEATURES','largefile','8','${PTRSIZE}',d)};

That won't work since PTRSIZE is a shell variable, not a bitbake variable.



More information about the Openembedded-devel mailing list