Bug 489990
Summary: | Aliasing breakage causes unexpected behavior when compiled with gcc44 -O2 | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Mamoru TASAKA <mtasaka> |
Component: | ruby | Assignee: | Jeroen van Meeuwen <vanmeeuwen+fedora> |
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | rawhide | CC: | tagoh, vanmeeuwen+fedora |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2009-03-15 17:50:01 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 226381 |
Description
Mamoru TASAKA
2009-03-12 19:22:44 UTC
(In reply to comment #0) > Description of problem: > Hello. > Now I want to restart to review ruby Merge Review, however > please also take care of this bug. > > When I recompile ruby-1.8.6.287-3.fc11 on rawhide i386 machine, > it fails at %install. This can be fixed by changing to something like: > ------------------------------------------------------------------------ > # convert to utf-8 > for i in `find -type f`; do > sh -c " > iconv -f utf-8 -t utf-8 $i > /dev/null 2>&1 || (iconv -f euc-jp -t utf-8 $i > > $i.new && mv $i.new $i || exit 1) > if [ $? != 0 ]; then > iconv -f iso8859-1 -t utf-8 $i > $.new && mv $i.new $i || rm -f $i.new > fi > " > done > ------------------------------------------------------------------------- > I don't see what goes wrong here, or what it is you are trying to fix. I did find the snippet failed at some points but I'm interested in the error rather then the solution, to see if my fix covers your error as well or whether there's anything else I need to look at. Thanks! (In reply to comment #1) > (In reply to comment #0) > I don't see what goes wrong here, or what it is you are trying to fix. I did > find the snippet failed at some points but I'm interested in the error rather > then the solution, to see if my fix covers your error as well or whether > there's anything else I need to look at. Thanks! The original script is failing simply because it tries to execute iconv on binary file (then %install stage exits "immediately" because %install calls shell script witn "/bin/sh -e") My script is just trying to ignore this error by executing iconv with subshell with "/bin/sh -c", not with "/bin/sh -e -c" The packages in http://koji.fedoraproject.org/koji/taskinfo?taskID=1241902 should fix this issue Well, - Adding -fno-strict-aliasing should be enough (-O2 -fno-strict-aliasing will use -fno-strict-aliasing), so I again switched to -O2 - The rebuilt -5 binary rpm will search i586-linux directory instead of i386-linux, so I patched against configure so that on i586 ruby will search i386-linux directory (as before, like perl). Now I mark this as closed. I will try to review ruby.spec again and will write some comments on Merge Review ticket if anything else needs fixing. Thank you! |