Skip to content

Commit d9d3c3d

Browse files
committed
Update msbuild to 16.10.1 as previous msbuild sources unavailable
Signed-off-by: Alex J Lennon <ajlennon@dynamicdevices.co.uk>
1 parent b7f47a6 commit d9d3c3d

13 files changed

Lines changed: 153 additions & 2 deletions

conf/layer.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ PREFERRED_VERSION_libgdiplus-native ?= "6.0.5"
1919
PREFERRED_VERSION_nuget ?= "5.2.0"
2020
PREFERRED_VERSION_nuget-native ?= "5.2.0"
2121

22-
PREFERRED_VERSION_msbuild ?= "16.6"
23-
PREFERRED_VERSION_msbuild-native ?= "16.6"
22+
PREFERRED_VERSION_msbuild ?= "16.10.1"
23+
PREFERRED_VERSION_msbuild-native ?= "16.10.1"
2424

2525
# Suppress TMPDIR [buildpaths] warning
2626
INSANE_SKIP:mono-dbg += "buildpaths"
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
From be8f534947136661bfec11410da7767e92adb1f3 Mon Sep 17 00:00:00 2001
2+
From: Nicolas Jeker <n.jeker@gmx.net>
3+
Date: Fri, 22 Jan 2021 10:41:27 +0100
4+
Subject: [PATCH] Copy hostfxr
5+
6+
Upstream-Status: Inappropriate [Yocto specific]
7+
---
8+
eng/cibuild_bootstrapped_msbuild.sh | 1 +
9+
1 file changed, 1 insertion(+)
10+
11+
diff --git a/eng/cibuild_bootstrapped_msbuild.sh b/eng/cibuild_bootstrapped_msbuild.sh
12+
index 759c75f..cfa3c28 100755
13+
--- a/eng/cibuild_bootstrapped_msbuild.sh
14+
+++ b/eng/cibuild_bootstrapped_msbuild.sh
15+
@@ -61,6 +61,7 @@ function DownloadMSBuildForMono {
16+
unzip -q "$msbuild_zip" -d "$artifacts_dir"
17+
# rename just to make it obvious when reading logs!
18+
mv $artifacts_dir/msbuild $mono_msbuild_dir
19+
+ cp %libhostfxr% $artifacts_dir/mono-msbuild/SdkResolvers/Microsoft.DotNet.MSBuildSdkResolver/
20+
sed -i 's#/sh$#/bash#' $artifacts_dir/mono-msbuild/msbuild
21+
chmod +x $artifacts_dir/mono-msbuild/MSBuild.dll
22+
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
Upstream-Status: Inappropriate [Yocto specific]
2+
3+
Index: xamarin-pkg-msbuild/gen_build_info.sh
4+
===================================================================
5+
--- xamarin-pkg-msbuild.orig/gen_build_info.sh
6+
+++ xamarin-pkg-msbuild/gen_build_info.sh
7+
@@ -1,4 +1,4 @@
8+
-#!/bin/sh
9+
+#!/bin/bash
10+
11+
if [ $# -ne 1 ]; then
12+
echo "Usage: $0 <filename.cs>"
13+
Index: xamarin-pkg-msbuild/mono/create_bootstrap.sh
14+
===================================================================
15+
--- xamarin-pkg-msbuild.orig/mono/create_bootstrap.sh
16+
+++ xamarin-pkg-msbuild/mono/create_bootstrap.sh
17+
@@ -1,4 +1,4 @@
18+
-#!/bin/sh
19+
+#!/bin/bash
20+
21+
# This creates a bootstrap from an exising mono installation
22+
# This is just to ensure that we have the correct "matched" Roslyn
23+
Index: xamarin-pkg-msbuild/msbuild-deploy.in
24+
===================================================================
25+
--- xamarin-pkg-msbuild.orig/msbuild-deploy.in
26+
+++ xamarin-pkg-msbuild/msbuild-deploy.in
27+
@@ -1,4 +1,4 @@
28+
-#!/bin/sh
29+
+#!/bin/bash
30+
ABSOLUTE_PATH=$(cd `dirname "${BASH_SOURCE[0]}"` && pwd)/`basename "${BASH_SOURCE[0]}"`
31+
MSBUILD_SRC_DIR=`dirname $ABSOLUTE_PATH`
32+
mono $MONO_OPTIONS $MSBUILD_SRC_DIR/MSBuild.exe $*
33+
Index: xamarin-pkg-msbuild/eng/cibuild_bootstrapped_msbuild.sh
34+
===================================================================
35+
--- xamarin-pkg-msbuild.orig/eng/cibuild_bootstrapped_msbuild.sh
36+
+++ xamarin-pkg-msbuild/eng/cibuild_bootstrapped_msbuild.sh
37+
@@ -61,6 +61,7 @@ function DownloadMSBuildForMono {
38+
unzip -q "$msbuild_zip" -d "$artifacts_dir"
39+
# rename just to make it obvious when reading logs!
40+
mv $artifacts_dir/msbuild $mono_msbuild_dir
41+
+ sed -i 's#/sh$#/bash#' $artifacts_dir/mono-msbuild/msbuild
42+
chmod +x $artifacts_dir/mono-msbuild/MSBuild.dll
43+
44+
if [[ `uname -s` != 'Darwin' ]]; then

recipes-mono/msbuild/msbuild/0001-Copy-hostfxr.patch

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ From: Nicolas Jeker <n.jeker@gmx.net>
33
Date: Fri, 22 Jan 2021 10:41:27 +0100
44
Subject: [PATCH] Copy hostfxr
55

6+
Upstream-Status: Inappropriate [Yocto specific]
67
---
78
eng/cibuild_bootstrapped_msbuild.sh | 1 +
89
1 file changed, 1 insertion(+)

recipes-mono/msbuild/msbuild/0001-Don-t-try-to-run-pkill.patch

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ From: Nicolas Jeker <n.jeker@delisys.ch>
33
Date: Fri, 6 Nov 2020 11:19:38 +0100
44
Subject: [PATCH] Don't try to run pkill
55

6+
Upstream-Status: Inappropriate [Yocto specific]
67
---
78
eng/cibuild_bootstrapped_msbuild.sh | 2 --
89
1 file changed, 2 deletions(-)

recipes-mono/msbuild/msbuild/0002-Remove-myget-feeds-and-replace-with-AzDO-feeds.patch

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ From: =?UTF-8?q?Alexander=20K=C3=B6plinger?= <alex.koeplinger@outlook.com>
33
Date: Fri, 15 Jan 2021 12:39:49 +0100
44
Subject: [PATCH] Remove myget feeds and replace with AzDO feeds
55

6+
Upstream-Status: Inappropriate [Yocto specific]
67
---
78
NuGet.config | 18 +++---------------
89
1 file changed, 3 insertions(+), 15 deletions(-)

recipes-mono/msbuild/msbuild/cibuild.sh-debug.patch

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
Upstream-Status: Inappropriate [Yocto specific]
2+
13
diff --git a/cibuild.sh b/cibuild.sh
24
index 82a3694..5278b35 100755
35
--- a/cibuild.sh

recipes-mono/msbuild/msbuild/mono-msbuild-dotnetbits-case.patch

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
Upstream-Status: Inappropriate [Yocto specific]
2+
13
Index: xamarin-pkg-msbuild/mono/build/sdks_and_nugets/update_sdks_and_nugets.proj
24
===================================================================
35
--- xamarin-pkg-msbuild.orig/mono/build/sdks_and_nugets/update_sdks_and_nugets.proj

recipes-mono/msbuild/msbuild/mono-msbuild-license-case.patch

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
Upstream-Status: Inappropriate [Yocto specific]
2+
13
Index: xamarin-pkg-msbuild/LICENSE
24
===================================================================
35
--- xamarin-pkg-msbuild.orig/LICENSE

recipes-mono/msbuild/msbuild/mono-msbuild-no-hostfxr.patch

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
Upstream-Status: Inappropriate [Yocto specific]
2+
13
diff -rupN mono-msbuild.orig/mono/build/sdks_and_nugets/update_sdks_and_nugets.proj mono-msbuild/mono/build/sdks_and_nugets/update_sdks_and_nugets.proj
24
--- mono-msbuild.orig/mono/build/sdks_and_nugets/update_sdks_and_nugets.proj 2020-07-03 19:37:07.112979921 +0200
35
+++ mono-msbuild/mono/build/sdks_and_nugets/update_sdks_and_nugets.proj 2020-07-03 19:37:59.966877151 +0200

0 commit comments

Comments
 (0)