ports/168311: [patch] sysutils/uhidd: unbreak after yacc update in r235723

Jan Beich jbeich at tormail.org
Thu May 24 17:40:12 UTC 2012


The following reply was made to PR ports/168311; it has been noted by GNATS.

From: Jan Beich <jbeich at tormail.org>
To: bug-followup at freebsd.org
Cc:  
Subject: Re: ports/168311: [patch] sysutils/uhidd: unbreak after yacc update in r235723
Date: Thu, 24 May 2012 17:29:54 +0000

 --=-=-=
 Content-Type: text/plain
 
 Oops, previous FreeBSD releases slipped my mind. And there is one more error.
 
 $ make CC=gcc46
 [...]
 y.tab.c:113:12: error: redundant redeclaration of 'yyparse' [-Werror=redundant-decls]
 parser.y:42:12: note: previous declaration of 'yyparse' was here
 cc1: all warnings being treated as errors
 *** [parser.o] Error code 1
 
 
 --=-=-=
 Content-Type: text/x-patch
 Content-Disposition: attachment; filename=yacc.diff
 
 Index: sysutils/uhidd/Makefile
 ===================================================================
 RCS file: /a/.csup/ports/sysutils/uhidd/Makefile,v
 retrieving revision 1.6
 diff -u -p -r1.6 Makefile
 --- sysutils/uhidd/Makefile	3 Feb 2012 17:16:28 -0000	1.6
 +++ sysutils/uhidd/Makefile	24 May 2012 17:27:38 -0000
 @@ -40,6 +40,8 @@ MAKE_ENV+=	DEBUG_FLAGS='${DEBUG_FLAGS}'
  
  .if ${OSVERSION} < 800069
  IGNORE=		does not build with the old USB stack
 +.elif ${OSVERSION} > 1000012
 +EXTRA_PATCHES+=	${FILESDIR}/extra-patch-uhidd-parser.y
  .endif
  
  .if !(exists(${SYSDIR}/Makefile) || exists(${SRC_BASE}/sys/Makefile))
 Index: sysutils/uhidd/files/extra-patch-uhidd-parser.y
 ===================================================================
 RCS file: sysutils/uhidd/files/extra-patch-uhidd-parser.y
 diff -N sysutils/uhidd/files/extra-patch-uhidd-parser.y
 --- /dev/null	1 Jan 1970 00:00:00 -0000
 +++ sysutils/uhidd/files/extra-patch-uhidd-parser.y	24 May 2012 17:21:39 -0000
 @@ -0,0 +1,17 @@
 +--- uhidd/parser.y~
 ++++ uhidd/parser.y
 +@@ -32,13 +32,13 @@
 + #include <err.h>
 + #include <errno.h>
 + #include <stdio.h>
 ++#include <stdlib.h>
 + #include <string.h>
 + #include <syslog.h>
 + 
 + #include "uhidd.h"
 + 
 + extern int yylex(void);
 +-extern int yyparse(void);
 + extern int lineno;
 + extern FILE *yyin;
 + 
 
 --=-=-=--



More information about the freebsd-ports-bugs mailing list