Skip to content

Commit ae8dfa3

Browse files
committed
Changes to build v7 preview.4
1 parent d2ffc83 commit ae8dfa3

File tree

10 files changed

+61
-45
lines changed

10 files changed

+61
-45
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66

77
## Usage
88

9-
1. Run as root `install_tools.sh`
9+
1. Run as root `install_tools.sh` - make sure to mount all needed things (add them to /etc/fstab, then mount -a)
1010
1. `init.sh`
1111
1. `build_runtime.sh` - add `-v d` inside if it will fail with SEHExceptions...
1212
1. (try to skip this and goto `build_aspnetcore.sh`) `build_installer_without_aspnet.sh`
1313
1. (try to skip this and goto `build_aspnetcore.sh`) run `tar zxfv ../../installer/artifacts/packages/Release/Shipping/dotnet-sdk-6.0.101-freebsd-x64.tar.gz` inside `aspnetcore/.dotnet` to extract newly created SDK
1414
1. `build_aspnetcore.sh` - as for now, this one need v7 SDK - grab one and do `./bsd_dotnet_install.sh sdk7.tgz aspnetcore/`
15-
1. `build_installer.sh`
15+
1. `build_installer.sh` - this one also need v7 SDK - do the same as above. Add `-v d` inside build script if it will fail, check the logs (maybe download some zips by hand, as this is common fail)
1616
1. Get and use `installer/artifacts/packages/Release/Shipping/dotnet-sdk-*-freebsd-x64.tar.gz`
1717
1. `clean.sh` if you want to save disk space after use
1818
1. `gather_output.sh` to tar artifacts into one big file, for future use (doesn't make sense to compress this, as it contains compressed files already)
@@ -47,4 +47,4 @@ More info about this [here](https://bugzilla.mozilla.org/show_bug.cgi?id=1686854
4747

4848
- Check [releases](https://github.com/sec/dotnet-core-freebsd-source-build/releases) (issue me if someting's broken or missing)
4949
- [Crossbuild](https://github.com/Thefrank/dotnet-freebsd-crossbuild) and [native builds](https://github.com/Thefrank/dotnet-freebsd-native-binaries)
50-
- [Azure pipeline](https://github.com/Servarr/dotnet-bsd)
50+
- [Azure pipeline](https://github.com/Servarr/dotnet-bsd)

build_aspnetcore.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ cp runtime/artifacts/packages/Release/Shipping/dotnet-runtime-*-freebsd-x64.tar.
55

66
# 20220209.13 - aspnet core - v7.0.0-preview.1.22109.13
77
# 20220328.4 - aspnet core - v7.0.0-preview.3.22178.4
8+
# 20220501.1 - preview.4
89

910
setenv PROTOBUF_PROTOC /usr/local/bin/protoc
1011
setenv PROTOBUF_TOOLS_CPU x64
1112
setenv PROTOBUF_TOOLS_OS linux
1213

13-
aspnetcore/eng/build.sh -maxcpucount:1 /p:maxcpucount=1 -ci --os-name freebsd -pack /p:OfficialBuildId=20220328.4 -c Release --all
14+
aspnetcore/eng/build.sh -maxcpucount:1 /p:maxcpucount=1 -ci --os-name freebsd -pack /p:OfficialBuildId=20220501.1 -c Release --all

build_installer.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ cp sdk/artifacts/packages/Release/NonShipping/dotnet-toolset-internal-*.zip inst
88
# 20220210.4 - installer - v7.0.100-preview.1.22110.4
99
# fetch dotnet-toolset-internal-7.0.100-preview.1.22110.5.zip by hand if fail ?
1010
# 20220329.4 - v7.0.100-preview.3.22179.4
11+
# 20220502.9 - preview.4
1112

12-
installer/build.sh -c Release -ci -pack --runtime-id freebsd-x64 /p:OSName=freebsd /p:OfficialBuildId=20220329.4
13+
installer/build.sh -c Release -ci -pack --runtime-id freebsd-x64 /p:OSName=freebsd /p:OfficialBuildId=20220502.9 -v d

build_runtime.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22

33
# 20220126.8 - runtime - v7.0.0-preview.1.22076.8
44
# 20220325.4 - runtime - v7.0.0-preview.3.22175.4
5+
# 20220429.4 - runtime - preview.4
56

6-
runtime/build.sh --warnAsError false /p:OfficialBuildId=20220325.4 -ci -c Release
7+
runtime/build.sh --warnAsError false /p:OfficialBuildId=20220429.4 -ci -c Release

common.sh

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
function calculate_build_id()
6+
{
7+
local TAG=$1
8+
local REGEX='-(preview|rc|rtm)\.[0-9]\.([0-9]{5})\.([0-9]{1,2})'
9+
10+
if [[ $TAG =~ $REGEX ]]
11+
then
12+
local MAJOR=${BASH_REMATCH[2]}
13+
local MINOR=${BASH_REMATCH[3]}
14+
15+
YEAR=$((MAJOR / 1000 + 2000))
16+
MONTH=$(((MAJOR % 1000) / 50))
17+
DAY=$((MAJOR % 50))
18+
19+
DATE=$((YEAR * 10000 + MONTH * 100 + DAY))
20+
21+
OFFICIALBUILDID="${DATE}.${MINOR}"
22+
else
23+
OFFICIALBUILDID=$(date +%Y%m%d).99
24+
fi
25+
}
26+
27+
function get_runtime_docker()
28+
{
29+
DOTNET_DOCKER_TAG="mcr.microsoft.com/dotnet-buildtools/prereqs:$(curl -s https://raw.githubusercontent.com/dotnet/versions/master/build-info/docker/image-info.dotnet-dotnet-buildtools-prereqs-docker-main.json | jq -r '.repos[0].images[] | select(.platforms[0].dockerfile | contains("freebsd/12")) | .platforms[0].simpleTags[0]')"
30+
}

gather_output.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ find runtime/artifacts/packages/Release -name '*.nupkg' -exec cp '{}' output/ \;
66
find aspnetcore/artifacts/packages/Release -name '*.nupkg' -exec cp '{}' output/ \;
77
cp installer/artifacts/packages/Release/Shipping/* output/
88

9-
tar --create --file dotnet-sdk-7.0.0.preview.3-freebsd-x64-full.tar -C output .
9+
tar --create --file dotnet-sdk-7.0.100.preview.4-freebsd-x64-full.tar -C output .

init.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
SDKBIN="https://github.com/sec/dotnet-core-freebsd-source-build/releases/download/6.0.202/dotnet-sdk-6.0.202-freebsd-x64.tar.gz"
44
SDKZIP="sdk.tgz"
55

6-
RUNTIMETAG="v7.0.0-preview.3.22175.4"
7-
ASPNETCORETAG="v7.0.0-preview.3.22178.4"
8-
INSTALLERTAG="v7.0.100-preview.3.22179.4"
9-
SDKTAG="v7.0.100-preview.3.22179.3"
6+
RUNTIMETAG="v7.0.0-preview.4.22229.4"
7+
ASPNETCORETAG="v7.0.0-preview.4.22251.1"
8+
INSTALLERTAG="v7.0.100-preview.4.22252.9"
9+
SDKTAG="v7.0.100-preview.4.22252.4"
1010

1111
#needed for openjdk
1212
#mount -t fdescfs fdesc /dev/fd
@@ -46,7 +46,7 @@ if [ ! -d aspnetcore ]; then
4646
./bsd_dotnet_install.sh $SDKZIP aspnetcore
4747

4848
aspnetcore/.dotnet/dotnet nuget add source ../runtime/artifacts/packages/Release/Shipping/ --name local --configfile aspnetcore/NuGet.config
49-
aspnetcore/.dotnet/dotnet nuget add source ../nuget --name local2 --configfile aspnetcore/NuGet.config
49+
aspnetcore/.dotnet/dotnet nuget add source ../nuget --name local2 --configfile aspnetcore/NuGet.config
5050

5151
patch -d aspnetcore < patches/aspnetcore.patch
5252
fi
@@ -63,6 +63,8 @@ if [ ! -d installer ]; then
6363
patch -d installer < patches/installer.patch
6464
fi
6565

66+
exit
67+
6668
if [ ! -d sdk ]; then
6769
git clone https://github.com/dotnet/sdk
6870
git -C sdk checkout $SDKTAG

patches/aspnetcore.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ index c5686c0222..f8c8135511 100644
55
@@ -1,9 +1,9 @@
66
{
77
"sdk": {
8-
- "version": "7.0.100-preview.3.22171.1"
8+
- "version": "7.0.100-preview.4.22204.1"
99
+ "version": "7.0.100-preview.1.22110.4"
1010
},
1111
"tools": {
12-
- "dotnet": "7.0.100-preview.3.22171.1",
12+
- "dotnet": "7.0.100-preview.4.22204.1",
1313
+ "dotnet": "7.0.100-preview.1.22110.4",
1414
"runtimes": {
1515
"dotnet/x86": [

patches/installer.patch

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,3 @@
1-
diff --git a/NuGet.config b/NuGet.config
2-
index d2a6d621d..8bf6c8b70 100644
3-
--- a/NuGet.config
4-
+++ b/NuGet.config
5-
@@ -1,4 +1,4 @@
6-
-<?xml version="1.0" encoding="utf-8"?>
7-
+<?xml version="1.0" encoding="utf-8"?>
8-
<configuration>
9-
<solution>
10-
<add key="disableSourceControlIntegration" value="true" />
11-
@@ -19,6 +19,8 @@
12-
<add key="dotnet-libraries" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-libraries/nuget/v3/index.json" />
13-
<!-- Temporary feed for Xamarin workload manifest -->
14-
<add key="xamarin" value="https://pkgs.dev.azure.com/azure-public/vside/_packaging/xamarin-impl/nuget/v3/index.json" />
15-
+ <add key="local1" value="../runtime/artifacts/packages/Release/Shipping/" />
16-
+ <add key="local2" value="../aspnetcore/artifacts/packages/Release/Shipping/" />
17-
</packageSources>
18-
<disabledPackageSources>
19-
<!--Begin: Package sources managed by Dependency Flow automation. Do not edit the sources below.-->
201
diff --git a/src/redist/targets/GenerateBundledVersions.targets b/src/redist/targets/GenerateBundledVersions.targets
212
index 304e3e258..f811c739e 100644
223
--- a/src/redist/targets/GenerateBundledVersions.targets

patches/runtime_versions.patch

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
diff --git a/eng/Versions.props b/eng/Versions.props
2-
index dcc45d20b2e..ff9cb6c6d75 100644
2+
index 63a6ef6627f..f4fbc072af1 100644
33
--- a/eng/Versions.props
44
+++ b/eng/Versions.props
5-
@@ -66,11 +66,11 @@
5+
@@ -73,11 +73,11 @@
66
<NuGetBuildTasksPackVersion>6.0.0-preview.1.102</NuGetBuildTasksPackVersion>
77
<!-- Installer dependencies -->
8-
<MicrosoftNETCoreAppRuntimewinx64Version>7.0.0-preview.3.22163.2</MicrosoftNETCoreAppRuntimewinx64Version>
9-
- <MicrosoftNETCoreDotNetHostVersion>7.0.0-preview.3.22163.2</MicrosoftNETCoreDotNetHostVersion>
10-
- <MicrosoftNETCoreDotNetHostPolicyVersion>7.0.0-preview.3.22163.2</MicrosoftNETCoreDotNetHostPolicyVersion>
11-
+ <MicrosoftNETCoreDotNetHostVersion>6.0.4</MicrosoftNETCoreDotNetHostVersion>
12-
+ <MicrosoftNETCoreDotNetHostPolicyVersion>6.0.4</MicrosoftNETCoreDotNetHostPolicyVersion>
8+
<MicrosoftNETCoreAppRuntimewinx64Version>7.0.0-preview.4.22208.8</MicrosoftNETCoreAppRuntimewinx64Version>
9+
- <MicrosoftNETCoreDotNetHostVersion>7.0.0-preview.4.22208.8</MicrosoftNETCoreDotNetHostVersion>
10+
- <MicrosoftNETCoreDotNetHostPolicyVersion>7.0.0-preview.4.22208.8</MicrosoftNETCoreDotNetHostPolicyVersion>
11+
+ <MicrosoftNETCoreDotNetHostVersion>6.0.2</MicrosoftNETCoreDotNetHostVersion>
12+
+ <MicrosoftNETCoreDotNetHostPolicyVersion>6.0.2</MicrosoftNETCoreDotNetHostPolicyVersion>
1313
<MicrosoftExtensionsDependencyModelVersion>3.1.0</MicrosoftExtensionsDependencyModelVersion>
1414
<!-- CoreClr dependencies -->
15-
- <MicrosoftNETCoreILAsmVersion>7.0.0-preview.3.22163.2</MicrosoftNETCoreILAsmVersion>
16-
+ <MicrosoftNETCoreILAsmVersion>6.0.4-servicing.22220.99</MicrosoftNETCoreILAsmVersion>
17-
<runtimelinuxarm64MicrosoftNETCoreRuntimeObjWriterVersion>1.0.0-alpha.1.22157.1</runtimelinuxarm64MicrosoftNETCoreRuntimeObjWriterVersion>
18-
<runtimelinuxx64MicrosoftNETCoreRuntimeObjWriterVersion>1.0.0-alpha.1.22157.1</runtimelinuxx64MicrosoftNETCoreRuntimeObjWriterVersion>
19-
<runtimelinuxmuslarm64MicrosoftNETCoreRuntimeObjWriterVersion>1.0.0-alpha.1.22157.1</runtimelinuxmuslarm64MicrosoftNETCoreRuntimeObjWriterVersion>
15+
- <MicrosoftNETCoreILAsmVersion>7.0.0-preview.4.22208.8</MicrosoftNETCoreILAsmVersion>
16+
+ <MicrosoftNETCoreILAsmVersion>6.0.2-servicing.22117.99</MicrosoftNETCoreILAsmVersion>
17+
<runtimelinuxarm64MicrosoftNETCoreRuntimeObjWriterVersion>1.0.0-alpha.1.22204.1</runtimelinuxarm64MicrosoftNETCoreRuntimeObjWriterVersion>
18+
<runtimelinuxx64MicrosoftNETCoreRuntimeObjWriterVersion>1.0.0-alpha.1.22204.1</runtimelinuxx64MicrosoftNETCoreRuntimeObjWriterVersion>
19+
<runtimelinuxmuslarm64MicrosoftNETCoreRuntimeObjWriterVersion>1.0.0-alpha.1.22204.1</runtimelinuxmuslarm64MicrosoftNETCoreRuntimeObjWriterVersion>

0 commit comments

Comments
 (0)