rpms/openvrml/devel uri-strerror.patch, NONE, 1.1 openvrml.spec, 1.90, 1.91

Braden McDaniel braden at fedoraproject.org
Sat Jan 16 04:44:59 UTC 2010


Author: braden

Update of /cvs/pkgs/rpms/openvrml/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv20272

Modified Files:
	openvrml.spec 
Added Files:
	uri-strerror.patch 
Log Message:
Patch to include the necessary header for strerror.

uri-strerror.patch:
 uri.cpp |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

--- NEW FILE uri-strerror.patch ---
Index: uri.cpp
===================================================================
--- src/libopenvrml/openvrml/local/uri.cpp	(.../tags/0.18.3/src/libopenvrml/openvrml/local/uri.cpp)	(revision 4058)
+++ src/libopenvrml/openvrml/local/uri.cpp	(.../trunk/src/libopenvrml/openvrml/local/uri.cpp)	(revision 4058)
@@ -21,6 +21,7 @@
 # include "uri.h"
 # include <list>
 # include <cerrno>
+# include <cstring>
 # ifdef _WIN32
 #   include <boost/multi_index/detail/scope_guard.hpp>
 using namespace boost::multi_index::detail;  // for scope_guard
@@ -596,7 +597,7 @@
         assert(errno != 0);
         assert(errno != EFAULT);
         assert(errno != EINVAL);
-        throw std::runtime_error(strerror(errno));
+        throw std::runtime_error(std::strerror(errno));
     }
 # endif
     return std::string(&buf.front());


Index: openvrml.spec
===================================================================
RCS file: /cvs/pkgs/rpms/openvrml/devel/openvrml.spec,v
retrieving revision 1.90
retrieving revision 1.91
diff -u -p -r1.90 -r1.91
--- openvrml.spec	16 Jan 2010 01:39:27 -0000	1.90
+++ openvrml.spec	16 Jan 2010 04:44:58 -0000	1.91
@@ -1,12 +1,13 @@
 # -*- rpm-spec -*-
 Name:           openvrml
 Version:        0.18.3
-Release:        16%{?dist}
+Release:        17%{?dist}
 Summary:        VRML/X3D player and runtime library
 License:        LGPLv3+
 Group:          System Environment/Libraries
 Source:         http://downloads.sourceforge.net/openvrml/%{name}-%{version}.tar.gz
 Patch0:         xulrunner-1.9.2.patch
+Patch1:         uri-strerror.patch
 URL:            http://openvrml.org
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires:  pkgconfig >= 0.18.0
@@ -137,6 +138,7 @@ OpenVRML API documentation.
 %prep
 %setup
 %patch0
+%patch1
 
 %build
 CXXFLAGS="%optflags -fvisibility=hidden -fvisibility-inlines-hidden -Wno-missing-braces"
@@ -237,6 +239,9 @@ CXXFLAGS="%optflags -fvisibility=hidden 
 %doc %{_datadir}/doc/libopenvrml-%{version}/manual
 
 %changelog
+* Fri Jan 15 2010  Braden McDaniel  <braden at endoframe.com> - 0.18.3-17
+- Patch to include the necessary header for strerror.
+
 * Fri Jan 15 2010  Braden McDaniel  <braden at endoframe.com> - 0.18.3-16
 - Rebuild for Boost 1.41.0.
 



More information about the scm-commits mailing list