You are not logged in.

#1 2018-11-01 22:11:41

solskogen
Member
From: Norway
Registered: 2005-03-06
Posts: 118

Namcap confuses me

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

#2 2018-11-01 22:22:31

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: Namcap confuses me

solskogen wrote:

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.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2018-11-01 22:32:46

solskogen
Member
From: Norway
Registered: 2005-03-06
Posts: 118

Re: Namcap confuses me

Slithery wrote:
solskogen wrote:

What am I doing wrong?

Placing too much trust in namcap.

Hah, point taken. Thanks!

Offline

#4 2018-11-01 22:46:19

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,788
Website

Re: Namcap confuses me

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

Board footer

Powered by FluxBB