Bug #5238
closedinstallation failure if --with-sitedir=no or --with-vendordir=no
Description
=begin
RbConfig::CONFIG in (builddir)/rbconfig.rb lacks some keys when --with-sitedir=no or --with-vendordir=no are given to the configure script, namely
- sitedir
- sitelibdir
- sitearchdir
- vendordir
- vendorlibdir
- vendorarchdir
$ ../configure --prefix=/usr/local --disable-install-doc --with-out-ext=tk
--with-sitedir=no --with-vendordir=no
--with-opt-dir=/opt/local --with-baseruby=/usr/bin/ruby
$ make
$ sudo make install
installing manpages: /usr/local/share/man/man1
installing extension objects: /usr/local/lib/ruby/1.9.1/x86_64-darwin11.0.1
installing extension objects:
/Users/sakuro/Projects/github.com/ruby/lib/fileutils.rb:1508:in path': can't convert nil into String (TypeError) from /Users/sakuro/Projects/github.com/ruby/lib/fileutils.rb:1508:in
block in fu_list'
from /Users/sakuro/Projects/github.com/ruby/lib/fileutils.rb:1508:in map' from /Users/sakuro/Projects/github.com/ruby/lib/fileutils.rb:1508:in
fu_list'
from ../tool/rbinstall.rb:176:in makedirs' from ../tool/rbinstall.rb:286:in
prepare'
from ../tool/rbinstall.rb:363:in block in <main>' from ../tool/rbinstall.rb:663:in
call'
from ../tool/rbinstall.rb:663:in block (2 levels) in <main>' from ../tool/rbinstall.rb:660:in
each'
from ../tool/rbinstall.rb:660:in block in <main>' from ../tool/rbinstall.rb:656:in
each'
from ../tool/rbinstall.rb:656:in `'
=end
Files
Updated by sakuro (Sakuro OZAWA) over 12 years ago
- File issue5238.patch issue5238.patch added
=begin
This patch tests whether {site,vendor}libdir and {site,vendor}archlibdir are set before using them.
=end
Updated by ko1 (Koichi Sasada) about 12 years ago
- Status changed from Open to Assigned
- Assignee set to nobu (Nobuyoshi Nakada)
Updated by nobu (Nobuyoshi Nakada) about 12 years ago
- Status changed from Assigned to Closed
- % Done changed from 0 to 100
This issue was solved with changeset r34993.
Sakuro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
- tool/rbinstall.rb (prepare): skip if basedir is not defined.
[ruby-core:39135][Bug #5238] - tool/rbinstall.rb (CONFIG.[]): check for mandatory
configurations.