Skip to content

Commit 1dc5505

Browse files
[main] Update dependencies from dotnet/arcade (#3841)
Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
1 parent 685341f commit 1dc5505

File tree

11 files changed

+80
-53
lines changed

11 files changed

+80
-53
lines changed

eng/Version.Details.xml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,26 +16,26 @@
1616
</Dependency>
1717
</ProductDependencies>
1818
<ToolsetDependencies>
19-
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="7.0.0-beta.22327.1">
19+
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="7.0.0-beta.22372.1">
2020
<Uri>https://github.com/dotnet/arcade</Uri>
21-
<Sha>640c1cc2a140b322c4f30f6d6b85f35f0c4c7313</Sha>
21+
<Sha>11672d906390046e77a34b6406d9e02229fd7e45</Sha>
2222
<SourceBuild RepoName="arcade" ManagedOnly="true" />
2323
</Dependency>
24-
<Dependency Name="Microsoft.DotNet.Build.Tasks.Feed" Version="7.0.0-beta.22327.1">
24+
<Dependency Name="Microsoft.DotNet.Build.Tasks.Feed" Version="7.0.0-beta.22372.1">
2525
<Uri>https://github.com/dotnet/arcade</Uri>
26-
<Sha>640c1cc2a140b322c4f30f6d6b85f35f0c4c7313</Sha>
26+
<Sha>11672d906390046e77a34b6406d9e02229fd7e45</Sha>
2727
</Dependency>
28-
<Dependency Name="Microsoft.DotNet.SignTool" Version="7.0.0-beta.22327.1">
28+
<Dependency Name="Microsoft.DotNet.SignTool" Version="7.0.0-beta.22372.1">
2929
<Uri>https://github.com/dotnet/arcade</Uri>
30-
<Sha>640c1cc2a140b322c4f30f6d6b85f35f0c4c7313</Sha>
30+
<Sha>11672d906390046e77a34b6406d9e02229fd7e45</Sha>
3131
</Dependency>
32-
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="7.0.0-beta.22327.1">
32+
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="7.0.0-beta.22372.1">
3333
<Uri>https://github.com/dotnet/arcade</Uri>
34-
<Sha>640c1cc2a140b322c4f30f6d6b85f35f0c4c7313</Sha>
34+
<Sha>11672d906390046e77a34b6406d9e02229fd7e45</Sha>
3535
</Dependency>
36-
<Dependency Name="Microsoft.DotNet.SwaggerGenerator.MSBuild" Version="7.0.0-beta.22327.1">
36+
<Dependency Name="Microsoft.DotNet.SwaggerGenerator.MSBuild" Version="7.0.0-beta.22372.1">
3737
<Uri>https://github.com/dotnet/arcade</Uri>
38-
<Sha>640c1cc2a140b322c4f30f6d6b85f35f0c4c7313</Sha>
38+
<Sha>11672d906390046e77a34b6406d9e02229fd7e45</Sha>
3939
</Dependency>
4040
<Dependency Name="Microsoft.DotNet.Maestro.Client" Version="1.1.0-beta.20074.1">
4141
<Uri>https://github.com/dotnet/arcade-services</Uri>

eng/Versions.props

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@
6262
<XUnitVersion>2.4.1</XUnitVersion>
6363
<XUnitAbstractionsVersion>2.0.3</XUnitAbstractionsVersion>
6464
<XUnitVSRunnerVersion>2.4.1</XUnitVSRunnerVersion>
65-
<MicrosoftDotNetBuildTasksFeedVersion>7.0.0-beta.22327.1</MicrosoftDotNetBuildTasksFeedVersion>
66-
<MicrosoftDotNetSignToolVersion>7.0.0-beta.22327.1</MicrosoftDotNetSignToolVersion>
65+
<MicrosoftDotNetBuildTasksFeedVersion>7.0.0-beta.22372.1</MicrosoftDotNetBuildTasksFeedVersion>
66+
<MicrosoftDotNetSignToolVersion>7.0.0-beta.22372.1</MicrosoftDotNetSignToolVersion>
6767
<MicrosoftAzureDocumentDBVersion>1.22.0</MicrosoftAzureDocumentDBVersion>
6868
<MicrosoftAzureCosmosDBTableVersion>1.1.2</MicrosoftAzureCosmosDBTableVersion>
6969
<MicrosoftAspNetCoreAllVersion>2.0.0</MicrosoftAspNetCoreAllVersion>
@@ -75,7 +75,7 @@
7575
<MicrosoftDiaSymReaderNativeVersion>1.7.0</MicrosoftDiaSymReaderNativeVersion>
7676
<MicrosoftDotNetMaestroClientVersion>1.1.0-beta.20074.1</MicrosoftDotNetMaestroClientVersion>
7777
<MicrosoftSourceLinkVersion>1.0.0-beta2-19554-01</MicrosoftSourceLinkVersion>
78-
<MicrosoftDotNetSwaggerGeneratorMSBuildVersion>7.0.0-beta.22327.1</MicrosoftDotNetSwaggerGeneratorMSBuildVersion>
78+
<MicrosoftDotNetSwaggerGeneratorMSBuildVersion>7.0.0-beta.22372.1</MicrosoftDotNetSwaggerGeneratorMSBuildVersion>
7979
<XliffTasksVersion>1.0.0-beta.21272.1</XliffTasksVersion>
8080
<!-- Roslyn -->
8181
<!-- WARNING: Depending on Roslyn in code that also supports unmanaged scenarios (e.g. C++,

eng/common/cross/build-rootfs.sh

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -e
55
usage()
66
{
77
echo "Usage: $0 [BuildArch] [CodeName] [lldbx.y] [llvmx[.y]] [--skipunmount] --rootfsdir <directory>]"
8-
echo "BuildArch can be: arm(default), armel, arm64, x86"
8+
echo "BuildArch can be: arm(default), armel, arm64, x86, x64"
99
echo "CodeName - optional, Code name for Linux, can be: xenial(default), zesty, bionic, alpine, alpine3.13 or alpine3.14. If BuildArch is armel, LinuxCodeName is jessie(default) or tizen."
1010
echo " for FreeBSD can be: freebsd12, freebsd13"
1111
echo " for illumos can be: illumos."
@@ -21,6 +21,9 @@ __CrossDir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
2121
__InitialDir=$PWD
2222
__BuildArch=arm
2323
__AlpineArch=armv7
24+
__FreeBSDArch=arm
25+
__FreeBSDMachineArch=armv7
26+
__IllumosArch=arm7
2427
__QEMUArch=arm
2528
__UbuntuArch=armhf
2629
__UbuntuRepo="http://ports.ubuntu.com/"
@@ -115,6 +118,8 @@ while :; do
115118
__UbuntuArch=arm64
116119
__AlpineArch=aarch64
117120
__QEMUArch=aarch64
121+
__FreeBSDArch=arm64
122+
__FreeBSDMachineArch=aarch64
118123
;;
119124
armel)
120125
__BuildArch=armel
@@ -140,6 +145,14 @@ while :; do
140145
__UbuntuPackages=$(echo ${__UbuntuPackages} | sed 's/ libomp5//')
141146
unset __LLDB_Package
142147
;;
148+
x64)
149+
__BuildArch=x64
150+
__UbuntuArch=amd64
151+
__FreeBSDArch=amd64
152+
__FreeBSDMachineArch=amd64
153+
__illumosArch=x86_64
154+
__UbuntuRepo=
155+
;;
143156
x86)
144157
__BuildArch=x86
145158
__UbuntuArch=i386
@@ -205,11 +218,6 @@ while :; do
205218
__LLDB_Package="liblldb-6.0-dev"
206219
;;
207220
tizen)
208-
if [ "$__BuildArch" != "arm" ] && [ "$__BuildArch" != "armel" ] && [ "$__BuildArch" != "arm64" ] && [ "$__BuildArch" != "x86" ] ; then
209-
echo "Tizen is available only for arm, armel, arm64 and x86."
210-
usage;
211-
exit 1;
212-
fi
213221
__CodeName=
214222
__UbuntuRepo=
215223
__Tizen=tizen
@@ -228,19 +236,16 @@ while :; do
228236
;;
229237
freebsd12)
230238
__CodeName=freebsd
231-
__BuildArch=x64
232239
__SkipUnmount=1
233240
;;
234241
freebsd13)
235242
__CodeName=freebsd
236243
__FreeBSDBase="13.0-RELEASE"
237244
__FreeBSDABI="13"
238-
__BuildArch=x64
239245
__SkipUnmount=1
240246
;;
241247
illumos)
242248
__CodeName=illumos
243-
__BuildArch=x64
244249
__SkipUnmount=1
245250
;;
246251
--skipunmount)
@@ -312,8 +317,8 @@ if [[ "$__CodeName" == "alpine" ]]; then
312317
elif [[ "$__CodeName" == "freebsd" ]]; then
313318
mkdir -p $__RootfsDir/usr/local/etc
314319
JOBS="$(getconf _NPROCESSORS_ONLN)"
315-
wget -O - https://download.freebsd.org/ftp/releases/amd64/${__FreeBSDBase}/base.txz | tar -C $__RootfsDir -Jxf - ./lib ./usr/lib ./usr/libdata ./usr/include ./usr/share/keys ./etc ./bin/freebsd-version
316-
echo "ABI = \"FreeBSD:${__FreeBSDABI}:amd64\"; FINGERPRINTS = \"${__RootfsDir}/usr/share/keys\"; REPOS_DIR = [\"${__RootfsDir}/etc/pkg\"]; REPO_AUTOUPDATE = NO; RUN_SCRIPTS = NO;" > ${__RootfsDir}/usr/local/etc/pkg.conf
320+
wget -O - https://download.freebsd.org/ftp/releases/${__FreeBSDArch}/${__FreeBSDMachineArch}/${__FreeBSDBase}/base.txz | tar -C $__RootfsDir -Jxf - ./lib ./usr/lib ./usr/libdata ./usr/include ./usr/share/keys ./etc ./bin/freebsd-version
321+
echo "ABI = \"FreeBSD:${__FreeBSDABI}:${__FreeBSDMachineArch}\"; FINGERPRINTS = \"${__RootfsDir}/usr/share/keys\"; REPOS_DIR = [\"${__RootfsDir}/etc/pkg\"]; REPO_AUTOUPDATE = NO; RUN_SCRIPTS = NO;" > ${__RootfsDir}/usr/local/etc/pkg.conf
317322
echo "FreeBSD: { url: "pkg+http://pkg.FreeBSD.org/\${ABI}/quarterly", mirror_type: \"srv\", signature_type: \"fingerprints\", fingerprints: \"${__RootfsDir}/usr/share/keys/pkg\", enabled: yes }" > ${__RootfsDir}/etc/pkg/FreeBSD.conf
318323
mkdir -p $__RootfsDir/tmp
319324
# get and build package manager
@@ -335,7 +340,7 @@ elif [[ "$__CodeName" == "illumos" ]]; then
335340
echo "Building binutils. Please wait.."
336341
wget -O - https://ftp.gnu.org/gnu/binutils/binutils-2.33.1.tar.bz2 | tar -xjf -
337342
mkdir build-binutils && cd build-binutils
338-
../binutils-2.33.1/configure --prefix="$__RootfsDir" --target="x86_64-sun-solaris2.10" --program-prefix="x86_64-illumos-" --with-sysroot="$__RootfsDir"
343+
../binutils-2.33.1/configure --prefix="$__RootfsDir" --target="${__illumosArch}-sun-solaris2.10" --program-prefix="${__illumosArch}-illumos-" --with-sysroot="$__RootfsDir"
339344
make -j "$JOBS" && make install && cd ..
340345
echo "Building gcc. Please wait.."
341346
wget -O - https://ftp.gnu.org/gnu/gcc/gcc-8.4.0/gcc-8.4.0.tar.xz | tar -xJf -
@@ -345,15 +350,15 @@ elif [[ "$__CodeName" == "illumos" ]]; then
345350
CFLAGS_FOR_TARGET="-fPIC"
346351
export CFLAGS CXXFLAGS CXXFLAGS_FOR_TARGET CFLAGS_FOR_TARGET
347352
mkdir build-gcc && cd build-gcc
348-
../gcc-8.4.0/configure --prefix="$__RootfsDir" --target="x86_64-sun-solaris2.10" --program-prefix="x86_64-illumos-" --with-sysroot="$__RootfsDir" --with-gnu-as \
353+
../gcc-8.4.0/configure --prefix="$__RootfsDir" --target="${__illumosArch}-sun-solaris2.10" --program-prefix="${__illumosArch}-illumos-" --with-sysroot="$__RootfsDir" --with-gnu-as \
349354
--with-gnu-ld --disable-nls --disable-libgomp --disable-libquadmath --disable-libssp --disable-libvtv --disable-libcilkrts --disable-libada --disable-libsanitizer \
350355
--disable-libquadmath-support --disable-shared --enable-tls
351356
make -j "$JOBS" && make install && cd ..
352357
BaseUrl=https://pkgsrc.joyent.com
353358
if [[ "$__UseMirror" == 1 ]]; then
354359
BaseUrl=http://pkgsrc.smartos.skylime.net
355360
fi
356-
BaseUrl="$BaseUrl"/packages/SmartOS/2020Q1/x86_64/All
361+
BaseUrl="$BaseUrl"/packages/SmartOS/2020Q1/${__illumosArch}/All
357362
echo "Downloading dependencies."
358363
read -ra array <<<"$__IllumosPackages"
359364
for package in "${array[@]}"; do

eng/common/cross/toolchain.cmake

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,13 @@ elseif(TARGET_ARCH_NAME STREQUAL "arm64")
4848
set(CMAKE_SYSTEM_PROCESSOR aarch64)
4949
if(EXISTS ${CROSS_ROOTFS}/usr/lib/gcc/aarch64-alpine-linux-musl)
5050
set(TOOLCHAIN "aarch64-alpine-linux-musl")
51-
else()
51+
elseif(LINUX)
5252
set(TOOLCHAIN "aarch64-linux-gnu")
53-
endif()
54-
if(TIZEN)
55-
set(TIZEN_TOOLCHAIN "aarch64-tizen-linux-gnu/9.2.0")
53+
if(TIZEN)
54+
set(TIZEN_TOOLCHAIN "aarch64-tizen-linux-gnu/9.2.0")
55+
endif()
56+
elseif(FREEBSD)
57+
set(triple "aarch64-unknown-freebsd12")
5658
endif()
5759
elseif(TARGET_ARCH_NAME STREQUAL "ppc64le")
5860
set(CMAKE_SYSTEM_PROCESSOR ppc64le)
@@ -66,12 +68,18 @@ elseif(TARGET_ARCH_NAME STREQUAL "x86")
6668
if(TIZEN)
6769
set(TIZEN_TOOLCHAIN "i586-tizen-linux-gnu/9.2.0")
6870
endif()
69-
elseif (FREEBSD)
70-
set(CMAKE_SYSTEM_PROCESSOR "x86_64")
71-
set(triple "x86_64-unknown-freebsd12")
72-
elseif (ILLUMOS)
73-
set(CMAKE_SYSTEM_PROCESSOR "x86_64")
74-
set(TOOLCHAIN "x86_64-illumos")
71+
elseif(TARGET_ARCH_NAME STREQUAL "x64")
72+
set(CMAKE_SYSTEM_PROCESSOR x86_64)
73+
if(LINUX)
74+
set(TOOLCHAIN "x86_64-linux-gnu")
75+
if(TIZEN)
76+
set(TIZEN_TOOLCHAIN "x86_64-tizen-linux-gnu/9.2.0")
77+
endif()
78+
elseif(FREEBSD)
79+
set(triple "x86_64-unknown-freebsd12")
80+
elseif(ILLUMOS)
81+
set(TOOLCHAIN "x86_64-illumos")
82+
endif()
7583
else()
7684
message(FATAL_ERROR "Arch is ${TARGET_ARCH_NAME}. Only armel, arm, armv6, arm64, ppc64le, s390x and x86 are supported!")
7785
endif()
@@ -218,7 +226,7 @@ endif()
218226

219227
# Specify compile options
220228

221-
if((TARGET_ARCH_NAME MATCHES "^(arm|armv6|armel|arm64|ppc64le|s390x)$" AND NOT ANDROID) OR ILLUMOS)
229+
if((TARGET_ARCH_NAME MATCHES "^(arm|armv6|armel|arm64|ppc64le|s390x)$" AND NOT ANDROID AND NOT FREEBSD) OR ILLUMOS)
222230
set(CMAKE_C_COMPILER_TARGET ${TOOLCHAIN})
223231
set(CMAKE_CXX_COMPILER_TARGET ${TOOLCHAIN})
224232
set(CMAKE_ASM_COMPILER_TARGET ${TOOLCHAIN})

eng/common/generate-locproject.ps1

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ Param(
1010

1111
Set-StrictMode -Version 2.0
1212
$ErrorActionPreference = "Stop"
13-
. $PSScriptRoot\tools.ps1
14-
15-
Import-Module -Name (Join-Path $PSScriptRoot 'native\CommonLibrary.psm1')
13+
. $PSScriptRoot\pipeline-logging-functions.ps1
1614

1715
$exclusionsFilePath = "$SourcesDirectory\eng\Localize\LocExclusions.json"
1816
$exclusions = @{ Exclusions = @() }
@@ -28,7 +26,7 @@ $jsonFiles = @()
2826
$jsonTemplateFiles = Get-ChildItem -Recurse -Path "$SourcesDirectory" | Where-Object { $_.FullName -Match "\.template\.config\\localize\\.+\.en\.json" } # .NET templating pattern
2927
$jsonTemplateFiles | ForEach-Object {
3028
$null = $_.Name -Match "(.+)\.[\w-]+\.json" # matches '[filename].[langcode].json
31-
29+
3230
$destinationFile = "$($_.Directory.FullName)\$($Matches.1).json"
3331
$jsonFiles += Copy-Item "$($_.FullName)" -Destination $destinationFile -PassThru
3432
}
@@ -46,7 +44,7 @@ if ($allXlfFiles) {
4644
}
4745
$langXlfFiles | ForEach-Object {
4846
$null = $_.Name -Match "(.+)\.[\w-]+\.xlf" # matches '[filename].[langcode].xlf
49-
47+
5048
$destinationFile = "$($_.Directory.FullName)\$($Matches.1).xlf"
5149
$xlfFiles += Copy-Item "$($_.FullName)" -Destination $destinationFile -PassThru
5250
}
@@ -59,7 +57,7 @@ $locJson = @{
5957
LanguageSet = $LanguageSet
6058
LocItems = @(
6159
$locFiles | ForEach-Object {
62-
$outputPath = "$(($_.DirectoryName | Resolve-Path -Relative) + "\")"
60+
$outputPath = "$(($_.DirectoryName | Resolve-Path -Relative) + "\")"
6361
$continue = $true
6462
foreach ($exclusion in $exclusions.Exclusions) {
6563
if ($outputPath.Contains($exclusion))
@@ -108,10 +106,10 @@ else {
108106

109107
if ((Get-FileHash "$SourcesDirectory\eng\Localize\LocProject-generated.json").Hash -ne (Get-FileHash "$SourcesDirectory\eng\Localize\LocProject.json").Hash) {
110108
Write-PipelineTelemetryError -Category "OneLocBuild" -Message "Existing LocProject.json differs from generated LocProject.json. Download LocProject-generated.json and compare them."
111-
109+
112110
exit 1
113111
}
114112
else {
115113
Write-Host "Generated LocProject.json and current LocProject.json are identical."
116114
}
117-
}
115+
}

eng/common/generate-sbom-prep.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ Param(
22
[Parameter(Mandatory=$true)][string] $ManifestDirPath # Manifest directory where sbom will be placed
33
)
44

5+
. $PSScriptRoot\pipeline-logging-functions.ps1
6+
57
Write-Host "Creating dir $ManifestDirPath"
68
# create directory for sbom manifest to be placed
79
if (!(Test-Path -path $ManifestDirPath))

eng/common/generate-sbom-prep.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@
22

33
source="${BASH_SOURCE[0]}"
44

5+
# resolve $SOURCE until the file is no longer a symlink
6+
while [[ -h $source ]]; do
7+
scriptroot="$( cd -P "$( dirname "$source" )" && pwd )"
8+
source="$(readlink "$source")"
9+
10+
# if $source was a relative symlink, we need to resolve it relative to the path where the
11+
# symlink file was located
12+
[[ $source != /* ]] && source="$scriptroot/$source"
13+
done
14+
scriptroot="$( cd -P "$( dirname "$source" )" && pwd )"
15+
. $scriptroot/pipeline-logging-functions.sh
16+
517
manifest_dir=$1
618

719
if [ ! -d "$manifest_dir" ] ; then

eng/common/init-tools-native.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ try {
8787
$NativeTools.PSObject.Properties | ForEach-Object {
8888
$ToolName = $_.Name
8989
$ToolVersion = $_.Value
90+
$InstalledTools = @{}
9091

9192
if ((Get-Command "$ToolName" -ErrorAction SilentlyContinue) -eq $null) {
9293
if ($ToolVersion -eq "latest") {
@@ -111,9 +112,10 @@ try {
111112
$ToolPath = Convert-Path -Path $BinPath
112113
Write-Host "Adding $ToolName to the path ($ToolPath)..."
113114
Write-Host "##vso[task.prependpath]$ToolPath"
115+
$InstalledTools += @{ $ToolName = $ToolDirectory.FullName }
114116
}
115117
}
116-
exit 0
118+
return $InstalledTools
117119
} else {
118120
$NativeTools.PSObject.Properties | ForEach-Object {
119121
$ToolName = $_.Name

eng/common/native/init-compiler.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ if [[ -z "$CLR_CC" ]]; then
7171
# Set default versions
7272
if [[ -z "$majorVersion" ]]; then
7373
# note: gcc (all versions) and clang versions higher than 6 do not have minor version in file name, if it is zero.
74-
if [[ "$compiler" == "clang" ]]; then versions=( 13 12 11 10 9 8 7 6.0 5.0 4.0 3.9 3.8 3.7 3.6 3.5 )
74+
if [[ "$compiler" == "clang" ]]; then versions=( 14 13 12 11 10 9 8 7 6.0 5.0 4.0 3.9 3.8 3.7 3.6 3.5 )
7575
elif [[ "$compiler" == "gcc" ]]; then versions=( 12 11 10 9 8 7 6 5 4.9 ); fi
7676

7777
for version in "${versions[@]}"; do

eng/common/tools.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ function InitializeNativeTools() {
635635
InstallDirectory = "$ToolsDir"
636636
}
637637
}
638-
if (Test-Path variable:NativeToolsOnMachine) {
638+
if ($env:NativeToolsOnMachine) {
639639
Write-Host "Variable NativeToolsOnMachine detected, enabling native tool path promotion..."
640640
$nativeArgs += @{ PathPromotion = $true }
641641
}

0 commit comments

Comments
 (0)