Your message dated Tue, 05 Dec 2017 22:19:21 +0000
with message-id <[email protected]>
and subject line Bug#883480: fixed in cfengine3 3.10.2-3
has caused the Debian Bug report #883480,
regarding cfengine3 FTCBFS: multiple reasons
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
883480: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=883480
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: cfengine3
Version: 3.10.2-2
Severity: minor
Tags: patch

cfengine3 fails to cross build from source for a number of reasons. The
first reason is that it does not pass --host to ./configure and thus
configures for the build architecture. Using dh_auto_configure fixes
that. Then it fails finding libxml2 headers in -Iyes/include/libxml2,
because ./configure insists that xml2-config is unusable for cross
building, but not using it breaks the build. Fixing ./configure to
behave like native builds fixes that. Finally it fails generating the
manual pages. I don't have a generic solution for this issue.
DEB_BUILD_OPTIONS=nodoc could be used to work around it, but I don't
like that. So I am attaching a patch for the first two issues and hope
that you can apply it even though it doesn't fully make cfengine3 cross
build. Please close this bug when doing so.

Helmut
diff --minimal -Nru cfengine3-3.10.2/debian/changelog 
cfengine3-3.10.2/debian/changelog
--- cfengine3-3.10.2/debian/changelog   2017-11-21 23:05:33.000000000 +0100
+++ cfengine3-3.10.2/debian/changelog   2017-12-04 14:28:03.000000000 +0100
@@ -1,3 +1,12 @@
+cfengine3 (3.10.2-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Address FTCBFS: (Closes: #-1)
+    + Let dh_auto_configure pass --host to ./configure.
+    + Use xml2-config rather than passing -Iyes/include/libxml2.
+
+ -- Helmut Grohne <[email protected]>  Mon, 04 Dec 2017 14:28:03 +0100
+
 cfengine3 (3.10.2-2) unstable; urgency=medium
 
   * debian/control: removed any dependency fron libssl-* which is not
diff --minimal -Nru cfengine3-3.10.2/debian/patches/0011-cross.patch 
cfengine3-3.10.2/debian/patches/0011-cross.patch
--- cfengine3-3.10.2/debian/patches/0011-cross.patch    1970-01-01 
01:00:00.000000000 +0100
+++ cfengine3-3.10.2/debian/patches/0011-cross.patch    2017-12-04 
14:28:03.000000000 +0100
@@ -0,0 +1,14 @@
+Index: cfengine3-3.10.2/configure.ac
+===================================================================
+--- cfengine3-3.10.2.orig/configure.ac
++++ cfengine3-3.10.2/configure.ac
+@@ -573,8 +573,7 @@
+         XML2_CONFIG=xml2-config
+     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"
diff --minimal -Nru cfengine3-3.10.2/debian/patches/series 
cfengine3-3.10.2/debian/patches/series
--- cfengine3-3.10.2/debian/patches/series      2017-11-21 23:05:33.000000000 
+0100
+++ cfengine3-3.10.2/debian/patches/series      2017-12-04 14:28:03.000000000 
+0100
@@ -5,3 +5,4 @@
 0006-skip_failing_tests.patch
 0007-fix_kfreebsd_build.patch
 0010_disable_date_annotation.patch
+0011-cross.patch
diff --minimal -Nru cfengine3-3.10.2/debian/rules cfengine3-3.10.2/debian/rules
--- cfengine3-3.10.2/debian/rules       2017-11-21 23:05:33.000000000 +0100
+++ cfengine3-3.10.2/debian/rules       2017-12-04 14:28:01.000000000 +0100
@@ -14,7 +14,7 @@
 # openssl1.1 transition, re-enable once it becomes ready.
 override_dh_auto_configure:
        dh_autoreconf
-       ./configure     --prefix=/usr \
+       dh_auto_configure -- \
                        --with-sql=yes \
                        --without-sql \
                        --with-libvirt \
@@ -26,10 +26,10 @@
                        --with-piddir=/var/run/cfengine3 \
                        --libdir=/usr/lib/cfengine3 \
                        --docdir=\$${prefix}/share/doc/cfengine3 \
-                       --datadir=\$${prefix}/share/cfengine3 \
-                       --mandir=\$${prefix}/share/man
-       cd masterfiles && ./configure --prefix=/usr/share/cfengine3 \
-                                                                       
--with-core=$(CURDIR)
+                       --datadir=\$${prefix}/share/cfengine3
+       dh_auto_configure --sourcedirectory=masterfiles -- \
+                       --prefix=/usr/share/cfengine3 \
+                       --with-core=$(CURDIR)
 
 
 override_dh_clean:

--- End Message ---
--- Begin Message ---
Source: cfengine3
Source-Version: 3.10.2-3

We believe that the bug you reported is fixed in the latest version of
cfengine3, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Antonio Radici <[email protected]> (supplier of updated cfengine3 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Tue, 05 Dec 2017 06:35:45 +0000
Source: cfengine3
Binary: cfengine3 libpromises3
Architecture: source
Version: 3.10.2-3
Distribution: unstable
Urgency: medium
Maintainer: Antonio Radici <[email protected]>
Changed-By: Antonio Radici <[email protected]>
Description:
 cfengine3  - tool for configuring and maintaining network machines
 libpromises3 - libpromises library for cfengine3 binaries
Closes: 883480
Changes:
 cfengine3 (3.10.2-3) unstable; urgency=medium
 .
   * Switch debian/compat to 10 and remove dependency from dh-autoreconf (now
     dependency of dh)
   * Removing quilt from the invocation (it's already used), exporting V=1 to
     see build flags.
   * Address FTCBFS (Closes: 883480)
     + Let dh_auto_configure pass --host to ./configure.
     + Use xml2-config rather than passing -Iyes/include/libxml2.
       - fixed with debian/patches/883480-fix-crossbuild-libxml2.patch.
     + patch provided by Helmut Grohne <[email protected]>; thanks!
   * Removed the dbg package in favour of the autogenerated dbgsym.
   * Update Standards-Version to 4.1.1, replaced priority extra with optional.
Checksums-Sha1:
 01464ce008916899f74176ad501f4281cd3662f1 2364 cfengine3_3.10.2-3.dsc
 7743f2c9abe49916a9450e4dedb2f2b2563a6dc5 27828 cfengine3_3.10.2-3.debian.tar.xz
 50ac527c245e5af8b7b648abbde9abf421f78f7d 8177 
cfengine3_3.10.2-3_amd64.buildinfo
Checksums-Sha256:
 0ac3b8986821685636fcdc3b6592986b35bb0c848dcce604425ab2e6cdd5e621 2364 
cfengine3_3.10.2-3.dsc
 49d9372509616aa4d3ddadc2aa882d1f3dfc237323ede4d4875f9acbedf9bed8 27828 
cfengine3_3.10.2-3.debian.tar.xz
 7497662b25dd50a3502d8bdab5f5210f6e4ef2d67064e2010ce4a6db2ec81e2f 8177 
cfengine3_3.10.2-3_amd64.buildinfo
Files:
 f74ab3adb3fba0e85574b3172fd7acf5 2364 admin optional cfengine3_3.10.2-3.dsc
 7f2300960475f1e3a0af740cf5f8a2b9 27828 admin optional 
cfengine3_3.10.2-3.debian.tar.xz
 afe24a41d734b07d9a00ac0b7c112a95 8177 admin optional 
cfengine3_3.10.2-3_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJHBAEBCAAxFiEEQObYrBkA1SRrfOa1NcjIiHLLHu0FAlonGM8THGFudG9uaW9A
ZGViaWFuLm9yZwAKCRA1yMiIcsse7WNEEACMS6ze4G4PMUFEyb5zK7m7uaVnoIlL
BiwPlusuRggU1DHljucnMf04eiN2+M+9Tfh5BQ9sHkYlbyr2PrDuLAoKx+5uOKNa
bzTTIpjPbES6qcW1LxtNlJHgjbvpZN6gZLB7wkpEgqNgbEjN7jz9LU27/T4Lak8i
+anqdFMF3JoBybUkTRizoB1JDC0rhzSWp32iTyq/GOh3O9IcrqwNT1Ynavq+XSPs
EX2rAYB6VWi7+neKIGrOZKa9xpN0UMeXiDssSjxi9FLB9Azs5TSDvLJKpQ3oI8/m
n59sk3qQEVnnTm+Wmz49uoSope7Zx+UyAJVuFqhTeQ7VFKe+Ph5++hDBDs34tWQX
jWoxo5trSCwe0cXlvp0GFUuYY2irvkirKSyVuloSTgTyjkcxlb0Hc12AnwBEkPE0
dwgdXN8Cr7W2uw7ydEZ5BRSAMT9ivlE5Ds2qb31a4WsgZDLWnSUkchWR/OXSoN/+
v9ClhB+g9Ds/PrHclH5V6aCByohbqfOVMDrn66YEHHtRSkwZFh/d7NLVIhtRPPKS
abv70nHbqB+wXCg1gOaImlCtwqjAk/+vUHzQfSlrq8GB3PSEa7fVA1UCxa4hkKvS
rXL8c4ZVoP5WU2eueUxzZ+z7EYfKd+HVH5Jdf3t7ZvQIV34WMJdQwJjkUWJftnQj
gMGT3XmwG9Bd2Q==
=ECOq
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to