Enable open ssl sha 1 signatures for CentOS Stream 9 (#17889)

This commit is contained in:
Ella Hathaway 2023-12-05 12:15:32 -08:00 committed by GitHub
parent 66c787891e
commit b654f3e01b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 4 deletions

View file

@ -123,19 +123,24 @@ jobs:
set -x set -x
df -h df -h
networkArgs= customRunArgs=
customBuildArgs= customBuildArgs=
if [[ '$(_RunOnline)' == 'true' ]]; then if [[ '$(_RunOnline)' == 'true' ]]; then
customBuildArgs='--online' customBuildArgs='--online'
else else
networkArgs='--network none' customRunArgs='--network none'
fi
# See https://github.com/dotnet/source-build/issues/3712
if [[ '$(_OverrideDistroDisablingSha1)' == 'true' ]]; then
customRunArgs="$customRunArgs -e OPENSSL_ENABLE_SHA1_SIGNATURES=1"
fi fi
if [[ '$(_EnablePoison)' == 'true' ]]; then if [[ '$(_EnablePoison)' == 'true' ]]; then
customBuildArgs="$customBuildArgs --poison" customBuildArgs="$customBuildArgs --poison"
fi fi
docker run --rm -v $(tarballDir):/tarball -w /tarball ${networkArgs} $(_Container) ./build.sh --clean-while-building ${customBuildArgs} $(additionalBuildArgs) docker run --rm -v $(tarballDir):/tarball -w /tarball ${customRunArgs} $(_Container) ./build.sh --clean-while-building ${customBuildArgs} $(additionalBuildArgs)
displayName: Build Tarball displayName: Build Tarball
- ${{ if ne(variables['System.TeamProject'], 'public') }}: - ${{ if ne(variables['System.TeamProject'], 'public') }}:

View file

@ -11,7 +11,7 @@ parameters:
# ----------------------------------------------------------------------------------------------- # -----------------------------------------------------------------------------------------------
alpine317Container: mcr.microsoft.com/dotnet-buildtools/prereqs:alpine-3.17 alpine317Container: mcr.microsoft.com/dotnet-buildtools/prereqs:alpine-3.17
centOS7Container: mcr.microsoft.com/dotnet-buildtools/prereqs:centos-7-source-build centOS7Container: mcr.microsoft.com/dotnet-buildtools/prereqs:centos-7-source-build
centOSStream9Container: mcr.microsoft.com/dotnet-buildtools/prereqs:centos-stream9-20220107135047-4cd394c centOSStream9Container: mcr.microsoft.com/dotnet-buildtools/prereqs:centos-stream9
debian11Arm64Container: mcr.microsoft.com/dotnet-buildtools/prereqs:debian-11-arm64v8 debian11Arm64Container: mcr.microsoft.com/dotnet-buildtools/prereqs:debian-11-arm64v8
fedora38Container: mcr.microsoft.com/dotnet-buildtools/prereqs:fedora-38 fedora38Container: mcr.microsoft.com/dotnet-buildtools/prereqs:fedora-38
ubuntu1804Container: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04 ubuntu1804Container: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04
@ -40,18 +40,21 @@ jobs:
_BootstrapPrep: true _BootstrapPrep: true
_Container: ${{ parameters.alpine317Container }} _Container: ${{ parameters.alpine317Container }}
_ExcludeOmniSharpTests: true _ExcludeOmniSharpTests: true
_OverrideDistroDisablingSha1: false
_RunOnline: false _RunOnline: false
CentOS7-Online: CentOS7-Online:
_BootstrapPrep: false _BootstrapPrep: false
_Container: ${{ parameters.centOS7Container }} _Container: ${{ parameters.centOS7Container }}
_EnablePoison: false _EnablePoison: false
_ExcludeOmniSharpTests: true _ExcludeOmniSharpTests: true
_OverrideDistroDisablingSha1: false
_RunOnline: true _RunOnline: true
CentOS7-Offline: CentOS7-Offline:
_BootstrapPrep: false _BootstrapPrep: false
_Container: ${{ parameters.centOS7Container }} _Container: ${{ parameters.centOS7Container }}
_EnablePoison: false _EnablePoison: false
_ExcludeOmniSharpTests: true _ExcludeOmniSharpTests: true
_OverrideDistroDisablingSha1: false
_RunOnline: false _RunOnline: false
${{ if ne(variables['Build.Reason'], 'PullRequest') }}: ${{ if ne(variables['Build.Reason'], 'PullRequest') }}:
CentOSStream9-Offline: CentOSStream9-Offline:
@ -59,18 +62,21 @@ jobs:
_Container: ${{ parameters.centOSStream9Container }} _Container: ${{ parameters.centOSStream9Container }}
_EnablePoison: false _EnablePoison: false
_ExcludeOmniSharpTests: false _ExcludeOmniSharpTests: false
_OverrideDistroDisablingSha1: true
_RunOnline: false _RunOnline: false
Fedora38-Offline: Fedora38-Offline:
_BootstrapPrep: false _BootstrapPrep: false
_Container: ${{ parameters.fedora38Container }} _Container: ${{ parameters.fedora38Container }}
_EnablePoison: true _EnablePoison: true
_ExcludeOmniSharpTests: false _ExcludeOmniSharpTests: false
_OverrideDistroDisablingSha1: false
_RunOnline: false _RunOnline: false
Ubuntu1804-Offline: Ubuntu1804-Offline:
_BootstrapPrep: false _BootstrapPrep: false
_Container: ${{ parameters.ubuntu1804Container }} _Container: ${{ parameters.ubuntu1804Container }}
_EnablePoison: false _EnablePoison: false
_ExcludeOmniSharpTests: false _ExcludeOmniSharpTests: false
_OverrideDistroDisablingSha1: false
_RunOnline: false _RunOnline: false
name: Build_Tarball_x64 name: Build_Tarball_x64
pool: pool:
@ -94,6 +100,7 @@ jobs:
_Container: ${{ parameters.debian11Arm64Container }} _Container: ${{ parameters.debian11Arm64Container }}
_EnablePoison: false _EnablePoison: false
_ExcludeOmniSharpTests: false _ExcludeOmniSharpTests: false
_OverrideDistroDisablingSha1: false
_RunOnline: false _RunOnline: false
name: Build_Tarball_arm64 name: Build_Tarball_arm64
pool: ${{ parameters.poolInternalArm64 }} pool: ${{ parameters.poolInternalArm64 }}
@ -114,6 +121,7 @@ jobs:
_Container: ${{ parameters.fedora38Container }} _Container: ${{ parameters.fedora38Container }}
_EnablePoison: false _EnablePoison: false
_ExcludeOmniSharpTests: false _ExcludeOmniSharpTests: false
_OverrideDistroDisablingSha1: false
_RunOnline: false _RunOnline: false
name: Build_Tarball_x64_Using_Previous name: Build_Tarball_x64_Using_Previous
pool: pool: