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

Avoid implicit package upgrades with builddep #1747

Open
praiskup opened this issue Oct 1, 2024 · 2 comments
Open

Avoid implicit package upgrades with builddep #1747

praiskup opened this issue Oct 1, 2024 · 2 comments

Comments

@praiskup
Copy link
Member

praiskup commented Oct 1, 2024

This looks like an unexpecte change in behavior between DNF4 and DNF5. If dummy.src.rpm does Requires: foo (== BuildRequires), and the package foo = 1.0.0 is installed, while foo = 2.0.0 is available in the repository, dnf builddep dummy.spec should not upgrade 1.0.0 => 2.0.0 - should be a no-op (just like dnf install foo).

Problem discussed in Mock repo: rpm-software-management/mock#1420

@praiskup
Copy link
Member Author

praiskup commented Oct 1, 2024

Reproducible with DNF5 from rawhide:

[root@raiskup /]# dnf --version
dnf5 version 5.2.6.2
dnf5 plugin API version 2.0
libdnf5 version 5.2.6.2
libdnf5 plugin API version 2.0

Loaded dnf5 plugins:
  name: builddep
  version: 1.0.0
  API version: 2.0

  name: changelog
  version: 1.0.0
  API version: 2.0

  name: config-manager
  version: 0.1.0
  API version: 2.0

  name: copr
  version: 0.1.0
  API version: 2.0

  name: needs_restarting
  version: 1.0.0
  API version: 2.0

  name: repoclosure
  version: 1.0.0
  API version: 2.0

@praiskup
Copy link
Member Author

praiskup commented Oct 1, 2024

I was wrong, at least it is not a difference between DNF4 / DNF5, python3-dnf-plugins-core-4.9.0-1.fc39.noarch also updates with builddep.

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