ports/59570: misc/brs port fix

Kim Scarborough sluggo at unknown.nu
Fri Nov 21 22:50:22 UTC 2003


>Number:         59570
>Category:       ports
>Synopsis:       misc/brs port fix
>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 Nov 21 14:50:19 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Kim Scarborough
>Release:        FreeBSD 4.8-RELEASE-p1 i386
>Organization:
>Environment:
System: FreeBSD jinx.unknown.nu 4.8-RELEASE-p1 FreeBSD 4.8-RELEASE-p1 #0: Mon Aug 4 16:14:25 EDT 2003 toor at jinx.unknown.nu:/usr/obj/usr/src/sys/JINX i386


	
>Description:
	misc/brs stopped compiling on -CURRENT due to an obsolete header. Here's a fix, written by Volker Stolz. Thanks Volker!

	Note: This patch adds a file to the port (patch-ad).
>How-To-Repeat:
	
>Fix:


diff -ruN brs.orig/Makefile brs/Makefile
--- brs.orig/Makefile	Wed Oct 15 21:18:55 2003
+++ brs/Makefile	Fri Nov 21 17:25:29 2003
@@ -22,10 +22,6 @@
 
 .include <bsd.port.pre.mk>
 
-.if ${OSVERSION} >= 501000
-BROKEN=		"Does not compile"
-.endif
-
 post-patch:
 	@${MV} ${WRKSRC}/brl.c ${WRKSRC}/brl.c.sed
 	${SED} -e "s=%%PREFIX%%=${PREFIX}=g" \
diff -ruN brs.orig/files/patch-ad brs/files/patch-ad
--- brs.orig/files/patch-ad	Wed Dec 31 19:00:00 1969
+++ brs/files/patch-ad	Fri Nov 21 17:32:56 2003
@@ -0,0 +1,63 @@
+*** tsl.c.orig	Wed Aug  9 19:47:29 1995
+--- tsl.c	Fri Nov 21 17:31:35 2003
+***************
+*** 106,112 ****
+  \*----------------------------------------------------------------------*/
+  
+  #include <stdio.h>
+! #include <varargs.h>
+  #include "tsl.h"
+  
+  
+--- 106,112 ----
+  \*----------------------------------------------------------------------*/
+  
+  #include <stdio.h>
+! #include <stdarg.h>
+  #include "tsl.h"
+  
+  
+***************
+*** 155,161 ****
+  
+  
+  
+! tsl_error( fatal, va_alist )
+  /*----------------------------------------------------------------------
+  |   NAME:
+  |       tsl_error
+--- 155,161 ----
+  
+  
+  
+! tsl_error( int fatal, ... )
+  /*----------------------------------------------------------------------
+  |   NAME:
+  |       tsl_error
+***************
+*** 172,184 ****
+  |
+  \*----------------------------------------------------------------------*/
+  
+- int fatal;
+- va_dcl
+  {
+      va_list ap;
+      char *format;
+  
+!     va_start(ap);
+  
+      format = va_arg(ap, char *);
+      vfprintf(stderr, format, ap);
+--- 172,182 ----
+  |
+  \*----------------------------------------------------------------------*/
+  
+  {
+      va_list ap;
+      char *format;
+  
+!     va_start(ap, fatal);
+  
+      format = va_arg(ap, char *);
+      vfprintf(stderr, format, ap);

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



More information about the freebsd-ports-bugs mailing list