On Wed, May 02, 2012 at 08:23:14PM -0400, Evan Wies wrote:
> The DEB_HOST_MULTIARCH is only set during the Debian build process,
> or manually through the preprocessor. Since Lua packages are built
> with debhelper, they include a well-formed LUA_CPATH_DEFAULT.
> 
> However, this change breaks the compilation of programs outside of
> debhelper which embed Lua and rely upon LUA_CPATH_DEFAULT:
> error: expected ')' before 'DEB_HOST_MULTIARCH'
> 
> A workaround is to set DEB_HOST_MULTIARCH manually (using
> dpkg-architecture -qDEB_HOST_MULTIARCH), or construct ones own
> LUA_CPATH_DEFAULT.
> 
> Since liblua5.1-0dev is architecture-specific, perhaps the build
> process could insert the architecture into luaconf.h rather than
> depend on a definition set in the package build process?

This will make the package non multiarch capable, since there is no
architecture triplet in the path for header files (yet) so all .h files
must be architecture neutral.

Something I can do it to fix .pc file so that

  pkg-config --cflags lua5.1

correctly spits out -DDEB_HOST_MULTIARCH=bla

What do you think?
-- 
Enrico Tassi



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to