Bug #8972

TestMkmf::TestConfig#test_dir_config fails on x86_64

Added by Vit Ondruch 7 months ago. Updated 7 months ago.

[ruby-core:57535]
Status:Closed
Priority:Normal
Assignee:-
Category:-
Target version:-
ruby -v:ruby 2.1.0dev (2013-09-22 trunk 43011) [x86_64-linux] Backport:1.9.3: UNKNOWN, 2.0.0: UNKNOWN

Description

=begin
It might be due to my configuration options, but I observe following test failure:

TestMkmf::TestConfig#testdirconfig [/builddir/build/BUILD/ruby-2.1.0-preview1/test/mkmf/test_config.rb:13]:
[Bug #8074].
<["/test/foo/include", "/test/foo/lib"]> expected but was
<["/test/foo/include", "/test/foo/lib64"]>.

There are relevant entries in RbConfig:

$ LDLIBRARYPATH=. RUBYOPT=-I.:lib:.ext/x86_64-linux ./ruby -rrbconfig -e "RbConfig::CONFIG.each {|c| p c}" | grep libdir
["configureargs", " '--build=x8664-redhat-linux-gnu' '--host=x8664-redhat-linux-gnu' '--program-prefix=' '--disable-dependency-tracking' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--with-rubylibprefix=/usr/share/ruby' '--with-archlibdir=/usr/lib64' '--with-sitedir=/usr/local/share/ruby/siteruby' '--with-sitearchdir=/usr/local/lib64/ruby/siteruby' '--with-vendordir=/usr/share/ruby/vendorruby' '--with-vendorarchdir=/usr/lib64/ruby/vendorruby' '--with-rubyhdrdir=/usr/include' '--with-rubyarchhdrdir=/usr/include' '--with-sitearchhdrdir=$(sitehdrdir)/$(arch)' '--with-vendorarchhdrdir=$(vendorhdrdir)/$(arch)' '--with-rubygemsdir=/usr/share/rubygems' '--with-ruby-pc=ruby.pc' '--disable-rpath' '--enable-shared' '--with-ruby-version=' '--enable-multiarch' '--with-prelude=./abrtprelude.rb' 'buildalias=x8664-redhat-linux-gnu' 'hostalias=x8664-redhat-linux-gnu' 'CFLAGS=-O2 -g -pipe -Wall -Wp,-DFORTIFYSOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' 'LDFLAGS=-Wl,-z,relro ' 'CXXFLAGS=-O2 -g -pipe -Wall -Wp,-DFORTIFYSOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic'"]
["vendorlibdir", "/usr/share/ruby/vendor_ruby/"]
["sitelibdir", "/usr/local/share/ruby/site_ruby/"]
["rubylibdir", "/usr/share/ruby/"]
["sitearchlibdir", "/usr/lib64/x86_64-linux"]
["archlibdir", "/usr/lib64"]
["libdirname", "archlibdir"]
["libdir", "/usr/lib64"]

=end

Associated revisions

Revision 43106
Added by Nobuyoshi Nakada 7 months ago

test_config.rb: fix library path

  • test/mkmf/testconfig.rb (testdir_config): fix expected library path. [Bug #8972]

History

#1 Updated by Nobuyoshi Nakada 7 months ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r43106.
Vit, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


test_config.rb: fix library path

  • test/mkmf/testconfig.rb (testdir_config): fix expected library path. [Bug #8972]

#2 Updated by Vit Ondruch 7 months ago

It works now. Thank you!

Also available in: Atom PDF