Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/clamav: fix libxml2 build
@ 2022-04-23 17:48 Fabrice Fontaine
  2022-04-25 20:24 ` Arnout Vandecappelle
  2022-05-27  8:16 ` Peter Korsgaard
  0 siblings, 2 replies; 3+ messages in thread
From: Fabrice Fontaine @ 2022-04-23 17:48 UTC (permalink / raw)
  To: buildroot; +Cc: Bernd Kuhls, Fabrice Fontaine

Pass ac_cv_path_xmlconfig to fix the following build failure with
libxml2 raised since bump to version 0.102.0 in commit
007f49962a961f96ff87795217758ec3786d03ac and
https://github.com/Cisco-Talos/clamav/commit/083ca38727b0ebd3979cf1ebc7b31148f6d5e7f7:

aarch64-none-linux-gnu-gcc: WARNING: unsafe header/library path used in cross-compilation: '-I/usr/include/libxml2'
In file included from /usr/include/libxml2/libxml/parser.h:810,
                 from others.c:62:
/usr/include/libxml2/libxml/encoding.h:31:10: fatal error: unicode/ucnv.h: No such file or directory
   31 | #include <unicode/ucnv.h>
      |          ^~~~~~~~~~~~~~~~

Fixes:
 - http://autobuild.buildroot.org/results/5bb3bea6d13ac8d497f6862374d65a59bea7ed09

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 package/clamav/clamav.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/clamav/clamav.mk b/package/clamav/clamav.mk
index cd2d06e6b3..e2ee99d02b 100644
--- a/package/clamav/clamav.mk
+++ b/package/clamav/clamav.mk
@@ -69,6 +69,7 @@ CLAMAV_CONF_OPTS += --without-libjson
 endif
 
 ifeq ($(BR2_PACKAGE_LIBXML2),y)
+CLAMAV_CONF_ENV += ac_cv_path_xmlconfig=$(STAGING_DIR)/usr/bin/xml2-config
 CLAMAV_CONF_OPTS += --with-xml=$(STAGING_DIR)/usr
 CLAMAV_DEPENDENCIES += libxml2
 else
-- 
2.35.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [Buildroot] [PATCH 1/1] package/clamav: fix libxml2 build
  2022-04-23 17:48 [Buildroot] [PATCH 1/1] package/clamav: fix libxml2 build Fabrice Fontaine
@ 2022-04-25 20:24 ` Arnout Vandecappelle
  2022-05-27  8:16 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Arnout Vandecappelle @ 2022-04-25 20:24 UTC (permalink / raw)
  To: Fabrice Fontaine, buildroot; +Cc: Bernd Kuhls



On 23/04/2022 19:48, Fabrice Fontaine wrote:
> Pass ac_cv_path_xmlconfig to fix the following build failure with
> libxml2 raised since bump to version 0.102.0 in commit
> 007f49962a961f96ff87795217758ec3786d03ac and
> https://github.com/Cisco-Talos/clamav/commit/083ca38727b0ebd3979cf1ebc7b31148f6d5e7f7:
> 
> aarch64-none-linux-gnu-gcc: WARNING: unsafe header/library path used in cross-compilation: '-I/usr/include/libxml2'
> In file included from /usr/include/libxml2/libxml/parser.h:810,
>                   from others.c:62:
> /usr/include/libxml2/libxml/encoding.h:31:10: fatal error: unicode/ucnv.h: No such file or directory
>     31 | #include <unicode/ucnv.h>
>        |          ^~~~~~~~~~~~~~~~
> 
> Fixes:
>   - http://autobuild.buildroot.org/results/5bb3bea6d13ac8d497f6862374d65a59bea7ed09
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

  Applied to master, thanks.

  Regards,
  Arnout

> ---
>   package/clamav/clamav.mk | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/package/clamav/clamav.mk b/package/clamav/clamav.mk
> index cd2d06e6b3..e2ee99d02b 100644
> --- a/package/clamav/clamav.mk
> +++ b/package/clamav/clamav.mk
> @@ -69,6 +69,7 @@ CLAMAV_CONF_OPTS += --without-libjson
>   endif
>   
>   ifeq ($(BR2_PACKAGE_LIBXML2),y)
> +CLAMAV_CONF_ENV += ac_cv_path_xmlconfig=$(STAGING_DIR)/usr/bin/xml2-config
>   CLAMAV_CONF_OPTS += --with-xml=$(STAGING_DIR)/usr
>   CLAMAV_DEPENDENCIES += libxml2
>   else
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Buildroot] [PATCH 1/1] package/clamav: fix libxml2 build
  2022-04-23 17:48 [Buildroot] [PATCH 1/1] package/clamav: fix libxml2 build Fabrice Fontaine
  2022-04-25 20:24 ` Arnout Vandecappelle
@ 2022-05-27  8:16 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2022-05-27  8:16 UTC (permalink / raw)
  To: Fabrice Fontaine; +Cc: Bernd Kuhls, buildroot

>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:

 > Pass ac_cv_path_xmlconfig to fix the following build failure with
 > libxml2 raised since bump to version 0.102.0 in commit
 > 007f49962a961f96ff87795217758ec3786d03ac and
 > https://github.com/Cisco-Talos/clamav/commit/083ca38727b0ebd3979cf1ebc7b31148f6d5e7f7:

 > aarch64-none-linux-gnu-gcc: WARNING: unsafe header/library path used in cross-compilation: '-I/usr/include/libxml2'
 > In file included from /usr/include/libxml2/libxml/parser.h:810,
 >                  from others.c:62:
 > /usr/include/libxml2/libxml/encoding.h:31:10: fatal error: unicode/ucnv.h: No such file or directory
 >    31 | #include <unicode/ucnv.h>
 >       |          ^~~~~~~~~~~~~~~~

 > Fixes:
 >  - http://autobuild.buildroot.org/results/5bb3bea6d13ac8d497f6862374d65a59bea7ed09

 > Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

Committed to 2022.02.x, thanks.

-- 
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-05-27  8:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-23 17:48 [Buildroot] [PATCH 1/1] package/clamav: fix libxml2 build Fabrice Fontaine
2022-04-25 20:24 ` Arnout Vandecappelle
2022-05-27  8:16 ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox