Update to feedparser 5.1.3. It's supposed to be better I think.

If you build without MODPY_SETUPTOOLS=Yes it stops and says you need
that. So I added it to the Makefile and then it worked.

Index: Makefile
===================================================================
RCS file: /cvs/ports/textproc/py-feedparser/Makefile,v
retrieving revision 1.14
diff -u -p -r1.14 Makefile
--- Makefile    11 Mar 2013 11:42:46 -0000      1.14
+++ Makefile    5 May 2013 07:37:25 -0000
@@ -2,10 +2,9 @@
 
 COMMENT=       RSS and Atom feeds parser written in Python
 
-V=             5.0.1
+V=             5.1.3
 DISTNAME=      feedparser-${V}
 PKGNAME=       py-${DISTNAME}
-REVISION=      2
 CATEGORIES=    textproc
 
 HOMEPAGE=      http://www.feedparser.org/
@@ -18,6 +17,8 @@ PERMIT_PACKAGE_CDROM= Yes
 MASTER_SITES=  http://feedparser.googlecode.com/files/
 
 MODULES=       lang/python
+MODPY_SETUPTOOLS=      Yes
+
 
 do-test:
        cd ${WRKSRC}/feedparser/ && ${MODPY_BIN} feedparsertest.py
Index: distinfo
===================================================================
RCS file: /cvs/ports/textproc/py-feedparser/distinfo,v
retrieving revision 1.7
diff -u -p -r1.7 distinfo
--- distinfo    18 Mar 2011 12:17:50 -0000      1.7
+++ distinfo    5 May 2013 07:37:25 -0000
@@ -1,5 +1,2 @@
-MD5 (feedparser-5.0.1.tar.gz) = Df1K1uEFm6jfO27rxg7vWQ==
-RMD160 (feedparser-5.0.1.tar.gz) = 5dTqffPk7GfDsv+9h5j7V6Hfpz0=
-SHA1 (feedparser-5.0.1.tar.gz) = EWMdQcl4K5Kv1TO4o6o+oM6qHvE=
-SHA256 (feedparser-5.0.1.tar.gz) = kyICWKZhryQaVpUXH98JtMs5I04u24vA2O9uUXNQECc=
-SIZE (feedparser-5.0.1.tar.gz) = 313356
+SHA256 (feedparser-5.1.3.tar.gz) = rVQ2OeidQ2heLx07bkhxFWLuw743nmlYqSD76vTGO84=
+SIZE (feedparser-5.1.3.tar.gz) = 283614
Index: patches/patch-feedparser_feedparser_py
===================================================================
RCS file: patches/patch-feedparser_feedparser_py
diff -N patches/patch-feedparser_feedparser_py
--- patches/patch-feedparser_feedparser_py      25 May 2012 12:27:33 -0000      
1.1
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,30 +0,0 @@
-$OpenBSD: patch-feedparser_feedparser_py,v 1.1 2012/05/25 12:27:33 jasper Exp $
-
-Security fix for CVE-2012-2921,
-feedparser DOCTYPE and ENTITY XML Declaration Denial of Service Vulnerability
-
-Patch from upstream:
-https://code.google.com/p/feedparser/source/detail?r=703&path=/trunk/feedparser/feedparser.py
-
---- feedparser/feedparser.py.orig      Fri May 25 14:24:41 2012
-+++ feedparser/feedparser.py   Fri May 25 14:25:48 2012
-@@ -3703,9 +3703,6 @@ def parse(url_file_stream_or_string, etag=None, modifi
-         result['bozo'] = 1
-         result['bozo_exception'] = NonXMLContentType(bozo_message)
- 
--    if data is not None:
--        result['version'], data, entities = _stripDoctype(data)
--
-     # ensure that baseuri is an absolute uri using an acceptable URI scheme
-     contentloc = http_headers.get('content-location', 
http_headers.get('Content-Location', ''))
-     href = result.get('href', '')
-@@ -3790,6 +3787,9 @@ def parse(url_file_stream_or_string, etag=None, modifi
-             'document declared as %s, but parsed as %s' % \
-             (result['encoding'], proposed_encoding))
-         result['encoding'] = proposed_encoding
-+
-+    if data is not None:
-+        result['version'], data, entities = _stripDoctype(data)
- 
-     if not _XML_AVAILABLE:
-         use_strict_parser = 0
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/textproc/py-feedparser/pkg/PLIST,v
retrieving revision 1.3
diff -u -p -r1.3 PLIST
--- pkg/PLIST   16 Mar 2011 22:52:10 -0000      1.3
+++ pkg/PLIST   5 May 2013 07:37:26 -0000
@@ -1,5 +1,8 @@
 @comment $OpenBSD: PLIST,v 1.3 2011/03/16 22:52:10 jasper Exp $
-lib/python${MODPY_VERSION}/site-packages/feedparser-5.0.1-py${MODPY_VERSION}.egg-info
+lib/python${MODPY_VERSION}/site-packages/feedparser-5.1.3-py${MODPY_VERSION}.egg-info/
+lib/python${MODPY_VERSION}/site-packages/feedparser-5.1.3-py${MODPY_VERSION}.egg-info/PKG-INFO
+lib/python${MODPY_VERSION}/site-packages/feedparser-5.1.3-py${MODPY_VERSION}.egg-info/SOURCES.txt
+lib/python${MODPY_VERSION}/site-packages/feedparser-5.1.3-py${MODPY_VERSION}.egg-info/dependency_links.txt
+lib/python${MODPY_VERSION}/site-packages/feedparser-5.1.3-py${MODPY_VERSION}.egg-info/top_level.txt
 lib/python${MODPY_VERSION}/site-packages/feedparser.py
 lib/python${MODPY_VERSION}/site-packages/feedparser.pyc
-share/doc/py-feedparser/

Reply via email to