summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Neidhardt <mail@ambrevar.xyz>2020-02-28 11:54:15 +0100
committerPierre Neidhardt <mail@ambrevar.xyz>2020-02-28 14:28:29 +0100
commit81940413edd97dca38629d1d1ed6e8ad7752f4fb (patch)
treed779c9706559b49005f3fb41c1bf5cc784d2ac5a
parent8bcc128b4e0d7bcf77401871a5a9e9394ebc18ec (diff)
DRAFT: Export MSBuildExtensionsPath in msbuild wrapper.
-rw-r--r--nongnu/packages/mono.scm13
1 files changed, 11 insertions, 2 deletions
diff --git a/nongnu/packages/mono.scm b/nongnu/packages/mono.scm
index 9a47b49..f4e7f38 100644
--- a/nongnu/packages/mono.scm
+++ b/nongnu/packages/mono.scm
@@ -1278,6 +1278,15 @@ command line interface.")
#:url "https://www.nuget.org/api/v2/package/system.security.cryptography.algorithms/4.3.0"
#:sha256 "03sq183pfl5kp7gkvq77myv7kbpdnq3y0xj7vi4q1kaw54sny0ml")))
+;; TODO: Apply Arch Linux patches?
+;; https://git.archlinux.org/svntogit/community.git/tree/trunk/mono-msbuild-no-hostfxr.patch?h=packages/mono-msbuild
+;; https://git.archlinux.org/svntogit/community.git/tree/trunk/mono-msbuild-dotnetbits-case.patch?h=packages/mono-msbuild
+;; TODO: Like Arch Linux, install with stage1 script?
+;; TODO: Building OpenRA returns:
+;; /tmp/guix-build-openra-20200202.drv-0/source/OpenRA.Game/OpenRA.Game.csproj : warning MSB4242: The SDK resolver "Microsoft.DotNet.MSBuildSdkResolver" failed to run. hostfxr assembly:<unknown assembly> type:<unknown type> member:(null)
+;; /gnu/store/0dy10phgvfvs31qxk3a2i7ll31gpn29n-msbuild-16.3/lib/mono/msbuild/Current/bin/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.ILLink.targets(14,3): warning MSB4242: The SDK resolver "Microsoft.DotNet.MSBuildSdkResolver" failed to run. hostfxr assembly:<unknown assembly> type:<unknown type> member:(null)
+ ;; You are using a preview version of .NET Core. See: https://aka.ms/dotnet-core-preview
+;; /gnu/store/0dy10phgvfvs31qxk3a2i7ll31gpn29n-msbuild-16.3/lib/mono/msbuild/Current/bin/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(234,5): error NETSDK1004: Assets file '/tmp/guix-build-openra-20200202.drv-0/source/OpenRA.Game/obj/project.assets.json' not found. Run a NuGet package restore to generate this file. [/tmp/guix-build-openra-20200202.drv-0/source/OpenRA.Game/OpenRA.Game.csproj]
(define-public msbuild
(let ((date "2019.07.26.14.57"))
(package
@@ -1357,7 +1366,6 @@ command line interface.")
(substitute* "./eng/cibuild_bootstrapped_msbuild.sh"
(("\t/bin/bash") (string-append "\t" (which "bash"))))
- (pk 'BUILDING)
(invoke "./eng/cibuild_bootstrapped_msbuild.sh"
"--host_type" "mono"
"--configuration" "Release"
@@ -1385,8 +1393,9 @@ command line interface.")
(mkdir-p (dirname wrapper))
(with-output-to-file wrapper
(lambda ()
- (format #t "#!~a~%~a ~a \"$@\""
+ (format #t "#!~a~%export ~a=~a~%~a ~a \"$@\""
(which "bash")
+ "MSBuildExtensionsPath" (string-append out "/lib/mono/xbuild")
mono real)))
(chmod wrapper #o755)
#t))))))