Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Feb 2003 18:03:02 +0100 (CET)
From:      Volker Stolz <stolz@fump.kawo2.rwth-aachen.de>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        edwin@FreeBSD.org
Subject:   ports/47964: [patch] net/cap still has minor build issue on -CURRENT
Message-ID:  <200302051703.h15H32q1083663@fump.kawo2.rwth-aachen.de>

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

>Number:         47964
>Category:       ports
>Synopsis:       [patch] net/cap still has minor build issue on -CURRENT
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 05 09:10:13 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Volker Stolz
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD fump.kawo2.rwth-aachen.de 5.0-CURRENT FreeBSD 5.0-CURRENT #2: Tue Jan 21 01:31:48 CET 2003 alex@zerogravity.kawo2.rwth-aachen.de:/storage/FreeBSD/HEAD/obj/storage/FreeBSD/HEAD/src/sys/FUMP i386


	
>Description:
bento noticed one subdirectory doesn't build correctly:
- add -traditional-cpp -DUSESTRINGDOTH to CFLAGS
- generic sys_nerr fix
- bump port rev because the build error doesn't break the build, but
   just leads to missing files
- checked against -STABLE
>How-To-Repeat:
>Fix:
- patch port Makefile
- add new patch file for sys_nerr

diff -urN /usr/ports/net/cap/Makefile cap/Makefile
--- /usr/ports/net/cap/Makefile	Mon Nov 25 08:35:46 2002
+++ cap/Makefile	Wed Feb  5 17:55:25 2003
@@ -7,6 +7,7 @@
 
 PORTNAME=	cap
 PORTVERSION=	6.0.198
+PORTREVISION=	1
 CATEGORIES=	net
 MASTER_SITES=	ftp://ftp-ns.rutgers.edu/pub/cap/ \
 		ftp://ftp-ns.rutgers.edu/pub/cap/cap.patches/ \
@@ -30,6 +31,8 @@
 DIST_SUBDIR=	cap60
 ALL_TARGET=	libsmade dummy-libinstall programs
 INSTALL_TARGET=	include libinstall install
+
+CFLAGS+=	-traditional-cpp -DUSESTRINGDOTH
 
 USE_REINPLACE=	YES
 
diff -urN /usr/ports/net/cap/files/patch-applications-aufs-afpos.c cap/files/patch-applications-aufs-afpos.c
--- /usr/ports/net/cap/files/patch-applications-aufs-afpos.c	Thu Jan  1 01:00:00 1970
+++ cap/files/patch-applications-aufs-afpos.c	Wed Feb  5 17:48:58 2003
@@ -0,0 +1,11 @@
+--- applications/aufs/afpos.c.orig	Wed Feb  5 17:48:07 2003
++++ applications/aufs/afpos.c	Wed Feb  5 17:48:45 2003
+@@ -4776,7 +4776,7 @@
+ #if !(defined(__FreeBSD__) || defined(__NetBSD__))
+   extern char *sys_errlist[];
+ #endif
+-  extern int sys_nerr;
++  extern __const int sys_nerr;
+   static char buf[50];
+   int serrno;
+ 
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports-bugs" in the body of the message




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