I'm very sorry Matthias, I didn't receive or probably I loose your e-mail attaching the patch and I use my own solution...
Checking your diff, your solution and mine are very similar. The only difference between them is that you get the GCC_VERSION using gcc --version and sed, and I check g++ version instead gcc and in this way: G++VERSION=`g++ -dumpversion` I send my diff file attached. Best regards -- José Luis Segura Lucas
diff -r fa533916b693 -r a4ededba4273 .hgtags --- a/.hgtags Fri Dec 02 10:45:42 2011 +0100 +++ b/.hgtags Tue Apr 24 09:15:00 2012 +0200 @@ -1,1 +1,3 @@ e5bcd99e1342ca554eaf58d4aef92c6c0946576a 0.6.0-1 +fa533916b6936b2ab8961694edd0dd6c71468f0e 0.6.0~rc2-2 +6ae467f1183e8aa4472bb9c26f590590031bbf92 0.6.0~rc2-3 diff -r fa533916b693 -r a4ededba4273 debian/changelog --- a/debian/changelog Fri Dec 02 10:45:42 2011 +0100 +++ b/debian/changelog Tue Apr 24 09:15:00 2012 +0200 @@ -1,3 +1,9 @@ +libjsoncpp (0.6.0~rc2-3) unstable; urgency=low + + * Bug fix: "ftbfs with GCC-4.7", thanks to Matthias Klose (Closes: #667246). + + -- José Luis Segura Lucas <joseluis@mordor> Tue, 24 Apr 2012 09:10:15 +0200 + libjsoncpp (0.6.0~rc2-2) unstable; urgency=low * Bug fix: "jsoncpp headers installed in unexpected location", thanks to diff -r fa533916b693 -r a4ededba4273 debian/rules --- a/debian/rules Fri Dec 02 10:45:42 2011 +0100 +++ b/debian/rules Tue Apr 24 09:15:00 2012 +0200 @@ -3,6 +3,7 @@ DESTDIR=debian/tmp VERSION=`sed -r s/-rc[0-9]+$$// version` +G++VERSION=`g++ -dumpversion` %: dh $@ @@ -28,9 +29,9 @@ install -vd $(DESTDIR)/usr/lib/pkgconfig install -vd $(DESTDIR)/usr/include/json install -vd $(DESTDIR)/usr/share/doc/jsoncpp-api-html - install -v libs/linux-gcc-4.6/libjson_linux-gcc-4.6_libmt.so \ + install -v libs/linux-gcc-$(G++VERSION)/libjson_linux-gcc-$(G++VERSION)_libmt.so \ $(DESTDIR)/usr/lib/libjsoncpp.so.$(VERSION) - install -v libs/linux-gcc-4.6/libjson_linux-gcc-4.6_libmt.a \ + install -v libs/linux-gcc-$(G++VERSION)/libjson_linux-gcc-$(G++VERSION)_libmt.a \ $(DESTDIR)/usr/lib/libjsoncpp.a install -v -m 0644 debian/pkgconfig/* $(DESTDIR)/usr/lib/pkgconfig install -v include/json/* $(DESTDIR)/usr/include/json
signature.asc
Description: OpenPGP digital signature