Bug 674787 - multilib breaks mkmf.rb
Summary: multilib breaks mkmf.rb
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: ruby
Version: 6.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Vít Ondruch
QA Contact: Aleš Mareček
URL:
Whiteboard:
: 624029 719924 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-03 10:46 UTC by Joe Orton
Modified: 2018-11-28 21:28 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-12-06 12:07:52 UTC
Target Upstream Version:


Attachments (Terms of Use)
libdir fix (547 bytes, patch)
2011-02-04 13:09 UTC, Jaroslav Škarvada
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2011:1581 0 normal SHIPPED_LIVE Low: ruby security, bug fix, and enhancement update 2011-12-06 00:38:54 UTC

Description Joe Orton 2011-02-03 10:46:37 UTC
Description:
# yum install ruby ruby-devel
...
Installed:
  ruby.x86_64 0:1.8.7.299-5.el6_0.1   ruby-devel.x86_64 0:1.8.7.299-5.el6_0.1  

Dependency Installed:
  ruby-libs.x86_64 0:1.8.7.299-5.el6_0.1                                        
# ruby -r mkmf -e 'exit(have_func("rb_hash_foreach") ? 0 : 1)'
checking for rb_hash_foreach()... yes
# yum install ruby-libs.i686
...
Installed:
  ruby-libs.i686 0:1.8.7.299-5.el6_0.1                                          
# ruby -r mkmf -e 'exit(have_func("rb_hash_foreach") ? 0 : 1)'
mkmf.rb can't find header files for ruby at /usr/lib/ruby/ruby.h

The subversion build relies on this, and it is breaking if
the 32-bit ruby-libs is installed on a 64-bit machine.  s390/s390x
is showing the same issue.

Comment 2 Vít Ondruch 2011-02-03 11:44:59 UTC
Tank you for your report. The ruby-lib.e686 are not in best condition. This reminds me bug #624029.

However, could you please enlighten me why do you need ruby-libs.i686 on you machine at all?

Comment 3 Juraj Marko 2011-02-03 11:50:31 UTC
It is a build dependency on subversion errata

Comment 4 Vít Ondruch 2011-02-04 08:50:30 UTC
Looks that this problem appears when somebody tries to build 32b and 64b versions of subversion in one buildroot. So the workaround is to build them independently.

Comment 5 Marcela Mašláňová 2011-02-04 09:54:53 UTC
This will be postponed into next minor release, because the solution was not tested yet.

Comment 6 Jaroslav Škarvada 2011-02-04 13:09:52 UTC
Created attachment 477001 [details]
libdir fix

It seems to be a problem in wrong libdir path. The attached patch solved the problem for me.

Comment 7 Jaroslav Škarvada 2011-02-07 08:14:18 UTC
Comment on attachment 477001 [details]
libdir fix

The proposed patch installs noarch files twice in multilib - this is not optimal. Probably better to use the patch from bug 624029, comment 7 which also worked for me.

Comment 11 David Robinson 2011-05-30 06:32:45 UTC
collectd builds require this too.

$ ruby -e 'require "mkmf"'
mkmf.rb can't find header files for ruby at /usr/lib/ruby/ruby.h

Comment 12 Jaroslav Škarvada 2011-07-11 07:31:03 UTC
*** Bug 719924 has been marked as a duplicate of this bug. ***

Comment 13 Vít Ondruch 2011-07-14 06:58:13 UTC
*** Bug 624029 has been marked as a duplicate of this bug. ***

Comment 16 errata-xmlrpc 2011-12-06 12:07:52 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHSA-2011-1581.html


Note You need to log in before you can comment on or make changes to this bug.