Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#73100 - [packagekit] Doesn't support versioned replaces

Attached to Project: Arch Linux
Opened by Philip Müller (philm) - Monday, 20 December 2021, 23:06 GMT
Last edited by Antonio Rojas (arojas) - Saturday, 25 December 2021, 12:37 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Christian Hesse (eworm)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Updating an older install from March 2021 via KDE Discover will fail with

Additional info:
* package version(s): libcanberra-pulse 0.30+2+gc0620e4-3 and libcanberra 0.30+2+gc0620e4-3
* commit introducing the issue: https://github.com/archlinux/svntogit-packages/commit/3abc581a57e7378f4dbe00f406cfcaa6db49940d

Steps to reproduce:

Try to update an older Plasma install from March 2021 via KDE Discover

Solution:

Add the following to the PKGBUILD

provides=('libcanberra-pulse')
conflicts=("libcanberra-pulse<0.30+2+gc0620e4-4")
This task depends upon

Closed by  Antonio Rojas (arojas)
Saturday, 25 December 2021, 12:37 GMT
Reason for closing:  Fixed
Additional comments about closing:  packagekit 1.2.4-3
Comment by Philip Müller (philm) - Monday, 20 December 2021, 23:23 GMT
Seems I missed to add the Error message: Dependency resolution failed: libcanberra=0.30+2+gc0620e4-3
Comment by Antonio Rojas (arojas) - Tuesday, 21 December 2021, 07:14 GMT
Please post the full pacman output when trying to upgrade.
Comment by Philip Müller (philm) - Tuesday, 21 December 2021, 07:42 GMT
Hi Antonio,

the issue is not with pacman, rather packagekit/alpm combo from back then in March 2021. We produced a factory image for the Pinephone which hold Plasma 5.21.2 and older packagekit. Attached you may find the pacman output which updates just fine. However the user should be able to update also with Discover, which was reported by Distrowatch last review: https://distrowatch.com/weekly.php?issue=20211220#pinephone. Hence I provide a solution which solved the problem on our end: https://gitlab.manjaro.org/manjaro-arm/packages/community/pinephone/pinephone-manjaro-tweaks/-/commit/90352f1c8479e146001b6f273b0e8392f31b55b1

As I see it: if at least conflicts is not given Discover via packagekit/alpm is not able to update and fails with: Dependency resolution failed: libcanberra=0.30+2+gc0620e4-3

So I suggest to add those two lines, which don't hurt, so users, which may have similar issues of outdated systems can also update graphically.
Comment by Philip Müller (philm) - Tuesday, 21 December 2021, 14:41 GMT
OK, seems I'm on to something. Looking closer at packagekit and replaces function of alpm-update, it seems it only looks for the package name [1]. Here we have however also a version integrated: replaces=("libcanberra-pulse<0.30+2+gc0620e4-4")

[1] https://github.com/PackageKit/PackageKit/blob/main/backends/alpm/pk-alpm-update.c#L340
Comment by Philip Müller (philm) - Tuesday, 21 December 2021, 15:22 GMT Comment by Antonio Rojas (arojas) - Tuesday, 21 December 2021, 17:38 GMT
The second one looks exactly like it

Loading...