From 87796ec7da5cd2aeaf71e325c04cb1964c5a580f Mon Sep 17 00:00:00 2001 From: Jeremy Koritzinsky Date: Fri, 28 Apr 2023 10:53:55 -0700 Subject: [PATCH] Fix building RPMs (#16249) --- .vsts-ci.yml | 4 +-- src/redist/targets/GenerateLayout.targets | 1 + src/redist/targets/GenerateRPMs.targets | 42 +++++++++++------------ 3 files changed, 24 insertions(+), 23 deletions(-) diff --git a/.vsts-ci.yml b/.vsts-ci.yml index b44cf897c..5c2195610 100644 --- a/.vsts-ci.yml +++ b/.vsts-ci.yml @@ -254,7 +254,7 @@ stages: buildArchitecture: x64 # Do not publish zips and tarballs. The linux-x64 binaries are # already published by Build_LinuxPortable_Release_x64 - additionalBuildParameters: '/p:PublishBinariesAndBadge=false' + additionalBuildParameters: '/p:PublishBinariesAndBadge=false /p:IsRPMBasedDistro=true' linuxPortable: true runTests: false - template: eng/build.yml @@ -267,7 +267,7 @@ stages: runtimeIdentifier: 'linux-arm64' # Do not publish zips and tarballs. The linux-x64 binaries are # already published by Build_LinuxPortable_Release_x64 - additionalBuildParameters: '/p:PublishBinariesAndBadge=false /p:CLIBUILD_SKIP_TESTS=true' + additionalBuildParameters: '/p:PublishBinariesAndBadge=false /p:CLIBUILD_SKIP_TESTS=true /p:IsRPMBasedDistro=true' linuxPortable: true runTests: false - template: eng/build.yml diff --git a/src/redist/targets/GenerateLayout.targets b/src/redist/targets/GenerateLayout.targets index a27834f85..4abe26990 100644 --- a/src/redist/targets/GenerateLayout.targets +++ b/src/redist/targets/GenerateLayout.targets @@ -38,6 +38,7 @@ $(HostRid) $(OSName)-$(Architecture) + $(HostRid.Replace('mariner.2.0', 'cm.2')) -internal diff --git a/src/redist/targets/GenerateRPMs.targets b/src/redist/targets/GenerateRPMs.targets index a82f068fc..044afcc6e 100644 --- a/src/redist/targets/GenerateRPMs.targets +++ b/src/redist/targets/GenerateRPMs.targets @@ -330,18 +330,18 @@ Outputs="$(RpmTestResultsXmlFile)" > - - - - - - - - - + + + + + + + + + - - + + - - - - - - - - - - + + + + + + + + + +