Issue #9837 has been reported by Nobuyoshi Nakada.

----------------------------------------
Backport #9837: make-snapshot in trunk fails to package 1.9.3
https://bugs.ruby-lang.org/issues/9837

* Author: Nobuyoshi Nakada
* Status: Open
* Priority: Normal
* Assignee: 
----------------------------------------
trunkの`tool/make-snapshot`で1.9.3パッケージを作ろうとすると、`ext/ripper/ripper.c`を作るところで失敗します。

~~~
generating ext/ripper/ripper.c
make: unrecognized option '--disable-gem'
Usage: make [options] [target] ...
Options:
(snip)
make: *** [ext/ripper/ripper.c] Error 2
prerequisites failed
~~~

trunkでは`$(BASERUBY)`に`--disable-gems`が追加されるので、makeに解釈されないように`""`で囲む必要があります。

~~~diff
diff --git a/common.mk b/common.mk
index b26ba72..2e57492 100644
--- a/common.mk
+++ b/common.mk
@@ -863,7 +863,7 @@ $(REVISION_H): $(srcdir)/version.h $(srcdir)/ChangeLog $(srcdir)/tool/file2lastr
 $(srcdir)/ext/ripper/ripper.c: parse.y
 	$(ECHO) generating $@
 	$(Q) $(CHDIR) $(@D) && $(exec) $(MAKE) -f depend $(MFLAGS) \
-		Q=$(Q) ECHO=$(ECHO) top_srcdir=../.. srcdir=. RUBY=$(BASERUBY)
+		Q=$(Q) ECHO=$(ECHO) top_srcdir=../.. srcdir=. RUBY="$(BASERUBY)"
 
 $(srcdir)/ext/json/parser/parser.c: $(srcdir)/ext/json/parser/parser.rl
 	$(ECHO) generating $@
~~~




-- 
https://bugs.ruby-lang.org/