python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / interpreters / ruby / do-not-regenerate-revision.h.patch
blobddeb368ee8aebb72fa9c40c4270b7d22c20610ec
1 Do not regenerate revision.h
3 Ruby's makefile compares the shipped version with the git revision to regenerate
4 revision.h [1], but since we don't include git in buildInputs, this comparison
5 fails and it can't find $(REVISION_H).
7 [1] https://github.com/ruby/ruby/commit/97a5af62a318fcd93a4e5e4428d576c0280ddbae
9 diff -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 @@
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
22 # Query on the generated rdoc