Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Oct 2014 18:54:07 +0400 (MSK)
From:      Dmitry Marakasov <amdmi3@amdmi3.ru>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        python@FreeBSD.org
Subject:   [PATCH] devel/py-freebsd: fix build on HEAD
Message-ID:  <20141020145407.2305F129F8@hades.panopticon>

next in thread | raw e-mail | index | archive | help

>Submitter-Id:	current-users
>Originator:	Dmitry Marakasov
>Organization:	
>Confidential:	no
>Synopsis:	[PATCH] devel/py-freebsd: fix build on HEAD
>Severity:	serious
>Priority:	low
>Category:	ports
>Class:		change-request
>Release:	FreeBSD 10.1-BETA2 amd64
>Environment:
System: FreeBSD hades.panopticon 10.1-BETA2 FreeBSD 10.1-BETA2 #0 r271992: Tue Sep 23 00:12:47 MSK
>Description:
- Fix build on HEAD: remove support for IFF_SMART flag which was removed
- Switch to USES=python

Port maintainer (python@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 1.02 (mode: change, diff: SVN)
>How-To-Repeat:
>Fix:

--- py-freebsd-0.9.3.patch begins here ---
Index: Makefile
===================================================================
--- Makefile	(revision 371272)
+++ Makefile	(working copy)
@@ -14,9 +14,8 @@
 MAINTAINER=	python@FreeBSD.org
 COMMENT=	Python interface to FreeBSD-specific system libraries
 
-USE_PYTHON=	2
-USE_PYDISTUTILS=	yes
-PYDISTUTILS_AUTOPLIST=	yes
+USES=		python:2
+USE_PYTHON=	distutils autoplist
 
 .include <bsd.port.pre.mk>
 
@@ -28,5 +27,9 @@
 .if ${OSVERSION} >= 900030
 EXTRA_PATCHES+=	${FILESDIR}/freebsd9_patch-src-sysctl.c
 .endif
+.if ${OSVERSION} >= 1100002
+EXTRA_PATCHES+=	${FILESDIR}/freebsd11_patch-src__.const.def \
+		${FILESDIR}/freebsd11_patch-src__netstat.c
+.endif
 
 .include <bsd.port.post.mk>
Index: files/freebsd11_patch-src__.const.def
===================================================================
--- files/freebsd11_patch-src__.const.def	(revision 0)
+++ files/freebsd11_patch-src__.const.def	(working copy)
@@ -0,0 +1,10 @@
+--- src/.const.def.orig	2005-12-09 06:40:56.000000000 +0300
++++ src/.const.def	2014-10-18 00:25:38.000000000 +0400
+@@ -69,7 +69,6 @@
+ SETDICT_INT(d, "IFF_DEBUG", IFF_DEBUG);
+ SETDICT_INT(d, "IFF_LOOPBACK", IFF_LOOPBACK);
+ SETDICT_INT(d, "IFF_POINTOPOINT", IFF_POINTOPOINT);
+-SETDICT_INT(d, "IFF_SMART", IFF_SMART);
+ SETDICT_INT(d, "IFF_RUNNING", IFF_RUNNING);
+ SETDICT_INT(d, "IFF_NOARP", IFF_NOARP);
+ SETDICT_INT(d, "IFF_PROMISC", IFF_PROMISC);

Property changes on: files/freebsd11_patch-src__.const.def
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Index: files/freebsd11_patch-src__netstat.c
===================================================================
--- files/freebsd11_patch-src__netstat.c	(revision 0)
+++ files/freebsd11_patch-src__netstat.c	(working copy)
@@ -0,0 +1,10 @@
+--- src/netstat.c.orig	2005-05-08 10:55:00.000000000 +0400
++++ src/netstat.c	2014-10-18 00:25:23.000000000 +0400
+@@ -40,7 +40,6 @@
+ EXPCONST(int IFF_DEBUG)
+ EXPCONST(int IFF_LOOPBACK)
+ EXPCONST(int IFF_POINTOPOINT)
+-EXPCONST(int IFF_SMART)
+ EXPCONST(int IFF_RUNNING)
+ EXPCONST(int IFF_NOARP)
+ EXPCONST(int IFF_PROMISC)

Property changes on: files/freebsd11_patch-src__netstat.c
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
--- py-freebsd-0.9.3.patch ends here ---




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20141020145407.2305F129F8>