commit: 7af7f63ca3ea99d3538bfbb05d17736cb1986887 Author: cyborgyn <cyborgyn <AT> gmail <DOT> com> AuthorDate: Sat May 29 22:41:57 2021 +0000 Commit: Gergely Nagy <ngg <AT> ngg <DOT> hu> CommitDate: Fri Jun 4 14:17:01 2021 +0000 URL: https://gitweb.gentoo.org/repo/proj/dotnet.git/commit/?id=7af7f63c
dev-dotnet/msbuild-roslyn-csc: Add patch to fix roslyn build Closes: https://github.com/gentoo/dotnet/issues/501 Closes: https://github.com/gentoo/dotnet/pull/503 Signed-off-by: Gergely Nagy <ngg <AT> ngg.hu> dev-dotnet/msbuild-roslyn-csc/files/Initialize_Guid.patch | 11 +++++++++++ .../msbuild-roslyn-csc/msbuild-roslyn-csc-15.3-r1.ebuild | 1 + 2 files changed, 12 insertions(+) diff --git a/dev-dotnet/msbuild-roslyn-csc/files/Initialize_Guid.patch b/dev-dotnet/msbuild-roslyn-csc/files/Initialize_Guid.patch new file mode 100644 index 0000000..1cd81e1 --- /dev/null +++ b/dev-dotnet/msbuild-roslyn-csc/files/Initialize_Guid.patch @@ -0,0 +1,11 @@ +--- roslyn-ec1cde8b77c7bca654888681037f55aa0e62dd19/src/Compilers/Core/MSBuildTask/CopyRefAssembly.cs.old 2021-05-28 11:58:08.767635621 +0200 ++++ roslyn-ec1cde8b77c7bca654888681037f55aa0e62dd19/src/Compilers/Core/MSBuildTask/CopyRefAssembly.cs 2021-05-28 11:59:03.840933543 +0200 +@@ -40,7 +40,7 @@ + + if (File.Exists(DestinationPath)) + { +- Guid source; ++ Guid source = Guid.Empty; + try + { + source = ExtractMvid(SourcePath); 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 index 3a725be..f18818b 100644 --- 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 @@ -49,6 +49,7 @@ function output_filename ( ) { src_prepare() { cp "${FILESDIR}/mono-MSBuildTask.csproj" "${METAFILE_FO_BUILD}" || die + eapply "${FILESDIR}/Initialize_Guid.patch" eapply_user }
