Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Checkpoint for prototyping a bundled Ruby build
- installing some gemspecs ordinarily installed under ${STAGEDIR}${PREFIX}/lib/ruby/gems/${RUBY_VER}/specifications/default/*.gemspec - installing Ruby and all platform binary scripts under a RUBY_LIBEXEC prefix, with symlinks into host bindir Multiple issues 1) This installation without a version suffix on 'ruby' and other tools may cause issues under gem build reusing features of the original build definition ~~~~ ====> Compressing man pages (compress-man) ===> Building package for ruby30-gems-3.0.8 pkg-static: Unable to access file /usr/home/u1000/wk/dist_wk/ports_main/devel/ruby-gems/work/stage/usr/local/bin/gem30:Nosuch file or directory *** Error code 1 Stop. make[1]: stopped in /usr/home/u1000/wk/dist_wk/ports_main/devel/ruby-gems ~~~~ 2) TBD @ recursive lock error for the 'irb' script as installed under this build configuration cf. Gem.activate_bin_path in /usr/local/lib/ruby/site_ruby/3.0/rubygems.rb under Gem::LOADED_SPECS_MUTEX ... and subsq. loading of gem dependencies, under a single-threaded application ~~~~ [u1000@riparian ~/wk/dist_wk/ports_main/devel/ruby-gems ]$ env RUBYOPT='--debug -W2 -r debug' /usr/local/libexec/ruby/3.0/bin/irb [...] Debug.rb Emacs support available. /usr/local/libexec/ruby/3.0/bin/irb:9:require 'rubygems' (rdb:1) cont [...] Exception `ThreadError' at /usr/local/lib/ruby/site_ruby/3.0/rubygems/core_ext/kernel_gem.rb:67 - deadlock; recursive locking Exception `ThreadError' at /usr/local/lib/ruby/site_ruby/3.0/rubygems/core_ext/kernel_require.rb:45 - deadlock; recursive locking /usr/local/lib/ruby/site_ruby/3.0/rubygems/core_ext/kernel_require.rb:45: `deadlock; recursive locking' (ThreadError) from /usr/local/lib/ruby/site_ruby/3.0/rubygems.rb:306:in `block in activate_bin_path' from /usr/local/lib/ruby/site_ruby/3.0/rubygems.rb:304:in `synchronize' from /usr/local/lib/ruby/site_ruby/3.0/rubygems.rb:304:in `activate_bin_path' from /usr/local/libexec/ruby/3.0/bin/irb:23:in `<main>' /usr/local/lib/ruby/site_ruby/3.0/rubygems/core_ext/kernel_require.rb:45: raise (rdb:1) w --> freebsd#1 /usr/local/lib/ruby/site_ruby/3.0/rubygems/core_ext/kernel_require.rb:45:in `require' freebsd#2 /usr/local/lib/ruby/site_ruby/3.0/rubygems/request_set.rb:2:in `require' freebsd#3 /usr/local/lib/ruby/site_ruby/3.0/rubygems.rb:306:in `activate_bin_path' freebsd#4 /usr/local/libexec/ruby/3.0/bin/irb:23 ~~~
- Loading branch information