[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1016904: boost1.74: Please include patch to fix FTBFS on qemu-user



Source: boost1.74
Version: 1.74.0-16.1
Severity: normal
Tags: patch
User: debian-68k@lists.debian.org
Usertags: m68k sh4
X-Debbugs-Cc: debian-68k@lists.debian.org,debian-superh@lists.debian.org

Hello!

boost1.74 currently FTBFS on m68k and sh4 due to a filesystem compatiblity
issue that is present on qemu-user [1]. Both m68k and sh4 use qemu-based
buildds which is why these architectures are affected by this problem.

Upstream has come up with a workaround for the problem which is present in
newer versions of the b2 utility [2].

Could you backport the patch to boost1.74 so that the builds get fixed on
m68k and sh4?

Please see the attached patch.

Thanks,
Adrian

> [1] https://buildd.debian.org/status/fetch.php?pkg=boost1.74&arch=m68k&ver=1.74.0-16.1&stamp=1659775192&raw=0
> [2] https://github.com/bfgroup/b2/issues/49

--
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
--- boost1.74-1.74.0.orig/tools/build/src/engine/config.h
+++ boost1.74-1.74.0/tools/build/src/engine/config.h
@@ -31,4 +31,13 @@ http://www.boost.org/LICENSE_1_0.txt)
     #endif
 #endif
 
+
+// To work around QEMU failures on mixed mode situations (32 vs 64) we need to
+// enable partial LFS support in system headers. And we need to do this before
+// any system headers are included.
+
+#if !defined(NT) && !defined(VMS)
+#   define _FILE_OFFSET_BITS 64
+#endif
+
 #endif

Reply to: