Skip to content
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

Don't check source package provides against installed conflicts #1192

Merged
merged 1 commit into from
Apr 22, 2020

Conversation

pmatilai
Copy link
Member

@pmatilai pmatilai commented Apr 22, 2020

Fixes regressions from commit 75ec16e: the newly added provides of to-be-built packages were being used for dependency resolution, such as spec satifying its own buildrequires, and matched against conflicts in installed packages.

Source packages cannot obsolete anything or provide capabilities or files to transactions, don't add them to rpmal at all. Explicitly skip checks against source provides, similarly to what we already did with obsoletes.

Fixes: #1189

Copy link
Contributor

@ignatenkobrain ignatenkobrain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Fixes regressions from commit 75ec16e:
the newly added provides of to-be-built packages were being used for
dependency resolution, such as spec satifying its own buildrequires,
and matched against conflicts in installed packages.

Source packages cannot obsolete anything or provide capabilities or files
to transactions, don't add them to rpmal at all. Explicitly skip checks
against source provides, similarly to what we already did with obsoletes.

Fixes: rpm-software-management#1189
@pmatilai
Copy link
Member Author

pmatilai commented Apr 22, 2020

Updated to cover the other breakage too, eg spec satisfying its own build-requires.

@pmatilai pmatilai merged commit a4afbb6 into rpm-software-management:master Apr 22, 2020
@pmatilai pmatilai deleted the srcprov-pr branch April 27, 2020 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NEVR provides in source package lead to rpmbuild errors
4 participants