diff -Nru audit-2.5.2/debian/changelog audit-2.5.2/debian/changelog --- audit-2.5.2/debian/changelog 2016-05-05 13:49:34.000000000 +0000 +++ audit-2.5.2/debian/changelog 2016-05-12 13:44:07.000000000 +0000 @@ -1,3 +1,9 @@ +audit (1:2.5.2-1+rpi1) stretch-staging; urgency=medium + + * Add hack for compatibility with older kernel headers. + + -- Peter Michael Green Thu, 12 May 2016 13:43:52 +0000 + audit (1:2.5.2-1) unstable; urgency=medium * New upstream release diff -Nru audit-2.5.2/debian/patches/kernel-header-hack.patch audit-2.5.2/debian/patches/kernel-header-hack.patch --- audit-2.5.2/debian/patches/kernel-header-hack.patch 1970-01-01 00:00:00.000000000 +0000 +++ audit-2.5.2/debian/patches/kernel-header-hack.patch 2016-05-12 13:45:52.000000000 +0000 @@ -0,0 +1,17 @@ +Description: Add hack for compatibility with older kernel headers. +Author: Peter Michael Green + +--- audit-2.5.2.orig/lib/libaudit.c ++++ audit-2.5.2/lib/libaudit.c +@@ -604,7 +604,10 @@ static void load_feature_bitmap(void) + continue; + + /* Found it... */ +- features_bitmap = rep.status->feature_bitmap; ++ //HACK: version and feature_bitmap are the same ++ //field but older kernel headers don't have the ++ //latter. ++ features_bitmap = rep.status->version; + return; + } + } diff -Nru audit-2.5.2/debian/patches/series audit-2.5.2/debian/patches/series --- audit-2.5.2/debian/patches/series 2016-05-05 13:49:34.000000000 +0000 +++ audit-2.5.2/debian/patches/series 2016-05-12 13:45:35.000000000 +0000 @@ -1 +1,2 @@ 01-no-refusemanualstop.patch +kernel-header-hack.patch