dev-lua/lua-zlib are simple lua bindings for zlib. This ebuild is proposed as it is an optional dependency of net-im/prosody. Reproducible: Always
Created attachment 267337 [details] lua-zlib-0.2.ebuild Here is a working ebuild.
I get this: -- The C compiler identification is GNU -- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc -- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Found ZLIB: /usr/lib64/libz.so -- Found Lua51: /usr/liblua.so;/usr/lib64/libm.so CMake Error at CMakeLists.txt:44 (INSTALL): install TARGETS given no LIBRARY DESTINATION for module target "cmod_zlib". -- <<< Gentoo configuration >>> Build type Gentoo Install path /usr Compiler flags: C -march=native -O2 -pipe C++ Linker flags: Executable -Wl,-O1 -Wl,--as-needed Module -Wl,-O1 -Wl,--as-needed Shared -Wl,-O1 -Wl,--as-needed
Huh? The installation destination is set in the ebuild via INSTALL_CMOD. Does this by chance produce an empty string for you? What does `pkg-config --variable INSTALL_CMOD lua` return on your system?
Yup, that returns nothing for me.
This sounds like a bug in the lua package. Which version of it are you using? This setting is defined in /usr/lib64/pkgconfig/lua.pc -- which (seeing the ebuilds) is installed in all cases.
I have dev-lang/lua-5.1.4-r4, but no /usr/lib64/pkgconfig/lua.pc. I do have /usr/pkgconfig/lua.pc, though.
Seeing that the lua-ebuild states: insinto /usr/$(get_libdir)/pkgconfig doins etc/lua.pc I would guess your lua-installation has been messed up back then. I'm wondering, why you haven't stumbled about this bug earlier, as I copied this pkg-config call from the ebuild of another lua package -- so this is the normal method for getting the CMOD-dir. So could you try the lua-zlib ebuild again after a reinstallation of lua?
Just noting: Your liblua has also been installed directly under /usr (see your first comment). So during the installation of lua, something was really messed up in your system :)
Okay, since this turned out to be a problem with my lua installation, it looks like all is fine now. Committed 0.2 to the tree, thanks!