Build fix

This commit is contained in:
Marc Maurer 2009-03-09 17:06:50 +00:00
parent f11c423086
commit ba4886782d
2 changed files with 18 additions and 1 deletions

View File

@ -0,0 +1,12 @@
diff -u -r abiword-plugins-2.6.8.orig/tools/abicommand/xp/AbiCommand.cpp abiword-plugins-2.6.8/tools/abicommand/xp/AbiCommand.cpp
--- abiword-plugins-2.6.8.orig/tools/abicommand/xp/AbiCommand.cpp 2007-10-11 22:05:55.000000000 +0200
+++ abiword-plugins-2.6.8/tools/abicommand/xp/AbiCommand.cpp 2009-03-09 16:59:14.000000000 +0100
@@ -551,7 +551,7 @@
UT_UTF8String *pCom1 =
const_cast < UT_UTF8String * >(static_cast < const UT_UTF8String * >(pToks->getNthItem (1)));
printf(" Filename %s \n",pCom1->utf8_str());
- char *suffix = rindex (pCom1->utf8_str (), '.');
+ const char *suffix = static_cast<const char*>(rindex (pCom1->utf8_str (), '.'));
if (suffix != NULL)
{

View File

@ -7,7 +7,7 @@
Summary: The AbiWord word processor
Name: abiword
Version: %{majorversion}.%{minorversion}.%{microversion}
Release: 1%{?dist}
Release: 2%{?dist}
Epoch: 1
Group: Applications/Editors
License: GPLv2+
@ -30,6 +30,7 @@ Patch0: abiword-2.6.0-windowshelppaths.patch
Patch1: abiword-2.6.4-desktop.patch
Patch2: abiword-2.6.0-boolean.patch
Patch3: abiword-plugins-2.6.0-boolean.patch
Patch4: abiword-plugins-2.6.8-rindex.patch
%if %{olpc_build}
Patch100: abiword-2.6.4-defaultfont.patch
Patch101: abiword-2.6.4-draghandles.patch
@ -93,6 +94,7 @@ Includes and definitions for developing with libabiword.
# setup abiword-plugins
%setup -q -T -b 1 -n abiword-plugins-%{version}
%patch3 -p1 -b .boolean
%patch4 -p1 -b .rindex
# setup abiword extras
%setup -q -T -b 2 -n abiword-extras-%{version}
@ -214,6 +216,9 @@ update-desktop-database %{_datadir}/applications
%{_libdir}/pkgconfig/%{name}-%{majorversion}.%{minorversion}.pc
%changelog
* Mon Mar 09 2009 Marc Maurer <uwog@abisource.com> - 1:2.6.8-2
- Make g++ 4.4 and rindex friends again
* Mon Mar 09 2009 Marc Maurer <uwog@abisource.com> - 1:2.6.8-1
- New upstream release