Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 383005

Summary: dev-lang/ruby-1.9.2_p290 drops ABI CFLAGS, breaks on portage-multilib
Product: Gentoo Linux Reporter: Nathan Phillip Brink (binki) (RETIRED) <binki>
Component: Current packagesAssignee: Gentoo Ruby Team <ruby>
Status: RESOLVED NEEDINFO    
Severity: normal CC: esigra
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 306835    
Attachments: ruby-1.9.2_p290-build.log
emerge--info.txt
ruby-1.9-CFLAGS-multilib.patch

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?