[Bug #1483] some commands installed without program-suffix


#1

Bug #1483: some commands installed without program-suffix
http://redmine.ruby-lang.org/issues/show/1483

e$B5/I<<Te(B: Kazuhiro NISHIYAMA
e$B%9%F!<%?%9e(B: Open, e$BM%@hEYe(B: Normal
ruby -v: ruby 1.9.2dev (2009-05-17 trunk 23479) [x86_64-linux]

trunke$B$Ge(Brubye$B$He(Bgorubye$B0J30$Ke(Bconfiguree$B$G;XDj$7$?e(B–program-suffixe$B$,H?1G$5$l$J$/$J$C$F$$$k$h$&$G$9!#e(B

% \ls $(ruby-trunk -r rbconfig -e ‘puts RbConfig::CONFIG[“bindir”]’)
erb gem goruby-trunk irb rake rdoc ri ruby-trunk testrb
% \ls $(ruby-1.9.1 -r rbconfig -e ‘puts RbConfig::CONFIG[“bindir”]’)
erb-1.9.1 goruby-1.9.1 rake-1.9.1 ri-1.9.1 testrb-1.9.1
gem-1.9.1 irb-1.9.1 rdoc-1.9.1 ruby-1.9.1
%


#2

e$B$J$+$@$G$9!#e(B

At Mon, 18 May 2009 17:32:58 +0900,
Kazuhiro NISHIYAMA wrote in [ruby-dev:38486]:

trunke$B$Ge(Brubye$B$He(Bgorubye$B0J30$Ke(Bconfiguree$B$G;XDj$7$?e(B–program-suffixe$B$,H?1G$5$l$J$/$J$C$F$$$k$h$&$G$9!#e(B

RbConfig::CONFIG[“program_transform_name”]e$B$O$I$&$J$C$F$^$9$+!#e(B


#3

e$B%A%1%C%He(B #1483 e$B$,99?7$5$l$^$7$?!#e(B (by Kazuhiro NISHIYAMA)

e$B85$NJs9p$K;H$C$?4D6-$O%S%k%I%G%#%l%/%H%j$r>C$7$F%S%k%I$7D>$7$?$iD>$C$F$7$^$$$^$7$?!#e(B
e$BD>$C$?J}$G$O0J2<$N$h$&$K$J$C$F$$$^$9!#e(B
% ruby-trunk -v -r rbconfig -e ‘p
RbConfig::CONFIG[“program_transform_name”]’
ruby 1.9.2dev (2009-05-19 trunk 23489) [i686-linux]
“s&$&-trunk&;s&^&&”
%

e$BJL$N$^$@H/@8$7$F$$$k4D6-$G$O0J2<$N$h$&$K$J$C$F$$$^$9!#e(B
% ruby-trunk -v -r rbconfig -e ‘p
RbConfig::CONFIG[“program_transform_name”]’
ruby 1.9.2dev (2009-05-19 trunk 23489) [x86_64-linux]
“s\&$\&-trunk\&;s\&^\&\&”
% ruby-trunk -v -r rbconfig -e ‘puts
RbConfig::CONFIG[“program_transform_name”]’
ruby 1.9.2dev (2009-05-19 trunk 23489) [x86_64-linux]
s&$&-trunk&;s&^&&
%

http://redmine.ruby-lang.org/issues/show/1483


#4

e$B$J$+$@$G$9!#e(B

At Tue, 19 May 2009 16:43:49 +0900,
Kazuhiro NISHIYAMA wrote in [ruby-dev:38497]:

e$BJL$N$^$@H/@8$7$F$$$k4D6-$G$O0J2<$N$h$&$K$J$C$F$$$^$9!#e(B
% ruby-trunk -v -r rbconfig -e ‘p RbConfig::CONFIG[“program_transform_name”]’
ruby 1.9.2dev (2009-05-19 trunk 23489) [x86_64-linux]
“s\&$\&-trunk\&;s\&^\&\&”
% ruby-trunk -v -r rbconfig -e ‘puts RbConfig::CONFIG[“program_transform_name”]’
ruby 1.9.2dev (2009-05-19 trunk 23489) [x86_64-linux]
s&$&-trunk&;s&^&&

e$BAPJ}$Ge(Bconfiguree$B$K;H$C$F$$$k%7%’%k$O0c$&$b$N$G$9$+e(B?
e$B$H$j$"$($:$3$l$G$I$&$G$7$g$&!#e(B

Index: mkconfig.rb

— mkconfig.rb (revision 23481)
+++ mkconfig.rb (working copy)
@@ -86,4 +86,5 @@ File.foreach “config.status” do |line|
if /^program_transform_name$/ =~ name
val.sub!(/\As(\W)(?:^|$$)\1\1(;|\z)/, ‘’)

  •  val.gsub!(/\\(?=.)/, '') if val.rindex("s\\", 0)
     if val.empty?
       $install_name ||= "ruby"

#5

e$B%A%1%C%He(B #1483 e$B$,99?7$5$l$^$7$?!#e(B (by Kazuhiro NISHIYAMA)

e$BAPJ}$Ge(Bconfiguree$B$K;H$C$F$$$k%7%’%k$O0c$&$b$N$G$9$+e(B?
e$B$H$j$"$($:$3$l$G$I$&$G$7$g$&!#e(B

e$B$I$A$i$be(B /bin/sh -> dash e$B$G$9!#e(B

e$B:F8=$7$F$$$k4D6-$G;D$C$F$$$ke(B configure
e$B;~$N%m%0$r$_$k$H:G8e$Ke(B

creating config.h
ruby-trunk library version = 1.9.1
configure: creating ./config.status
config.status: creating Makefile
./config.status: line 914: syntax error near unexpected token |' ./config.status: line 914: | grep ‘^PROGRAM=ruby$’ > /dev/null ||’

e$B$N$h$&$K$"$d$7$$%a%C%;!<%8$,=P$F$$$F!"$=$N$H$-$N%j%S%8%g%se(B(23386)e$B$G:F8=$7$h$&$H$7$F;n$7$F$_$F$b!"$3$Ne(Bsyntax
errore$B$be(B-trunke$B$,$D$+$J$$8=>]$b:F8=$7$J$+$C$?$N$G!"e(Bconfiguree$B$7$?$H$-$K2?$+$*$+$7$+$C$?$@$1$+$b$7$l$^$;$s!#e(B

http://redmine.ruby-lang.org/issues/show/1483


#6

On 5/18/09 5:32 PM, Kazuhiro NISHIYAMA wrote:

trunke$B$Ge(Brubye$B$He(Bgorubye$B0J30$Ke(Bconfiguree$B$G;XDj$7$?e(B–program-suffixe$B$,H?1G$5$l$J$/$J$C$F$$$k$h$&$G$9!#e(B

e$B$3$C$A$G$b$J$s$@$+!"%G%#%l%/%H%j$KBP$7$Fe(B–program-suffixe$B$,8z$+$J$$$G$9e(B
e$B$M!<!#4X78$"$j$^$9$G$7$g$&$+!#e(B

% ./ruby-trunk -v
ruby 1.9.2dev (2009-05-20 trunk 23500) [i386-darwin9.7.0]

% make what-where
./miniruby -I…/…/mri/lib -I.ext/common -I./-
-r…/…/mri/ext/purelib.rb …/…/mri/instruby.rb -n --make=“make”
–dest-dir="" --extout=".ext" --mflags="" --make-flags=""
–data-mode=0644 --prog-mode=0755 --installed-list .installed.list
–mantype=“doc”
installing binary commands: /Users/yugui/local/bin
installing base libraries: /Users/yugui/local/lib
installing arch files:
/Users/yugui/local/lib/ruby/1.9.1/i386-darwin9.7.0
installing command scripts: /Users/yugui/local/bin
installing library scripts: /Users/yugui/local/lib/ruby/1.9.1
installing common headers: /Users/yugui/local/include/ruby-1.9.1
installing manpages: /Users/yugui/local/share/man/man1
installing extension objects:
/Users/yugui/local/lib/ruby/1.9.1/i386-darwin9.7.0
installing extension objects:
/Users/yugui/local/lib/ruby/site_ruby/1.9.1/i386-darwin9.7.0
installing extension objects:
/Users/yugui/local/lib/ruby/vendor_ruby/1.9.1/i386-darwin9.7.0
installing extension headers:
/Users/yugui/local/include/ruby-1.9.1/i386-darwin9.7.0
installing extension scripts: /Users/yugui/local/lib/ruby/1.9.1
installing extension scripts:
/Users/yugui/local/lib/ruby/site_ruby/1.9.1
installing extension scripts:
/Users/yugui/local/lib/ruby/vendor_ruby/1.9.1
installing extension headers: /Users/yugui/local/include/ruby-1.9.1/ruby
installing default gems: /Users/yugui/local/lib/ruby/gems/1.9.1
(cache, doc, gems, specifications)
./miniruby -I…/…/mri/lib -I.ext/common -I./-
-r…/…/mri/ext/purelib.rb …/…/mri/instruby.rb -n --make=“make”
–dest-dir="" --extout=".ext" --mflags="" --make-flags=""
–data-mode=0644 --prog-mode=0755 --installed-list .installed.list
–install=rdoc --rdoc-output=".ext/rdoc"
installing rdoc: /Users/yugui/local/share/ri/1.9.1/system