Bug#480229: libsdl1.2-dev: sdl-config --libs uses RPATH
Sylvain Beucler
beuc at beuc.net
Thu May 8 21:21:13 UTC 2008
Package: libsdl1.2-dev
Version: 1.2.13-2
Severity: normal
Hi,
I'm building a package (non-official) that relies on SDL. The build
system uses the standard SDL m4 macros, and in particular it uses the
output of:
$ sdl-config --libs
-L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread
As you can see this uses RPATH, which triggers the
"binary-or-shlib-defines-rpath" lintian error:
N: The binary or shared library sets RPATH. This overrides the normal
N: library search path, possibly interfering with local policy and
N: causing problems for multilib, among other issues.
N:
N: The only time a binary or shared library in a Debian package should
N: set RPATH is if it is linked to private shared libraries in the
same
N: package. In that case, place those private shared libraries in
N: /usr/lib/<package>. Libraries used by binaries in other packages
N: should be placed in /lib or /usr/lib as appropriate, with a proper
N: SONAME, in which case RPATH is unncessary.
N:
N: To fix this problem, look for link lines like:
N: gcc test.o -o test -Wl,--rpath,/usr/local/lib
N: or
N: gcc test.o -o test -R/usr/local/lib
N: and remove the -Wl,--rpath or -R argument. You can also use the
N: chrpath utility to remove the RPATH.
N:
N: Refer to http://wiki.debian.org/RpathIssue for details.
Is there something we can do in libsdl1.2-dev, or should I just post-fix
it with chrpath?
Thanks.
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (500, 'testing'), (300, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.24-1-686 (SMP w/1 CPU core)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages libsdl1.2-dev depends on:
ii libglu1-mesa-dev [libglu-dev] 7.0.3-1 The OpenGL utility library -- deve
ii libglu1-xorg-dev 1:7.3+10 transitional package for Debian et
ii libsdl1.2debian 1.2.13-2 Simple DirectMedia Layer
ii libx11-dev 2:1.0.3-7 X11 client-side library (developme
Versions of packages libsdl1.2-dev recommends:
ii libaa1-dev 1.4p5-36 ascii art library, development kit
ii libartsc0-dev 1.5.9-2 development files for the aRts sou
pn libasound2-dev <none> (no description available)
ii libaudio-dev 1.9.1-2 Network Audio System - development
ii libcaca-dev 0.99.beta13b-4 development files for libcaca
ii libcucul-dev 0.99.beta13b-4 development files for libcucul
pn libdirectfb-dev <none> (no description available)
ii libesd0-dev 0.2.36-3 Enlightened Sound Daemon - Develop
ii libsvga1-dev 1:1.4.3-25 console SVGA display development l
ii libxext-dev 2:1.0.4-1 X11 miscellaneous extensions libra
ii libxt-dev 1:1.0.5-3 X11 toolkit intrinsics library (de
-- no debconf information
More information about the Pkg-sdl-maintainers
mailing list