Date: Tue, 10 Jun 2003 11:59:08 -0400 From: Serge Gagnon <gagnon__s@videotron.ca> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/53150: [Patch] unbroke port: lang/sr fix stdio error Message-ID: <E19PlWe-0004VG-AF@quenix.dyndns.org> Resent-Message-ID: <200306101540.h5AFe5mI003409@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 53150 >Category: ports >Synopsis: [Patch] unbroke port: lang/sr fix stdio error >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 Jun 10 08:40:04 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Serge Gagnon >Release: FreeBSD 4.8-STABLE i386 >Organization: me >Environment: System: FreeBSD quenix.dyndns.org 4.8-STABLE FreeBSD 4.8-STABLE #0: Tue May 6 22:02:29 EDT 2003 serge@quenix.dyndns.org:/usr/obj/usr/src/sys/OCEAN3 i386 >Description: o Fix stdio error o New files: patch-lexed-sr.yy.c patch-lexed-srlatex.c patch-lexed-srtex.c o Fix pkg-plist by the way >How-To-Repeat: http://bento.freebsd.org/errorlogs/i386-4-full/sr-2.3.1.log >Fix: --- patch-sr-stdio begins here --- diff -u /usr/ports/lang/sr/Makefile ./Makefile --- /usr/ports/lang/sr/Makefile Tue May 6 20:27:36 2003 +++ ./Makefile Tue Jun 10 11:33:28 2003 @@ -15,8 +15,6 @@ MAINTAINER= ports@FreeBSD.org COMMENT= A parallel language "Synchronization Resources" -BROKEN= "Does not compile" - HAS_CONFIGURE= yes CONFIGURE_ARGS= prefix NO_WRKSUBDIR= yes diff -u /usr/ports/lang/sr/pkg-plist ./pkg-plist --- /usr/ports/lang/sr/pkg-plist Sat Sep 11 09:05:34 1999 +++ ./pkg-plist Tue Jun 10 11:51:46 2003 @@ -26,6 +26,7 @@ lib/sr/srlib.a lib/sr/srmap lib/sr/srmulti.h +lib/sr/srwin.o lib/sr/srx share/doc/sr/notes/Memory share/doc/sr/notes/Questions --- patch-sr-stdio ends here --- --- patch-lexed-sr.yy.c begins here --- --- lexed/sr.yy.c.orig Tue Jun 10 11:40:54 2003 +++ lexed/sr.yy.c Tue Jun 10 11:42:06 2003 @@ -1,4 +1,5 @@ -# include "stdio.h" +# include <stdio.h> +# include <unistd.h> # define U(x) ((x)&0377) # define NLSTATE yyprevious=YYNEWLINE # define BEGIN yybgin = yysvec + 1 + @@ -17,7 +18,7 @@ int yymorfg; extern char *yysptr, yysbuf[]; int yytchar; -FILE *yyin ={stdin}, *yyout ={stdout}; +FILE *yyin ={STDIN_FILENO}, *yyout ={STDOUT_FILENO}; extern int yylineno; struct yysvf { struct yywork *yystoff; --- patch-lexed-sr.yy.c ends here --- --- patch-lexed-srlatex.c begins here --- --- lexed/srlatex.yy.c.orig Tue Jun 10 11:46:02 2003 +++ lexed/srlatex.yy.c Tue Jun 10 11:46:50 2003 @@ -1,4 +1,5 @@ -# include "stdio.h" +# include <stdio.h> +# include <unistd.h> # define U(x) ((x)&0377) # define NLSTATE yyprevious=YYNEWLINE # define BEGIN yybgin = yysvec + 1 + @@ -17,7 +18,7 @@ int yymorfg; extern char *yysptr, yysbuf[]; int yytchar; -FILE *yyin ={stdin}, *yyout ={stdout}; +FILE *yyin ={STDIN_FILENO}, *yyout ={STDOUT_FILENO}; extern int yylineno; struct yysvf { struct yywork *yystoff; --- patch-lexed-srlatex.c ends here --- --- patch-lexed-srtex.c begins here --- --- lexed/srtex.yy.c.orig Tue Jun 10 11:47:12 2003 +++ lexed/srtex.yy.c Tue Jun 10 11:47:56 2003 @@ -1,4 +1,5 @@ -# include "stdio.h" +# include <stdio.h> +# include <unistd.h> # define U(x) ((x)&0377) # define NLSTATE yyprevious=YYNEWLINE # define BEGIN yybgin = yysvec + 1 + @@ -17,7 +18,7 @@ int yymorfg; extern char *yysptr, yysbuf[]; int yytchar; -FILE *yyin ={stdin}, *yyout ={stdout}; +FILE *yyin ={STDIN_FILENO}, *yyout ={STDOUT_FILENO}; extern int yylineno; struct yysvf { struct yywork *yystoff; --- patch-lexed-srtex.c ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E19PlWe-0004VG-AF>