Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 360679 - dev-lua/lua-zlib-0.2: new package request
Summary: dev-lua/lua-zlib-0.2: new package request
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Default Assignee for New Packages
URL: https://github.com/brimworks/lua-zlib
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks: 360683
  Show dependency tree
 
Reported: 2011-03-27 02:03 UTC by René 'Necoro' Neumann
Modified: 2011-05-02 16:43 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
lua-zlib-0.2.ebuild (lua-zlib-0.2.ebuild,616 bytes, text/plain)
2011-03-27 02:05 UTC, René 'Necoro' Neumann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description René 'Necoro' Neumann 2011-03-27 02:03:44 UTC
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
Comment 1 René 'Necoro' Neumann 2011-03-27 02:05:10 UTC
Created attachment 267337 [details]
lua-zlib-0.2.ebuild

Here is a working ebuild.
Comment 2 Dirkjan Ochtman (RETIRED) gentoo-dev 2011-04-08 16:22:12 UTC
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
Comment 3 René 'Necoro' Neumann 2011-04-08 16:35:51 UTC
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?
Comment 4 Dirkjan Ochtman (RETIRED) gentoo-dev 2011-04-08 16:51:45 UTC
Yup, that returns nothing for me.
Comment 5 René 'Necoro' Neumann 2011-04-08 17:02:51 UTC
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.
Comment 6 Dirkjan Ochtman (RETIRED) gentoo-dev 2011-04-08 17:30:19 UTC
I have dev-lang/lua-5.1.4-r4, but no /usr/lib64/pkgconfig/lua.pc.

I do have /usr/pkgconfig/lua.pc, though.
Comment 7 René 'Necoro' Neumann 2011-04-08 17:45:10 UTC
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?
Comment 8 René 'Necoro' Neumann 2011-04-08 17:47:50 UTC
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 :)
Comment 9 Dirkjan Ochtman (RETIRED) gentoo-dev 2011-05-02 16:43:49 UTC
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!