aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2007-08-27 19:09:27 +0800
committermiwi <miwi@FreeBSD.org>2007-08-27 19:09:27 +0800
commitdb22015d81566d828e5f127b0728fb3b3fd5ad5a (patch)
tree0f846cf0c54b917f36e163c11876b1c3415e0935 /devel
parent995e2a1a0f026531a6e1c82b7aa1499091ed4c7e (diff)
downloadfreebsd-ports-gnome-db22015d81566d828e5f127b0728fb3b3fd5ad5a.tar.gz
freebsd-ports-gnome-db22015d81566d828e5f127b0728fb3b3fd5ad5a.tar.zst
freebsd-ports-gnome-db22015d81566d828e5f127b0728fb3b3fd5ad5a.zip
- Fix build on HEAD
PR: 115610 Submitted by: Barry Pederson <bp@barryp.org>
Diffstat (limited to 'devel')
-rw-r--r--devel/py-freebsd/Makefile10
-rw-r--r--devel/py-freebsd/files/freebsd7_patch-src-netstat.c10
2 files changed, 18 insertions, 2 deletions
diff --git a/devel/py-freebsd/Makefile b/devel/py-freebsd/Makefile
index 46b206ae6133..46461b302666 100644
--- a/devel/py-freebsd/Makefile
+++ b/devel/py-freebsd/Makefile
@@ -7,7 +7,7 @@
PORTNAME= freebsd
PORTVERSION= 0.9.3
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_LOCAL} \
http://people.freebsd.org/~perky/distfiles/
@@ -27,4 +27,10 @@ PLIST_FILES= %%PYTHON_SITELIBDIR%%/freebsd.so \
%%PYTHON_SITELIBDIR%%/freebsd_compat02.pyc \
%%PYTHON_SITELIBDIR%%/freebsd_compat02.pyo
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} >= 700000
+EXTRA_PATCHES+= ${FILESDIR}/freebsd7_patch-src-netstat.c
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/py-freebsd/files/freebsd7_patch-src-netstat.c b/devel/py-freebsd/files/freebsd7_patch-src-netstat.c
new file mode 100644
index 000000000000..11ae01cc4d6c
--- /dev/null
+++ b/devel/py-freebsd/files/freebsd7_patch-src-netstat.c
@@ -0,0 +1,10 @@
+--- src/netstat.c.orig 2007-08-17 13:07:10.654911645 -0500
++++ src/netstat.c 2007-08-17 13:07:19.496912514 -0500
+@@ -243,7 +243,6 @@
+ Py_DECREF(t);
+ p_int(type); p_int(physical);
+ p_int(addrlen); p_int(hdrlen);
+- p_int(recvquota); p_int(xmitquota);
+ p_long(mtu); p_long(metric);
+ p_long(baudrate); p_long(ipackets);
+ p_long(ierrors); p_long(opackets);