Package: e2fsprogs Version: 1.42.9-3 Severity: serious Tags: patch Justification: fails to build from source (but built successfully in the past)
FTBFS: http://buildd.debian-ports.org/status/fetch.php?pkg=e2fsprogs&arch=hppa&ver=1.42.9-3&stamp=1395956210 On inspecting the generated header causing the build failure, I saw that it was truncated. The attached patch fixes the problem by flushing stdout prior to exiting in the main program. With this change, e2fsprogs builds successfully. -- System Information: Debian Release: jessie/sid APT prefers unreleased APT policy: (500, 'unreleased'), (500, 'unstable') Architecture: hppa (parisc64) Kernel: Linux 3.14.0-rc8+ (SMP w/4 CPU cores) Locale: LANG=C, LC_CTYPE=C (charmap=UTF-8) (ignored: LC_ALL set to en_CA.utf8) Shell: /bin/sh linked to /bin/dash Versions of packages e2fsprogs depends on: ii e2fslibs 1.42.9-2 ii libblkid1 2.20.1-5.7 ii libc6 2.18-4 ii libcomerr2 1.42.9-2 ii libss2 1.42.9-2 ii libuuid1 2.20.1-5.7 ii util-linux 2.20.1-5.7 e2fsprogs recommends no packages. Versions of packages e2fsprogs suggests: ii e2fsck-static 1.42.9-2 pn gpart <none> ii parted 2.3-17 -- no debconf information
Description: Flush stdout when generating crc headers When using dietlibc, the generated crc tables are truncated unless stdout is flushed. Author: John David Anglin <dave.ang...@bell.net> Bug-Debian: http://bugs.debian.org/<bugnumber> Forwarded: not-needed Author: John David Anglin <dave.ang...@bell.net> Last-Update: <2014-03-30> --- e2fsprogs-1.42.9.orig/e2fsck/gen_crc32table.c +++ e2fsprogs-1.42.9/e2fsck/gen_crc32table.c @@ -97,5 +97,6 @@ int main(int argc ATTR((unused)), char** printf("};\n"); } + fflush(stdout); return 0; } --- e2fsprogs-1.42.9.orig/lib/ext2fs/gen_crc32ctable.c +++ e2fsprogs-1.42.9/lib/ext2fs/gen_crc32ctable.c @@ -119,5 +119,6 @@ int main(int argc, char **argv) output_table(crc32ctable_be, BE_TABLE_SIZE, 'b'); } + fflush(stdout); return 0; }