Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 674787 - multilib breaks mkmf.rb
multilib breaks mkmf.rb
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: ruby (Show other bugs)
6.0
All Linux
medium Severity medium
: rc
: ---
Assigned To: Vít Ondruch
Aleš Mareček
: Patch
: 624029 719924 (view as bug list)
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2011-02-03 05:46 EST by Joe Orton
Modified: 2011-12-06 07:07 EST (History)
7 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2011-12-06 07:07:52 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


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


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2011:1581 normal SHIPPED_LIVE Low: ruby security, bug fix, and enhancement update 2011-12-05 19:38:54 EST

  None (edit)
Description Joe Orton 2011-02-03 05:46:37 EST
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 06:44:59 EST
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 06:50:31 EST
It is a build dependency on subversion errata
Comment 4 Vít Ondruch 2011-02-04 03:50:30 EST
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 04:54:53 EST
This will be postponed into next minor release, because the solution was not tested yet.
Comment 6 Jaroslav Škarvada 2011-02-04 08:09:52 EST
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 03:14:18 EST
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 02:32:45 EDT
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 03:31:03 EDT
*** Bug 719924 has been marked as a duplicate of this bug. ***
Comment 13 Vít Ondruch 2011-07-14 02:58:13 EDT
*** Bug 624029 has been marked as a duplicate of this bug. ***
Comment 16 errata-xmlrpc 2011-12-06 07:07:52 EST
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.