[rest/f21] Backport upstream patch to fix a memory error (GNOME #742644)

Debarshi Ray rishi at fedoraproject.org
Fri Jan 9 13:48:13 UTC 2015


commit 530fdf3143077fbf2131db62428a83467ca32723
Author: Debarshi Ray <debarshir at gnome.org>
Date:   Fri Jan 9 14:47:37 2015 +0100

    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(-)
---
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 <cfergeau at redhat.com>
+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 <rest/rest-proxy-call.h>
+ #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 92627c9..da3bab7 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:       ftp://ftp.gnome.org/pub/gnome/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 <pbrobinson at fedoraproject.org> 0.7.92-1
+* Fri Jan  9 2015 Debarshi Ray <rishi at fedoraproject.org> 0.7.92-6
+- Backport upstream patch to fix a memory error (GNOME #742644)
+
+* Wed Sep  3 2014 Peter Robinson <pbrobinson at fedoraproject.org> 0.7.92-5
 - Update to 0.7.92
 
 * Sun Aug 17 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.7.91-5


More information about the scm-commits mailing list