Fix FTBFS using gcc 4.7.
This commit is contained in:
parent
a9052bdc4f
commit
0241ca4525
11
cppcheck-1.52-include.patch
Normal file
11
cppcheck-1.52-include.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
diff -up cppcheck-1.52/test/testfilelister.cpp.orig cppcheck-1.52/test/testfilelister.cpp
|
||||||
|
--- cppcheck-1.52/test/testfilelister.cpp.orig 2011-12-10 14:00:45.000000000 +0200
|
||||||
|
+++ cppcheck-1.52/test/testfilelister.cpp 2012-01-05 12:45:09.197377791 +0200
|
||||||
|
@@ -24,6 +24,7 @@
|
||||||
|
#ifndef _WIN32
|
||||||
|
#include <limits.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
+#include <unistd.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
class TestFileLister: public TestFixture {
|
@ -1,11 +1,13 @@
|
|||||||
Name: cppcheck
|
Name: cppcheck
|
||||||
Version: 1.52
|
Version: 1.52
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: Tool for static C/C++ code analysis
|
Summary: Tool for static C/C++ code analysis
|
||||||
Group: Development/Languages
|
Group: Development/Languages
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
URL: http://cppcheck.wiki.sourceforge.net/
|
URL: http://cppcheck.wiki.sourceforge.net/
|
||||||
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
|
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
|
||||||
|
# Add missing includes
|
||||||
|
Patch0: cppcheck-1.52-include.patch
|
||||||
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
||||||
|
|
||||||
BuildRequires: pcre-devel
|
BuildRequires: pcre-devel
|
||||||
@ -23,6 +25,7 @@ errors in the code (i.e. have zero false positives).
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch0 -p1 -b .include
|
||||||
|
|
||||||
# Make sure bundled tinyxml is not used
|
# Make sure bundled tinyxml is not used
|
||||||
rm -r externals/tinyxml
|
rm -r externals/tinyxml
|
||||||
@ -55,6 +58,9 @@ rm -rf %{buildroot}
|
|||||||
%{_mandir}/man1/cppcheck.1*
|
%{_mandir}/man1/cppcheck.1*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Jan 05 2012 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.52-2
|
||||||
|
- Add missing includes (fix FTBFS in rawhide).
|
||||||
|
|
||||||
* Sun Dec 11 2011 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.52-1
|
* Sun Dec 11 2011 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.52-1
|
||||||
- Update to 1.52.
|
- Update to 1.52.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user