ports/139649: [patch] port mail/rss2email fails for certain feeds

Tobias Rehbein tobias.rehbein at web.de
Thu Oct 15 18:00:08 UTC 2009


>Number:         139649
>Category:       ports
>Synopsis:       [patch] port mail/rss2email fails for certain feeds
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct 15 18:00:07 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Tobias Rehbein
>Release:        FreeBSD 8.0-RC1 i386
>Organization:
>Environment:
System: FreeBSD sushi.pseudo.local 8.0-RC1 FreeBSD 8.0-RC1 #54: Sat Oct 3 16:40:05 CEST 2009 tobi at sushi.pseudo.local:/usr/obj/usr/src/sys/SUSHI i386


	
>Description:
        This is a follow-up to ports/139383. As neither the maintainer nor I can re-open the issue I'll repost it.

        rss2email fails to process certain feeds. Most notably for me it bails out for sourceforges file release feeds.
	
>How-To-Repeat:
        Example feed exposing the error:

        http://sourceforge.net/api/file/index/project-id/143991/rss

	
>Fix:
       Attached is a patch which works around the issue. I have pulled it out of:
       http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=543710

       The corresponding bug report for feedparser is:
       http://code.google.com/p/feedparser/issues/detail?id=96

	

--- mail-rss2email.diff begins here ---
diff -ruN rss2email.orig/Makefile rss2email/Makefile
--- rss2email.orig/Makefile	2009-09-30 16:05:17.000000000 +0200
+++ rss2email/Makefile	2009-10-12 09:17:39.000000000 +0200
@@ -7,6 +7,7 @@
 
 PORTNAME=	rss2email
 PORTVERSION=	2.65
+PORTREVISION=	1
 CATEGORIES=	mail python
 MASTER_SITES=	http://www.chifeng.name/dist/rss2email/
 
@@ -27,6 +28,8 @@
 post-patch:
 	@${REINPLACE_CMD} -e 's|@PYTHONCMD@|${PYTHON_CMD}|;s|@DATADIR@|${DATADIR}|'\
 		${WRKSRC}/r2e
+	@${REINPLACE_CMD} -e "s|\([^[:alnum:]]\)c.type\([^[:alnum:]]\)|\1c.get('type','')\2|"\
+		${WRKSRC}/rss2email.py
 
 do-install:
 	@${INSTALL} -d ${DATADIR}/
--- mail-rss2email.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list