Project

General

Profile

Actions

Bug #21278

closed

configureスクリプトが検出するruby_versionの値に'+0'が付く

Added by yasuhirokimura (Yasuhiro KIMURA) about 1 month ago. Updated about 1 month ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 3.5.0preview1 (2025-04-18 master d06ec25be4) +PRISM [x86_64-linux]
[ruby-dev:<unknown>]

Description

再現手順

  1. ruby-3.5.0-preview1.tar.xzをダウンロード
  2. tar xfpvJ ruby-3.5.0-preview1.tar.xz
  3. cd ruby-3.5.0-preview1
  4. ./configure
  5. fgrep ruby_version= config.log

期待される結果

% fgrep ruby_version= config.log
ruby_version='3.5.0'
%

実際に得られる結果

% fgrep ruby_version= config.log
ruby_version='3.5.0+0'
%

上記の手順4を./configure --with-ruby-version=minorにした場合にも同様の結果(ruby_versionの最後に"+0"が付く)となる

環境

以下の環境で問題が発生することを確認済

  • Debian 12.10 amd64
  • FreeBSD 14.2-RELEASE amd64
Actions #1

Updated by hsbt (Hiroshi SHIBATA) about 1 month ago

開発中のバージョン では API の互換性を示すために "+0" をつけるというのは意図した挙動です。preview などのリリースパッケージではつけるべきではない、という提案でしょうか?

Actions #2

Updated by yasuhirokimura (Yasuhiro KIMURA) about 1 month ago

ご回答ありがとうございます。バグではなく意図した挙動なのですね。早とちりで手間を取らせてしまい申し訳ありませんでした。

Actions #3

Updated by hsbt (Hiroshi SHIBATA) about 1 month ago

  • Status changed from Open to Closed
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0