[synopsis/f14/master] * Sun Aug 01 2010 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 0.12-4 - Fix gcc-4.5 build erro
Orcan Ogetbil
oget at fedoraproject.org
Sun Aug 1 06:07:36 UTC 2010
commit 16ff0afc7bb215d778038aaf0de9452459532021
Author: Orcan Ogetbil <oget.fedora at gmail.com>
Date: Sun Aug 1 02:07:31 2010 -0400
* Sun Aug 01 2010 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 0.12-4
- Fix gcc-4.5 build errors
synopsis-gcc45.patch | 12 ++++++++++++
synopsis.spec | 8 +++++++-
2 files changed, 19 insertions(+), 1 deletions(-)
---
diff --git a/synopsis-gcc45.patch b/synopsis-gcc45.patch
new file mode 100644
index 0000000..b394688
--- /dev/null
+++ b/synopsis-gcc45.patch
@@ -0,0 +1,12 @@
+diff -rupN synopsis-0.12.old/Synopsis/Parsers/Cxx/Types.cc synopsis-0.12/Synopsis/Parsers/Cxx/Types.cc
+--- synopsis-0.12.old/Synopsis/Parsers/Cxx/Types.cc 2008-12-17 19:06:46.000000000 -0500
++++ synopsis-0.12/Synopsis/Parsers/Cxx/Types.cc 2010-08-01 01:52:31.000000000 -0400
+@@ -169,7 +169,7 @@ Parameterized::accept(Visitor* visitor)
+ // Class Types::FuncPtr
+ //
+
+-FuncPtr::FuncPtr(Type::Type* ret, const Mods& premods, const Type::vector& params)
++FuncPtr::FuncPtr(typename Type::Type* ret, const Mods& premods, const Type::vector& params)
+ : m_return(ret), m_premod(premods), m_params(params)
+ {}
+
diff --git a/synopsis.spec b/synopsis.spec
index 18aded0..b49102b 100644
--- a/synopsis.spec
+++ b/synopsis.spec
@@ -1,6 +1,6 @@
%define name synopsis
%define version 0.12
-%define release 3
+%define release 4
%define py_sitedir %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")
%define py_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")
%define url http://synopsis.fresco.org
@@ -10,6 +10,7 @@ Name: %{name}
Version: %{version}
Release: %{release}%{?dist}
Source0: %{url}/download/%{name}-%{version}.tar.gz
+Patch0: synopsis-gcc45.patch
License: LGPLv2+
Group: Development/Tools
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -57,6 +58,8 @@ Synopsis IDL Parser module to parse CORBA IDL.
%prep
%setup -q
+%patch0 -p1
+
env CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" \
python setup.py config --with-gc-prefix=%{_prefix} --libdir=%{_libdir}
@@ -126,6 +129,9 @@ rm -rf $RPM_BUILD_ROOT
%{_docdir}/synopsis-%{version}/NEWS
%changelog
+* Sun Aug 01 2010 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 0.12-4
+- Fix gcc-4.5 build errors
+
* Thu Jul 22 2010 David Malcolm <dmalcolm at redhat.com> - 0.12-3
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
More information about the scm-commits
mailing list