From nobody@FreeBSD.org  Thu Feb  9 14:16:58 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 1C775106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  9 Feb 2012 14:16:58 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id E12F78FC19
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  9 Feb 2012 14:16:57 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q19EGv81072195
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 9 Feb 2012 14:16:57 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id q19EGvIs072194;
	Thu, 9 Feb 2012 14:16:57 GMT
	(envelope-from nobody)
Message-Id: <201202091416.q19EGvIs072194@red.freebsd.org>
Date: Thu, 9 Feb 2012 14:16:57 GMT
From: Denis Generalov <gd@rambler-co.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: port does not build
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         164928
>Category:       ports
>Synopsis:       [patch]: textproc/py-rxp port does not build
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    wen
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 09 14:20:08 UTC 2012
>Closed-Date:    Mon Feb 13 07:06:49 UTC 2012
>Last-Modified:  Mon Feb 13 07:10:09 UTC 2012
>Originator:     Denis Generalov
>Release:        9.0-STABLE
>Organization:
Rambler
>Environment:
FreeBSD tyl2.park.rambler.ru 9.0-STABLE FreeBSD 9.0-STABLE #0: Sat Jan 14 02:35:27 MSK 2012     root@tyl2.park.rambler.ru:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
Port marked as broken because it does'nt build of FreeBSD version higher then 8.X 
>How-To-Repeat:
try to build
>Fix:
see patch

Patch attached with submission follows:

===> Generating patch
===> Viewing diff with more
diff -ruN --exclude=CVS /usr/ports/textproc/py-rxp/Makefile /home/gd/work/cvs_ports/textproc/py-rxp/Makefile
--- /usr/ports/textproc/py-rxp/Makefile	2010-05-24 01:16:16.000000000 +0400
+++ /home/gd/work/cvs_ports/textproc/py-rxp/Makefile	2012-02-09 18:10:24.000000000 +0400
@@ -7,6 +7,7 @@
 
 PORTNAME=	rxp
 PORTVERSION=	0.9
+PORTREVISION=	1
 CATEGORIES=	textproc python
 MASTER_SITES=	http://www.reportlab.com/ftp/
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -27,13 +28,6 @@
 
 .include <bsd.port.pre.mk>
 
-.if ${OSVERSION} >= 900000
-BROKEN=		does not build
-.endif
-
-post-patch:
-	@${REINPLACE_CMD} -e 's/freebsd4/freebsd4", "freebsd5", "freebsd6", "freebsd7", "freebsd8/g' ${WRKSRC}/setup.py
-
 .if !defined(NOPORTDOCS)
 post-install:
 	@${MKDIR} ${EXAMPLESDIR} ${DOCSDIR}
diff -ruN --exclude=CVS /usr/ports/textproc/py-rxp/files/patch-setup.py /home/gd/work/cvs_ports/textproc/py-rxp/files/patch-setup.py
--- /usr/ports/textproc/py-rxp/files/patch-setup.py	1970-01-01 03:00:00.000000000 +0300
+++ /home/gd/work/cvs_ports/textproc/py-rxp/files/patch-setup.py	2012-02-09 18:11:16.000000000 +0400
@@ -0,0 +1,12 @@
+--- setup.py	2002-05-03 14:20:22.000000000 +0400
++++ setup.py	2012-02-09 18:09:53.000000000 +0400
+@@ -25,7 +25,8 @@
+ 		LIBS=['nsl', 'socket', 'dl']
+ 	elif sys.platform=="aix4":
+ 		LIBS=['nsl_r', 'dl']
+-	elif sys.platform in ("freebsd4", "darwin", "mac", "linux2"):
++	elif sys.platform in ("freebsd4", "darwin", "mac", "linux2") \
++            or sys.platform.startswith("freebsd"):
+ 		LIBS=[]
+ 	else:
+ 		msg = "Don't know about system %s" % sys.platform
===> Done


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->wen 
Responsible-Changed-By: wen 
Responsible-Changed-When: Fri Feb 10 06:51:27 UTC 2012 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=164928 
State-Changed-From-To: open->closed 
State-Changed-By: wen 
State-Changed-When: Mon Feb 13 07:06:48 UTC 2012 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=164928 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/164928: commit references a PR
Date: Mon, 13 Feb 2012 07:05:50 +0000 (UTC)

 wen         2012-02-13 07:05:35 UTC
 
   FreeBSD ports repository
 
   Modified files:
     textproc/py-rxp      Makefile 
   Added files:
     textproc/py-rxp/files patch-setup.py 
   Log:
   - Unbreak on FreeBSD-9 and above
   
   PR:             ports/164928
   Submitted by:   Denis Generalov <gd@rambler-co.ru>
   
   Revision  Changes    Path
   1.16      +1 -7      ports/textproc/py-rxp/Makefile
   1.1       +12 -0     ports/textproc/py-rxp/files/patch-setup.py (new)
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
