Skip to content

Commit 09142a2

Browse files
authored
Merge pull request #135 from dotnet/darc-master-16d36886-c7c1-4f6d-8408-090e2291b344
[master] Update dependencies from dotnet/arcade
2 parents 98011e4 + 8bf7e9d commit 09142a2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+1840
-712
lines changed

NuGet.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@
66
<add key="dotnet-eng" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json" />
77
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
88
</packageSources>
9+
<disabledPackageSources />
910
</configuration>

eng/Version.Details.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
<ProductDependencies>
44
</ProductDependencies>
55
<ToolsetDependencies>
6-
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="5.0.0-beta.20261.9">
6+
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="5.0.0-beta.21079.3">
77
<Uri>https://github.com/dotnet/arcade</Uri>
8-
<Sha>898e51ed5fdcc4871087ac5754ca9056e58e575d</Sha>
8+
<Sha>2285af0baf68eccf4e468a5359ed1555dbfcfb7e</Sha>
99
</Dependency>
10-
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="5.0.0-beta.20261.9">
10+
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="5.0.0-beta.21079.3">
1111
<Uri>https://github.com/dotnet/arcade</Uri>
12-
<Sha>898e51ed5fdcc4871087ac5754ca9056e58e575d</Sha>
12+
<Sha>2285af0baf68eccf4e468a5359ed1555dbfcfb7e</Sha>
1313
</Dependency>
1414
</ToolsetDependencies>
1515
</Dependencies>

eng/common/SetupNugetSources.ps1

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
# See example YAML call for this script below. Note the use of the variable `$(dn-bot-dnceng-artifact-feeds-rw)`
1212
# from the AzureDevOps-Artifact-Feeds-Pats variable group.
1313
#
14+
# Any disabledPackageSources entries which start with "darc-int" will be re-enabled as part of this script executing
15+
#
1416
# - task: PowerShell@2
1517
# displayName: Setup Private Feeds Credentials
1618
# condition: eq(variables['Agent.OS'], 'Windows_NT')
@@ -94,6 +96,15 @@ function InsertMaestroPrivateFeedCredentials($Sources, $Creds, $Username, $Passw
9496
}
9597
}
9698

99+
function EnablePrivatePackageSources($DisabledPackageSources) {
100+
$maestroPrivateSources = $DisabledPackageSources.SelectNodes("add[contains(@key,'darc-int')]")
101+
ForEach ($DisabledPackageSource in $maestroPrivateSources) {
102+
Write-Host "`tEnsuring private source '$($DisabledPackageSource.key)' is enabled by deleting it from disabledPackageSource"
103+
# Due to https://github.com/NuGet/Home/issues/10291, we must actually remove the disabled entries
104+
$DisabledPackageSources.RemoveChild($DisabledPackageSource)
105+
}
106+
}
107+
97108
if (!(Test-Path $ConfigFile -PathType Leaf)) {
98109
Write-PipelineTelemetryError -Category 'Build' -Message "Eng/common/SetupNugetSources.ps1 returned a non-zero exit code. Couldn't find the NuGet config file: $ConfigFile"
99110
ExitWithExitCode 1
@@ -123,21 +134,28 @@ if ($creds -eq $null) {
123134
$doc.DocumentElement.AppendChild($creds) | Out-Null
124135
}
125136

137+
# Check for disabledPackageSources; we'll enable any darc-int ones we find there
138+
$disabledSources = $doc.DocumentElement.SelectSingleNode("disabledPackageSources")
139+
if ($disabledSources -ne $null) {
140+
Write-Host "Checking for any darc-int disabled package sources in the disabledPackageSources node"
141+
EnablePrivatePackageSources -DisabledPackageSources $disabledSources
142+
}
143+
126144
$userName = "dn-bot"
127145

128146
# Insert credential nodes for Maestro's private feeds
129147
InsertMaestroPrivateFeedCredentials -Sources $sources -Creds $creds -Username $userName -Password $Password
130148

131-
$dotnet3Source = $sources.SelectSingleNode("add[@key='dotnet3']")
132-
if ($dotnet3Source -ne $null) {
133-
AddPackageSource -Sources $sources -SourceName "dotnet3-internal" -SourceEndPoint "https://pkgs.dev.azure.com/dnceng/_packaging/dotnet3-internal/nuget/v2" -Creds $creds -Username $userName -Password $Password
134-
AddPackageSource -Sources $sources -SourceName "dotnet3-internal-transport" -SourceEndPoint "https://pkgs.dev.azure.com/dnceng/_packaging/dotnet3-internal-transport/nuget/v2" -Creds $creds -Username $userName -Password $Password
135-
}
136-
137149
$dotnet31Source = $sources.SelectSingleNode("add[@key='dotnet3.1']")
138150
if ($dotnet31Source -ne $null) {
139151
AddPackageSource -Sources $sources -SourceName "dotnet3.1-internal" -SourceEndPoint "https://pkgs.dev.azure.com/dnceng/_packaging/dotnet3.1-internal/nuget/v2" -Creds $creds -Username $userName -Password $Password
140152
AddPackageSource -Sources $sources -SourceName "dotnet3.1-internal-transport" -SourceEndPoint "https://pkgs.dev.azure.com/dnceng/_packaging/dotnet3.1-internal-transport/nuget/v2" -Creds $creds -Username $userName -Password $Password
141153
}
142154

155+
$dotnet5Source = $sources.SelectSingleNode("add[@key='dotnet5']")
156+
if ($dotnet5Source -ne $null) {
157+
AddPackageSource -Sources $sources -SourceName "dotnet5-internal" -SourceEndPoint "https://pkgs.dev.azure.com/dnceng/internal/_packaging/dotnet5-internal/nuget/v2" -Creds $creds -Username $userName -Password $Password
158+
AddPackageSource -Sources $sources -SourceName "dotnet5-internal-transport" -SourceEndPoint "https://pkgs.dev.azure.com/dnceng/internal/_packaging/dotnet5-internal-transport/nuget/v2" -Creds $creds -Username $userName -Password $Password
159+
}
160+
143161
$doc.Save($filename)

eng/common/SetupNugetSources.sh

Lines changed: 41 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
# See example YAML call for this script below. Note the use of the variable `$(dn-bot-dnceng-artifact-feeds-rw)`
1414
# from the AzureDevOps-Artifact-Feeds-Pats variable group.
1515
#
16+
# Any disabledPackageSources entries which start with "darc-int" will be re-enabled as part of this script executing.
17+
#
1618
# - task: Bash@3
1719
# displayName: Setup Private Feeds Credentials
1820
# inputs:
@@ -63,7 +65,7 @@ if [ "$?" != "0" ]; then
6365
ConfigNodeHeader="<configuration>"
6466
PackageSourcesTemplate="${TB}<packageSources>${NL}${TB}</packageSources>"
6567

66-
sed -i.bak "s|$ConfigNodeHeader|$ConfigNodeHeader${NL}$PackageSourcesTemplate|" NuGet.config
68+
sed -i.bak "s|$ConfigNodeHeader|$ConfigNodeHeader${NL}$PackageSourcesTemplate|" $ConfigFile
6769
fi
6870

6971
# Ensure there is a <packageSourceCredentials>...</packageSourceCredentials> section.
@@ -74,58 +76,57 @@ if [ "$?" != "0" ]; then
7476
PackageSourcesNodeFooter="</packageSources>"
7577
PackageSourceCredentialsTemplate="${TB}<packageSourceCredentials>${NL}${TB}</packageSourceCredentials>"
7678

77-
sed -i.bak "s|$PackageSourcesNodeFooter|$PackageSourcesNodeFooter${NL}$PackageSourceCredentialsTemplate|" NuGet.config
79+
sed -i.bak "s|$PackageSourcesNodeFooter|$PackageSourcesNodeFooter${NL}$PackageSourceCredentialsTemplate|" $ConfigFile
7880
fi
7981

8082
PackageSources=()
8183

82-
# Ensure dotnet3-internal and dotnet3-internal-transport are in the packageSources if the public dotnet3 feeds are present
83-
grep -i "<add key=\"dotnet3\"" $ConfigFile
84-
84+
# Ensure dotnet3.1-internal and dotnet3.1-internal-transport are in the packageSources if the public dotnet3.1 feeds are present
85+
grep -i "<add key=\"dotnet3.1\"" $ConfigFile
8586
if [ "$?" == "0" ]; then
86-
grep -i "<add key=\"dotnet3-internal\">" $ConfigFile
87+
grep -i "<add key=\"dotnet3.1-internal\"" $ConfigFile
8788
if [ "$?" != "0" ]; then
88-
echo "Adding dotnet3-internal to the packageSources."
89+
echo "Adding dotnet3.1-internal to the packageSources."
8990
PackageSourcesNodeFooter="</packageSources>"
90-
PackageSourceTemplate="${TB}<add key=\"dotnet3-internal\" value=\"https://pkgs.dev.azure.com/dnceng/_packaging/dotnet3-internal/nuget/v2\" />"
91+
PackageSourceTemplate="${TB}<add key=\"dotnet3.1-internal\" value=\"https://pkgs.dev.azure.com/dnceng/_packaging/dotnet3.1-internal/nuget/v2\" />"
9192

9293
sed -i.bak "s|$PackageSourcesNodeFooter|$PackageSourceTemplate${NL}$PackageSourcesNodeFooter|" $ConfigFile
9394
fi
94-
PackageSources+=('dotnet3-internal')
95+
PackageSources+=('dotnet3.1-internal')
9596

96-
grep -i "<add key=\"dotnet3-internal-transport\"" $ConfigFile
97+
grep -i "<add key=\"dotnet3.1-internal-transport\">" $ConfigFile
9798
if [ "$?" != "0" ]; then
98-
echo "Adding dotnet3-internal-transport to the packageSources."
99+
echo "Adding dotnet3.1-internal-transport to the packageSources."
99100
PackageSourcesNodeFooter="</packageSources>"
100-
PackageSourceTemplate="${TB}<add key=\"dotnet3-internal-transport\" value=\"https://pkgs.dev.azure.com/dnceng/_packaging/dotnet3-internal-transport/nuget/v2\" />"
101+
PackageSourceTemplate="${TB}<add key=\"dotnet3.1-internal-transport\" value=\"https://pkgs.dev.azure.com/dnceng/_packaging/dotnet3.1-internal-transport/nuget/v2\" />"
101102

102103
sed -i.bak "s|$PackageSourcesNodeFooter|$PackageSourceTemplate${NL}$PackageSourcesNodeFooter|" $ConfigFile
103104
fi
104-
PackageSources+=('dotnet3-internal-transport')
105+
PackageSources+=('dotnet3.1-internal-transport')
105106
fi
106107

107-
# Ensure dotnet3.1-internal and dotnet3.1-internal-transport are in the packageSources if the public dotnet3.1 feeds are present
108-
grep -i "<add key=\"dotnet3.1\"" $ConfigFile
108+
# Ensure dotnet5-internal and dotnet5-internal-transport are in the packageSources if the public dotnet5 feeds are present
109+
grep -i "<add key=\"dotnet5\"" $ConfigFile
109110
if [ "$?" == "0" ]; then
110-
grep -i "<add key=\"dotnet3.1-internal\"" $ConfigFile
111+
grep -i "<add key=\"dotnet5-internal\"" $ConfigFile
111112
if [ "$?" != "0" ]; then
112-
echo "Adding dotnet3.1-internal to the packageSources."
113+
echo "Adding dotnet5-internal to the packageSources."
113114
PackageSourcesNodeFooter="</packageSources>"
114-
PackageSourceTemplate="${TB}<add key=\"dotnet3.1-internal\" value=\"https://pkgs.dev.azure.com/dnceng/_packaging/dotnet3.1-internal/nuget/v2\" />"
115+
PackageSourceTemplate="${TB}<add key=\"dotnet5-internal\" value=\"https://pkgs.dev.azure.com/dnceng/internal/_packaging/dotnet5-internal/nuget/v2\" />"
115116

116117
sed -i.bak "s|$PackageSourcesNodeFooter|$PackageSourceTemplate${NL}$PackageSourcesNodeFooter|" $ConfigFile
117118
fi
118-
PackageSources+=('dotnet3.1-internal')
119+
PackageSources+=('dotnet5-internal')
119120

120-
grep -i "<add key=\"dotnet3.1-internal-transport\">" $ConfigFile
121+
grep -i "<add key=\"dotnet5-internal-transport\">" $ConfigFile
121122
if [ "$?" != "0" ]; then
122-
echo "Adding dotnet3.1-internal-transport to the packageSources."
123+
echo "Adding dotnet5-internal-transport to the packageSources."
123124
PackageSourcesNodeFooter="</packageSources>"
124-
PackageSourceTemplate="${TB}<add key=\"dotnet3.1-internal-transport\" value=\"https://pkgs.dev.azure.com/dnceng/_packaging/dotnet3.1-internal-transport/nuget/v2\" />"
125+
PackageSourceTemplate="${TB}<add key=\"dotnet5-internal-transport\" value=\"https://pkgs.dev.azure.com/dnceng/internal/_packaging/dotnet5-internal-transport/nuget/v2\" />"
125126

126127
sed -i.bak "s|$PackageSourcesNodeFooter|$PackageSourceTemplate${NL}$PackageSourcesNodeFooter|" $ConfigFile
127128
fi
128-
PackageSources+=('dotnet3.1-internal-transport')
129+
PackageSources+=('dotnet5-internal-transport')
129130
fi
130131

131132
# I want things split line by line
@@ -147,3 +148,20 @@ for FeedName in ${PackageSources[@]} ; do
147148
sed -i.bak "s|$PackageSourceCredentialsNodeFooter|$NewCredential${NL}$PackageSourceCredentialsNodeFooter|" $ConfigFile
148149
fi
149150
done
151+
152+
# Re-enable any entries in disabledPackageSources where the feed name contains darc-int
153+
grep -i "<disabledPackageSources>" $ConfigFile
154+
if [ "$?" == "0" ]; then
155+
DisabledDarcIntSources=()
156+
echo "Re-enabling any disabled \"darc-int\" package sources in $ConfigFile"
157+
DisabledDarcIntSources+=$(grep -oh '"darc-int-[^"]*" value="true"' $ConfigFile | tr -d '"')
158+
for DisabledSourceName in ${DisabledDarcIntSources[@]} ; do
159+
if [[ $DisabledSourceName == darc-int* ]]
160+
then
161+
OldDisableValue="<add key=\"$DisabledSourceName\" value=\"true\" />"
162+
NewDisableValue="<!-- Reenabled for build : $DisabledSourceName -->"
163+
sed -i.bak "s|$OldDisableValue|$NewDisableValue|" $ConfigFile
164+
echo "Neutralized disablePackageSources entry for '$DisabledSourceName'"
165+
fi
166+
done
167+
fi

eng/common/build.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ Param(
2323
[switch][Alias('nobl')]$excludeCIBinarylog,
2424
[switch] $ci,
2525
[switch] $prepareMachine,
26+
[string] $runtimeSourceFeed = '',
27+
[string] $runtimeSourceFeedKey = '',
2628
[switch] $help,
2729
[Parameter(ValueFromRemainingArguments=$true)][String[]]$properties
2830
)

eng/common/build.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,10 @@ projects=''
7676
configuration='Debug'
7777
prepare_machine=false
7878
verbosity='minimal'
79+
runtime_source_feed=''
80+
runtime_source_feed_key=''
7981

8082
properties=''
81-
8283
while [[ $# > 0 ]]; do
8384
opt="$(echo "${1/#--/-}" | awk '{print tolower($0)}')"
8485
case "$opt" in
@@ -151,6 +152,14 @@ while [[ $# > 0 ]]; do
151152
node_reuse=$2
152153
shift
153154
;;
155+
-runtimesourcefeed)
156+
runtime_source_feed=$2
157+
shift
158+
;;
159+
-runtimesourcefeedkey)
160+
runtime_source_feed_key=$2
161+
shift
162+
;;
154163
*)
155164
properties="$properties $1"
156165
;;
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
#!/usr/bin/env bash
2+
set -e
3+
4+
__CrossDir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
5+
__TIZEN_CROSSDIR="$__CrossDir/tizen"
6+
7+
if [[ -z "$ROOTFS_DIR" ]]; then
8+
echo "ROOTFS_DIR is not defined."
9+
exit 1;
10+
fi
11+
12+
TIZEN_TMP_DIR=$ROOTFS_DIR/tizen_tmp
13+
mkdir -p $TIZEN_TMP_DIR
14+
15+
# Download files
16+
echo ">>Start downloading files"
17+
VERBOSE=1 $__CrossDir/tizen-fetch.sh $TIZEN_TMP_DIR
18+
echo "<<Finish downloading files"
19+
20+
echo ">>Start constructing Tizen rootfs"
21+
TIZEN_RPM_FILES=`ls $TIZEN_TMP_DIR/*.rpm`
22+
cd $ROOTFS_DIR
23+
for f in $TIZEN_RPM_FILES; do
24+
rpm2cpio $f | cpio -idm --quiet
25+
done
26+
echo "<<Finish constructing Tizen rootfs"
27+
28+
# Cleanup tmp
29+
rm -rf $TIZEN_TMP_DIR
30+
31+
# Configure Tizen rootfs
32+
echo ">>Start configuring Tizen rootfs"
33+
ln -sfn asm-arm64 ./usr/include/asm
34+
patch -p1 < $__TIZEN_CROSSDIR/tizen.patch
35+
echo "<<Finish configuring Tizen rootfs"

0 commit comments

Comments
 (0)