From b6394495d38da801687827f6f1b43393532672be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20S=C3=B6ntgen?= Date: Fri, 1 Jun 2012 11:12:36 +0200 Subject: [PATCH] Replace yacc call with bison We are using bison to generate certain files when preparing the libc. However the yacc(1) wrapper script is used instead of calling bison directly which does not work if bison is not installed but the original yacc(1). Fixes #225. Fixes #227. --- libports/ports/libc.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libports/ports/libc.mk b/libports/ports/libc.mk index bcdf1c557..68575c292 100644 --- a/libports/ports/libc.mk +++ b/libports/ports/libc.mk @@ -10,7 +10,7 @@ PORTS += $(LIBC) # $(call check_tool,svn) $(call check_tool,lex) -$(call check_tool,yacc) +$(call check_tool,bison) # # Subdirectories to check out from FreeBSD's Subversion repository @@ -403,7 +403,7 @@ libc_gen_nslexer: $(CONTRIB_DIR)/$(LIBC)/libc/net/nslexer.l > $(CONTRIB_DIR)/$(LIBC)/libc/net/nslexer.c libc_gen_nsparser: $(CONTRIB_DIR)/$(LIBC)/libc/net/nsparser.y - $(VERBOSE)$(YACC) -d -p_nsyy $< \ + $(VERBOSE)bison -d -p_nsyy $< \ --defines=$(CONTRIB_DIR)/$(LIBC)/libc/net/nsparser.h \ --output=$(CONTRIB_DIR)/$(LIBC)/libc/net/nsparser.c