You are not logged in.

#1 2024-02-01 18:10:07

scippio
Member
Registered: 2007-01-02
Posts: 74

[SOLVED] sway - older lib?

Why sway in extra reop "extra/sway 1:1.8.1-5" still using libwlroots.so=11 (wlroots0.16)? If there is already wlroots 0.17.1-1? (just ask.. I know I can create my own sway package...)

* https://archlinux.org/packages/extra/x86_64/sway/
* https://archlinux.org/packages/extra/x86_64/wlroots/

I have a problem with upgrading wlroots (I need it for other packages..):

yay -S wlroots
Sync Dependency (1): wlroots-0.17.1-1
resolving dependencies...
looking for conflicting packages...
error: failed to prepare transaction (could not satisfy dependencies)
:: installing wlroots (0.17.1-1) breaks dependency 'libwlroots.so=11' required by sway
 -> error installing repo packages

Last edited by scippio (2024-02-01 19:12:34)


Sorry for my English...

Offline

#2 2024-02-01 18:19:33

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 2,105

Re: [SOLVED] sway - older lib?

pacman -S sway wlroots

Last edited by arojas (2024-02-01 18:21:05)

Offline

#3 2024-02-01 19:12:00

scippio
Member
Registered: 2007-01-02
Posts: 74

Re: [SOLVED] sway - older lib?

arojas wrote:
pacman -S sway wlroots

oh, nice trick! Thanks.


Sorry for my English...

Offline

#4 2024-02-01 19:17:44

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,616
Website

Re: [SOLVED] sway - older lib?

It's not really a trick, it's an incomplete workaround for a different problem: you are - apparently - doing partial upgrades.  That is expected to leak to breakage.  Update your full system.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#5 2024-02-01 21:53:07

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 2,105

Re: [SOLVED] sway - older lib?

Trilby wrote:

It's not really a trick, it's an incomplete workaround for a different problem: you are - apparently - doing partial upgrades.  That is expected to leak to breakage.  Update your full system.

No, it's a workaround for pacman not searching for other providers of a dependency when a currently installed package stops providing it.

Offline

#6 2024-02-02 21:32:49

cybin
Member
Registered: 2024-02-02
Posts: 2

Re: [SOLVED] sway - older lib?

This is a workaround for the specific case to use a newer wlroots with other software. I would like to give wlroots 0.17 a try for the changes in the vulkan renderer, but I would need to compile sway myself. Is this dependency still required, or would it be an option to update the package and remove the dependency to libwlroots.so=11?

Offline

#7 2024-02-03 09:28:30

loqs
Member
Registered: 2014-03-06
Posts: 17,596

Re: [SOLVED] sway - older lib?

cybin wrote:

This is a workaround for the specific case to use a newer wlroots with other software. I would like to give wlroots 0.17 a try for the changes in the vulkan renderer, but I would need to compile sway myself. Is this dependency still required, or would it be an option to update the package and remove the dependency to libwlroots.so=11?

It is still needed.  If you change that line to:

  'libwlroots.so'

wlroots is selected instead of wlroot0.16 producing:

==> Starting build()...
+ exec meson setup --prefix /usr --libexecdir lib --sbindir bin --buildtype plain --auto-features enabled --wrap-mode nodownload -D b_lto=true -D b_pie=true -D python.bytecompile=1 build sway-1.8.1 -D sd-bus-provider=libsystemd -D werror=false -D b_ndebug=true
The Meson build system
Version: 1.3.1
Source dir: /build/sway/src/sway-1.8.1
Build dir: /build/sway/src/build
Build type: native build
Project name: sway
Project version: 1.8.1
C compiler for the host machine: cc (gcc 13.2.1 "cc (GCC) 13.2.1 20230801")
C linker for the host machine: cc ld.bfd 2.42.0
Host machine cpu family: x86_64
Host machine cpu: x86_64
Neither a subproject directory nor a wlroots.wrap file was found.
Subproject  wlroots is buildable: NO (disabling)
Found pkg-config: YES (/usr/bin/pkg-config) 2.1.0
Run-time dependency json-c found: YES 0.17
Run-time dependency libpcre2-8 found: YES 10.42
Run-time dependency wayland-server found: YES 1.22.0
Run-time dependency wayland-client found: YES 1.22.0
Run-time dependency wayland-cursor found: YES 1.22.0
Run-time dependency wayland-protocols found: YES 1.33
Dependency wlroots found: NO found 0.17.1 but need: '<0.17.0' ; matched: '>=0.16.0'
Did not find CMake 'cmake'
Found CMake: NO
Run-time dependency wlroots found: NO 

sway-1.8.1/meson.build:53:10: ERROR: Dependency lookup for wlroots with method 'pkgconfig' failed: Invalid version, need 'wlroots' ['<0.17.0'] found '0.17.1'.

A full log can be found at /build/sway/src/build/meson-logs/meson-log.txt
==> ERROR: A failure occurred in build().

If instead the line is changed to:

  'wlroots0.16' 'libwlroots.so'

The package then depends upon 'wlroots0.16  libwlroots.so=11-64' instead of 'libwlroots.so=11'.

Offline

#8 2024-02-03 09:49:09

cybin
Member
Registered: 2024-02-02
Posts: 2

Re: [SOLVED] sway - older lib?

Yes, tried that myself a moment ago. So, everyone is waiting for the sway team to update their dependency, I guess. Though, in the master branch, wlroots has been raised to >=0.18.0 & <0.19.0. The only option will be to install sway-git with wlroots-git. Well, I will wait patiently then. smile

@loqs, thanks for investigating.

Offline

Board footer

Powered by FluxBB