Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 209137 - app-shells/bash-3.2 is broken on IRIX with optimisation above -O1
Summary: app-shells/bash-3.2 is broken on IRIX with optimisation above -O1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All IRIX
: High critical (vote)
Assignee: Gentoo non-Linux Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-06 13:42 UTC by Stuart Shelton
Modified: 2008-02-11 10:38 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stuart Shelton 2008-02-06 13:42:29 UTC
Using the platform-native compilers on IRIX, bash-3.2 will build be be very broken(*) if built with -O2 or -O3.  Therefore, the ebuild should contain along the lines of:

case ${CHOST} in
    *-irix*)
        replace-flags -O? -O1
        ;;
esac

... within src_compile()

(*) This mainly seems to affect the maths functions: working correctly, executing "echo $(( 3 + 4 ))" should print "7".  With bash compiled at -O2, the same command returns "3: command not found" :(
Comment 1 Fabian Groffen gentoo-dev 2008-02-11 10:38:01 UTC
I applied the filter-flags to all bash ebuilds, thanks.