unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
blob 1eef0548ca164a453b0f013c48e0cdd36f1f1374 527 bytes (raw)
name: gnu/packages/patches/mono-1.9.1-add-MONO_CREATE_IMAGE_VERSION.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
 
diff --git a/mono/metadata/reflection.c b/mono/metadata/reflection.c
index ce053b0ef49..7c51f20c4cf 100644
--- a/mono/metadata/reflection.c
+++ b/mono/metadata/reflection.c
@@ -4336,6 +4336,9 @@ create_dynamic_mono_image (MonoDynamicAssembly *assembly, char *assembly_name, c
 
 	const char *version = mono_get_runtime_info ()->runtime_version;
 
+        char *env_ver = getenv("MONO_CREATE_IMAGE_VERSION");
+        if (env_ver) version = env_ver;
+
 #if HAVE_BOEHM_GC
 	image = GC_MALLOC (sizeof (MonoDynamicImage));
 #else

debug log:

solving 1eef0548ca ...
found 1eef0548ca in https://yhetil.org/guix-patches/iMoekcfwEfCp2uLTWzr-P2_OVyzTF-420AoXae5W6GK2kP5NvueOXBRzAIJBRN2U0c7Sl0HUzUy8eKWNuTs2uaiapCUkJUo5Ng9ahfsfGZ8=@proton.me/

applying [1/1] https://yhetil.org/guix-patches/iMoekcfwEfCp2uLTWzr-P2_OVyzTF-420AoXae5W6GK2kP5NvueOXBRzAIJBRN2U0c7Sl0HUzUy8eKWNuTs2uaiapCUkJUo5Ng9ahfsfGZ8=@proton.me/
diff --git a/gnu/packages/patches/mono-1.9.1-add-MONO_CREATE_IMAGE_VERSION.patch b/gnu/packages/patches/mono-1.9.1-add-MONO_CREATE_IMAGE_VERSION.patch
new file mode 100644
index 0000000000..1eef0548ca

1:12: trailing whitespace.
 
1:13: space before tab in indent.
 	const char *version = mono_get_runtime_info ()->runtime_version;
1:14: trailing whitespace.
 
1:19: space before tab in indent.
 	image = GC_MALLOC (sizeof (MonoDynamicImage));
Checking patch gnu/packages/patches/mono-1.9.1-add-MONO_CREATE_IMAGE_VERSION.patch...
Applied patch gnu/packages/patches/mono-1.9.1-add-MONO_CREATE_IMAGE_VERSION.patch cleanly.
warning: 4 lines add whitespace errors.

index at:
100644 1eef0548ca164a453b0f013c48e0cdd36f1f1374	gnu/packages/patches/mono-1.9.1-add-MONO_CREATE_IMAGE_VERSION.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).