Project

General

Profile

Actions

Bug #18667

closed

Windows mswin RbConfig::CONFIG['LIBRUBY_SO'], ABI version '+' suffix

Added by MSP-Greg (Greg L) about 2 years ago. Updated about 2 years ago.

Status:
Closed
Target version:
-
ruby -v:
ruby 3.2.0dev (2022-03-29 master 173a6b6a80)
[ruby-core:108110]

Description

Recently was reviewing Windows builds, and noticed that mswin's RbConfig::CONFIG['LIBRUBY_SO'] value and the actual file name are the only ones that include the ABI version '+' suffix (currently '+1').

Is this intentional?

Below are values in the current Actions builds.

            —————————————— RbConfig::CONFIG ——————————————
OS/ Plat    LIBRUBY_SO                       LIBRUBY_SONAME

Ubuntu      libruby.so.3.2.0                 libruby.so.3.2
macOS       libruby.3.2.dylib                libruby.3.2.dylib

Windows
  mingw     x64-msvcrt-ruby320.dll           libx64-msvcrt-ruby320.dll.3.2
  mswin     x64-vcruntime140-ruby320+1.dll   nil
  ucrt      x64-ucrt-ruby320.dll             libx64-ucrt-ruby320.dll.3.2
  head      x64-ucrt-ruby320.dll             libx64-ucrt-ruby320.dll.3.2

Updated by hsbt (Hiroshi SHIBATA) about 2 years ago

  • Status changed from Open to Assigned
  • Assignee set to peterzhu2118 (Peter Zhu)
Actions #2

Updated by MSP-Greg (Greg L) about 2 years ago

  • Subject changed from Windows miswin RbConfig::CONFIG['LIBRUBY_SO'], ABI version '+' suffix to Windows mswin RbConfig::CONFIG['LIBRUBY_SO'], ABI version '+' suffix

Updated by peterzhu2118 (Peter Zhu) about 2 years ago

Hello, thank you for the report. I have a fix here, please let me know if this fixes your issue.

Actions #4

Updated by peterzhu2118 (Peter Zhu) about 2 years ago

  • Status changed from Assigned to Closed

Applied in changeset git|9f306618b169143237d8fad0a898f2accf0cdd28.


[Bug #18667] Define RUBY_API_VERSION on Windows

On other platforms, RUBY_SO_NAME is defined from RUBY_API_VERSION.
ruby_version contains the ABI version, which is not needed.
RUBY_API_VERSION is defined as MAJOR.MINOR.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0