ports/161130: [PATCH] devel/py-bison: unbreak on 9.x

Ruslan Mahmatkhanov cvs-src at yandex.ru
Thu Sep 29 18:30:16 UTC 2011


>Number:         161130
>Category:       ports
>Synopsis:       [PATCH] devel/py-bison: unbreak on 9.x
>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 Sep 29 18:30:15 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Ruslan Mahmatkhanov
>Release:        9.0-BETA2
>Organization:
>Environment:
9.0-BETA2 i386
>Description:
Unbreak on 9.x
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff --git a/Makefile b/Makefile
index a04c1b5..194d74c 100644
--- a/Makefile
+++ b/Makefile
@@ -33,8 +33,6 @@ EXAMPLESDIR=	${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}
 
 .if ${ARCH} == "ia64"
 BROKEN=		Does not compile on ia64
-.elif ${OSVERSION} >= 900000
-BROKEN=		Does not support FreeBSD 9.0 or higher
 .endif
 
 .if !defined(NOPORTDOCS)
diff --git a/files/patch-setup.py b/files/patch-setup.py
index 0568d1c..08e533d 100644
--- a/files/patch-setup.py
+++ b/files/patch-setup.py
@@ -1,25 +1,10 @@
---- ./setup.py.orig	2004-04-23 22:05:41.000000000 -0400
-+++ ./setup.py	2007-12-20 11:34:57.000000000 -0500
-@@ -24,6 +24,26 @@
+--- setup.py.orig	2004-04-24 06:05:41.000000000 +0400
++++ setup.py	2011-09-29 22:14:01.000000000 +0400
+@@ -24,6 +24,11 @@
      extra_link_args = []
      bison2pyscript = 'utils/bison2py'
      bisondynlibModule = "src/c/bisondynlib-linux.c"
-+elif sys.platform == 'freebsd5':
-+    libs = []
-+    extra_link_args = []
-+    bison2pyscript = 'utils/bison2py'
-+    bisondynlibModule = "src/c/bisondynlib-linux.c"
-+elif sys.platform == 'freebsd6':
-+    libs = []
-+    extra_link_args = []
-+    bison2pyscript = 'utils/bison2py'
-+    bisondynlibModule = "src/c/bisondynlib-linux.c"
-+elif sys.platform == 'freebsd7':
-+    libs = []
-+    extra_link_args = []
-+    bison2pyscript = 'utils/bison2py'
-+    bisondynlibModule = "src/c/bisondynlib-linux.c"
-+elif sys.platform == 'freebsd8':
++elif 'freebsd' in sys.platform:
 +    libs = []
 +    extra_link_args = []
 +    bison2pyscript = 'utils/bison2py'


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



More information about the freebsd-ports-bugs mailing list