Update dependencies from https://github.com/dotnet/arcade build 20221209.3 (#1386)
[main] Update dependencies from dotnet/arcade
This commit is contained in:
Родитель
27054ed4a1
Коммит
f0418404c1
|
@ -11,25 +11,25 @@
|
||||||
</Dependency>
|
</Dependency>
|
||||||
</ProductDependencies>
|
</ProductDependencies>
|
||||||
<ToolsetDependencies>
|
<ToolsetDependencies>
|
||||||
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="8.0.0-beta.22579.2">
|
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="8.0.0-beta.22609.3">
|
||||||
<Uri>https://github.com/dotnet/arcade</Uri>
|
<Uri>https://github.com/dotnet/arcade</Uri>
|
||||||
<Sha>6b3bad6673f3ebe89ebe12ea7c4eff1705b893e6</Sha>
|
<Sha>3e24006ee217f68b0c8a36cf272536ac239c9c47</Sha>
|
||||||
</Dependency>
|
</Dependency>
|
||||||
<Dependency Name="Microsoft.DotNet.Build.Tasks.Feed" Version="8.0.0-beta.22579.2">
|
<Dependency Name="Microsoft.DotNet.Build.Tasks.Feed" Version="8.0.0-beta.22609.3">
|
||||||
<Uri>https://github.com/dotnet/arcade</Uri>
|
<Uri>https://github.com/dotnet/arcade</Uri>
|
||||||
<Sha>6b3bad6673f3ebe89ebe12ea7c4eff1705b893e6</Sha>
|
<Sha>3e24006ee217f68b0c8a36cf272536ac239c9c47</Sha>
|
||||||
</Dependency>
|
</Dependency>
|
||||||
<Dependency Name="Microsoft.DotNet.SignTool" Version="8.0.0-beta.22579.2">
|
<Dependency Name="Microsoft.DotNet.SignTool" Version="8.0.0-beta.22609.3">
|
||||||
<Uri>https://github.com/dotnet/arcade</Uri>
|
<Uri>https://github.com/dotnet/arcade</Uri>
|
||||||
<Sha>6b3bad6673f3ebe89ebe12ea7c4eff1705b893e6</Sha>
|
<Sha>3e24006ee217f68b0c8a36cf272536ac239c9c47</Sha>
|
||||||
</Dependency>
|
</Dependency>
|
||||||
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="8.0.0-beta.22579.2">
|
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="8.0.0-beta.22609.3">
|
||||||
<Uri>https://github.com/dotnet/arcade</Uri>
|
<Uri>https://github.com/dotnet/arcade</Uri>
|
||||||
<Sha>6b3bad6673f3ebe89ebe12ea7c4eff1705b893e6</Sha>
|
<Sha>3e24006ee217f68b0c8a36cf272536ac239c9c47</Sha>
|
||||||
</Dependency>
|
</Dependency>
|
||||||
<Dependency Name="Microsoft.DotNet.SwaggerGenerator.MSBuild" Version="8.0.0-beta.22579.2">
|
<Dependency Name="Microsoft.DotNet.SwaggerGenerator.MSBuild" Version="8.0.0-beta.22609.3">
|
||||||
<Uri>https://github.com/dotnet/arcade</Uri>
|
<Uri>https://github.com/dotnet/arcade</Uri>
|
||||||
<Sha>6b3bad6673f3ebe89ebe12ea7c4eff1705b893e6</Sha>
|
<Sha>3e24006ee217f68b0c8a36cf272536ac239c9c47</Sha>
|
||||||
</Dependency>
|
</Dependency>
|
||||||
<Dependency Name="Microsoft.DotNet.Maestro.Client" Version="1.1.0-beta.20258.6">
|
<Dependency Name="Microsoft.DotNet.Maestro.Client" Version="1.1.0-beta.20258.6">
|
||||||
<Uri>https://github.com/dotnet/arcade-services</Uri>
|
<Uri>https://github.com/dotnet/arcade-services</Uri>
|
||||||
|
|
|
@ -67,8 +67,8 @@
|
||||||
<XUnitVersion>2.4.1</XUnitVersion>
|
<XUnitVersion>2.4.1</XUnitVersion>
|
||||||
<XUnitAbstractionsVersion>2.0.3</XUnitAbstractionsVersion>
|
<XUnitAbstractionsVersion>2.0.3</XUnitAbstractionsVersion>
|
||||||
<XUnitVSRunnerVersion>2.4.1</XUnitVSRunnerVersion>
|
<XUnitVSRunnerVersion>2.4.1</XUnitVSRunnerVersion>
|
||||||
<MicrosoftDotNetBuildTasksFeedVersion>8.0.0-beta.22579.2</MicrosoftDotNetBuildTasksFeedVersion>
|
<MicrosoftDotNetBuildTasksFeedVersion>8.0.0-beta.22609.3</MicrosoftDotNetBuildTasksFeedVersion>
|
||||||
<MicrosoftDotNetSignToolVersion>8.0.0-beta.22579.2</MicrosoftDotNetSignToolVersion>
|
<MicrosoftDotNetSignToolVersion>8.0.0-beta.22609.3</MicrosoftDotNetSignToolVersion>
|
||||||
<MicrosoftAzureDocumentDBVersion>1.22.0</MicrosoftAzureDocumentDBVersion>
|
<MicrosoftAzureDocumentDBVersion>1.22.0</MicrosoftAzureDocumentDBVersion>
|
||||||
<MicrosoftAzureCosmosDBTableVersion>1.1.2</MicrosoftAzureCosmosDBTableVersion>
|
<MicrosoftAzureCosmosDBTableVersion>1.1.2</MicrosoftAzureCosmosDBTableVersion>
|
||||||
<MicrosoftAspNetCoreAllVersion>2.0.0</MicrosoftAspNetCoreAllVersion>
|
<MicrosoftAspNetCoreAllVersion>2.0.0</MicrosoftAspNetCoreAllVersion>
|
||||||
|
@ -81,7 +81,7 @@
|
||||||
<MicrosoftDotNetMaestroClientVersion>1.1.0-beta.20258.6</MicrosoftDotNetMaestroClientVersion>
|
<MicrosoftDotNetMaestroClientVersion>1.1.0-beta.20258.6</MicrosoftDotNetMaestroClientVersion>
|
||||||
<MicrosoftSourceLinkGitHubVersion>1.1.0-beta-21101-02</MicrosoftSourceLinkGitHubVersion>
|
<MicrosoftSourceLinkGitHubVersion>1.1.0-beta-21101-02</MicrosoftSourceLinkGitHubVersion>
|
||||||
<MicrosoftSourceLinkAzureReposGitVersion>1.1.0-beta-21101-02</MicrosoftSourceLinkAzureReposGitVersion>
|
<MicrosoftSourceLinkAzureReposGitVersion>1.1.0-beta-21101-02</MicrosoftSourceLinkAzureReposGitVersion>
|
||||||
<MicrosoftDotNetSwaggerGeneratorMSBuildVersion>8.0.0-beta.22579.2</MicrosoftDotNetSwaggerGeneratorMSBuildVersion>
|
<MicrosoftDotNetSwaggerGeneratorMSBuildVersion>8.0.0-beta.22609.3</MicrosoftDotNetSwaggerGeneratorMSBuildVersion>
|
||||||
<MicrosoftDotNetXliffTasksVersion>1.0.0-beta.21376.1</MicrosoftDotNetXliffTasksVersion>
|
<MicrosoftDotNetXliffTasksVersion>1.0.0-beta.21376.1</MicrosoftDotNetXliffTasksVersion>
|
||||||
<MicrosoftDotNetMaestroTasksVersion>1.1.0-beta.21117.3</MicrosoftDotNetMaestroTasksVersion>
|
<MicrosoftDotNetMaestroTasksVersion>1.1.0-beta.21117.3</MicrosoftDotNetMaestroTasksVersion>
|
||||||
<MicrosoftDotNetXHarnessCLIVersion>1.0.0-prerelease.21103.1</MicrosoftDotNetXHarnessCLIVersion>
|
<MicrosoftDotNetXHarnessCLIVersion>1.0.0-prerelease.21103.1</MicrosoftDotNetXHarnessCLIVersion>
|
||||||
|
|
|
@ -1,170 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
set -e
|
|
||||||
|
|
||||||
if [[ -z "${VERBOSE// }" ]] || [ "$VERBOSE" -ne "$VERBOSE" ] 2>/dev/null; then
|
|
||||||
VERBOSE=0
|
|
||||||
fi
|
|
||||||
|
|
||||||
Log()
|
|
||||||
{
|
|
||||||
if [ $VERBOSE -ge $1 ]; then
|
|
||||||
echo ${@:2}
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
Inform()
|
|
||||||
{
|
|
||||||
Log 1 -e "\x1B[0;34m$@\x1B[m"
|
|
||||||
}
|
|
||||||
|
|
||||||
Debug()
|
|
||||||
{
|
|
||||||
Log 2 -e "\x1B[0;32m$@\x1B[m"
|
|
||||||
}
|
|
||||||
|
|
||||||
Error()
|
|
||||||
{
|
|
||||||
>&2 Log 0 -e "\x1B[0;31m$@\x1B[m"
|
|
||||||
}
|
|
||||||
|
|
||||||
Fetch()
|
|
||||||
{
|
|
||||||
URL=$1
|
|
||||||
FILE=$2
|
|
||||||
PROGRESS=$3
|
|
||||||
if [ $VERBOSE -ge 1 ] && [ $PROGRESS ]; then
|
|
||||||
CURL_OPT="--progress-bar"
|
|
||||||
else
|
|
||||||
CURL_OPT="--silent"
|
|
||||||
fi
|
|
||||||
curl $CURL_OPT $URL > $FILE
|
|
||||||
}
|
|
||||||
|
|
||||||
hash curl 2> /dev/null || { Error "Require 'curl' Aborting."; exit 1; }
|
|
||||||
hash xmllint 2> /dev/null || { Error "Require 'xmllint' Aborting."; exit 1; }
|
|
||||||
hash sha256sum 2> /dev/null || { Error "Require 'sha256sum' Aborting."; exit 1; }
|
|
||||||
|
|
||||||
TMPDIR=$1
|
|
||||||
if [ ! -d $TMPDIR ]; then
|
|
||||||
TMPDIR=./tizen_tmp
|
|
||||||
Debug "Create temporary directory : $TMPDIR"
|
|
||||||
mkdir -p $TMPDIR
|
|
||||||
fi
|
|
||||||
|
|
||||||
TIZEN_URL=http://download.tizen.org/snapshots/TIZEN/Tizen
|
|
||||||
BUILD_XML=build.xml
|
|
||||||
REPOMD_XML=repomd.xml
|
|
||||||
PRIMARY_XML=primary.xml
|
|
||||||
TARGET_URL="http://__not_initialized"
|
|
||||||
|
|
||||||
Xpath_get()
|
|
||||||
{
|
|
||||||
XPATH_RESULT=''
|
|
||||||
XPATH=$1
|
|
||||||
XML_FILE=$2
|
|
||||||
RESULT=$(xmllint --xpath $XPATH $XML_FILE)
|
|
||||||
if [[ -z ${RESULT// } ]]; then
|
|
||||||
Error "Can not find target from $XML_FILE"
|
|
||||||
Debug "Xpath = $XPATH"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
XPATH_RESULT=$RESULT
|
|
||||||
}
|
|
||||||
|
|
||||||
fetch_tizen_pkgs_init()
|
|
||||||
{
|
|
||||||
TARGET=$1
|
|
||||||
PROFILE=$2
|
|
||||||
Debug "Initialize TARGET=$TARGET, PROFILE=$PROFILE"
|
|
||||||
|
|
||||||
TMP_PKG_DIR=$TMPDIR/tizen_${PROFILE}_pkgs
|
|
||||||
if [ -d $TMP_PKG_DIR ]; then rm -rf $TMP_PKG_DIR; fi
|
|
||||||
mkdir -p $TMP_PKG_DIR
|
|
||||||
|
|
||||||
PKG_URL=$TIZEN_URL/$PROFILE/latest
|
|
||||||
|
|
||||||
BUILD_XML_URL=$PKG_URL/$BUILD_XML
|
|
||||||
TMP_BUILD=$TMP_PKG_DIR/$BUILD_XML
|
|
||||||
TMP_REPOMD=$TMP_PKG_DIR/$REPOMD_XML
|
|
||||||
TMP_PRIMARY=$TMP_PKG_DIR/$PRIMARY_XML
|
|
||||||
TMP_PRIMARYGZ=${TMP_PRIMARY}.gz
|
|
||||||
|
|
||||||
Fetch $BUILD_XML_URL $TMP_BUILD
|
|
||||||
|
|
||||||
Debug "fetch $BUILD_XML_URL to $TMP_BUILD"
|
|
||||||
|
|
||||||
TARGET_XPATH="//build/buildtargets/buildtarget[@name=\"$TARGET\"]/repo[@type=\"binary\"]/text()"
|
|
||||||
Xpath_get $TARGET_XPATH $TMP_BUILD
|
|
||||||
TARGET_PATH=$XPATH_RESULT
|
|
||||||
TARGET_URL=$PKG_URL/$TARGET_PATH
|
|
||||||
|
|
||||||
REPOMD_URL=$TARGET_URL/repodata/repomd.xml
|
|
||||||
PRIMARY_XPATH='string(//*[local-name()="data"][@type="primary"]/*[local-name()="location"]/@href)'
|
|
||||||
|
|
||||||
Fetch $REPOMD_URL $TMP_REPOMD
|
|
||||||
|
|
||||||
Debug "fetch $REPOMD_URL to $TMP_REPOMD"
|
|
||||||
|
|
||||||
Xpath_get $PRIMARY_XPATH $TMP_REPOMD
|
|
||||||
PRIMARY_XML_PATH=$XPATH_RESULT
|
|
||||||
PRIMARY_URL=$TARGET_URL/$PRIMARY_XML_PATH
|
|
||||||
|
|
||||||
Fetch $PRIMARY_URL $TMP_PRIMARYGZ
|
|
||||||
|
|
||||||
Debug "fetch $PRIMARY_URL to $TMP_PRIMARYGZ"
|
|
||||||
|
|
||||||
gunzip $TMP_PRIMARYGZ
|
|
||||||
|
|
||||||
Debug "unzip $TMP_PRIMARYGZ to $TMP_PRIMARY"
|
|
||||||
}
|
|
||||||
|
|
||||||
fetch_tizen_pkgs()
|
|
||||||
{
|
|
||||||
ARCH=$1
|
|
||||||
PACKAGE_XPATH_TPL='string(//*[local-name()="metadata"]/*[local-name()="package"][*[local-name()="name"][text()="_PKG_"]][*[local-name()="arch"][text()="_ARCH_"]]/*[local-name()="location"]/@href)'
|
|
||||||
|
|
||||||
PACKAGE_CHECKSUM_XPATH_TPL='string(//*[local-name()="metadata"]/*[local-name()="package"][*[local-name()="name"][text()="_PKG_"]][*[local-name()="arch"][text()="_ARCH_"]]/*[local-name()="checksum"]/text())'
|
|
||||||
|
|
||||||
for pkg in ${@:2}
|
|
||||||
do
|
|
||||||
Inform "Fetching... $pkg"
|
|
||||||
XPATH=${PACKAGE_XPATH_TPL/_PKG_/$pkg}
|
|
||||||
XPATH=${XPATH/_ARCH_/$ARCH}
|
|
||||||
Xpath_get $XPATH $TMP_PRIMARY
|
|
||||||
PKG_PATH=$XPATH_RESULT
|
|
||||||
|
|
||||||
XPATH=${PACKAGE_CHECKSUM_XPATH_TPL/_PKG_/$pkg}
|
|
||||||
XPATH=${XPATH/_ARCH_/$ARCH}
|
|
||||||
Xpath_get $XPATH $TMP_PRIMARY
|
|
||||||
CHECKSUM=$XPATH_RESULT
|
|
||||||
|
|
||||||
PKG_URL=$TARGET_URL/$PKG_PATH
|
|
||||||
PKG_FILE=$(basename $PKG_PATH)
|
|
||||||
PKG_PATH=$TMPDIR/$PKG_FILE
|
|
||||||
|
|
||||||
Debug "Download $PKG_URL to $PKG_PATH"
|
|
||||||
Fetch $PKG_URL $PKG_PATH true
|
|
||||||
|
|
||||||
echo "$CHECKSUM $PKG_PATH" | sha256sum -c - > /dev/null
|
|
||||||
if [ $? -ne 0 ]; then
|
|
||||||
Error "Fail to fetch $PKG_URL to $PKG_PATH"
|
|
||||||
Debug "Checksum = $CHECKSUM"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
Inform "Initialize armel base"
|
|
||||||
fetch_tizen_pkgs_init standard Tizen-Base
|
|
||||||
Inform "fetch common packages"
|
|
||||||
fetch_tizen_pkgs armv7l gcc gcc-devel-static glibc glibc-devel libicu libicu-devel libatomic linux-glibc-devel keyutils keyutils-devel libkeyutils
|
|
||||||
Inform "fetch coreclr packages"
|
|
||||||
fetch_tizen_pkgs armv7l lldb lldb-devel libgcc libstdc++ libstdc++-devel libunwind libunwind-devel lttng-ust-devel lttng-ust userspace-rcu-devel userspace-rcu
|
|
||||||
Inform "fetch corefx packages"
|
|
||||||
fetch_tizen_pkgs armv7l libcom_err libcom_err-devel zlib zlib-devel libopenssl11 libopenssl1.1-devel krb5 krb5-devel
|
|
||||||
|
|
||||||
Inform "Initialize standard unified"
|
|
||||||
fetch_tizen_pkgs_init standard Tizen-Unified
|
|
||||||
Inform "fetch corefx packages"
|
|
||||||
fetch_tizen_pkgs armv7l gssdp gssdp-devel tizen-release
|
|
||||||
|
|
|
@ -501,7 +501,7 @@ elif [[ -n "$__CodeName" ]]; then
|
||||||
popd
|
popd
|
||||||
fi
|
fi
|
||||||
elif [[ "$__Tizen" == "tizen" ]]; then
|
elif [[ "$__Tizen" == "tizen" ]]; then
|
||||||
ROOTFS_DIR="$__RootfsDir" "$__CrossDir/$__BuildArch/tizen-build-rootfs.sh"
|
ROOTFS_DIR="$__RootfsDir" "$__CrossDir/tizen-build-rootfs.sh" "$__BuildArch"
|
||||||
else
|
else
|
||||||
echo "Unsupported target platform."
|
echo "Unsupported target platform."
|
||||||
usage;
|
usage;
|
||||||
|
|
|
@ -1,8 +1,34 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
__ARM_SOFTFP_CrossDir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
ARCH=$1
|
||||||
__TIZEN_CROSSDIR="$__ARM_SOFTFP_CrossDir/tizen"
|
LINK_ARCH=$ARCH
|
||||||
|
|
||||||
|
case "$ARCH" in
|
||||||
|
arm)
|
||||||
|
TIZEN_ARCH="armv7hl"
|
||||||
|
;;
|
||||||
|
armel)
|
||||||
|
TIZEN_ARCH="armv7l"
|
||||||
|
LINK_ARCH="arm"
|
||||||
|
;;
|
||||||
|
arm64)
|
||||||
|
TIZEN_ARCH="aarch64"
|
||||||
|
;;
|
||||||
|
x86)
|
||||||
|
TIZEN_ARCH="i686"
|
||||||
|
;;
|
||||||
|
x64)
|
||||||
|
TIZEN_ARCH="x86_64"
|
||||||
|
LINK_ARCH="x86"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "Unsupported architecture for tizen: $ARCH"
|
||||||
|
exit 1
|
||||||
|
esac
|
||||||
|
|
||||||
|
__CrossDir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
||||||
|
__TIZEN_CROSSDIR="$__CrossDir/${ARCH}/tizen"
|
||||||
|
|
||||||
if [[ -z "$ROOTFS_DIR" ]]; then
|
if [[ -z "$ROOTFS_DIR" ]]; then
|
||||||
echo "ROOTFS_DIR is not defined."
|
echo "ROOTFS_DIR is not defined."
|
||||||
|
@ -14,7 +40,7 @@ mkdir -p $TIZEN_TMP_DIR
|
||||||
|
|
||||||
# Download files
|
# Download files
|
||||||
echo ">>Start downloading files"
|
echo ">>Start downloading files"
|
||||||
VERBOSE=1 $__ARM_SOFTFP_CrossDir/tizen-fetch.sh $TIZEN_TMP_DIR
|
VERBOSE=1 $__CrossDir/tizen-fetch.sh $TIZEN_TMP_DIR $TIZEN_ARCH
|
||||||
echo "<<Finish downloading files"
|
echo "<<Finish downloading files"
|
||||||
|
|
||||||
echo ">>Start constructing Tizen rootfs"
|
echo ">>Start constructing Tizen rootfs"
|
||||||
|
@ -30,6 +56,6 @@ rm -rf $TIZEN_TMP_DIR
|
||||||
|
|
||||||
# Configure Tizen rootfs
|
# Configure Tizen rootfs
|
||||||
echo ">>Start configuring Tizen rootfs"
|
echo ">>Start configuring Tizen rootfs"
|
||||||
ln -sfn asm-arm ./usr/include/asm
|
ln -sfn asm-${LINK_ARCH} ./usr/include/asm
|
||||||
patch -p1 < $__TIZEN_CROSSDIR/tizen.patch
|
patch -p1 < $__TIZEN_CROSSDIR/tizen.patch
|
||||||
echo "<<Finish configuring Tizen rootfs"
|
echo "<<Finish configuring Tizen rootfs"
|
|
@ -0,0 +1,172 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
if [[ -z "${VERBOSE// }" ]] || [ "$VERBOSE" -ne "$VERBOSE" ] 2>/dev/null; then
|
||||||
|
VERBOSE=0
|
||||||
|
fi
|
||||||
|
|
||||||
|
Log()
|
||||||
|
{
|
||||||
|
if [ $VERBOSE -ge $1 ]; then
|
||||||
|
echo ${@:2}
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
Inform()
|
||||||
|
{
|
||||||
|
Log 1 -e "\x1B[0;34m$@\x1B[m"
|
||||||
|
}
|
||||||
|
|
||||||
|
Debug()
|
||||||
|
{
|
||||||
|
Log 2 -e "\x1B[0;32m$@\x1B[m"
|
||||||
|
}
|
||||||
|
|
||||||
|
Error()
|
||||||
|
{
|
||||||
|
>&2 Log 0 -e "\x1B[0;31m$@\x1B[m"
|
||||||
|
}
|
||||||
|
|
||||||
|
Fetch()
|
||||||
|
{
|
||||||
|
URL=$1
|
||||||
|
FILE=$2
|
||||||
|
PROGRESS=$3
|
||||||
|
if [ $VERBOSE -ge 1 ] && [ $PROGRESS ]; then
|
||||||
|
CURL_OPT="--progress-bar"
|
||||||
|
else
|
||||||
|
CURL_OPT="--silent"
|
||||||
|
fi
|
||||||
|
curl $CURL_OPT $URL > $FILE
|
||||||
|
}
|
||||||
|
|
||||||
|
hash curl 2> /dev/null || { Error "Require 'curl' Aborting."; exit 1; }
|
||||||
|
hash xmllint 2> /dev/null || { Error "Require 'xmllint' Aborting."; exit 1; }
|
||||||
|
hash sha256sum 2> /dev/null || { Error "Require 'sha256sum' Aborting."; exit 1; }
|
||||||
|
|
||||||
|
TMPDIR=$1
|
||||||
|
if [ ! -d $TMPDIR ]; then
|
||||||
|
TMPDIR=./tizen_tmp
|
||||||
|
Debug "Create temporary directory : $TMPDIR"
|
||||||
|
mkdir -p $TMPDIR
|
||||||
|
fi
|
||||||
|
|
||||||
|
TIZEN_ARCH=$2
|
||||||
|
|
||||||
|
TIZEN_URL=http://download.tizen.org/snapshots/TIZEN/Tizen
|
||||||
|
BUILD_XML=build.xml
|
||||||
|
REPOMD_XML=repomd.xml
|
||||||
|
PRIMARY_XML=primary.xml
|
||||||
|
TARGET_URL="http://__not_initialized"
|
||||||
|
|
||||||
|
Xpath_get()
|
||||||
|
{
|
||||||
|
XPATH_RESULT=''
|
||||||
|
XPATH=$1
|
||||||
|
XML_FILE=$2
|
||||||
|
RESULT=$(xmllint --xpath $XPATH $XML_FILE)
|
||||||
|
if [[ -z ${RESULT// } ]]; then
|
||||||
|
Error "Can not find target from $XML_FILE"
|
||||||
|
Debug "Xpath = $XPATH"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
XPATH_RESULT=$RESULT
|
||||||
|
}
|
||||||
|
|
||||||
|
fetch_tizen_pkgs_init()
|
||||||
|
{
|
||||||
|
TARGET=$1
|
||||||
|
PROFILE=$2
|
||||||
|
Debug "Initialize TARGET=$TARGET, PROFILE=$PROFILE"
|
||||||
|
|
||||||
|
TMP_PKG_DIR=$TMPDIR/tizen_${PROFILE}_pkgs
|
||||||
|
if [ -d $TMP_PKG_DIR ]; then rm -rf $TMP_PKG_DIR; fi
|
||||||
|
mkdir -p $TMP_PKG_DIR
|
||||||
|
|
||||||
|
PKG_URL=$TIZEN_URL/$PROFILE/latest
|
||||||
|
|
||||||
|
BUILD_XML_URL=$PKG_URL/$BUILD_XML
|
||||||
|
TMP_BUILD=$TMP_PKG_DIR/$BUILD_XML
|
||||||
|
TMP_REPOMD=$TMP_PKG_DIR/$REPOMD_XML
|
||||||
|
TMP_PRIMARY=$TMP_PKG_DIR/$PRIMARY_XML
|
||||||
|
TMP_PRIMARYGZ=${TMP_PRIMARY}.gz
|
||||||
|
|
||||||
|
Fetch $BUILD_XML_URL $TMP_BUILD
|
||||||
|
|
||||||
|
Debug "fetch $BUILD_XML_URL to $TMP_BUILD"
|
||||||
|
|
||||||
|
TARGET_XPATH="//build/buildtargets/buildtarget[@name=\"$TARGET\"]/repo[@type=\"binary\"]/text()"
|
||||||
|
Xpath_get $TARGET_XPATH $TMP_BUILD
|
||||||
|
TARGET_PATH=$XPATH_RESULT
|
||||||
|
TARGET_URL=$PKG_URL/$TARGET_PATH
|
||||||
|
|
||||||
|
REPOMD_URL=$TARGET_URL/repodata/repomd.xml
|
||||||
|
PRIMARY_XPATH='string(//*[local-name()="data"][@type="primary"]/*[local-name()="location"]/@href)'
|
||||||
|
|
||||||
|
Fetch $REPOMD_URL $TMP_REPOMD
|
||||||
|
|
||||||
|
Debug "fetch $REPOMD_URL to $TMP_REPOMD"
|
||||||
|
|
||||||
|
Xpath_get $PRIMARY_XPATH $TMP_REPOMD
|
||||||
|
PRIMARY_XML_PATH=$XPATH_RESULT
|
||||||
|
PRIMARY_URL=$TARGET_URL/$PRIMARY_XML_PATH
|
||||||
|
|
||||||
|
Fetch $PRIMARY_URL $TMP_PRIMARYGZ
|
||||||
|
|
||||||
|
Debug "fetch $PRIMARY_URL to $TMP_PRIMARYGZ"
|
||||||
|
|
||||||
|
gunzip $TMP_PRIMARYGZ
|
||||||
|
|
||||||
|
Debug "unzip $TMP_PRIMARYGZ to $TMP_PRIMARY"
|
||||||
|
}
|
||||||
|
|
||||||
|
fetch_tizen_pkgs()
|
||||||
|
{
|
||||||
|
ARCH=$1
|
||||||
|
PACKAGE_XPATH_TPL='string(//*[local-name()="metadata"]/*[local-name()="package"][*[local-name()="name"][text()="_PKG_"]][*[local-name()="arch"][text()="_ARCH_"]]/*[local-name()="location"]/@href)'
|
||||||
|
|
||||||
|
PACKAGE_CHECKSUM_XPATH_TPL='string(//*[local-name()="metadata"]/*[local-name()="package"][*[local-name()="name"][text()="_PKG_"]][*[local-name()="arch"][text()="_ARCH_"]]/*[local-name()="checksum"]/text())'
|
||||||
|
|
||||||
|
for pkg in ${@:2}
|
||||||
|
do
|
||||||
|
Inform "Fetching... $pkg"
|
||||||
|
XPATH=${PACKAGE_XPATH_TPL/_PKG_/$pkg}
|
||||||
|
XPATH=${XPATH/_ARCH_/$ARCH}
|
||||||
|
Xpath_get $XPATH $TMP_PRIMARY
|
||||||
|
PKG_PATH=$XPATH_RESULT
|
||||||
|
|
||||||
|
XPATH=${PACKAGE_CHECKSUM_XPATH_TPL/_PKG_/$pkg}
|
||||||
|
XPATH=${XPATH/_ARCH_/$ARCH}
|
||||||
|
Xpath_get $XPATH $TMP_PRIMARY
|
||||||
|
CHECKSUM=$XPATH_RESULT
|
||||||
|
|
||||||
|
PKG_URL=$TARGET_URL/$PKG_PATH
|
||||||
|
PKG_FILE=$(basename $PKG_PATH)
|
||||||
|
PKG_PATH=$TMPDIR/$PKG_FILE
|
||||||
|
|
||||||
|
Debug "Download $PKG_URL to $PKG_PATH"
|
||||||
|
Fetch $PKG_URL $PKG_PATH true
|
||||||
|
|
||||||
|
echo "$CHECKSUM $PKG_PATH" | sha256sum -c - > /dev/null
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
Error "Fail to fetch $PKG_URL to $PKG_PATH"
|
||||||
|
Debug "Checksum = $CHECKSUM"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
Inform "Initialize ${TIZEN_ARCH} base"
|
||||||
|
fetch_tizen_pkgs_init standard Tizen-Base
|
||||||
|
Inform "fetch common packages"
|
||||||
|
fetch_tizen_pkgs ${TIZEN_ARCH} gcc gcc-devel-static glibc glibc-devel libicu libicu-devel libatomic linux-glibc-devel keyutils keyutils-devel libkeyutils
|
||||||
|
Inform "fetch coreclr packages"
|
||||||
|
fetch_tizen_pkgs ${TIZEN_ARCH} lldb lldb-devel libgcc libstdc++ libstdc++-devel libunwind libunwind-devel lttng-ust-devel lttng-ust userspace-rcu-devel userspace-rcu
|
||||||
|
Inform "fetch corefx packages"
|
||||||
|
fetch_tizen_pkgs ${TIZEN_ARCH} libcom_err libcom_err-devel zlib zlib-devel libopenssl11 libopenssl1.1-devel krb5 krb5-devel
|
||||||
|
|
||||||
|
Inform "Initialize standard unified"
|
||||||
|
fetch_tizen_pkgs_init standard Tizen-Unified
|
||||||
|
Inform "fetch corefx packages"
|
||||||
|
fetch_tizen_pkgs ${TIZEN_ARCH} gssdp gssdp-devel tizen-release
|
||||||
|
|
|
@ -120,6 +120,10 @@ if(TIZEN)
|
||||||
include_directories(SYSTEM ${CROSS_ROOTFS}/usr/lib/gcc/${TIZEN_TOOLCHAIN}/include/c++/)
|
include_directories(SYSTEM ${CROSS_ROOTFS}/usr/lib/gcc/${TIZEN_TOOLCHAIN}/include/c++/)
|
||||||
include_directories(SYSTEM ${CROSS_ROOTFS}/usr/lib/gcc/${TIZEN_TOOLCHAIN}/include/c++/i586-tizen-linux-gnu)
|
include_directories(SYSTEM ${CROSS_ROOTFS}/usr/lib/gcc/${TIZEN_TOOLCHAIN}/include/c++/i586-tizen-linux-gnu)
|
||||||
endif()
|
endif()
|
||||||
|
if(TARGET_ARCH_NAME STREQUAL "x64")
|
||||||
|
include_directories(SYSTEM ${CROSS_ROOTFS}/usr/lib64/gcc/${TIZEN_TOOLCHAIN}/include/c++/)
|
||||||
|
include_directories(SYSTEM ${CROSS_ROOTFS}/usr/lib64/gcc/${TIZEN_TOOLCHAIN}/include/c++/x86_64-tizen-linux-gnu)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(ANDROID)
|
if(ANDROID)
|
||||||
|
@ -248,7 +252,7 @@ if(TARGET_ARCH_NAME MATCHES "^(arm|armel)$")
|
||||||
add_toolchain_linker_flag("-L${CROSS_ROOTFS}/usr/lib")
|
add_toolchain_linker_flag("-L${CROSS_ROOTFS}/usr/lib")
|
||||||
add_toolchain_linker_flag("-L${CROSS_ROOTFS}/usr/lib/gcc/${TIZEN_TOOLCHAIN}")
|
add_toolchain_linker_flag("-L${CROSS_ROOTFS}/usr/lib/gcc/${TIZEN_TOOLCHAIN}")
|
||||||
endif()
|
endif()
|
||||||
elseif(TARGET_ARCH_NAME STREQUAL "arm64")
|
elseif(TARGET_ARCH_NAME MATCHES "^(arm64|x64)$")
|
||||||
if(TIZEN)
|
if(TIZEN)
|
||||||
add_toolchain_linker_flag("-B${CROSS_ROOTFS}/usr/lib64/gcc/${TIZEN_TOOLCHAIN}")
|
add_toolchain_linker_flag("-B${CROSS_ROOTFS}/usr/lib64/gcc/${TIZEN_TOOLCHAIN}")
|
||||||
add_toolchain_linker_flag("-L${CROSS_ROOTFS}/lib64")
|
add_toolchain_linker_flag("-L${CROSS_ROOTFS}/lib64")
|
||||||
|
|
|
@ -416,12 +416,6 @@ function MSBuild {
|
||||||
export NUGET_PLUGIN_REQUEST_TIMEOUT_IN_SECONDS=20
|
export NUGET_PLUGIN_REQUEST_TIMEOUT_IN_SECONDS=20
|
||||||
Write-PipelineSetVariable -name "NUGET_PLUGIN_HANDSHAKE_TIMEOUT_IN_SECONDS" -value "20"
|
Write-PipelineSetVariable -name "NUGET_PLUGIN_HANDSHAKE_TIMEOUT_IN_SECONDS" -value "20"
|
||||||
Write-PipelineSetVariable -name "NUGET_PLUGIN_REQUEST_TIMEOUT_IN_SECONDS" -value "20"
|
Write-PipelineSetVariable -name "NUGET_PLUGIN_REQUEST_TIMEOUT_IN_SECONDS" -value "20"
|
||||||
|
|
||||||
# https://github.com/dotnet/arcade/issues/11369 - disable new MSBuild server feature on linux
|
|
||||||
# This feature is new and can result in build failures from connection timeout errors.
|
|
||||||
export DOTNET_CLI_DO_NOT_USE_MSBUILD_SERVER=1
|
|
||||||
Write-PipelineSetVariable -name "DOTNET_CLI_DO_NOT_USE_MSBUILD_SERVER" -value "1"
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
local toolset_dir="${_InitializeToolset%/*}"
|
local toolset_dir="${_InitializeToolset%/*}"
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
"dotnet": "7.0.100"
|
"dotnet": "7.0.100"
|
||||||
},
|
},
|
||||||
"msbuild-sdks": {
|
"msbuild-sdks": {
|
||||||
"Microsoft.DotNet.Arcade.Sdk": "8.0.0-beta.22579.2",
|
"Microsoft.DotNet.Arcade.Sdk": "8.0.0-beta.22609.3",
|
||||||
"Microsoft.DotNet.Helix.Sdk": "8.0.0-beta.22579.2"
|
"Microsoft.DotNet.Helix.Sdk": "8.0.0-beta.22609.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче