Actions
Bug #13433
closedSolaris10上で make update-rubyspec が失敗
Description
Bug #13424 と類似ですが原因が異なるので別チケットにします。
Solaris 10 上にて、 make update-rubyspec が以下のように失敗します。
$ make update-rubyspec V=1
./tool/git-refresh -C ./spec \
git://github.com/ruby/mspec.git mspec
make: *** [update-mspec] Error 1
Solarisの /bin/sh では、if の条件に cd を置いた場合、失敗すると fi の後に到達せずそのまま終了となるようです。
たとえば、以下のように、fi の後のechoが実行されずに終了してしまいます。
$ /bin/sh -c 'if cd -P . 2>/dev/null; then CHDIR="cd -P"; else CHDIR="cd"; fi; echo $CHDIR'
$
Linux上では、以下のように普通にfiの後に制御が移ります。
$ /bin/sh -c 'if cd -P . 2>/dev/null; then CHDIR="cd -P"; else CHDIR="cd"; fi; echo $CHDIR'
cd -P
$
Updated by ngoto (Naohisa Goto) over 7 years ago
- Related to Bug #13424: Solaris10上で make update-rubyspec が bad substitution で失敗 added
Updated by ngoto (Naohisa Goto) over 7 years ago
- Related to Bug #12471: make update-mspec always fails on Solaris added
Updated by nobu (Nobuyoshi Nakada) over 7 years ago
- Status changed from Open to Closed
Applied in changeset trunk|r58344.
git-refresh: fix abort by cd failure
- tool/git-refresh: try
cd -P
in a subshell, because Solaris10
sh dies if it fails, not only the command.
[ruby-dev:50074] [Bug #13433]
Actions
Like0
Like0Like0Like0