[meta-security] clamav: add COMPATIBLE_HOST to fix build error

Message ID 20220404125727.43818-1-davide.gardenal@huawei.com
State Accepted, archived
Delegated to: Armin Kuster
Headers show
Series [meta-security] clamav: add COMPATIBLE_HOST to fix build error | expand

Commit Message

Davide Gardenal April 4, 2022, 12:57 p.m. UTC
Add COMPATIBLE_HOST to match what is found in glibc
to avoid build error when using musl

Signed-off-by: Davide Gardenal <davide.gardenal@huawei.com>
---
 recipes-scanners/clamav/clamav_0.104.0.bb | 2 ++
 1 file changed, 2 insertions(+)

Comments

akuster808 April 7, 2022, 5:32 p.m. UTC | #1
merged.

thanks
-armin

On 4/4/22 05:57, Davide Gardenal wrote:
> Add COMPATIBLE_HOST to match what is found in glibc
> to avoid build error when using musl
>
> Signed-off-by: Davide Gardenal <davide.gardenal@huawei.com>
> ---
>   recipes-scanners/clamav/clamav_0.104.0.bb | 2 ++
>   1 file changed, 2 insertions(+)
>
> diff --git a/recipes-scanners/clamav/clamav_0.104.0.bb b/recipes-scanners/clamav/clamav_0.104.0.bb
> index f0889de..ae2d292 100644
> --- a/recipes-scanners/clamav/clamav_0.104.0.bb
> +++ b/recipes-scanners/clamav/clamav_0.104.0.bb
> @@ -6,6 +6,8 @@ LICENSE = "LGPL-2.1"
>   
>   DEPENDS = "glibc llvm libtool db openssl zlib curl libxml2 bison pcre2 json-c libcheck"
>    
> +COMPATIBLE_HOST:libc-musl:class-target = "null"
> +
>   LIC_FILES_CHKSUM = "file://COPYING.txt;beginline=2;endline=3;md5=f7029fbbc5898b273d5902896f7bbe17"
>   
>   # July 27th
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#56657): https://lists.yoctoproject.org/g/yocto/message/56657
> Mute This Topic: https://lists.yoctoproject.org/mt/90240805/3616698
> Group Owner: yocto+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [akuster808@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>

Patch

diff --git a/recipes-scanners/clamav/clamav_0.104.0.bb b/recipes-scanners/clamav/clamav_0.104.0.bb
index f0889de..ae2d292 100644
--- a/recipes-scanners/clamav/clamav_0.104.0.bb
+++ b/recipes-scanners/clamav/clamav_0.104.0.bb
@@ -6,6 +6,8 @@  LICENSE = "LGPL-2.1"
 
 DEPENDS = "glibc llvm libtool db openssl zlib curl libxml2 bison pcre2 json-c libcheck"
  
+COMPATIBLE_HOST:libc-musl:class-target = "null"
+
 LIC_FILES_CHKSUM = "file://COPYING.txt;beginline=2;endline=3;md5=f7029fbbc5898b273d5902896f7bbe17"
 
 # July 27th