Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 3CE7AE00B8E; Tue, 27 Mar 2018 08:27:30 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,HTML_MESSAGE, RDNS_DYNAMIC autolearn=no version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.0 HTML_MESSAGE BODY: HTML included in message * 1.0 RDNS_DYNAMIC Delivered to internal network by host with * dynamic-looking rDNS Received: from APOLLO-EX16.csoftware.local (176-35-35-244.xdsl.murphx.net [176.35.35.244]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id A4BC9E008D3 for ; Tue, 27 Mar 2018 08:27:28 -0700 (PDT) Received: from APOLLO-EX16.csoftware.local (10.1.1.6) by APOLLO-EX16.csoftware.local (10.1.1.6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1415.2; Tue, 27 Mar 2018 16:27:33 +0100 Received: from APOLLO-EX16.csoftware.local ([fe80::f4fe:415e:7ed9:9ee0]) by APOLLO-EX16.csoftware.local ([fe80::f4fe:415e:7ed9:9ee0%13]) with mapi id 15.01.1415.004; Tue, 27 Mar 2018 16:27:33 +0100 From: Tom Gibson To: akuster808 , "yocto@yoctoproject.org" Thread-Topic: [yocto] ClamAV PCRE support Thread-Index: AdPF1+hZQZMIgHvxQGSK/H0SJtQy6///+S0A///p8GA= Date: Tue, 27 Mar 2018 15:27:33 +0000 Message-ID: <1e95f92ab4e3479ca3df99189062668d@csoftware.co.uk> References: <7fe4b4d52892445b97680ccd2ec47808@csoftware.co.uk> In-Reply-To: Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.1.1.70] x-esetresult: clean, is OK x-esetid: 37303A29CD5E6C6C6D7063 MIME-Version: 1.0 Subject: Re: ClamAV PCRE support X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Mar 2018 15:27:30 -0000 Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_1e95f92ab4e3479ca3df99189062668dcsoftwarecouk_" --_000_1e95f92ab4e3479ca3df99189062668dcsoftwarecouk_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Yes, I am using the recipe from meta-security. I have just double-checked t= his with "bitbake-layers show-recipes". Regards, Tom Gibson C Software Limited From: akuster808 Sent: 27 March 2018 16:04 To: Tom Gibson ; yocto@yoctoproject.org Subject: Re: [yocto] ClamAV PCRE support On 03/27/2018 07:42 AM, Tom Gibson wrote: Hi, I am adding ClamAV to our custom image and have added the following to our = main .bb file: Are you using the recipe from meta-security ? - Armin IMAGE_INSTALL +=3D " clamav clamav-daemon clamav-clamdscan" When I run clamscan on our board I get a number of errors of the form "logi= cal signature for ... uses PCREs but support is disabled, skipping" so the = solution would appear to be to add PCRE support. In the ClamAV bitbake reci= pe I see there is a PACKAGECONFIG variable for PCRE, so to test if this is = the solution I have added the following to my local.conf: PACKAGECONFIG_append_pn-clamav =3D " pcre" and have also added " libpcre2" before "clamav" in the IMAGE_INSTALL as abo= ve. Unfortunately when I run bitbake I now get a configure error similar to the= following: configure: error: cannot locate libpcre2 or libpcre at /tmp/work/= armv7a-neon-poky-linux-gnueabi/clamav/0.99.3-r0/recipe-sysroot/usr/lib I have attempted to solve this by creating a .bbappend file in my layer con= taining the following to try and force it to build libpcre first DEPENDS +=3D " libpcre2" however this has no effect on the error, I assume this may not be the way t= o solve the dependency problem. Can anyone please advise what additional configuration is required to enabl= e building of support for PCRE into ClamAV Thanks in advance for your assistance! Regards, Tom Gibson C Software Limited --_000_1e95f92ab4e3479ca3df99189062668dcsoftwarecouk_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Yes, I am using the= recipe from meta-security. I have just double-checked this with “bit= bake-layers show-recipes”.

 

Regards,

 

Tom Gibson

C Software Limited

 

From: akuster808 <akuster808@gmail.= com>
Sent: 27 March 2018 16:04
To: Tom Gibson <tom.gibson@csoftware.co.uk>; yocto@yoctoprojec= t.org
Subject: Re: [yocto] ClamAV PCRE support

 

 

 

On 03/27/2018 07:42 AM, Tom Gibson wrote:=

Hi,

 

I am adding ClamAV to our custom image and have adde= d the following to our main .bb file:


Are you using the recipe from meta-security ?

- Armin

 

IMAGE_INSTALL +=3D = “ clamav clamav-daemon clamav-clamdscan”

 

When I run clamscan on our board I get a number of e= rrors of the form “logical signature for … uses PCREs but suppo= rt is disabled, skipping” so the solution would appear to be to add P= CRE support. In the ClamAV bitbake recipe I see there is a PACKAGECONFIG variable for PCRE, so to test if this is the solution I= have added the following to my local.conf:

 

PACKAGECONFIG_append_pn= -clamav =3D “ pcre”

 

and have also added “ libpcre2” before &= #8220;clamav” in the IMAGE_INSTALL as above.

 

Unfortunately when I run bitbake I now get a configu= re error similar to the following:

 

configure: error: canno= t locate libpcre2 or libpcre at <builddir>/tmp/work/armv7a-neon-poky-= linux-gnueabi/clamav/0.99.3-r0/recipe-sysroot/usr/lib

 

I have attempted to solve this by creating a .bbappe= nd file in my layer containing the following to try and force it to build l= ibpcre first

 

        &nbs= p;       DEPENDS +=3D “ libpcre2= 221;

 

however this has no effect on the error, I assume th= is may not be the way to solve the dependency problem.

 

Can anyone please advise what additional configurati= on is required to enable building of support for PCRE into ClamAV

 

Thanks in advance for your assistance!

 

Regards,<= /span>

 

Tom Gibso= n

C Softwar= e Limited

 



&nbs= p;

--_000_1e95f92ab4e3479ca3df99189062668dcsoftwarecouk_--