Ruby Issue Tracking System: Issueshttps://redmine.ruby-lang.org/https://redmine.ruby-lang.org/favicon.ico?17113305112019-05-05T16:23:38ZRuby Issue Tracking System
Redmine Ruby master - Bug #15828 (Closed): DOTfiles and DOTfolders aren't allowed in $HOME folder on Haikuhttps://redmine.ruby-lang.org/issues/158282019-05-05T16:23:38Zextrowerk (Zoltán Mizsei)
<p>According to the guidelines, no program should create any file directly in $HOME</p>
<p>For config files we should use the ~/config/settings/ruby folder for .rubyrc (<- this file also should have no dot at the beginning!)<br>
For --user-install the gem files should go into /boot/system/non-packaged/lib/ruby$rubyVersion folder</p>
<p>The system-install path seems to be ok.</p>
<p>I tried to grep the whole source tree, but i can't seem to find the correct place, where they defined. Can somebody give me some hints?<br>
Thanks!</p> Ruby master - Bug #15827 (Rejected): Haiku: SSL tests failinghttps://redmine.ruby-lang.org/issues/158272019-05-05T15:51:03Zextrowerk (Zoltán Mizsei)
<p>Every SSL-aware testcase fails like this:</p>
<pre><code>Generating RDoc documentation
No newer files.
Files: 0
Classes: 0 (0 undocumented)
Modules: 0 (0 undocumented)
Constants: 0 (0 undocumented)
Attributes: 0 (0 undocumented)
Methods: 0 (0 undocumented)
Total: 0 (0 undocumented)
0.00% documented
Elapsed: 0.0s
PASS all 1397 tests
exec ./miniruby -I./lib -I. -I.ext/common ./tool/runruby.rb --extout=.ext -- --disable-gems "./bootstraptest/runner.rb" --ruby="ruby --disable-gems" ./KNOWNBUGS.rb
2019-05-05 17:40:35 +0200
Driver is ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-haiku]
Target is ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-haiku]
KNOWNBUGS.rb PASS 0
No tests, no problem
test succeeded
Run options: "--ruby=./miniruby -I./lib -I. -I.ext/common ./tool/runruby.rb --extout=.ext -- --disable-gems"
# Running tests:
Finished tests in 5.083999s, 43.6664 tests/s, 90.6767 assertions/s.
222 tests, 461 assertions, 0 failures, 0 errors, 0 skips
ruby -v: ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-haiku]
Run options: "--ruby=./miniruby -I./lib -I. -I.ext/common ./tool/runruby.rb --extout=.ext -- --disable-gems" --excludes-dir=./test/excludes --name=!/memory_leak/ --exclude=/testunit/ --exclude=/minitest/
# Running tests:
[ 580/20233] DRbTests::TestDRbSSLAry#test_01 = 100.08 s
1) Error:
DRbTests::TestDRbSSLAry#test_01:
RuntimeError: execution expired
/sources/ruby-2.6.3/lib/monitor.rb:111:in `sleep'
/sources/ruby-2.6.3/lib/monitor.rb:111:in `wait'
/sources/ruby-2.6.3/lib/monitor.rb:111:in `block (2 levels) in wait'
/sources/ruby-2.6.3/lib/monitor.rb:110:in `handle_interrupt'
/sources/ruby-2.6.3/lib/monitor.rb:110:in `block in wait'
/sources/ruby-2.6.3/lib/monitor.rb:106:in `handle_interrupt'
/sources/ruby-2.6.3/lib/monitor.rb:106:in `wait'
/sources/ruby-2.6.3/lib/drb/extservm.rb:42:in `block in service'
/sources/ruby-2.6.3/lib/monitor.rb:230:in `mon_synchronize'
/sources/ruby-2.6.3/lib/drb/extservm.rb:37:in `service'
/sources/ruby-2.6.3/test/drb/drbtest.rb:39:in `block in ext_service'
/sources/ruby-2.6.3/lib/timeout.rb:103:in `timeout'
/sources/ruby-2.6.3/test/drb/drbtest.rb:38:in `ext_service'
/sources/ruby-2.6.3/test/drb/drbtest.rb:89:in `setup_service'
/sources/ruby-2.6.3/test/drb/test_drbssl.rb:66:in `setup'
</code></pre>
<p>I see nothing obvious, Ruby built against openssl-1.0.2q. Probably a platform difference. Any help would be really appreciated.</p> Ruby master - Bug #15826 (Third Party's Issue): Haiku LIBC_SO and LIBM_SO support for test/fiddle...https://redmine.ruby-lang.org/issues/158262019-05-05T15:47:53Zextrowerk (Zoltán Mizsei)
<p>This is required for the tests.</p>
<p>Haiku comes currently in 2 different flavour: 32 and 64 bit.<br>
64 bit have only one toolchain, so it is easy, but 32 bit comes with 2 different (GCC2 primary and GCC7 secondary). Ruby built with GCC7 on Haiku, so it needs to pick the secondary arch libroot.so.<br>
libroot.so is a complex lib which provides the libm and libc functionality, and probably much more.</p> Ruby master - Bug #15795 (Closed): Some test fails on Haikuhttps://redmine.ruby-lang.org/issues/157952019-04-26T13:28:08Zextrowerk (Zoltán Mizsei)
<p><code>/sources/ruby-2.6.3/.ext/common/fiddle/import.rb:89:in `rescue in block in dlload': can't load /sources/ruby-2.6.3/test/-ext-/arith_seq/test_arith_seq_extract.rb (Fiddle::DLError)</code></p> Ruby master - Bug #15788 (Third Party's Issue): minyruby crashes on Haikuhttps://redmine.ruby-lang.org/issues/157882019-04-23T19:56:23Zextrowerk (Zoltán Mizsei)
<pre><code>~ » uname -a
Haiku shredder 1 hrev53091 Apr 22 2019 22:17:21 x86_64 x86_64 Haiku
</code></pre>
<p>miniruby crashes during the compilation phase in pthread_attr_get_np.See the attachements for more information.</p>
<p>Current (WIP) ruby recipe: <a href="https://github.com/extrowerk/haikuports/blob/ruby_hp/dev-lang/ruby/ruby-2.6.3.recipe" class="external">https://github.com/extrowerk/haikuports/blob/ruby_hp/dev-lang/ruby/ruby-2.6.3.recipe</a></p> Ruby master - Bug #15787 (Feedback): LoadError by EPERM on read-only volumehttps://redmine.ruby-lang.org/issues/157872019-04-23T19:39:20Zextrowerk (Zoltán Mizsei)
<p>On Haiku the package management just virtually extracts/populates the files, and as it doesn't have write-overlay feature, the populated files are read-only.</p>
<p>Issue: Ruby has to maintain a list of installed gems in a single file, in rubygems.rb. Ruby stats this file, and bails out if it is read-only:</p>
<pre><code>~ » ruby --version
ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-haiku]
~ » ruby
Traceback (most recent call last):
1: from <internal:gem_prelude>:2:in `<internal:gem_prelude>'
<internal:gem_prelude>:2:in `require': Operation not supported -- /boot/system/lib/ruby/2.6.0/rubygems.rb (LoadError)
~ » ls -la /boot/system/lib/ruby/2.6.0/rubygems.rb
-r--r--r-- 1 user root 36970 márc. 6 10:01 /boot/system/lib/ruby/2.6.0/rubygems.rb
~ » uname -a
Haiku shredder 1 hrev53091 Apr 22 2019 22:17:21 x86_64 x86_64 Haiku
</code></pre>
<p>The 2.2.x branch was not affected, but since 2.3 every version have this problem. Happens here: <a href="https://github.com/ruby/ruby/blob/trunk/ruby.c#L2098" class="external">https://github.com/ruby/ruby/blob/trunk/ruby.c#L2098</a></p>
<p>Either it has to create this file somewhere in non-packaged (this is the writeable folderstructure) and hope it won't get out of sync when pkgman (package updater software) updates Ruby packages, or it has to be fixed to enumerate them directly by examining the directories.<br>
The fact that this file is located in a packaged tree also hints that Ruby will probably want to also use packaged location for manual gems installs, which obviously won't work either.</p>
<p>Question: is it possible to force/instrument ruby to use a user-specific "rubygems.rb" if the system one read only?</p>
<p>Probably this problem exists on other platforms too, where the user doesn't have write-right to this file. How is it handled?</p>
<p>Thank You!</p>