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

Obsoletes could support multiple replacements #598

Open
ppisar opened this issue May 18, 2022 · 0 comments
Open

Obsoletes could support multiple replacements #598

ppisar opened this issue May 18, 2022 · 0 comments

Comments

@ppisar
Copy link
Collaborator

ppisar commented May 18, 2022

Modular obsoletes now support at most one replacing stream:

document: modulemd-obsoletes
version: 1
data:
  module: perl
  stream: 5.30
  [...]
  obsoleted_by:
    module: perl
    stream: "5.32"

It turned out https://bugzilla.redhat.com/show_bug.cgi?id=2053213#c7 that's not enough. perl:5.32 is missing perl-Pod-Parser which exists in perl:5.30. Because no package from perl:5.32 RPM-obsoletes perl-Pod-Parser, DNF cannot perform an upgrade with automatical switching streams from an obsolete perl:5.30 to perl:5.32.

A feature-complete RPM upgrade path requires modularizing perl-Pod-Parser and extending modular obsoletance to multiple modules:

document: modulemd-obsoletes
version: 2
data:
  module: perl
  stream: 5.30
  [...]
  obsoleted_by:
    - module: perl
      stream: "5.32"
    - module: perl-Pod-Parser
      stream: "SOMETHING"

That would require changing the format, unless we come with cunning syntax like:

document: modulemd-obsoletes
version: 1
data:
  module: perl
  stream: 5.30
  [...]
  obsoleted_by:
    module: perl
    stream: "5.32"
  obsoleted_by_more:
    - module: perl-Pod-Parser
      stream: "SOMETHING"

But I'd rather bump the format version.

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

No branches or pull requests

1 participant