You are not logged in.
Pages: 1
namcap gives my sdl2-nox package (in AUR) this:
sdl2-nox W: Unused shared library '/usr/lib/libts.so.0' by file ('usr/lib/libSDL2-2.0.so.0.9.0')
sdl2-nox E: Dependency tslib detected and not included (libraries ['usr/lib/libts.so.0'] needed in files ['usr/lib/libSDL2-2.0.so.0.9.0'])
Aren't they mutually exclusive? I've tried adding tslib in depends-array, but the warning still persist.
sdl2-nox W: Unused shared library '/usr/lib/libts.so.0' by file ('usr/lib/libSDL2-2.0.so.0.9.0')
What am I doing wrong?
Offline
What am I doing wrong?
Placing too much trust in namcap.
It's only meant as a guide and is by no means infallible. In situations like yours common sense should be the overriding factor - not namcap.
No disrespect meant it can be a useful tool, you just need to know that it has its limitations.
Offline
solskogen wrote:What am I doing wrong?
Placing too much trust in namcap.
Hah, point taken. Thanks!
Offline
What this means is that sdl2 has a 'greedy' configure script. It detects that tslib is present on your system, and links against it, despite it providing no additional benefit.
You can explicitly pass --disable-input-tslib to ./configure prevent this, or you can just ignore it. Building in a clean chroot will prevent it linking against dependencies that aren't explicitly (or implicitly) declared in the PKGBUILD, but sadly not all Arch users do this.
EDIT: to clarify, on YOUR system, sdl2-nox is linked to tslib. If you remove tslib from your system, sdl2-nox (/usr/lib/libSDL2-2.0.so.0.9.0 specifically) will cease to function, complaining that /usr/lib/libts.so.0 is missing. Users who have built sdl2-nox on systems without tslib present will have no such problems.
Last edited by WorMzy (2018-11-01 22:51:28)
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Pages: 1