tag 667399 patch thanks Matthias Klose <[email protected]> (03/04/2012): > Package: tripwire > Version: 2.4.2.2-1 > Severity: important > Tags: sid wheezy > User: [email protected] > Usertags: ftbfs-gcc-4.7
Here's a patch. No intent to NMU here. Mraw, KiBi.
diff -Nru tripwire-2.4.2.2/debian/changelog tripwire-2.4.2.2/debian/changelog --- tripwire-2.4.2.2/debian/changelog 2012-01-03 13:06:49.000000000 +0000 +++ tripwire-2.4.2.2/debian/changelog 2012-04-04 18:17:51.000000000 +0000 @@ -1,3 +1,11 @@ +tripwire (2.4.2.2-1.1) UNRELEASED; urgency=low + + * Non-maintainer upload. + * Fix FTBFS with gcc 4.7 by fixing missing <unistd.h> include and + by adding “this->” when needed (Closes: #667399). + + -- Cyril Brulebois <[email protected]> Wed, 04 Apr 2012 18:17:05 +0000 + tripwire (2.4.2.2-1) unstable; urgency=low * New upstream release diff -Nru tripwire-2.4.2.2/debian/patches/fix_ftbfs_with_gcc_4.7 tripwire-2.4.2.2/debian/patches/fix_ftbfs_with_gcc_4.7 --- tripwire-2.4.2.2/debian/patches/fix_ftbfs_with_gcc_4.7 1970-01-01 00:00:00.000000000 +0000 +++ tripwire-2.4.2.2/debian/patches/fix_ftbfs_with_gcc_4.7 2012-04-04 18:17:01.000000000 +0000 @@ -0,0 +1,22 @@ +--- a/src/cryptlib/algebra.h ++++ b/src/cryptlib/algebra.h +@@ -273,7 +273,7 @@ template <class T> T AbstractEuclideanDo + Element g[3]={b, a}; + unsigned int i0=0, i1=1, i2=2; + +- while (!Equal(g[i1], this->Zero())) ++ while (!this->Equal(g[i1], this->Zero())) + { + g[i2] = Mod(g[i0], g[i1]); + unsigned int t = i0; i0 = i1; i1 = i2; i2 = t; +--- a/src/twadmin/twadmincl.cpp ++++ b/src/twadmin/twadmincl.cpp +@@ -33,6 +33,8 @@ + // twadmincl.cpp -- command line parsing for twadmin + // + ++#include <unistd.h> ++ + #include "stdtwadmin.h" + + #include "twadmincl.h" diff -Nru tripwire-2.4.2.2/debian/patches/series tripwire-2.4.2.2/debian/patches/series --- tripwire-2.4.2.2/debian/patches/series 2011-12-30 16:38:54.000000000 +0000 +++ tripwire-2.4.2.2/debian/patches/series 2012-04-04 18:13:33.000000000 +0000 @@ -2,3 +2,4 @@ manpages_hyphen2minus source_typo sucky_autoconf_stuff +fix_ftbfs_with_gcc_4.7
signature.asc
Description: Digital signature

