Summary: | media-gfx/pixie-2.2.6-r1 fails with bison-3 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Patrick Lauer <patrick> |
Component: | New packages | Assignee: | Diego Elio Pettenò (RETIRED) <flameeyes> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | proxy-maint, toffanin.mauro, toralf |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://sourceforge.net/p/pixie/bugs/139/ | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 479254 | ||
Attachments: |
build log
pixie-2.2.6-r1.ebuild.patch pixie-2.2.6-r1.ebuild |
Description
Patrick Lauer
2013-09-27 02:12:09 UTC
Upstream seems to be dead and I couldn't find a patch for this software elsewhere. I cannot confirm the above errors. The sdr parser is generated without an error here. Toolchain info: bison (GNU Bison) 3.0.3 flex 2.5.39 But there has been another, speak similar, issue which needed to be tracked down and fixed: SYMPTOM In file included from rib.y:2835:0: rib.l: In function ‘int riblex(YYSTYPE*)’: rib.l:211:5: error: ‘riblval’ was not declared in this scope \"[^\"]*\" { riblval->string = rstrdup(ribtext+1,CRenderer::globalMemory); riblval->string[strlen(riblval->string)-1] = '\0'; return RIB_TEXT;} CURE If flex or bison are used with the prefix switch '-Prib' then the yy function prefix will be translated to 'example' prefixes, i.e. the utilities will emit #define yyparse ribparse #define yylex riblex and so on to the generated cpp source files. Current flex however will _not_ translate the variable name 'yylval' to 'riblval' that appears in a custom #define YY_DECL within src/ri/rib.l Judging from the rest of the content in rib.l -- it uses 'riblval' a few times within C code specific to certain token rules -- there seemed to be a time once, when flex actually did do such a translation. Sed'ing in src_prepare() will fix this single problem - see attached patch. Created attachment 394912 [details]
build log
Created attachment 394914 [details, diff]
pixie-2.2.6-r1.ebuild.patch
Created attachment 394916 [details]
pixie-2.2.6-r1.ebuild
full ebuild (tested with gcc-4.9.2, bison 3.0.3, flex 2.5.39)
*** Bug 574430 has been marked as a duplicate of this bug. *** Submitted upstream bug report https://sourceforge.net/p/pixie/bugs/139/ linking back to this page. commit d2c4ba06caa43c1d2bfc297a8a4a409f8fdbc174 Author: Kristian Fiskerstrand <k_f@gentoo.org> Date: Tue Feb 16 22:11:06 2016 +0100 media-gfx/pixie: Fix building with bison 3 Bug: 486148 Thanks-To: cmuelle8 Package-Manager: portage-2.2.27 |