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

Weak dependencies do not allow qualifiers #624

Closed
ffesti opened this issue Jan 31, 2019 · 3 comments · Fixed by #1022 or #2964
Closed

Weak dependencies do not allow qualifiers #624

ffesti opened this issue Jan 31, 2019 · 3 comments · Fixed by #1022 or #2964
Assignees

Comments

@ffesti
Copy link
Contributor

ffesti commented Jan 31, 2019

Right now only requires allows using qualifiers like pre, post, preun, postun, pretrans posttrans. This was correct in the past. But now we are using those for ordering, too. So it make sense now to also qualify weak dependencies with the time they are needed/wanted in the transaction to make use of this information in ordering.

Shuffling the case statements in handlePreambleTag may already do the trick, although someone should probably check the ordering code.

ffesti added a commit to ffesti/rpm that referenced this issue Jan 29, 2020
We are using weak dependency for ordering now. So it make sense to also
qualify weak dependencies with the time they are needed/wanted in the
transaction to make use of this information in ordering.

Especially (posttrans) could be useful to remove weak deps from dependency
loops during ordering when they are only needed after the installation.

Resolves: rpm-software-management#624
ffesti added a commit to ffesti/rpm that referenced this issue Jan 29, 2020
We are using weak dependency for ordering now. So it make sense to also
qualify weak dependencies with the time they are needed/wanted in the
transaction to make use of this information in ordering.

Especially (posttrans) could be useful to remove weak deps from dependency
loops during ordering when they are only needed after the installation.

Resolves: rpm-software-management#624
@pmatilai pmatilai added this to the 4.16.0 milestone Feb 24, 2020
@pmatilai pmatilai added the RFE label Feb 24, 2020
@pmatilai
Copy link
Member

This should've been closed by commit ddbf30c but GH doesn't recognize the Resolves: tag used in the message.

@pmatilai
Copy link
Member

Erm, though this was already merged but the PR is still open afterall, reopening for the time being.

@pmatilai pmatilai reopened this Feb 26, 2020
@ffesti ffesti added this to Needs triage in Ticket Review (Outdated) Mar 3, 2020
@ffesti ffesti moved this from Needs triage to Yes in Ticket Review (Outdated) Mar 5, 2020
@pmatilai pmatilai removed this from the 4.16.0 milestone Dec 2, 2020
Ticket Review (Outdated) automation moved this from Yes to Closed Jan 17, 2022
pmatilai pushed a commit that referenced this issue Jan 17, 2022
We are using weak dependency for ordering now. So it make sense to also
qualify weak dependencies with the time they are needed/wanted in the
transaction to make use of this information in ordering.

Especially (posttrans) could be useful to remove weak deps from dependency
loops during ordering when they are only needed after the installation.

Resolves: #624
@pmatilai
Copy link
Member

pmatilai commented Mar 5, 2024

Reopening, this never actually worked or it has regressed:

$ rpmbuild -bb simple.spec
error: line 8: Unknown tag: Recommends(meta): fu

@pmatilai pmatilai reopened this Mar 5, 2024
pmatilai added a commit to pmatilai/rpm that referenced this issue Mar 12, 2024
Commit ddbf30c neglected to update the
preamble table types for the weak dependency tags, so it never worked.
Add a test to ensure it works and stays that way.

Fixes: rpm-software-management#624
@pmatilai pmatilai self-assigned this Mar 12, 2024
pmatilai added a commit to pmatilai/rpm that referenced this issue Mar 12, 2024
Commit ddbf30c neglected to update the
preamble table types for the weak dependency tags, so it never worked.
Add a test to ensure it works and stays that way.

Fixes: rpm-software-management#624
pmatilai added a commit to pmatilai/rpm that referenced this issue Mar 12, 2024
Commit ddbf30c neglected to update the
preamble table types for the weak dependency tags, so it never worked.
Add a test to ensure it works and stays that way.

Test depends on 078ccae

Fixes: rpm-software-management#624
pmatilai added a commit to pmatilai/rpm that referenced this issue Mar 12, 2024
Commit ddbf30c neglected to update the
preamble table types for the weak dependency tags, so it never worked.
Add a test to ensure it works and stays that way.

Test depends on 078ccae

Fixes: rpm-software-management#624
pmatilai added a commit to pmatilai/rpm that referenced this issue Mar 12, 2024
Commit ddbf30c neglected to update the
preamble table types for the weak dependency tags, so it never worked.

Fixes: rpm-software-management#624
pmatilai added a commit to pmatilai/rpm that referenced this issue Mar 12, 2024
Commit ddbf30c neglected to update the
preamble table types for the weak dependency tags, so it never worked.
Add a test to ensure it works and stays that way.

Test depends on 078ccae

Fixes: rpm-software-management#624
@ffesti ffesti closed this as completed in 0644ba5 Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
2 participants