Fix gcc-4.4 issues
This commit is contained in:
parent
98a0a13580
commit
fba58a4be5
11
highlight-2.7-gcc44.patch
Normal file
11
highlight-2.7-gcc44.patch
Normal file
@ -0,0 +1,11 @@
|
||||
diff -up highlight-2.7/src/core/re/Pattern.cpp.gcc44 highlight-2.7/src/core/re/Pattern.cpp
|
||||
--- highlight-2.7/src/core/re/Pattern.cpp.gcc44 2009-02-03 17:15:46.000000000 +0100
|
||||
+++ highlight-2.7/src/core/re/Pattern.cpp 2009-02-03 17:16:03.000000000 +0100
|
||||
@@ -26,6 +26,7 @@
|
||||
#include "Pattern.h"
|
||||
#include "Matcher.h"
|
||||
#include <cstring>
|
||||
+#include <cstdio>
|
||||
#include <algorithm>
|
||||
#include <cctype>
|
||||
|
@ -1,7 +1,7 @@
|
||||
Name: highlight
|
||||
Summary: Universal source code to formatted text converter
|
||||
Version: 2.7
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
|
||||
Group: Development/Tools
|
||||
License: GPLv2
|
||||
@ -9,6 +9,8 @@ License: GPLv2
|
||||
URL: http://www.andre-simon.de/
|
||||
Source0: http://www.andre-simon.de/zip/%{name}-%{version}.tar.gz
|
||||
Patch1: highlight-2.6.11-makefile.patch
|
||||
# Sent patch to upstrem via mail.
|
||||
Patch2: highlight-2.7-gcc44.patch
|
||||
|
||||
BuildRequires: wxGTK-devel
|
||||
|
||||
@ -25,6 +27,7 @@ It is easily possible to create new language definitions and colour themes.
|
||||
%prep
|
||||
%setup -q
|
||||
%patch1 -p1 -b .mak
|
||||
%patch2 -p1 -b .gcc44
|
||||
|
||||
# Provides: exclude perl(highlight_pipe) from example
|
||||
cat <<__EOF__ > %{name}-perl.prov
|
||||
@ -70,6 +73,9 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%doc ChangeLog AUTHORS README* COPYING TODO examples/
|
||||
|
||||
%changelog
|
||||
* Tue Feb 3 2009 Jochen Schmitt <Jochen herr-schmitt de> 2.7-2
|
||||
- Patches for gcc-4.4
|
||||
|
||||
* Thu Jan 15 2009 Jochen Schmitt <Jochen herr-schmitt de> 2.7-1
|
||||
- New upstream release
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user