ports/114475: [PATCH]: Fix py-libdnet on -CURRENT

Wesley Shields wxs at atarininja.org
Tue Jul 10 18:00:13 UTC 2007


>Number:         114475
>Category:       ports
>Synopsis:       [PATCH]: Fix py-libdnet on -CURRENT
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 10 18:00:12 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Wesley Shields
>Release:        FreeBSD 6.2-RELEASE-p5 amd64
>Organization:
>Environment:
System: FreeBSD syn.csh.rit.edu 6.2-RELEASE-p5 FreeBSD 6.2-RELEASE-p5 #7: Thu May 24 09:18:59 EDT 2007 root at syn.csh.rit.edu:/usr/obj/usr/src/sys/SMP amd64

>Description:
py-libdnet fails to build with the new gcc in -CURRENT.  The attached
patch applies to net/libdnet and fixes the build of the python module.
The patch is taken from gentoo and tested in my tinderbox.  I've CC'ed
the maintainer on this.

I bumped PORTREVISION also, but  I'm not entirely sure it's needed.

>How-To-Repeat:
N/A

>Fix:

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/net/libdnet/Makefile,v
retrieving revision 1.27
diff -u -r1.27 Makefile
--- Makefile	12 Mar 2007 17:51:53 -0000	1.27
+++ Makefile	10 Jul 2007 16:48:06 -0000
@@ -7,7 +7,7 @@
 
 PORTNAME=	libdnet
 PORTVERSION=	1.11
-PORTREVISION?=	1
+PORTREVISION?=	2
 CATEGORIES?=	net
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=	${PORTNAME}
Index: files/patch-python__dnet.c
===================================================================
RCS file: files/patch-python__dnet.c
diff -N files/patch-python__dnet.c
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/patch-python__dnet.c	10 Jul 2007 16:48:06 -0000
@@ -0,0 +1,20 @@
+--- ./python/dnet.c.orig	Tue Jul 10 12:35:10 2007
++++ ./python/dnet.c	Tue Jul 10 12:35:59 2007
+@@ -2726,7 +2726,7 @@
+   PyObject *__pyx_3 = 0;
+   unsigned short __pyx_4;
+   Py_INCREF(__pyx_v_self);
+-  ((PyObject*)__pyx_v_next) = Py_None; Py_INCREF(((PyObject*)__pyx_v_next));
++  __pyx_v_next = Py_None; Py_INCREF(((PyObject*)__pyx_v_next));
+ 
+   /* "/Users/dugsong/projects/libdnet/python/./dnet.pyx":634 */
+   __pyx_1 = (((struct __pyx_obj_4dnet___addr_ip4_iter *)__pyx_v_self)->cur <= ((struct __pyx_obj_4dnet___addr_ip4_iter *)__pyx_v_self)->max);
+@@ -2738,7 +2738,7 @@
+     Py_DECREF(__pyx_2); __pyx_2 = 0;
+     if (!__Pyx_TypeTest(__pyx_3, __pyx_ptype_4dnet_addr)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 635; goto __pyx_L1;}
+     Py_DECREF(((PyObject *)__pyx_v_next));
+-    ((PyObject *)__pyx_v_next) = __pyx_3;
++    __pyx_v_next = __pyx_3;
+     __pyx_3 = 0;
+ 
+     /* "/Users/dugsong/projects/libdnet/python/./dnet.pyx":636 */
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list