Bug#1016904: boost1.74: Please include patch to fix FTBFS on qemu-user
John Paul Adrian Glaubitz <[email protected]> Tue, 09 Aug 2022 15:04:20 +0200
| Newsgroups | gmane.linux.debian.ports.superh |
|---|---|
| Message-ID | <166005026094.2328034.15401572031156316198.reportbug__29447.9485879251$1660050930$gmane$org@nofan.physik.fu-berlin.de> |
Source: boost1.74 Version: 1.74.0-16.1 Severity: normal Tags: patch User: [email protected] Usertags: m68k sh4 X-Debbugs-Cc: [email protected],[email protected] 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
qemu-fix.patch
(text/plain, 477 B)
--- 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