Hi! As this FTBFS sits unanswered for two years, I've prepared a NMU and set it for 7 days from now. If for whatever reason you'd prefer to stop, change or delay it, please let me know.
Tested on "links2 -g" on nouveau. -- A tit a day keeps the vet away.
diff -Nru directfb-1.2.10.0/debian/changelog directfb-1.2.10.0/debian/changelog --- directfb-1.2.10.0/debian/changelog 2014-10-21 11:15:10.000000000 +0200 +++ directfb-1.2.10.0/debian/changelog 2016-02-15 00:18:12.000000000 +0100 @@ -1,3 +1,10 @@ +directfb (1.2.10.0-5.2) unstable; urgency=medium + + * Non-maintainer upload. + * Fix FTBFS on x32. (Closes: #699867) + + -- Adam Borowski <kilob...@angband.pl> Mon, 15 Feb 2016 00:17:49 +0100 + directfb (1.2.10.0-5.1) unstable; urgency=medium * Non-maintainer upload. diff -Nru directfb-1.2.10.0/debian/patches/03_x32.patch directfb-1.2.10.0/debian/patches/03_x32.patch --- directfb-1.2.10.0/debian/patches/03_x32.patch 1970-01-01 01:00:00.000000000 +0100 +++ directfb-1.2.10.0/debian/patches/03_x32.patch 2016-02-15 00:18:56.000000000 +0100 @@ -0,0 +1,11 @@ +--- directfb-1.2.10.0.orig/src/gfx/generic/generic_mmx.h ++++ directfb-1.2.10.0/src/gfx/generic/generic_mmx.h +@@ -186,7 +186,7 @@ static void Sop_argb_Sto_Dacc_MMX( Genef + "movl %0, %%edx\n\t" + "andl $0xFFFF0000, %%edx\n\t" + "shrl $14, %%edx\n\t" +-#ifdef ARCH_X86_64 ++#if defined(ARCH_X86_64) && !defined(__ILP32__) + "addq %%rdx, %3\n\t" + #else + "addl %%edx, %3\n\t" diff -Nru directfb-1.2.10.0/debian/patches/series directfb-1.2.10.0/debian/patches/series --- directfb-1.2.10.0/debian/patches/series 2012-05-20 13:46:33.000000000 +0200 +++ directfb-1.2.10.0/debian/patches/series 2016-02-15 00:18:48.000000000 +0100 @@ -7,3 +7,4 @@ 94_fix_mknod.patch 100_fix_format_string_errors.patch directfb-1.2.10_libpng-1.5.patch +03_x32.patch