wipe-383467-lseek_returns_off_t_not_long.patch the lseek() result is casted down to a long, which is 32 bit on i386. The patch changes that to off_t.
wipe-383467-target_linux.patch shorter version of Piotr's lfs-bug-workaround.patch which allows build on non-linux.
--- wipe.c.orig 2006-09-16 18:41:39.119581000 +0200 +++ wipe.c 2006-09-16 18:41:50.996323250 +0200 @@ -719,7 +719,7 @@ debugf ("lseek -> %d", l); o_wipe_length = l; #else - long l; + off_t l; /* find device size by seeking... might work on some devices */ l = lseek (fd, 0, SEEK_END); if (!l) {
--- debian/rules.orig 2006-09-16 18:44:15.325343250 +0200 +++ debian/rules 2006-09-16 18:44:25.229962250 +0200 @@ -12,7 +12,7 @@ DEB_HOST_GNU_SYSTEM := $(shell dpkg-architecture -qDEB_HOST_GNU_SYSTEM) -ifeq ($(DEB_HOST_GNU_SYSTEM), linux) +ifeq ($(DEB_HOST_GNU_SYSTEM), linux-gnu) target = linux else target = generic