1Do not regenerate revision.h
2
3Ruby's makefile compares the shipped version with the git revision to regenerate
4revision.h [1], but since we don't include git in buildInputs, this comparison
5fails and it can't find $(REVISION_H).
6
7[1] https://github.com/ruby/ruby/commit/97a5af62a318fcd93a4e5e4428d576c0280ddbae
8
9diff -Naur ruby.old/defs/gmake.mk ruby.new/defs/gmake.mk
10--- ruby.old/defs/gmake.mk
11+++ ruby.new/defs/gmake.mk
12@@ -325,11 +325,9 @@
13
14 REVISION_IN_HEADER := $(shell sed -n 's/^\#define RUBY_FULL_REVISION "\(.*\)"/\1/p' $(srcdir)/revision.h 2>/dev/null)
15 REVISION_LATEST := $(shell $(CHDIR) $(srcdir) && git log -1 --format=%H 2>/dev/null)
16-ifneq ($(REVISION_IN_HEADER),$(REVISION_LATEST))
17 # GNU make treat the target as unmodified when its dependents get
18 # updated but it is not updated, while others may not.
19 $(srcdir)/revision.h: $(REVISION_H)
20-endif
21
22 # Query on the generated rdoc
23 #