[Buildroot] [PATCH 3/3] package/nginx-naxsi: add missing pcre dependency
Arnout Vandecappelle
arnout at mind.be
Tue Sep 13 17:30:19 UTC 2016
On 13-09-16 09:57, Samuel Martin wrote:
> On Tue, Sep 13, 2016 at 8:40 AM, Arnout Vandecappelle <arnout at mind.be> wrote:
>>
>>
>> On 12-09-16 21:23, Samuel Martin wrote:
>>> Fixes:
>>> http://autobuild.buildroot.net/results/9c7/9c7bad6831b09251af81e2bbfc595a241df87c70/
>>>
>>> Signed-off-by: Samuel Martin <s.martin49 at gmail.com>
>>> ---
>>> package/nginx-naxsi/Config.in | 1 +
>>> 1 file changed, 1 insertion(+)
>>>
>>> diff --git a/package/nginx-naxsi/Config.in b/package/nginx-naxsi/Config.in
>>> index 2f7c2da..6c175eb 100644
>>> --- a/package/nginx-naxsi/Config.in
>>> +++ b/package/nginx-naxsi/Config.in
>>> @@ -1,5 +1,6 @@
>>> config BR2_PACKAGE_NGINX_NAXSI
>>> bool "nginx-naxsi"
>>> + select BR2_PACKAGE_PCRE
>>> help
>>> NAXSI means Nginx Anti XSS & SQL Injection.
>>
>> I may be missing something, but shouldn't there be a _DEPENDENCIES += in .mk?
>
> Nope, this is not needed.
> naxsi is a nginx' module, built by nginx.mk, which already has an
> automatic dependency on pcre when selected.
I don't think we should rely on transitive dependencies. naxsi.h #include's
pcre.h, so there should be an explicit dependency in the .mk file.
Whenever you don't have that, the 'select' in Config.in should carry a comment
explaining why not (usually 'runtime dependency').
Regards,
Arnout
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286500
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
More information about the buildroot
mailing list