Date: Mon, 4 Nov 2002 16:58:20 +0100 (CET) From: Volker Stolz <stolz@i2.informatik.rwth-aachen.de> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/44879: [patch] net/cap: sys_nerr fix Message-ID: <200211041558.gA4FwK4U064901@bsd.localdomain>
next in thread | raw e-mail | index | archive | help
>Number: 44879 >Category: ports >Synopsis: [patch] net/cap: sys_nerr fix >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Nov 04 08:00:09 PST 2002 >Closed-Date: >Last-Modified: >Originator: Volker Stolz >Release: FreeBSD 4.6-STABLE i386 >Organization: Lehrstuhl für Informatik II >Environment: System: FreeBSD bsd.localdomain 4.6-STABLE FreeBSD 4.6-STABLE #3: Mon Oct 7 16:20:29 CEST 2002 root@bsd.localdomain:/opt/src/sys/compile/BSD i386 >Description: Fix breakage noticed by bento. >How-To-Repeat: >Fix: - Generic sys_nerr fix - Respect CFLAGS & CC - Add semi-useful URL to pkg-descr --- Makefile.orig Mon Nov 4 16:47:39 2002 +++ Makefile Mon Nov 4 16:37:28 2002 @@ -31,6 +31,8 @@ ALL_TARGET= libsmade dummy-libinstall programs INSTALL_TARGET= include libinstall install +USE_REINPLACE= YES + MAN1= AUFS.1 ash.1 atlook.1 atprint.1 cvt2apple.1 getzones.1 \ instappl.1 snitch.1 MAN3= CAP.3 @@ -57,6 +59,8 @@ pre-patch: @(cd ${WRKSRC}; \ for f in ../cap60.patch* ; do ${PATCH} -s -p < $$f ; done) +post-patch: + ${FIND} ${WRKSRC} -name Makefile.m4 -exec ${REINPLACE_CMD} -e 's/CFLAGS=/CFLAGS+=/' \{\} \; pre-install: @${RM} -f ${WRKSRC}/libinstall diff -urN ofiles/m4.setup.in files/m4.setup.in --- ofiles/m4.setup.in Tue Jan 14 08:10:49 1997 +++ files/m4.setup.in Mon Nov 4 16:26:41 2002 @@ -537,7 +537,7 @@ MFLAGS=mflags() LFLAGS=lflags() -CC=thecompiler() +CC?=thecompiler() LD=theloader() SHELL=/bin/sh INSTALLER=theinstaller() diff -urN ofiles/patch-lib-cap-ablog.c files/patch-lib-cap-ablog.c --- ofiles/patch-lib-cap-ablog.c Thu Jan 1 01:00:00 1970 +++ files/patch-lib-cap-ablog.c Mon Nov 4 16:46:45 2002 @@ -0,0 +1,11 @@ +--- lib/cap/ablog.c.foo Mon Nov 4 16:43:02 2002 ++++ lib/cap/ablog.c Mon Nov 4 16:43:11 2002 +@@ -91,7 +91,7 @@ + #endif USEVPRINTF + int saveerr; + extern int errno; +- extern int sys_nerr; ++ extern __const int sys_nerr; + #ifndef __FreeBSD__ + extern char *sys_errlist[]; + #endif --- pkg-descr.orig Mon Nov 4 16:49:42 2002 +++ pkg-descr Mon Nov 4 16:51:10 2002 @@ -19,3 +19,5 @@ /usr/local/etc/cap: Sample configuration files. /usr/local/lib/cap: More sample configuration files. /usr/local/share/doc/cap: Relevant documentation. + +WWW: http://www.cs.mu.oz.au/appletalk/cap.html >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200211041558.gA4FwK4U064901>