| Summary: | kservice-5.27.0: fails to build with flex-2.6.2 | ||
|---|---|---|---|
| Product: | [Frameworks and Libraries] frameworks-kservice | Reporter: | Timo Gurr <timo.gurr> |
| Component: | general | Assignee: | David Faure <faure> |
| Status: | RESOLVED UPSTREAM | ||
| Severity: | normal | CC: | kdelibs-bugs-null, luis.davila.pc, zhaixiang |
| Priority: | NOR | ||
| Version First Reported In: | 5.27.0 | ||
| Target Milestone: | --- | ||
| Platform: | Exherbo | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Timo Gurr
2016-10-31 10:32:37 UTC
So why not report this to the flex authors? ;-) There was already an open bug: https://github.com/westes/flex/issues/113 But it wasn't entirely clear if flex needs fixing or the consumers need to adapt. Upstream reacted now and an upstream commit has finally landed resolving the problem with flex: https://github.com/westes/flex/commit/c8ad3d682fb0ea39e30a70449c7f88b8cd8da6b4 Hi Timo,
Workaround patch:
diff --git a/src/services/lex.l b/src/services/lex.l
index b43adca..516cc4c 100644
--- a/src/services/lex.l
+++ b/src/services/lex.l
@@ -157,12 +157,12 @@ double KTraderParse_putSimplePositiveFloat( char *_str )
void KTraderParse_initFlex( const char *_code, yyscan_t _scanner )
{
- yy_switch_to_buffer( yy_scan_string( _code, _scanner ), _scanner );
+ kiotrader_switch_to_buffer( kiotrader_scan_string( _code, _scanner ), _scanner );
}
int yywrap( yyscan_t _scanner )
{
struct yyguts_t * yyg = (struct yyguts_t*)_scanner;
- yy_delete_buffer( YY_CURRENT_BUFFER, _scanner );
+ kiotrader_delete_buffer( YY_CURRENT_BUFFER, _scanner );
return 1;
}
flex-2.6.3 fixed ;-) |