Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 253457 - app-misc/flasm-1.6.2 fails to build under bison-2.x
Summary: app-misc/flasm-1.6.2 fails to build under bison-2.x
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Timothy Redaelli (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-02 17:05 UTC by RB
Modified: 2009-02-16 12:03 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
flasm-1.6.2 patch to work with bison-2.x (flasm-1.6.2-bison-2.patch,16.43 KB, patch)
2009-01-02 17:11 UTC, RB
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description RB 2009-01-02 17:05:47 UTC
app-misc/flasm fails to compile under the 2.x series of Bison in portage with varying failures ("midrule X has no declared type", etc.).  This seems to be due to 2.x being more strict on syntax.

Upstream has a patch (upcoming attachment) that works for me under x86/hardened (gcc-3.4.6-r2/bison-2.4) and amd64/multilib(gcc-4.3.2-r2/bison-2.3, bison-2.4.1).  Stated goal is to release it with/as 1.63, but I have no idea of the timeline.
Comment 1 RB 2009-01-02 17:11:21 UTC
Created attachment 177121 [details, diff]
flasm-1.6.2 patch to work with bison-2.x

Simple ebuild update adding the below patch to the ebuild works well for me:

--- a/app-misc/flasm/flasm-1.6.2.ebuild      2007-09-03 03:42:17.000000000 -0600
+++ b/app-misc/flasm/flasm-1.6.2-r1.ebuild        2009-01-02 00:00:00.000000000 -0000
@@ -29,6 +29,7 @@
        cd "${S}"

        epatch "${FILESDIR}"/${P}-makefile.patch
+       epatch "${FILESDIR}"/${P}-bison-2.patch
 }

 src_compile() {
Comment 2 Timothy Redaelli (RETIRED) gentoo-dev 2009-02-16 12:03:28 UTC
Fixed, thanks