Historical bug tracker for the Pacman package manager.

The pacman bug tracker has moved to gitlab:

This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.

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 7
Private No


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:
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
Comment by Bruno Pagani (ArchangeGabriel) - Saturday, 20 August 2022, 21:04 GMT
@Allan Would it work if instead of depending on electronversion packages depended on electron==version and electronversion packages provided electron==version? Or would it be the same issue?
Comment by Bruno Pagani (ArchangeGabriel) - Thursday, 05 January 2023, 14:18 GMT
My question above still stands. ;)