Project

General

Profile

Bug #13424

Solaris10上で make update-rubyspec が bad substitution で失敗

Added by ngoto (Naohisa Goto) over 2 years ago. Updated over 2 years ago.

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

Description

おそらく r58217 以降、Solaris 10 上にて、 make update-rubyspec が以下のように失敗します。

$ make update-rubyspec V=1
./tool/git-refresh -C ./spec  \
        git://github.com/ruby/mspec.git mspec 
./tool/git-refresh: bad substitution
make: *** [update-mspec] Error 1

"${dir#*/}" がSolarisの/bin/shでは事実上使いものにならないのが原因のようです。

$ dir=/this/is/example
$ echo ${dir#*/}
bad substitution

Related issues

Related to Ruby master - Bug #13433: Solaris10上で make update-rubyspec が失敗ClosedActions
Related to Ruby master - Bug #13522: Solaris10上で make update-rubyspec が bad substitution で失敗ClosedActions

Associated revisions

Revision f91985b3
Added by nobu (Nobuyoshi Nakada) over 2 years ago

git-refresh: for old sh

  • tool/git-refresh: get rid of matching prefix pattern removal for old sh. [ruby-dev:50069] [Bug #13424]

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

Revision 58325
Added by nobu (Nobuyoshi Nakada) over 2 years ago

git-refresh: for old sh

  • tool/git-refresh: get rid of matching prefix pattern removal for old sh. [ruby-dev:50069] [Bug #13424]

Revision 58325
Added by nobu (Nobuyoshi Nakada) over 2 years ago

git-refresh: for old sh

  • tool/git-refresh: get rid of matching prefix pattern removal for old sh. [ruby-dev:50069] [Bug #13424]

Revision 58325
Added by nobu (Nobuyoshi Nakada) over 2 years ago

git-refresh: for old sh

  • tool/git-refresh: get rid of matching prefix pattern removal for old sh. [ruby-dev:50069] [Bug #13424]

Revision e1557424
Added by nobu (Nobuyoshi Nakada) over 2 years ago

git-refresh: fix expr

  • tool/git-refresh (dir): surround by slashes to extract base name. [ruby-dev:50070] [Bug #13424]

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

Revision 58335
Added by nobu (Nobuyoshi Nakada) over 2 years ago

git-refresh: fix expr

  • tool/git-refresh (dir): surround by slashes to extract base name. [ruby-dev:50070] [Bug #13424]

Revision 58335
Added by nobu (Nobuyoshi Nakada) over 2 years ago

git-refresh: fix expr

  • tool/git-refresh (dir): surround by slashes to extract base name. [ruby-dev:50070] [Bug #13424]

Revision 58335
Added by nobu (Nobuyoshi Nakada) over 2 years ago

git-refresh: fix expr

  • tool/git-refresh (dir): surround by slashes to extract base name. [ruby-dev:50070] [Bug #13424]

History

#1

Updated by nobu (Nobuyoshi Nakada) over 2 years ago

  • Status changed from Open to Closed

Applied in changeset trunk|r58325.


git-refresh: for old sh

  • tool/git-refresh: get rid of matching prefix pattern removal for old sh. [ruby-dev:50069] [Bug #13424]

Updated by ngoto (Naohisa Goto) over 2 years ago

  • Status changed from Closed to Open

r58327 で確認しましたが失敗したので再オープンします。

$ make update-rubyspec V=1                                    
./tool/git-refresh -C ./spec  \                                                 
        git://github.com/ruby/mspec.git mspec                                   
make: *** [update-mspec] Error 1                                                

以下のように expr が exit code 1 を返しており、set -e しているため即座に終了となっているように見えます。

$ dir=mspec; expr "$dir" : '*/\(.*\)'; echo $?

1

なお、上記は SolarisでもLinuxでも1を返します。

#3

Updated by nobu (Nobuyoshi Nakada) over 2 years ago

  • Status changed from Open to Closed

Applied in changeset trunk|r58335.


git-refresh: fix expr

  • tool/git-refresh (dir): surround by slashes to extract base name. [ruby-dev:50070] [Bug #13424]
#4

Updated by ngoto (Naohisa Goto) over 2 years ago

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

Updated by ngoto (Naohisa Goto) about 2 years ago

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

Also available in: Atom PDF