On Thursday, 04 December 2025 at 17:29, Petr Pisar wrote: > V Thu, Dec 04, 2025 at 04:50:00PM +0100, Petr Pisar napsal(a): > > V Thu, Dec 04, 2025 at 12:33:54PM +0100, Jan Stanek napsal(a): > > > Hi all, > > > in the process of polishing the upgrade path > > > for the nodejs metapackage proposal [1], > > > I've created a COPR [2] to ensure we can cleanly upgrade > > > from the current nodejs packages (that currently ship NodeJS v22.x) > > > to the versioned package names (nodejs22) and meta-package (nodejs) > > > combination. > > > However, dnf keeps behaving differently than I would expect, > > > and I'm at the end of ideas of what might be wrong. > > > > > > What I would expect: `dnf install nodejs` will select nodejs metapackage > > > for install, which pulls nodejs22 as a dependency. > > > > > > What happens: `dnf install nodejs` installs nodejs22 directly. > > > > > I confirm it behaves like that. A workaround is asking for a package name > > "nodejs.noarch". It maybe has something to do with how DNF5 distinguishes > > arguments as package names, provides, file names, etc. There is a heavy > > historical baggage how it should be done and it's quite possible you found > > an > > unwanted side effect of it. > > > Or the bug prevents switching from x86_64 to noarch. Observe the Fedora's > package and the installed package is x86_64, while the copr package is noarch:
Switching arches requires adding Obsoletes:, otherwise it doesn't work. So, either keep it archful, or use Obsoletes. Regards, Dominik -- Fedora https://fedoraproject.org There should be a science of discontent. People need hard times and oppression to develop psychic muscles. -- from "Collected Sayings of Muad'Dib" by the Princess Irulan -- _______________________________________________ devel mailing list -- [email protected] To unsubscribe send an email to [email protected] Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/[email protected] Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
