FS#75631 - [gamescope] version 3.11.36-1 has conflicting files with libliftoff

Attached to Project: Community Packages
Opened by Joonas Henriksson (ooo) - Wednesday, 17 August 2022, 16:56 GMT
Last edited by Maxime Gauduin (Alucryd) - Thursday, 18 August 2022, 09:04 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Maxime Gauduin (Alucryd)
Giancarlo Razzolini (grazzolini)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 23
Private No

Details

Description:
Installing gamescope-3.11.36-1 fails due to conflicting files with libliftoff-0.2.0-2, which itself is a dependency for gamescope.

The problem was introduced with gamescope-3.11.36-1 update.

$ pacman -S gamescope
...
error: failed to commit transaction (conflicting files)
/usr/include/libliftoff.h exists in both 'libliftoff' and 'gamescope'
/usr/lib/pkgconfig/libliftoff.pc exists in both 'libliftoff' and 'gamescope'
Errors occurred, no packages were upgraded.
This task depends upon

Closed by  Maxime Gauduin (Alucryd)
Thursday, 18 August 2022, 09:04 GMT
Reason for closing:  Fixed
Additional comments about closing:  3.11.36-2
Comment by Jonathon (jonathon) - Wednesday, 17 August 2022, 19:19 GMT
Confirm, seeing the same thing here.
Comment by Toolybird (Toolybird) - Thursday, 18 August 2022, 03:07 GMT
Dupe  FS#75633 
Comment by Fabian Bornschein (fabis_cafe) - Thursday, 18 August 2022, 08:57 GMT
Thats a packaging bug. The critical lines are while building:

Dependency libliftoff found: NO found 0.2.0 but need: '>= 0.3.0' ; matched: '< 0.4.0'
Did not find CMake 'cmake'
Found CMake: NO
Run-time dependency libliftoff found: NO (tried pkgconfig and cmake)
Looking for a fallback subproject for the dependency libliftoff

Executing subproject libliftoff

libliftoff| Project name: libliftoff
libliftoff| Project version: 0.3.0-dev

Currently libliftoff in Arch is at 0.2.0. So it will not use this dependency, but switches to build it internally as meson subprojects and so include it within the final package.

So to fix this there are 2 options

1. update libliftoff to 0.3.0 -> https://gitlab.freedesktop.org/emersion/libliftoff/-/commit/c4488eeff94f511aa4d93ef93a042e471c1b2705 and rebuild gamescope (recommended)

2. remove the dependency from libliftoff and add it to the conflicts of gamescope

Both will result in a working package

Loading...