-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Fail the RPM build if FPM tool is not present #51170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: release/9.0.1xx
Are you sure you want to change the base?
Fail the RPM build if FPM tool is not present #51170
Conversation
Regular (non-pkg) Linux leg is trying to build RPM packages - that shouldn't happen. More changes are needed. |
I've applied the same changes from 8.0 PR, which is now passing all checks: dotnet/installer#20633 |
@marcpopMSFT can we merge this one? I think the branch is still open. |
I've added a |
I've incorporated the same fix that was made for 8.0 - dotnet/installer#20644 I'm keeping the |
Removing |
Currently, if the build is supposed to produce RPM packages, but the tooling (i.e.
fpm
) is missing, a message will be logged and the build will skip the RPM package generation. This can result in successful builds that are missing the required artifacts.Additional changes were needed, as RPM targets were being executed for any build that was running on RPM-based distro due to:
sdk/src/Installer/redist-installer/targets/GenerateRPMs.targets
Lines 14 to 16 in c1ff1eb
The use of property
IsRPMBasedDistro
was overloaded to mean both that the distro is RPM-based and that we want to build installers.Property was set here:
sdk/src/Installer/redist-installer/targets/GetRuntimeInformation.targets
Lines 29 to 30 in c1ff1eb
For installer build we were passing this same property, which was already being set on rpm-based distros, so this wasn't correct:
sdk/.vsts-ci.yml
Line 216 in c1ff1eb
I am now setting a different property,
BuildSdkRpm
, in scenarios where RPM packaging is desired. This matches DEB build experience, where we have a similar pair of properties:BuildSdkDeb
andIsDebianBaseDistro
.Notes
Fix for 9.0.1xx - will be backported to other 9.0.x branches in support. Fix for 8.0 - dotnet/installer#20633
Contributes to dotnet/installer#20561