ports/156488: [PATCH] fix build of print/lilypond with devel/bison installed
Christoph Moench-Tegeder
cmt at burggraben.net
Tue Apr 19 07:00:21 UTC 2011
>Number: 156488
>Category: ports
>Synopsis: [PATCH] fix build of print/lilypond with devel/bison installed
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Apr 19 07:00:19 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Christoph Moench-Tegeder
>Release: FreeBSD 8.2-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD reindeer.exwg.net 8.2-RELEASE FreeBSD 8.2-RELEASE #7: Thu Feb 17 09:12:56 CET 2011 cmt at reindeer.exwg.net:/usr/obj/usr/src/sys/CMT amd64
print/lilypond lilypond-2.13.60
textproc/flex flex-2.5.35_4
devel/bison bison-2.4.3,1
>Description:
When devel/bison is installed and precedes the base system yacc in $PATH
(i.e. $LOCALBASE/bin before /usr/bin), the build of print/lilypond fails
due to incompatibilities between yacc and bison:
ut/lexer.cc:384: error: no 'int yyFlexLexer::yywrap()' member function declared in class 'yyFlexLexer'
out/lexer.cc: In member function 'virtual int Lily_lexer::yylex()':
out/lexer.cc:3977: error: 'yy_buffer_stack' was not declared in this scope
and so on.
>How-To-Repeat:
Install bison and flex from ports, try to build lilypond.
>Fix:
Force print/lilypond to use the base system tools (easily done via
configure):
--- print/lilypond/Makefile.orig 2011-04-19 08:05:19.000000000 +0200
+++ print/lilypond/Makefile 2011-04-19 08:20:36.000000000 +0200
@@ -47,6 +47,8 @@
GNU_MAKEFILE= yes
CONFIGURE_ARGS+=--with-ncsb-dir=${LOCALBASE}/share/ghostscript/fonts
CONFIGURE_ENV+= MAKEINFO="${LOCALBASE}/bin/makeinfo"
+CONFIGURE_ENV+= FLEX="/usr/bin/flex"
+CONFIGURE_ENV+= YACC="/usr/bin/yacc"
ALL_TARGET= all
Regards,
Christoph
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list