ruby-dev (Japanese) list archive (unofficial mirror)
 help / color / mirror / Atom feed
From: taca@back-street.net
To: ruby-dev@ruby-lang.org
Subject: [ruby-dev:51098] [Ruby master Bug#16490] mkmf.rbの非互換な変更
Date: Sat, 14 Aug 2021 09:35:51 +0000 (UTC)	[thread overview]
Message-ID: <redmine.journal-93285.20210814093551.375@ruby-lang.org> (raw)
In-Reply-To: <redmine.issue-16490.20200109031701.375@ruby-lang.org>

Issue #16490 has been updated by taca (Takahiro Kambe).


本件は少なくともRuby 2.7.3辺りでは起きなくなっていますので、チケット自体はcloseしていただいても問題ないと考えています。

> dependファイルを直してコンパイルしてみてもエラーになりますので、
これは、コンパイラのオプションに-Werror付けている環境の問題と考えられます。

実際、-Werrorの付かない環境ではウォーニングを出すものの、正常にコンパイルは完了しています。

もちろん、ウォーニングを出さない様に修正すべきでしょうけれど。
(そもそも、tmailは現在はメンテされてるのでしょうか...?)

----------------------------------------
Bug #16490: mkmf.rbの非互換な変更
https://bugs.ruby-lang.org/issues/16490#change-93285

* Author: taca (Takahiro Kambe)
* Status: Third Party's Issue
* Priority: Normal
* ruby -v: ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-netbsd]
* Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN
----------------------------------------
tmailのrubygem 1.2.7.1をインストールする際に、
```
make "DESTDIR="
make: don't know how to make /usr/pkg/include/ruby-2.7.0/defines.h. Stop

```
といったエラーを起こします。Makefileの最後の依存関係の記述は
```
###
tmailscanner.o: tmailscanner.c $(hdrdir)/ruby.h $(arch_hdrdir)/ruby/config.h $(hdrdir)/defines.h Makefile

```
となっていますが、Ruby 2.6では`$(hdrdir)/defines.h`ではなく`$(hdrdir)/ruby/defines.h`となっていました。
なお、tmail側を見ると`ext/tmailscanner/tmail/depend`の内容が、
```
tmailscanner.o: tmailscanner.c $(hdrdir)/ruby.h $(topdir)/config.h $(hdrdir)/defines.h Makefile
```
となっていて、`defines.h`だけ置き換えられていない様に見えます。

r 67033 のmkmf.rbのdepend_rules()に対する変更を戻すとRuby 2.6と同じ挙動になる様です。





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

      parent reply	other threads:[~2021-08-14  9:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <redmine.issue-16490.20200109031701.375@ruby-lang.org>
2021-08-13 21:05 ` [ruby-dev:51096] " merch-redmine
2021-08-14  0:54 ` [ruby-dev:51097] " nobu
2021-08-14  9:35 ` taca [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=redmine.journal-93285.20210814093551.375@ruby-lang.org \
    --to=taca@back-street.net \
    --cc=ruby-dev@ruby-lang.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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 NNTP newsgroup(s).