Your message dated Sun, 20 Oct 2019 18:19:11 +0000
with message-id <[email protected]>
and subject line Bug#929579: fixed in fio 3.15-1
has caused the Debian Bug report #929579,
regarding fio FTCBFS: builds for the build architecture
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.)


-- 
929579: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=929579
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: fio
Version: 3.12-2
Tags: patch
User: [email protected]
Usertags: rebootstrap

fio fails to cross build from source, because it configures for the
build architecture. fio's configure is very different from autotools and
requires the user to export a variable called CROSS_COMPILE. Even then,
it uses the wrong pkg-config and runs compiled executables. The attached
patch makes fio cross buildable. Please consider applying it.

Helmut
diff --minimal -Nru fio-3.12/debian/changelog fio-3.12/debian/changelog
--- fio-3.12/debian/changelog   2019-01-21 09:29:38.000000000 +0100
+++ fio-3.12/debian/changelog   2019-05-25 14:14:03.000000000 +0200
@@ -1,3 +1,13 @@
+fio (3.12-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: (Closes: #-1)
+    + Export CROSS_COMPILE.
+    + cross.patch: Apply $CROSS_COMPILE to pkg-config and avoid running
+      compiled code.
+
+ -- Helmut Grohne <[email protected]>  Sat, 25 May 2019 14:14:03 +0200
+
 fio (3.12-2) unstable; urgency=medium
 
   * control: Depend on libglusterfs-dev instead of glusterfs-common
diff --minimal -Nru fio-3.12/debian/patches/cross.patch 
fio-3.12/debian/patches/cross.patch
--- fio-3.12/debian/patches/cross.patch 1970-01-01 01:00:00.000000000 +0100
+++ fio-3.12/debian/patches/cross.patch 2019-05-25 14:14:03.000000000 +0200
@@ -0,0 +1,42 @@
+--- fio-3.12.orig/configure
++++ fio-3.12/configure
+@@ -1336,31 +1336,30 @@
+   return GTK_CHECK_VERSION(2, 18, 0) ? 0 : 1; /* 0 on success */
+ }
+ EOF
+-GTK_CFLAGS=$(pkg-config --cflags gtk+-2.0 gthread-2.0)
++GTK_CFLAGS=$(${cross_prefix}pkg-config --cflags gtk+-2.0 gthread-2.0)
+ ORG_LDFLAGS=$LDFLAGS
+ LDFLAGS=$(echo $LDFLAGS | sed s/"-static"//g)
+ if test "$?" != "0" ; then
+   echo "configure: gtk and gthread not found"
+   exit 1
+ fi
+-GTK_LIBS=$(pkg-config --libs gtk+-2.0 gthread-2.0)
++GTK_LIBS=$(${cross_prefix}pkg-config --libs gtk+-2.0 gthread-2.0)
+ if test "$?" != "0" ; then
+   echo "configure: gtk and gthread not found"
+   exit 1
+ fi
+-if compile_prog "$GTK_CFLAGS" "$GTK_LIBS" "gfio" ; then
+-  $TMPE
+-  if test "$?" = "0" ; then
++if ! ${cross_prefix}pkg-config --atleast-version 2.18.0 gtk+-2.0; then
++  echo "GTK found, but need version 2.18 or higher"
++  gfio="no"
++else
++  if compile_prog "$GTK_CFLAGS" "$GTK_LIBS" "gfio" ; then
+     gfio="yes"
+     GFIO_LIBS="$LIBS $GTK_LIBS"
+     CFLAGS="$CFLAGS $GTK_CFLAGS"
+   else
+-    echo "GTK found, but need version 2.18 or higher"
++    echo "Please install gtk and gdk libraries"
+     gfio="no"
+   fi
+-else
+-  echo "Please install gtk and gdk libraries"
+-  gfio="no"
+ fi
+ LDFLAGS=$ORG_LDFLAGS
+ fi
diff --minimal -Nru fio-3.12/debian/patches/series 
fio-3.12/debian/patches/series
--- fio-3.12/debian/patches/series      2018-11-28 18:09:19.000000000 +0100
+++ fio-3.12/debian/patches/series      2019-05-25 14:14:03.000000000 +0200
@@ -3,3 +3,4 @@
 fio2gnuplot-manpage
 configure-no-configlog
 genfio-interpreter
+cross.patch
diff --minimal -Nru fio-3.12/debian/rules fio-3.12/debian/rules
--- fio-3.12/debian/rules       2018-11-28 18:09:19.000000000 +0100
+++ fio-3.12/debian/rules       2019-05-25 14:14:03.000000000 +0200
@@ -9,12 +9,18 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+include /usr/share/dpkg/architecture.mk
+
 export DEB_LDFLAGS_MAINT_PREPEND := -Wl,-z,defs -Wl,--as-needed
 
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 
 export V = 1
 
+ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
+export CROSS_COMPILE=$(DEB_HOST_GNU_TYPE)-
+endif
+
 %:
        dh $@
 

--- End Message ---
--- Begin Message ---
Source: fio
Source-Version: 3.15-1

We believe that the bug you reported is fixed in the latest version of
fio, 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.
Sven Hoexter <[email protected]> (supplier of updated fio 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: Sun, 20 Oct 2019 19:48:57 +0200
Source: fio
Binary: fio fio-dbgsym gfio gfio-dbgsym
Architecture: source amd64
Version: 3.15-1
Distribution: unstable
Urgency: medium
Maintainer: Martin Steigerwald <[email protected]>
Changed-By: Sven Hoexter <[email protected]>
Description:
 fio        - flexible I/O tester
 gfio       - flexible I/O tester - gui frontend
Closes: 929579
Changes:
 fio (3.15-1) unstable; urgency=medium
 .
   [ Martin Steigerwald ]
   * Imported new upstream version 3.15:
     * New engine 'io_uring' for new IO uring asynchronous I/O interface
       of Linux.
     * New engine 'libiscsi' for iSCSI targets.
     * Addresses bug #929579 for upstream related changes to support cross
       building (see messages 15 and 20 of this bug report).
   * patches: Refreshed.
   * control: Bumped standards version to 4.4.0.1, no changes needed.
 .
   [ Sven Hoexter ]
   * Bump Standards-Version to 4.4.1, no changes required.
   * Export CROSS_COMPILE when required to allow cross compilation.
     Patch provided by Helmut Grohne. Closes: #929579
Checksums-Sha1:
 48a44c78ee282033b809004fb6a34fd5e35eb14a 2260 fio_3.15-1.dsc
 f78a2dc366ad717fd7d6ad6fac89f7729e7b5ccb 974500 fio_3.15.orig.tar.gz
 103b4ca1d809fe4955e7b3dfb85ea73125254029 858 fio_3.15.orig.tar.gz.asc
 9eb8573da2d9e2b0cc03dc89674c02edea898ec8 20472 fio_3.15-1.debian.tar.xz
 050993c9b707e629f36f1dbdf0011835f206c3c1 1954024 fio-dbgsym_3.15-1_amd64.deb
 1a45feb91d4770669b7f1c2d42743b80a8891ec4 12553 fio_3.15-1_amd64.buildinfo
 f0875d429ee73930facbe2bb42b328c2a9f0b8eb 506396 fio_3.15-1_amd64.deb
 513d106463ea870a317c8d8fc4c2e6e16995f3f6 2016708 gfio-dbgsym_3.15-1_amd64.deb
 5e992a85306a8f3de1cd5a8690e61e0c1d372643 376896 gfio_3.15-1_amd64.deb
Checksums-Sha256:
 a9d8c3b3bea4cff5a28c11518c469df8de3449798b0c9b7962adf7f97c8cf5b5 2260 
fio_3.15-1.dsc
 a84e663518c8e25ef8f9a1f6a92a91b28b4cc8f648d4d26728a8bfc1dafdce74 974500 
fio_3.15.orig.tar.gz
 5f6156b63576a635042027b82ff25b49bea5333d468742b9a0f9a0433c98a407 858 
fio_3.15.orig.tar.gz.asc
 b9d70d1d0843fe459d27e59213eed60dba975d9ba4172a563fa5f7dec4fb8a00 20472 
fio_3.15-1.debian.tar.xz
 6ec59cdf9330ef3a2ecda69b04f49001850607f41be386fa807fc0b94cbcb921 1954024 
fio-dbgsym_3.15-1_amd64.deb
 333ec2ecbbd17e55529d5bc1398ee9583426398f49e3137ab80e297bb7c191a6 12553 
fio_3.15-1_amd64.buildinfo
 df80c6916cac03dbb21b5d9b11a4dff12920a0d775cc016b6a328e8563170b07 506396 
fio_3.15-1_amd64.deb
 0818fdf2ad4bba2e0e32c0fc4ddb53a0e7f46454b3a1f931ec0f60fbddc19252 2016708 
gfio-dbgsym_3.15-1_amd64.deb
 86987d967bda25286a4210cd45fe64b39bb00e6becbeb5a0b93d9b1b48056e89 376896 
gfio_3.15-1_amd64.deb
Files:
 11cce02b1f1f7855027fdc6069af15c0 2260 utils optional fio_3.15-1.dsc
 45325054bcdb4f63873530c298560127 974500 utils optional fio_3.15.orig.tar.gz
 b062c0f50331ff02fc660e3db9116ff3 858 utils optional fio_3.15.orig.tar.gz.asc
 64a4ba01419c5ef69e14fea1f63aff05 20472 utils optional fio_3.15-1.debian.tar.xz
 0efcc195e59719acbdc161f6799cec81 1954024 debug optional 
fio-dbgsym_3.15-1_amd64.deb
 00c849135dda850e6e8e9ddf69155295 12553 utils optional 
fio_3.15-1_amd64.buildinfo
 f101e238567d8b7a97c085cfafb937ea 506396 utils optional fio_3.15-1_amd64.deb
 d279a2dda5645842d5ae4c62065a3330 2016708 debug optional 
gfio-dbgsym_3.15-1_amd64.deb
 92c6f8023107aaf279108e6481997b63 376896 utils optional gfio_3.15-1_amd64.deb

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

iQIzBAEBCAAdFiEEfAcX+forK514ixQbptwk2dokk9EFAl2sn4QACgkQptwk2dok
k9HXNw/+KbKDO0vKK4vc0crTJ5e3uq0JkoY2UWO+4FqPUZSmLz0te0bDSycF1gkY
BNXEp4PYkm0nJM8nT9P4H5xbGd9t3NvN6PJGWVeCcFX05Z8ZPYJx1IY7VfWlBafh
99IS+1hrY388B4Hc2RSCEB82YYlnSv92HfdbOiYsF5RqZBboNqfFo6BpdcRIB1Oo
/zysl8VOsoE4coL+XTwoIHE/wDwhV+Ou3XKTkP7RebWKnkCJENzmGiAX2aHQtIq/
L8mrdnIsfGGCCqQKtoAPuv9AudtP6DdsuRWPX6hFJbpJ+umJIBPMx1Ze+Gl1ahSL
OPuQOkVp+bsA4MZRGkFEhJfqiM+zSu+O4/9oBM2XW2mtlSCoBW1DWm+X6T5Sb9dg
YSW9kpg6HW9QWQxcrOLEy4u5UQuH4oqtRnIWWDheuOfjXQMfeJBsvB+aDRmkXV0H
tme4e/VGAHoJ2yUMPV39/BVN4XYEXB2mV6X/WOwvnItCoLCpN+JTBnIovhjjkmgl
fLeWnXlt05lfMxmp/9eJdvKjvQ4xGsuHiTMKKwU9L1wJUpaU5v/mprI6S3snSJ3n
1D98gvEroVXRPEgJ22pOdS+gfj/eJs4NxzyLRCgRtqeuPB7cwjPcKs0PD6P03OiA
Scp+LygGAW3lt9uG+8ESDsqPCbj/1ct+Bmhf5H1w5/KCfvOcFn8=
=uE4g
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to