Gentoo Archives: gentoo-commits

From: Gergely Nagy <ngg@×××.hu>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/dotnet:master commit in: dev-dotnet/msbuild-roslyn-csc/files/, dev-dotnet/msbuild-roslyn-csc/
Date: Fri, 04 Jun 2021 14:18:47
Message-Id: 1622816221.7af7f63ca3ea99d3538bfbb05d17736cb1986887.ngg@gentoo
1 commit: 7af7f63ca3ea99d3538bfbb05d17736cb1986887
2 Author: cyborgyn <cyborgyn <AT> gmail <DOT> com>
3 AuthorDate: Sat May 29 22:41:57 2021 +0000
4 Commit: Gergely Nagy <ngg <AT> ngg <DOT> hu>
5 CommitDate: Fri Jun 4 14:17:01 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/dotnet.git/commit/?id=7af7f63c
7
8 dev-dotnet/msbuild-roslyn-csc: Add patch to fix roslyn build
9
10 Closes: https://github.com/gentoo/dotnet/issues/501
11 Closes: https://github.com/gentoo/dotnet/pull/503
12 Signed-off-by: Gergely Nagy <ngg <AT> ngg.hu>
13
14 dev-dotnet/msbuild-roslyn-csc/files/Initialize_Guid.patch | 11 +++++++++++
15 .../msbuild-roslyn-csc/msbuild-roslyn-csc-15.3-r1.ebuild | 1 +
16 2 files changed, 12 insertions(+)
17
18 diff --git a/dev-dotnet/msbuild-roslyn-csc/files/Initialize_Guid.patch b/dev-dotnet/msbuild-roslyn-csc/files/Initialize_Guid.patch
19 new file mode 100644
20 index 0000000..1cd81e1
21 --- /dev/null
22 +++ b/dev-dotnet/msbuild-roslyn-csc/files/Initialize_Guid.patch
23 @@ -0,0 +1,11 @@
24 +--- roslyn-ec1cde8b77c7bca654888681037f55aa0e62dd19/src/Compilers/Core/MSBuildTask/CopyRefAssembly.cs.old 2021-05-28 11:58:08.767635621 +0200
25 ++++ roslyn-ec1cde8b77c7bca654888681037f55aa0e62dd19/src/Compilers/Core/MSBuildTask/CopyRefAssembly.cs 2021-05-28 11:59:03.840933543 +0200
26 +@@ -40,7 +40,7 @@
27 +
28 + if (File.Exists(DestinationPath))
29 + {
30 +- Guid source;
31 ++ Guid source = Guid.Empty;
32 + try
33 + {
34 + source = ExtractMvid(SourcePath);
35
36 diff --git a/dev-dotnet/msbuild-roslyn-csc/msbuild-roslyn-csc-15.3-r1.ebuild b/dev-dotnet/msbuild-roslyn-csc/msbuild-roslyn-csc-15.3-r1.ebuild
37 index 3a725be..f18818b 100644
38 --- a/dev-dotnet/msbuild-roslyn-csc/msbuild-roslyn-csc-15.3-r1.ebuild
39 +++ b/dev-dotnet/msbuild-roslyn-csc/msbuild-roslyn-csc-15.3-r1.ebuild
40 @@ -49,6 +49,7 @@ function output_filename ( ) {
41
42 src_prepare() {
43 cp "${FILESDIR}/mono-MSBuildTask.csproj" "${METAFILE_FO_BUILD}" || die
44 + eapply "${FILESDIR}/Initialize_Guid.patch"
45 eapply_user
46 }