Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 383005 - dev-lang/ruby-1.9.2_p290 drops ABI CFLAGS, breaks on portage-multilib
Summary: dev-lang/ruby-1.9.2_p290 drops ABI CFLAGS, breaks on portage-multilib
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: portage-multilib
  Show dependency tree
 
Reported: 2011-09-14 23:30 UTC by Nathan Phillip Brink (binki) (RETIRED)
Modified: 2015-05-24 18:31 UTC (History)
1 user (show)

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


Attachments
ruby-1.9.2_p290-build.log (ruby-1.9.2_p290-build.log,51.46 KB, text/plain)
2011-09-14 23:30 UTC, Nathan Phillip Brink (binki) (RETIRED)
Details
emerge--info.txt (emerge--info.txt,8.78 KB, text/plain)
2011-09-14 23:31 UTC, Nathan Phillip Brink (binki) (RETIRED)
Details
ruby-1.9-CFLAGS-multilib.patch (ruby-1.9-CFLAGS-multilib.patch,517 bytes, patch)
2011-09-15 04:08 UTC, Nathan Phillip Brink (binki) (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2011-09-14 23:30:30 UTC
Created attachment 286495 [details]
ruby-1.9.2_p290-build.log

In its universal binary support, ruby-1.9's configure.in removes -m32 and -m64 from CFLAGS. This breaks building a 32-bit ruby under portage-multilib. See build.log.

I expect to be able to attach a tested patch which removes the RUBY_UNIVERSAL_ARCH and RUBY_DEFAULT_ARCH calls from configure.in soon.
Comment 1 Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2011-09-14 23:31:05 UTC
Created attachment 286497 [details]
emerge--info.txt
Comment 2 Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2011-09-15 04:08:58 UTC
Created attachment 286509 [details, diff]
ruby-1.9-CFLAGS-multilib.patch

Applying this patch and remembering to reinstall dev-ruby/rubygems under portage-multilib produces a working 32-bit ruby installation (with one minor modification to the multilib overlay which tommy should have committed within a day) :-).
Comment 3 Hans de Graaff gentoo-dev Security 2012-06-16 06:05:52 UTC
Shouldn't this be reported upstream?

Also, is this patch still valid/needed for ruby 1.9.3?