Configure packit to use caret notation for postrelease snapshots#638
Configure packit to use caret notation for postrelease snapshots#638kontura wants to merge 2 commits intofedora-modularity:mainfrom
Conversation
|
The caret character is not supported on RHEL 7 and thus the CI fails there. libmodulemd needs to support RHEL 7. Is it possible to change the configuration file so that it keeps using the old schema for epel-7 target? |
|
I have separated the |
ppisar
left a comment
There was a problem hiding this comment.
Various tests on Fedora, e.g. "Installed RPM Tests" failed:
Run $GITHUB_WORKSPACE/.ci/retry-command.sh dnf -y install --nogpgcheck --allowerasing --repofrompath libmodulemd-ci,x86_64 x86_64/python3-libmodulemd*.rpm x86_64/libmodulemd-devel*.rpm
[...]
Failed to resolve the transaction:
Problem 1: cannot install both python3-libmodulemd-2.15.3^20260407074247132574.0fea74c7c0ba16895f0691dab7bbd3db5c1b2718-0.20260407074247130049.0fea74c7c0ba16895f0691dab7bbd3db5c1b2718.fc45.x86_64 from @commandline and python3-libmodulemd-2.15.3-0.20260407074427604704.0fea74c7c0ba16895f0691dab7bbd3db5c1b2718.fc45.x86_64 from @commandline
- conflicting requests
I have not idea why it did not failed before, but obviously the dnf commands needs to explicitly install "$arch/libmodulemd*.rpm" package to allow DNF to replace a libmodulemd binary package with the matching version.
Could you please amend that command in .ci/fedora/ci-tasks.sh?
Since it's difficult to glob local "libmodulemd" package with unknown version without including libmodulemd-debuginfo package, try a different approach like dnf5 do --from-repo libmodulemd.
This ensures the build of that specific version is considered newer than any other regular release of it. For rpm-software-management/ci-dnf-stack#1843 For epel7 keep old style since rpm doesn't support `^` in version there.
This ensures we don't also build `libmodulemd-epel7` packit package.
cee472d to
201d877
Compare
|
|
I see, I think the problem was that it internally uses I have changed it in I have also noticed the |



This ensures the build of that specific version is considered newer than any other regular release of it.
For rpm-software-management/ci-dnf-stack#1843
Example build: https://copr.fedorainfracloud.org/coprs/amatej/dnf-nightly/build/10282557/