fix: enable rpmautospec in mock config#15944
Open
liunan-ms wants to merge 1 commit intotomls/base/mainfrom
Open
fix: enable rpmautospec in mock config#15944liunan-ms wants to merge 1 commit intotomls/base/mainfrom
liunan-ms wants to merge 1 commit intotomls/base/mainfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request enables the rpmautospec mock plugin in the Azure Linux 4.0 build configuration to count and pull the release value and change logs from Fedora upstream and fix the build failure of a few packages. The change allows packages using %autorelease and %autochangelog macros to have their changelogs automatically generated from the upstream git history during the build process. This is part of a larger effort that includes upcoming azldev changes and requires the mock_rpmautospec package for local builds.
Changes:
- Enabled rpmautospec plugin in mock configuration template
- Configured rpmautospec to use the standard command and require the rpmautospec package
- Added explanatory comments describing the feature and its purpose
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request updates the
azurelinux-4.0.tplmock configuration to enable and configure therpmautospecplugin, which preprocesses %autorelease and %autochangelog to count and pull the release value and change logs from Fedora upstream and fix the build failure of a few packages.This change will work together with updated azldev (with preserving the upstream
.gitdir per package to mock, PR: https://github.com/gim-home/azldev-preview/pull/468) to fix the changelog issue in packages with%autoreleaseand%autochangelog.Local build needs
mock_rpmautospecinstalled, in Koji pipeline, the rpmautospec Koji plugin (python3-rpmautospec-koji) is needed at the hub level to entirely resolve the changelog issues.Enhancements to RPM build automation:
rpmautospecplugin by settingconfig_opts['plugin_conf']['rpmautospec_enable'] = Truein the mock configuration for handling of release numbers and changelogs in spec files.rpmautospecoptions to require therpmautospecpackage and use/usr/bin/rpmautospec process-distgitas the command base for processing.Tested with
azldev comp build -p gnome-keyring: