Actions
Bug #12471
closedmake update-mspec always fails on Solaris
Description
r55303 以降、Solaris 10 にて make update-rubyspec すると、以下のエラーが常に発生します。
make update-rubyspec V=1
make: *** [update-mspec] Error 1
r55303 の変更で、以下のように if で直接 cd するように変更されましたが、
update-mspec:
@$(CHDIR) $(srcdir); \
- if [ -d spec/mspec ]; then \
+ if cd spec/mspec 2> $(NULL); then \
echo updating mspec ...; \
Solaris の /bin/sh では、if で cd を使うと、cd できなかった場合は else 以下は実行されず、それどころか if の後の文さえ実行されず、cd 失敗時に即座に実行終了してしまうことが判明しました。以下は実行例です。
Solaris$ /bin/sh -c "if cd /does_not_exist; then echo YES; else echo NO; fi; echo END"
/bin/sh: /does_not_exist: does not exist
Solaris$
Linuxでは、想定通りに実行されます。
Linux$ /bin/sh -c "if cd /does_not_exist; then echo YES; else echo NO; fi; echo END"
/bin/sh: 1: cd: can't cd to /does_not_exist
NO
END
Linux$
存在するディレクトリの場合は、大丈夫なようです。
Solaris$ /bin/sh -c "if cd /tmp; then echo YES; else echo NO; fi; echo END"
YES
END
Solaris$
このため、r55303 はrevertしたいと思います。
Updated by ngoto (Naohisa Goto) about 8 years ago
- Status changed from Open to Closed
Applied in changeset r55328.
Makefile.in: revert r55303 because of an error on Solaris 10. [Bug #12471] [ruby-dev:49654]
Updated by usa (Usaku NAKAMURA) almost 8 years ago
- Backport changed from 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN to 2.1: DONTNEED, 2.2: DONTNEED, 2.3: DONTNEED
Updated by ngoto (Naohisa Goto) over 7 years ago
- Related to Bug #13433: Solaris10上で make update-rubyspec が失敗 added
Actions
Like0
Like0Like0Like0