Bug #8972

TestMkmf::TestConfig#test_dir_config fails on x86_64

Added by Vit Ondruch over 1 year ago. Updated over 1 year ago.

[ruby-core:57535]
Status:Closed
Priority:Normal
Assignee:-
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#test_dir_config [/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:

$ LD_LIBRARY_PATH=. RUBYOPT=-I.:lib:.ext/x86_64-linux ./ruby -rrbconfig -e "RbConfig::CONFIG.each {|c| p c}" | grep libdir
["configure_args", " '--build=x86_64-redhat-linux-gnu' '--host=x86_64-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/site_ruby' '--with-sitearchdir=/usr/local/lib64/ruby/site_ruby' '--with-vendordir=/usr/share/ruby/vendor_ruby' '--with-vendorarchdir=/usr/lib64/ruby/vendor_ruby' '--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=./abrt_prelude.rb' 'build_alias=x86_64-redhat-linux-gnu' 'host_alias=x86_64-redhat-linux-gnu' 'CFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=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,-D_FORTIFY_SOURCE=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 over 1 year ago

test_config.rb: fix library path

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

Revision 43106
Added by Nobuyoshi Nakada over 1 year ago

test_config.rb: fix library path

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

History

#1 Updated by Nobuyoshi Nakada over 1 year 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/test_config.rb (test_dir_config): fix expected library path. [Bug #8972]

#2 Updated by Vit Ondruch over 1 year ago

It works now. Thank you!

Also available in: Atom PDF