Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Jul 2011 01:10:10 GMT
From:      Ryan Steinmetz <rpsfa@rit.edu>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/158549: [maintainer-update] net-mgmt/pmacct to build under clang
Message-ID:  <201107010110.p611AAXo094850@red.freebsd.org>
Resent-Message-ID: <201107010120.p611K8Dv068639@freefall.freebsd.org>

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

>Number:         158549
>Category:       ports
>Synopsis:       [maintainer-update] net-mgmt/pmacct to build under clang
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 01 01:20:08 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Ryan Steinmetz
>Release:        8.2-RELEASE
>Organization:
Rochester Institute of Technology
>Environment:
>Description:
-Add License
-Fix build when using clang
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/net-mgmt/pmacct/Makefile,v
retrieving revision 1.76
diff -u -r1.76 Makefile
--- Makefile	15 May 2011 14:08:00 -0000	1.76
+++ Makefile	1 Jul 2011 01:01:40 -0000
@@ -29,6 +29,10 @@
 		LAYER2 "Enable Layer-2 support: MAC Adresses and VLANs" On \
 		IPV6  "Enable IPv6 support." On
 
+.include <bsd.port.options.mk>
+
+LICENSE=	GPLv2
+
 .include <bsd.port.pre.mk>
 
 .if ${ARCH} == "amd64" || ${ARCH} == "sparc64"
Index: files/patch-src__ll.c
===================================================================
RCS file: files/patch-src__ll.c
diff -N files/patch-src__ll.c
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/patch-src__ll.c	1 Jul 2011 01:00:07 -0000
@@ -0,0 +1,11 @@
+--- ./src/ll.c.orig	2011-06-30 20:43:06.000000000 -0400
++++ ./src/ll.c	2011-06-30 20:43:45.000000000 -0400
+@@ -118,7 +118,7 @@
+ 
+   if (*caplen < 4) {
+     pptrs->iph_ptr = NULL;
+-    return;
++    return 0;
+   }
+ 
+   do {


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



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