[kde-freebsd] [patch] devel/kdesdk3 fix build by using flex from ports

Pawel Pekala c0rn at o2.pl
Tue Aug 28 22:21:51 CEST 2007


>Submitter-Id:	current-users 
>Originator:	Pawel Pekala 
>Organization:	 
>Confidential:	no 
>Synopsis:	[patch] devel/kdesdk3 fix build by using flex from ports 
>Severity:	non-critical 
>Priority:	low 
>Category:	ports 
>Class:		change-request 
>Release:	FreeBSD 6.2-RELEASE-p4 i386 
>Environment:


System: FreeBSD 6.2-RELEASE-p4 #0: Thu Apr 26 17:40:53 UTC 2007
    root at i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC



>Description:


Kdesdk3 port needs newer flex from ports or build fails:

Making all in libgettext
gmake[4]: Entering directory `/home/corn/devel/kdesdk3/work/kdesdk-3.5.7/kbabel/common/libgettext'
flex -+ -opofiles.cc ./pofiles.ll
if /bin/sh /usr/local/bin/libtool --silent --tag=CXX --mode=compile c++ -DHAVE_CONFIG_H -I. -I. -I../../..   -D_THREAD_SAFE -pthread -DQT_THREAD_SUPPORT   -I/usr/local/include -I/usr/local/include  -I/usr/local/include -D_GETOPT_H -D_THREAD_SAFE   -Wno-long-long -Wundef -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O2 -fno-strict-aliasing -pipe -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION  -MT pofiles.lo -MD -MP -MF ".deps/pofiles.Tpo" -c -o pofiles.lo pofiles.cc; \
	then mv -f ".deps/pofiles.Tpo" ".deps/pofiles.Plo"; else rm -f ".deps/pofiles.Tpo"; exit 1; fi
pofiles.cc:450:5: warning: "YY_STACK_USED" is not defined
pofiles.cc: In member function `virtual int GettextBaseFlexLexer::yylex()':
pofiles.cc:575: error: `yy_current_buffer' was not declared in this scope
pofiles.cc:731: error: `yy_current_buffer' was not declared in this scope
pofiles.cc:754: error: `yy_current_buffer' was not declared in this scope
pofiles.cc: In constructor `GettextBaseFlexLexer::GettextBaseFlexLexer(std::istream*, std::ostream*)':
pofiles.cc:871: error: `yy_current_buffer' was not declared in this scope
pofiles.cc:871: warning: unused variable 'yy_current_buffer'
pofiles.cc: In destructor `virtual GettextBaseFlexLexer::~GettextBaseFlexLexer()':
pofiles.cc:883: error: `yy_current_buffer' was not declared in this scope
pofiles.cc:883: warning: unused variable 'yy_current_buffer'
pofiles.cc: In member function `virtual void GettextBaseFlexLexer::switch_streams(std::istream*, std::ostream*)':
pofiles.cc:890: error: `yy_current_buffer' was not declared in this scope
pofiles.cc:890: warning: unused variable 'yy_current_buffer'
pofiles.cc: In member function `int GettextBaseFlexLexer::yy_get_next_buffer()':
pofiles.cc:943: error: `yy_current_buffer' was not declared in this scope
pofiles.cc: In member function `void GettextBaseFlexLexer::yyunput(int, char*)':
pofiles.cc:1138: error: `yy_current_buffer' was not declared in this scope
pofiles.cc: In member function `int GettextBaseFlexLexer::yyinput()':
pofiles.cc:1180: error: `yy_current_buffer' was not declared in this scope
pofiles.cc:1180: warning: unused variable 'yy_current_buffer'
pofiles.cc: In member function `virtual void GettextBaseFlexLexer::yyrestart(std::istream*)':
pofiles.cc:1239: error: `yy_current_buffer' was not declared in this scope
pofiles.cc:1242: error: `yy_current_buffer' was not declared in this scope
pofiles.cc:1242: warning: unused variable 'yy_current_buffer'
pofiles.cc: In member function `virtual void GettextBaseFlexLexer::yy_switch_to_buffer(yy_buffer_state*)':
pofiles.cc:1249: error: `yy_current_buffer' was not declared in this scope
pofiles.cc:1249: warning: unused variable 'yy_current_buffer'
pofiles.cc:1252: error: `yy_current_buffer' was not declared in this scope
pofiles.cc:1260: error: `yy_current_buffer' was not declared in this scope
pofiles.cc:1260: warning: unused variable 'yy_current_buffer'
pofiles.cc: In member function `void GettextBaseFlexLexer::yy_load_buffer_state()':
pofiles.cc:1274: error: `yy_current_buffer' was not declared in this scope
pofiles.cc: In member function `virtual void GettextBaseFlexLexer::yy_delete_buffer(yy_buffer_state*)':
pofiles.cc:1311: error: `yy_current_buffer' was not declared in this scope
pofiles.cc: In member function `void GettextBaseFlexLexer::yy_flush_buffer(yy_buffer_state*)':
pofiles.cc:1353: error: `yy_current_buffer' was not declared in this scope
pofiles.cc:1353: warning: unused variable 'yy_current_buffer'
pofiles.cc:1518:5: warning: "YY_MAIN" is not defined
gmake[4]: *** [pofiles.lo] Error 1
gmake[4]: Leaving directory `/home/corn/devel/kdesdk3/work/kdesdk-3.5.7/kbabel/common/libgettext'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/home/corn/devel/kdesdk3/work/kdesdk-3.5.7/kbabel/common'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/home/corn/devel/kdesdk3/work/kdesdk-3.5.7/kbabel'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/home/corn/devel/kdesdk3/work/kdesdk-3.5.7'
gmake: *** [all] Error 2
*** Error code 2

Stop in /home/corn/devel/kdesdk3.

Script done on Tue Aug 28 22:01:56 2007



>How-To-Repeat:





>Fix:


--- kdesdk3.diff begins here ---
diff -urN /usr/ports/devel/kdesdk3/Makefile kdesdk3/Makefile
--- /usr/ports/devel/kdesdk3/Makefile	Mon Jul 23 11:35:41 2007
+++ kdesdk3/Makefile	Tue Aug 28 22:12:19 2007
@@ -7,6 +7,7 @@
 
 PORTNAME=	kdesdk
 PORTVERSION=	${KDE_VERSION}
+PORTREVISIOn=	1
 CATEGORIES=	devel kde
 MASTER_SITES=	${MASTER_SITE_KDE}
 MASTER_SITE_SUBDIR=	stable/${PORTVERSION:S/.0//}/src
@@ -17,6 +18,7 @@
 
 RUN_DEPENDS=	bash:${PORTSDIR}/shells/bash
 LIB_DEPENDS=	svn_client-1.0:${PORTSDIR}/devel/subversion
+BUILD_DEPENDS=	flex:${PORTSDIR}/textproc/flex
 
 CONFLICTS=	umbrello-[0-9]* kcachegrind-[0-9]*
 
@@ -28,7 +30,6 @@
 USE_GMAKE=	yes
 USE_BDB=	yes
 USE_AUTOTOOLS=  libtool:15
-
 USE_LDCONFIG=	yes
 
 CONFIGURE_ARGS+=--with-db-include-dir=${BDB_INCLUDE_DIR} \
@@ -37,6 +38,8 @@
 		--with-apu-config=${LOCALBASE}/bin/apu-1-config \
 		--with-svn-include=${LOCALBASE}/include \
 		--with-svn-lib=${LOCALBASE}/lib
+
+CONFIGURE_ENV=	LEX=${LOCALBASE}/bin/flex
 
 MAN1=		cervisia.1 cvsblame.1 cvscheck.1 cvsversion.1 includemocs.1 kde-build.1 kdesvn-build.1 noncvslist.1
 
--- kdesdk3.diff ends here ---





More information about the kde-freebsd mailing list