Comment 7 for bug 1424602

Revision history for this message
Daniel Silverstone (dsilvers) wrote :

The fundamental misunderstanding here is in thinking of the rrd.so as a shared library -- it is not a shared library, it is a module.

The ABI which the object exports is irrelevant because in reality it cannot change that ABI without failing to be loaded by Lua 5.1. The presence of the 5.1 in the file path encodes that ABI dependency.

Lua dynamically loads the modules in question at runtime in general, though it is possible to statically (or dynamically) link them to an application which contains an interpreter, that simply isn't done in general.

Consider how dh_lua splits the contents of the foo and foo-dev packages (use lua-rex-pcre and lua-rex-pcre-dev as examples if you wish) and try to follow that approach.

I hope this helps to clarify the issue and helps the maintainer of rrdtool's source fix the lua rrd package appropriately.