Source: cfengine3
Version: 3.15.2-3
Tags: patch upstream
User: [email protected]
Usertags: ftcbfs

cfengine3 gained another use of libxml2 in libntech and that refuses to
use xml2-config during cross builds again. The attached patch fixes it
in the same way as my previous patch. Please consider applying it.

What remains unsolved is the part about manual pages. It's difficult to
fix, because the upstream approach is fundamentally incompatible with
cross builds. One solution violating a policy should is splitting manual
pages into a cfengine3-doc package which happens to be Architecture:
all. Policy says that manual pages should be included.

So please just fix the libxml2 part and close this bug when doing so.

Helmut
Index: cfengine3-3.15.2/libntech/configure.ac
===================================================================
--- cfengine3-3.15.2.orig/libntech/configure.ac	2020-05-31 15:37:42.000000000 +0200
+++ cfengine3-3.15.2/libntech/configure.ac	2020-10-25 07:59:48.138071540 +0100
@@ -584,7 +584,7 @@
     fi
 
     # xml2-config is only for native builds
-    if test "x$cross_compiling" = "xno" && test x`which $XML2_CONFIG` != x
+    if test x`which $XML2_CONFIG` != x
     then
         xml2_include_dir=`$XML2_CONFIG --cflags`
         if test -n "$xml2_include_dir"

Reply via email to