ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:92553] [Ruby trunk Bug#15826] Haiku LIBC_SO and LIBM_SO support for test/fiddle/helper.rb
       [not found] <redmine.issue-15826.20190505154753@ruby-lang.org>
@ 2019-05-05 15:47 ` zmizsei
  2019-06-13  3:14 ` [ruby-core:93082] " muraken
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 4+ messages in thread
From: zmizsei @ 2019-05-05 15:47 UTC (permalink / raw
  To: ruby-core

Issue #15826 has been reported by extrowerk (Zoltán Mizsei).

----------------------------------------
Bug #15826: Haiku LIBC_SO and LIBM_SO support for test/fiddle/helper.rb
https://bugs.ruby-lang.org/issues/15826

* Author: extrowerk (Zoltán Mizsei)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-haiku]
* Backport: 2.4: UNKNOWN, 2.5: UNKNOWN, 2.6: UNKNOWN
----------------------------------------
This is required for the tests.

Haiku comes currently in 2 different flavour: 32 and 64 bit.
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.
libroot.so is a complex lib which provides the libm and libc functionality, and probably much more.

---Files--------------------------------
ruby_test_fix.patch (692 Bytes)


-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [ruby-core:93082] [Ruby trunk Bug#15826] Haiku LIBC_SO and LIBM_SO support for test/fiddle/helper.rb
       [not found] <redmine.issue-15826.20190505154753@ruby-lang.org>
  2019-05-05 15:47 ` [ruby-core:92553] [Ruby trunk Bug#15826] Haiku LIBC_SO and LIBM_SO support for test/fiddle/helper.rb zmizsei
@ 2019-06-13  3:14 ` muraken
  2019-06-13  3:16 ` [ruby-core:93083] " muraken
  2019-06-13  5:00 ` [ruby-core:93084] " nobu
  3 siblings, 0 replies; 4+ messages in thread
From: muraken @ 2019-06-13  3:14 UTC (permalink / raw
  To: ruby-core

Issue #15826 has been updated by mrkn (Kenta Murata).


Could you please make a pull-request for [ruby/fiddle repository](https://github.com/ruby/fiddle/pulls)?


----------------------------------------
Bug #15826: Haiku LIBC_SO and LIBM_SO support for test/fiddle/helper.rb
https://bugs.ruby-lang.org/issues/15826#change-78502

* Author: extrowerk (Zoltán Mizsei)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-haiku]
* Backport: 2.4: UNKNOWN, 2.5: UNKNOWN, 2.6: UNKNOWN
----------------------------------------
This is required for the tests.

Haiku comes currently in 2 different flavour: 32 and 64 bit.
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.
libroot.so is a complex lib which provides the libm and libc functionality, and probably much more.

---Files--------------------------------
ruby_test_fix.patch (692 Bytes)


-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [ruby-core:93083] [Ruby trunk Bug#15826] Haiku LIBC_SO and LIBM_SO support for test/fiddle/helper.rb
       [not found] <redmine.issue-15826.20190505154753@ruby-lang.org>
  2019-05-05 15:47 ` [ruby-core:92553] [Ruby trunk Bug#15826] Haiku LIBC_SO and LIBM_SO support for test/fiddle/helper.rb zmizsei
  2019-06-13  3:14 ` [ruby-core:93082] " muraken
@ 2019-06-13  3:16 ` muraken
  2019-06-13  5:00 ` [ruby-core:93084] " nobu
  3 siblings, 0 replies; 4+ messages in thread
From: muraken @ 2019-06-13  3:16 UTC (permalink / raw
  To: ruby-core

Issue #15826 has been updated by mrkn (Kenta Murata).

Assignee set to mrkn (Kenta Murata)
Status changed from Open to Third Party's Issue

----------------------------------------
Bug #15826: Haiku LIBC_SO and LIBM_SO support for test/fiddle/helper.rb
https://bugs.ruby-lang.org/issues/15826#change-78503

* Author: extrowerk (Zoltán Mizsei)
* Status: Third Party's Issue
* Priority: Normal
* Assignee: mrkn (Kenta Murata)
* Target version: 
* ruby -v: ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-haiku]
* Backport: 2.4: UNKNOWN, 2.5: UNKNOWN, 2.6: UNKNOWN
----------------------------------------
This is required for the tests.

Haiku comes currently in 2 different flavour: 32 and 64 bit.
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.
libroot.so is a complex lib which provides the libm and libc functionality, and probably much more.

---Files--------------------------------
ruby_test_fix.patch (692 Bytes)


-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [ruby-core:93084] [Ruby trunk Bug#15826] Haiku LIBC_SO and LIBM_SO support for test/fiddle/helper.rb
       [not found] <redmine.issue-15826.20190505154753@ruby-lang.org>
                   ` (2 preceding siblings ...)
  2019-06-13  3:16 ` [ruby-core:93083] " muraken
@ 2019-06-13  5:00 ` nobu
  3 siblings, 0 replies; 4+ messages in thread
From: nobu @ 2019-06-13  5:00 UTC (permalink / raw
  To: ruby-core

Issue #15826 has been updated by nobu (Nobuyoshi Nakada).


Off topic a little, I think this code is wrong.

```ruby
  case [0].pack('L!').size
  when 4
    # 32-bit ruby
  when 8
    # 64-bit ruby
  end
```

This selects the platform by the size of `long`, but it may differ from the address bus size, e.g., mswin/mingw.
The size should be `[0].pack('J').size` (2.3 or later) or `[""].pack('p').size`,
or, much better, `RbConfig::CONFIG['void*']`.

----------------------------------------
Bug #15826: Haiku LIBC_SO and LIBM_SO support for test/fiddle/helper.rb
https://bugs.ruby-lang.org/issues/15826#change-78505

* Author: extrowerk (Zoltán Mizsei)
* Status: Third Party's Issue
* Priority: Normal
* Assignee: mrkn (Kenta Murata)
* Target version: 
* ruby -v: ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-haiku]
* Backport: 2.4: UNKNOWN, 2.5: UNKNOWN, 2.6: UNKNOWN
----------------------------------------
This is required for the tests.

Haiku comes currently in 2 different flavour: 32 and 64 bit.
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.
libroot.so is a complex lib which provides the libm and libc functionality, and probably much more.

---Files--------------------------------
ruby_test_fix.patch (692 Bytes)


-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-06-13  5:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <redmine.issue-15826.20190505154753@ruby-lang.org>
2019-05-05 15:47 ` [ruby-core:92553] [Ruby trunk Bug#15826] Haiku LIBC_SO and LIBM_SO support for test/fiddle/helper.rb zmizsei
2019-06-13  3:14 ` [ruby-core:93082] " muraken
2019-06-13  3:16 ` [ruby-core:93083] " muraken
2019-06-13  5:00 ` [ruby-core:93084] " nobu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).