From c75e703ed4c45a721f4df5c69adce8af55ee5649 Mon Sep 17 00:00:00 2001 From: Debarshi Ray Date: Fri, 9 Jan 2015 14:47:37 +0100 Subject: [PATCH] Backport upstream patch to fix a memory error (GNOME #742644) --- 0001-oauth-Add-missing-include.patch | 25 +++++++++++++++++++++++++ rest.spec | 11 +++++++++-- 2 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 0001-oauth-Add-missing-include.patch diff --git a/0001-oauth-Add-missing-include.patch b/0001-oauth-Add-missing-include.patch new file mode 100644 index 0000000..cf41fed --- /dev/null +++ b/0001-oauth-Add-missing-include.patch @@ -0,0 +1,25 @@ +From b50ace7738ea03817acdad87fb2b338a86018329 Mon Sep 17 00:00:00 2001 +From: Christophe Fergeau +Date: Wed, 3 Sep 2014 11:31:49 +0200 +Subject: [PATCH] oauth: Add missing include + +This fixes a compilation warning about a missing prototype. +--- + rest/oauth-proxy-call.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/rest/oauth-proxy-call.c b/rest/oauth-proxy-call.c +index dce2c66..ab77b1a 100644 +--- a/rest/oauth-proxy-call.c ++++ b/rest/oauth-proxy-call.c +@@ -25,6 +25,7 @@ + #include + #include "oauth-proxy-call.h" + #include "oauth-proxy-private.h" ++#include "rest-proxy-call-private.h" + #include "sha1.h" + + G_DEFINE_TYPE (OAuthProxyCall, oauth_proxy_call, REST_TYPE_PROXY_CALL) +-- +2.1.0 + diff --git a/rest.spec b/rest.spec index 15f1003..1f3fe16 100644 --- a/rest.spec +++ b/rest.spec @@ -1,6 +1,6 @@ Name: rest Version: 0.7.92 -Release: 5%{?dist} +Release: 6%{?dist} Summary: A library for access to RESTful web services Group: System Environment/Libraries @@ -8,6 +8,9 @@ License: LGPLv2 URL: http://www.gnome.org Source0: http://download.gnome.org/sources/%{name}/0.7/%{name}-%{version}.tar.xz +# https://bugzilla.gnome.org/show_bug.cgi?id=742644 +Patch0: 0001-oauth-Add-missing-include.patch + BuildRequires: glib2-devel BuildRequires: gobject-introspection-devel BuildRequires: libsoup-devel @@ -37,6 +40,7 @@ Files for development with %{name}. %prep %setup -q +%patch0 -p1 %build autoreconf -vif @@ -73,7 +77,10 @@ find %{buildroot} -type f -name "*.la" -delete %{_datadir}/gir-1.0/RestExtras-0.7.gir %changelog -* Wed Sep 3 2014 Peter Robinson 0.7.92-1 +* Fri Jan 9 2015 Debarshi Ray 0.7.92-6 +- Backport upstream patch to fix a memory error (GNOME #742644) + +* Wed Sep 3 2014 Peter Robinson 0.7.92-5 - Update to 0.7.92 * Sun Aug 17 2014 Fedora Release Engineering - 0.7.91-5