1- From b23dc637abcb049fca335d3afd31a02cf87a309b Mon Sep 17 00:00:00 2001
1+ From d556f8c03500b34afd18e40c5d7cbad5ad7f7abb Mon Sep 17 00:00:00 2001
22From: Kraag Gorim <kraaggorim@gmail.com>
33Date: Thu, 6 Feb 2020 16:21:46 +0100
44Subject: [PATCH] mono: use python3 instead of python
55
66Replace all calls for python with a variable and switch from python
77version 2 to version 3.
8+
9+ Upstream-Status: Inappropriate [Yocto specific]
10+
811---
912 acceptance-tests/Makefile.in | 9 +++++----
1013 mono/mini/Makefile.am | 4 +++-
@@ -16,18 +19,18 @@ version 2 to version 3.
1619 7 files changed, 21 insertions(+), 13 deletions(-)
1720
1821diff --git a/acceptance-tests/Makefile.in b/acceptance-tests/Makefile.in
19- index 9b9b777..7b2313d 100644
22+ index a77eac668..317b0390b 100644
2023--- a/acceptance-tests/Makefile.in
2124+++ b/acceptance-tests/Makefile.in
22- @@ -265 ,6 +265 ,7 @@ PATH_SEPARATOR = @PATH_SEPARATOR@
25+ @@ -292 ,6 +292 ,7 @@ PATH_SEPARATOR = @PATH_SEPARATOR@
2326 PIDTYPE = @PIDTYPE@
2427 PKG_CONFIG = @PKG_CONFIG@
2528 PLATFORM_AOT_SUFFIX = @PLATFORM_AOT_SUFFIX@
2629+ PYTHON = "python3"
2730 RANLIB = @RANLIB@
2831 SEARCHSEP = @SEARCHSEP@
2932 SED = @SED@
30- @@ -5770 ,19 +5771 ,19 @@ reset:
33+ @@ -5798 ,19 +5799 ,19 @@ reset:
3134
3235 __bump-version-%:
3336 @if [ "$(REV)" = "" ]; then echo "Usage: make bump-version-$* REV=<ref>"; exit 1; fi
@@ -52,10 +55,10 @@ index 9b9b777..7b2313d 100644
5255
5356 $(eval $(call ValidateVersionTemplate,benchmarker,BENCHMARKER))
5457diff --git a/mono/mini/Makefile.am b/mono/mini/Makefile.am
55- index f6f85d0..f88e667 100644
58+ index 6c840f88b..98f6e3840 100644
5659--- a/mono/mini/Makefile.am
5760+++ b/mono/mini/Makefile.am
58- @@ -683 ,9 +683 ,11 @@ generics-variant-types.dll: generics-variant-types.il
61+ @@ -740 ,9 +740 ,11 @@ generics-variant-types.dll: generics-variant-types.il
5962 MemoryIntrinsics.dll: MemoryIntrinsics.il
6063 $(ILASM) -dll -output=$@ $<
6164
@@ -69,10 +72,10 @@ index f6f85d0..f88e667 100644
6972 cpu-wasm.h: mini-ops.h cpu-wasm.md
7073 $(GENMDESC_PRG) cpu-wasm.h wasm_desc $(srcdir)/cpu-wasm.md
7174diff --git a/mono/mini/Makefile.am.in b/mono/mini/Makefile.am.in
72- index f6f85d0..f88e667 100755
75+ index 6c840f88b..98f6e3840 100755
7376--- a/mono/mini/Makefile.am.in
7477+++ b/mono/mini/Makefile.am.in
75- @@ -683 ,9 +683 ,11 @@ generics-variant-types.dll: generics-variant-types.il
78+ @@ -740 ,9 +740 ,11 @@ generics-variant-types.dll: generics-variant-types.il
7679 MemoryIntrinsics.dll: MemoryIntrinsics.il
7780 $(ILASM) -dll -output=$@ $<
7881
@@ -86,11 +89,11 @@ index f6f85d0..f88e667 100755
8689 cpu-wasm.h: mini-ops.h cpu-wasm.md
8790 $(GENMDESC_PRG) cpu-wasm.h wasm_desc $(srcdir)/cpu-wasm.md
8891diff --git a/mono/mini/Makefile.in b/mono/mini/Makefile.in
89- index 52f3fcf..0fe413a 100644
92+ index 6a46078a2..79003c8f2 100644
9093--- a/mono/mini/Makefile.in
9194+++ b/mono/mini/Makefile.in
92- @@ -1146 ,8 +1146 ,9 @@ libmonosgen_2_0_la_LDFLAGS = $(libmonoldflags) $(monobin_platform_ldflags)
93- libmonoincludedir = $(includedir)/mono-$(API_VER)/mono/jit
95+ @@ -1224 ,8 +1224 ,9 @@ libmonoincludedir = $(includedir)/mono-$(API_VER)/mono/jit
96+ # They should be wrapped in MONO_BEGIN_DECLS / MONO_END_DECLS.
9497 libmonoinclude_HEADERS = jit.h
9598 CSFLAGS = -unsafe -nowarn:0219,0169,0414,0649,0618
9699+ PYTHON = python3
@@ -101,7 +104,7 @@ index 52f3fcf..0fe413a 100644
101104 GSHAREDVT_RUNTIME_OPTS = $(if $(GSHAREDVT),-O=gsharedvt,)
102105 fullaot_regtests = $(regtests)
103106diff --git a/mono/mini/genmdesc.py b/mono/mini/genmdesc.py
104- index 987332b..3691c9d 100755
107+ index 987332bdf..3691c9d4f 100755
105108--- a/mono/mini/genmdesc.py
106109+++ b/mono/mini/genmdesc.py
107110@@ -1,4 +1,4 @@
@@ -111,10 +114,10 @@ index 987332b..3691c9d 100755
111114 #
112115 # This tool is used to generate the cpu-<ARCH>.h files used by the JIT. The input is the
113116diff --git a/mono/tests/Makefile.am b/mono/tests/Makefile.am
114- index 2600999..a9512c2 100755
117+ index 2c3185717..f69867414 100755
115118--- a/mono/tests/Makefile.am
116119+++ b/mono/tests/Makefile.am
117- @@ -2397 ,8 +2397 ,9 @@ coreclr-gcstress:
120+ @@ -2978 ,8 +2978 ,9 @@ coreclr-gcstress:
118121
119122 # Tests for the Mono lldb plugin
120123 EXTRA_DIST += test_lldb.py test-lldb.cs
@@ -126,18 +129,18 @@ index 2600999..a9512c2 100755
126129 noinst_LTLIBRARIES = libtest.la
127130
128131diff --git a/mono/utils/jemalloc/Makefile.in b/mono/utils/jemalloc/Makefile.in
129- index 997cb07..cd53917 100644
132+ index 54761e5e6..4e3be35d5 100644
130133--- a/mono/utils/jemalloc/Makefile.in
131134+++ b/mono/utils/jemalloc/Makefile.in
132- @@ -269 ,6 +269 ,7 @@ PATH_SEPARATOR = @PATH_SEPARATOR@
135+ @@ -290 ,6 +290 ,7 @@ PATH_SEPARATOR = @PATH_SEPARATOR@
133136 PIDTYPE = @PIDTYPE@
134137 PKG_CONFIG = @PKG_CONFIG@
135138 PLATFORM_AOT_SUFFIX = @PLATFORM_AOT_SUFFIX@
136139+ PYTHON = python3
137140 RANLIB = @RANLIB@
138141 SEARCHSEP = @SEARCHSEP@
139142 SED = @SED@
140- @@ -667 ,19 +668 ,19 @@ reset:
143+ @@ -698 ,19 +699 ,19 @@ reset:
141144
142145 __bump-version-%:
143146 @if [ "$(REV)" = "" ]; then echo "Usage: make bump-version-$* REV=<ref>"; exit 1; fi
@@ -161,6 +164,3 @@ index 997cb07..cd53917 100644
161164 if [ "$(COMMIT)" = "1" ]; then echo "[submodules] Bump $* to pick up $$REV:" | git commit -F - $(SUBMODULES_CONFIG_FILE); fi
162165
163166 $(eval $(call ValidateVersionTemplate,jemalloc,JEMALLOC))
164- - -
165- 2.24.0
166-
0 commit comments