Merge pull request #7694 from janvorli/rhel6-support-fixes
Fix issue and minor cleanup of the RHEL 6 support
This commit is contained in:
commit
5aff58b8b9
2 changed files with 8 additions and 14 deletions
|
@ -3,7 +3,7 @@
|
||||||
<CLITargets Condition=" '$(CLITargets)' == '' ">Prepare;Compile;Test;Package;Publish</CLITargets>
|
<CLITargets Condition=" '$(CLITargets)' == '' ">Prepare;Compile;Test;Package;Publish</CLITargets>
|
||||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
<IncludeNuGetPackageArchive Condition=" '$(IncludeNuGetPackageArchive)' == '' ">true</IncludeNuGetPackageArchive>
|
<IncludeNuGetPackageArchive Condition=" '$(IncludeNuGetPackageArchive)' == '' ">true</IncludeNuGetPackageArchive>
|
||||||
<SkipBuildingInstallers Condition=" '$(SkipBuildingInstallers)' == '' AND $(HostRid.StartsWith('rhel.6')) ">true</SkipBuildingInstallers>
|
<SkipBuildingInstallers Condition=" '$(SkipBuildingInstallers)' == '' AND $(Rid.StartsWith('rhel.6')) ">true</SkipBuildingInstallers>
|
||||||
<SkipBuildingInstallers Condition=" '$(SkipBuildingInstallers)' == '' ">false</SkipBuildingInstallers>
|
<SkipBuildingInstallers Condition=" '$(SkipBuildingInstallers)' == '' ">false</SkipBuildingInstallers>
|
||||||
<UsePortableLinuxSharedFramework Condition=" '$(UsePortableLinuxSharedFramework)' == '' AND '$(OSPlatform)' == 'linux' AND '$(Rid)' != 'rhel.6-x64' ">true</UsePortableLinuxSharedFramework>
|
<UsePortableLinuxSharedFramework Condition=" '$(UsePortableLinuxSharedFramework)' == '' AND '$(OSPlatform)' == 'linux' AND '$(Rid)' != 'rhel.6-x64' ">true</UsePortableLinuxSharedFramework>
|
||||||
<IncludeSharedFrameworksForBackwardsCompatibilityTests Condition=" $(IncludeSharedFrameworksForBackwardsCompatibilityTests) == '' AND '$(Rid)' != 'linux-x64' AND '$(Rid)' != 'rhel.6-x64' ">true</IncludeSharedFrameworksForBackwardsCompatibilityTests>
|
<IncludeSharedFrameworksForBackwardsCompatibilityTests Condition=" $(IncludeSharedFrameworksForBackwardsCompatibilityTests) == '' AND '$(Rid)' != 'linux-x64' AND '$(Rid)' != 'rhel.6-x64' ">true</IncludeSharedFrameworksForBackwardsCompatibilityTests>
|
||||||
|
|
20
run-build.sh
20
run-build.sh
|
@ -51,7 +51,7 @@ DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
|
||||||
REPOROOT="$DIR"
|
REPOROOT="$DIR"
|
||||||
|
|
||||||
ARCHITECTURE="x64"
|
ARCHITECTURE="x64"
|
||||||
BOOTSTRAP_CLI=
|
STAGE0_SOURCE_DIR=
|
||||||
|
|
||||||
source "$REPOROOT/scripts/common/_prettyprint.sh"
|
source "$REPOROOT/scripts/common/_prettyprint.sh"
|
||||||
|
|
||||||
|
@ -98,8 +98,8 @@ while [[ $# > 0 ]]; do
|
||||||
LINUX_PORTABLE_INSTALL_ARGS="--runtime-id linux-x64"
|
LINUX_PORTABLE_INSTALL_ARGS="--runtime-id linux-x64"
|
||||||
CUSTOM_BUILD_ARGS="/p:Rid=\"linux-x64\" /p:OSName=\"linux\" /p:IslinuxPortable=\"true\""
|
CUSTOM_BUILD_ARGS="/p:Rid=\"linux-x64\" /p:OSName=\"linux\" /p:IslinuxPortable=\"true\""
|
||||||
;;
|
;;
|
||||||
--bootstrap-cli)
|
--stage0)
|
||||||
BOOTSTRAP_CLI=$2
|
STAGE0_SOURCE_DIR=$2
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
--help)
|
--help)
|
||||||
|
@ -112,11 +112,12 @@ while [[ $# > 0 ]]; do
|
||||||
echo " --nobuild Skip building, showing the command that would be used to build"
|
echo " --nobuild Skip building, showing the command that would be used to build"
|
||||||
echo " --docker <IMAGENAME> Build in Docker using the Dockerfile located in scripts/docker/IMAGENAME"
|
echo " --docker <IMAGENAME> Build in Docker using the Dockerfile located in scripts/docker/IMAGENAME"
|
||||||
echo " --linux-portable Builds the Linux portable .NET Tools instead of a distro-specific version."
|
echo " --linux-portable Builds the Linux portable .NET Tools instead of a distro-specific version."
|
||||||
|
echo " --stage0 Set the stage0 source directory. The default is to download it from Azure."
|
||||||
echo " --help Display this help message"
|
echo " --help Display this help message"
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
args=(${args[@]} $1)
|
args=$@
|
||||||
break
|
break
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
@ -124,13 +125,6 @@ while [[ $# > 0 ]]; do
|
||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
|
|
||||||
# $args array may have empty elements in it.
|
|
||||||
# The easiest way to remove them is to cast to string and back to array.
|
|
||||||
# This will actually break quoted arguments, arguments like
|
|
||||||
# -test "hello world" will be broken into three arguments instead of two, as it should.
|
|
||||||
temp="${args[@]}"
|
|
||||||
args=($temp)
|
|
||||||
|
|
||||||
# Create an install directory for the stage 0 CLI
|
# Create an install directory for the stage 0 CLI
|
||||||
[ -z "$DOTNET_INSTALL_DIR" ] && export DOTNET_INSTALL_DIR=$REPOROOT/.dotnet_stage0/$ARCHITECTURE
|
[ -z "$DOTNET_INSTALL_DIR" ] && export DOTNET_INSTALL_DIR=$REPOROOT/.dotnet_stage0/$ARCHITECTURE
|
||||||
[ -d "$DOTNET_INSTALL_DIR" ] || mkdir -p $DOTNET_INSTALL_DIR
|
[ -d "$DOTNET_INSTALL_DIR" ] || mkdir -p $DOTNET_INSTALL_DIR
|
||||||
|
@ -146,11 +140,11 @@ export VSTEST_TRACE_BUILD=1
|
||||||
export DOTNET_MULTILEVEL_LOOKUP=0
|
export DOTNET_MULTILEVEL_LOOKUP=0
|
||||||
|
|
||||||
# Install a stage 0
|
# Install a stage 0
|
||||||
if [ "$BOOTSTRAP_CLI" == "" ]; then
|
if [ "$STAGE0_SOURCE_DIR" == "" ]; then
|
||||||
(set -x ; "$REPOROOT/scripts/obtain/dotnet-install.sh" --channel "master" --version "2.1.0-preview1-007172" --install-dir "$DOTNET_INSTALL_DIR" --architecture "$ARCHITECTURE" $LINUX_PORTABLE_INSTALL_ARGS)
|
(set -x ; "$REPOROOT/scripts/obtain/dotnet-install.sh" --channel "master" --version "2.1.0-preview1-007172" --install-dir "$DOTNET_INSTALL_DIR" --architecture "$ARCHITECTURE" $LINUX_PORTABLE_INSTALL_ARGS)
|
||||||
else
|
else
|
||||||
echo "Copying bootstrap cli from $BOOTSTRAP_CLI"
|
echo "Copying bootstrap cli from $BOOTSTRAP_CLI"
|
||||||
cp -r $BOOTSTRAP_CLI/* "$DOTNET_INSTALL_DIR"
|
cp -r $STAGE0_SOURCE_DIR/* "$DOTNET_INSTALL_DIR"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
EXIT_CODE=$?
|
EXIT_CODE=$?
|
||||||
|
|
Loading…
Reference in a new issue