Package: libseriousproton0
Version: 2020.01.15+dfsg-1
Severity: serious
Justification: Policy 3.5

Hi,

The build log for seriousproton contains this near the end:

>    dh_shlibdeps
> dpkg-shlibdeps: warning: symbol lua_rawget used by 
> debian/libseriousproton0/usr/lib/libseriousproton.so.0 found in none of the 
> libraries
> dpkg-shlibdeps: warning: symbol luaL_checkinteger used by 
> debian/libseriousproton0/usr/lib/libseriousproton.so.0 found in none of the 
> libraries
> dpkg-shlibdeps: warning: symbol lua_pushlightuserdata used by 
> debian/libseriousproton0/usr/lib/libseriousproton.so.0 found in none of the 
> libraries
> dpkg-shlibdeps: warning: symbol luaopen_math used by 
> debian/libseriousproton0/usr/lib/libseriousproton.so.0 found in none of the 
> libraries
> dpkg-shlibdeps: warning: symbol lua_settable used by 
> debian/libseriousproton0/usr/lib/libseriousproton.so.0 found in none of the 
> libraries
> dpkg-shlibdeps: warning: symbol luaL_newstate used by 
> debian/libseriousproton0/usr/lib/libseriousproton.so.0 found in none of the 
> libraries
> dpkg-shlibdeps: warning: symbol lua_sethook used by 
> debian/libseriousproton0/usr/lib/libseriousproton.so.0 found in none of the 
> libraries
> dpkg-shlibdeps: warning: symbol _ZTV14b2PolygonShape used by 
> debian/libseriousproton0/usr/lib/libseriousproton.so.0 found in none of the 
> libraries
> dpkg-shlibdeps: warning: symbol lua_getfield used by 
> debian/libseriousproton0/usr/lib/libseriousproton.so.0 found in none of the 
> libraries
> dpkg-shlibdeps: warning: symbol 
> _ZN12b2ChainShape11CreateChainEPK6b2Vec2iRS1_S3_ used by 
> debian/libseriousproton0/usr/lib/libseriousproton.so.0 found in none of the 
> libraries
> dpkg-shlibdeps: warning: 61 other similar warnings have been skipped (use -v 
> to see them all)

Which made me suspicious that it didn't link against all needed
libraries. Sure enough - just trying to load it fails:

> $ LD_PRELOAD=/usr/lib/libseriousproton.so.0 ls
> ls: symbol lookup error: /usr/lib/libseriousproton.so.0: undefined symbol: 
> luaopen_base

So it needs lua to run and probably libbox2d based on the build log.

Additionally the package doesn't depend on any of these libraries at
all. The Depends line only contains these packages (this is after
rebuilding with the patch in #997264):

libc6 (>= 2.14)
libgcc-s1 (>= 3.0)
libsfml-audio2.5
libsfml-graphics2.5
libsfml-network2.5
libsfml-system2.5
libsfml-window2.5
libstdc++6 (>= 13.1)

Fixing the CMakeLists.txt file should be enough to fix this because
dpkg-shlibdeps should be able to work it out from there.

James

Reply via email to