Bug 156488 - [PATCH] fix build of print/lilypond with devel/bison installed
Summary: [PATCH] fix build of print/lilypond with devel/bison installed
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Pietro Cerutti
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-19 08:00 UTC by Christoph Moench-Tegeder
Modified: 2011-04-20 08:10 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christoph Moench-Tegeder freebsd_committer freebsd_triage 2011-04-19 08:00:19 UTC
	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.

Fix: Force print/lilypond to use the base system tools (easily done via
    configure):



Regards,
Christoph--RKFrUEiIdqKXWWmP42tblMTfrpypIZrP5Nu8CYe1z0e7EqQy
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

--- 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
 
How-To-Repeat: 	Install bison and flex from ports, try to build lilypond.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2011-04-19 08:00:45 UTC
Responsible Changed
From-To: freebsd-ports-bugs->gahr

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2011-04-20 08:08:33 UTC
gahr        2011-04-20 07:08:25 UTC

  FreeBSD ports repository

  Modified files:
    print/lilypond       Makefile 
  Log:
  - Explicitely use base flex and yacc: the port breaks when bison
    from ports is used in emutaled yacc mode.
  
  PR:             156488
  Submitted by:   Christoph Moench-Tegeder <cmt@burggraben.net>
  
  Revision  Changes    Path
  1.97      +3 -1      ports/print/lilypond/Makefile
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Pietro Cerutti freebsd_committer freebsd_triage 2011-04-20 08:08:36 UTC
State Changed
From-To: open->closed

Committed, with minor changes. Thanks!