Project

General

Profile

Bug #12471

make update-mspec always fails on Solaris

Added by ngoto (Naohisa Goto) almost 3 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
[ruby-dev:49654]

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したいと思います。


Related issues

Related to Ruby trunk - Bug #13433: Solaris10上で make update-rubyspec が失敗ClosedActions

Associated revisions

Revision 404d6e9f
Added by ngoto (Naohisa Goto) almost 3 years ago

Makefile.in: revert r55303 because of an error on Solaris 10. [Bug #12471] [ruby-dev:49654]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55328 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 55328
Added by ngoto (Naohisa Goto) almost 3 years ago

Makefile.in: revert r55303 because of an error on Solaris 10. [Bug #12471] [ruby-dev:49654]

Revision 55328
Added by ngoto (Naohisa Goto) almost 3 years ago

Makefile.in: revert r55303 because of an error on Solaris 10. [Bug #12471] [ruby-dev:49654]

Revision 55328
Added by ngoto (Naohisa Goto) almost 3 years ago

Makefile.in: revert r55303 because of an error on Solaris 10. [Bug #12471] [ruby-dev:49654]

Revision 55328
Added by ngoto (Naohisa Goto) almost 3 years ago

Makefile.in: revert r55303 because of an error on Solaris 10. [Bug #12471] [ruby-dev:49654]

History

#1

Updated by ngoto (Naohisa Goto) almost 3 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 3 years ago

  • Backport changed from 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN to 2.1: DONTNEED, 2.2: DONTNEED, 2.3: DONTNEED
#3

Updated by ngoto (Naohisa Goto) about 2 years ago

  • Related to Bug #13433: Solaris10上で make update-rubyspec が失敗 added

Also available in: Atom PDF