Pacman

Welcome to the Pacman bug tracker. Please search the current bugs and feature requests before filing a new one! Use advanced search and select "Search in Comments".

* Please select the correct category and version.
* Write a descriptive summary, background info, and provide a reproducible test case whenever possible.
Tasklist

FS#74324 - pacman unable to solve a specific dependency change

Attached to Project: Pacman
Opened by Bruno Pagani (ArchangeGabriel) - Sunday, 03 April 2022, 10:45 GMT
Task Type Bug Report
Category General
Status Unconfirmed
Assigned To No-one
Architecture All
Severity High
Priority Normal
Reported Version 6.0.1
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 2
Private No

Details

When trying to upgrade a system that has:

– element-desktop 1.10.8-1 (or actually anything recent)
– electron 17.2.0-1 (or any 17.x version)

it fails with:

error: failed to prepare transaction (could not satisfy dependencies)
:: installing electron (18.0.1-1) breaks dependency 'electron17' required by element-desktop

electron was upgraded to 18.0.1, and it thus now provides electron18. At the same time, an electron17 package was added to the repo… but apparently pacman cannot solve this.
This task depends upon

Comment by Bruno Pagani (ArchangeGabriel) - Sunday, 03 April 2022, 10:48 GMT
(Of course there is a workaround of `pacman -Rdd electron` and then upgrading, but a proper solution would be better)
Comment by Allan McRae (Allan) - Sunday, 03 April 2022, 10:54 GMT
This is covered in our codebase with an XFAIL on this test:
sync-update-package-removing-required-provides.py
Comment by Bruno Pagani (ArchangeGabriel) - Sunday, 03 April 2022, 11:17 GMT
OK, so known. The proper workaround seems to be `pacman -Syu --asdeps electron17` instead of the one I’ve suggested above.
Comment by Doug Newgard (Scimmia) - Sunday, 03 April 2022, 13:14 GMT
Another workaround would be to bump the pkgrel on element-desktop so that it's included in the update transaction. No manual intervention required that way.
Comment by Bruno Pagani (ArchangeGabriel) - Sunday, 03 April 2022, 13:56 GMT
Ah, good to know. Bumping right away.
Comment by zeroconf (zeroconf) - Sunday, 03 April 2022, 16:50 GMT
Still I see dependency on electron17.
Comment by Bruno Pagani (ArchangeGabriel) - Sunday, 03 April 2022, 16:53 GMT
@zeroconf: element-desktop does depend on electron17, that’s not the issue.
Comment by Antonio Rojas (arojas) - Sunday, 03 April 2022, 17:43 GMT
CCing electron maintainer so they're aware of the issue and rebuild all packages that depend on the last electron version every time the major version changes

Loading...