[evolution-rss/f14/master] fix rdp import issues
Lucian Langa
lucilanga at fedoraproject.org
Wed Feb 2 20:14:01 UTC 2011
commit e3914ddfb52808895fb7f662f353f06072d894ec
Author: Lucian Langa <lucilanga at gnome.org>
Date: Wed Feb 2 22:13:26 2011 +0200
fix rdp import issues
evolution-rss.spec | 7 ++++++-
rdf-import.patch | 16 ++++++++++++++++
2 files changed, 22 insertions(+), 1 deletions(-)
---
diff --git a/evolution-rss.spec b/evolution-rss.spec
index 7e97d3e..6988286 100644
--- a/evolution-rss.spec
+++ b/evolution-rss.spec
@@ -2,11 +2,12 @@ Name: evolution-rss
Summary: Evolution RSS Reader
Epoch: 1
Version: 0.2.3
-Release: 1%{?dist}
+Release: 2%{?dist}
Group: Applications/Internet
License: GPLv2 and GPLv2+
URL: http://gnome.eu.org/evo/index.php/Evolution_RSS_Reader_Plugin
Source0: http://gnome.eu.org/%{name}-%{version}.tar.gz
+Patch0: rdf-import.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: evolution
@@ -27,6 +28,7 @@ This is an evolution plugin which enables evolution to read rss feeds.
%prep
%setup -q -n evolution-rss-%{version}
+%patch0 -p1 -b .rdf-import
%build
%configure --with-primary-render=webkit
@@ -81,6 +83,9 @@ fi
%{_libdir}/evolution/*/plugins/liborg-gnome-evolution-rss.so
%changelog
+* Wed Feb 02 2011 Lucian Langa <cooly at gnome.eu.org> - 1:0.2.3-2
+- add upstream patch to fix RDF import issues
+
* Mon Jan 31 2011 Lucian Langa <cooly at gnome.eu.org> - 1:0.2.3-1
- new upstream release
diff --git a/rdf-import.patch b/rdf-import.patch
new file mode 100644
index 0000000..c352836
--- /dev/null
+++ b/rdf-import.patch
@@ -0,0 +1,16 @@
+diff -Naur evolution-rss-0.2.3/src/parser.c evolution-rss-0.2.3-mod/src/parser.c
+--- evolution-rss-0.2.3/src/parser.c 2011-01-28 20:31:34.000000000 +0200
++++ evolution-rss-0.2.3-mod/src/parser.c 2011-02-02 21:50:15.000000000 +0200
+@@ -175,7 +175,11 @@
+ mime_type = g_content_type_guess(NULL, (guchar *)buf, len, NULL);
+ //feeding parsed anything other than xml results in blocking delays
+ //it's possible we can relax parser by using xmlErrorFunc
+- if (!g_ascii_strncasecmp (mime_type, "application/", 12)) {
++ //UPDATE: add text/* - but exclude text/html I've seen huge delays because of this
++ //I doubt there'll be any text/html feeds
++ if (!g_ascii_strncasecmp (mime_type, "application/", 12)
++ || (!g_ascii_strncasecmp (mime_type, "text/", 5)
++ && g_ascii_strncasecmp (mime_type, "text/html", 9))) {
+ if (!sax) {
+ xmlInitParser();
+ sax = xmlMalloc (sizeof (xmlSAXHandler));
More information about the scm-commits
mailing list