Bug 162036 - dev-lang/lua-5.1.1-r1: Misleading include path of the headers/libs
Bug#: 162036 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: mabi@gentoo.org Reported By: unexist@dorfelite.net
Component: Ebuilds
URL: 
Summary: dev-lang/lua-5.1.1-r1: Misleading include path of the headers/libs
Keywords:  
Status Whiteboard: 
Opened: 2007-01-14 13:05 0000
Description:   Opened: 2007-01-14 13:05 0000
There were dozen of name changes from lua, lua50, lua51, lua-51 to finally (?)
lua-5.1. But how to find the right headers? I usually used pkg-config to get
the right path, but it's meanwhile a kind of bruteforce to find the correct
name /and/ to stay portable.

At the moment pkg-config returns this:
# pkg-config lua-5.1 --cflags 
-I/usr/local/include  
# pkg-config lua-5.1 --libs
-L/usr/local/lib -llua -lm  

Both path are misleading. /usrlocal/lib is normally empty and the headers
currently are in /usr/include/lua-5.1. Bet within the next update everything
changes again - like it always does.


Reproducible: Always

Steps to Reproduce:
Try to link something against lua:
gcc -o foo foo.c `pkg-config lua-5.1 --cflags --libs`

Actual Results:  
lua.h, lauxlib.h and lualib.h cannot be found.

Expected Results:  
The .pc file should contain the correct paths.

------- Comment #1 From Christoph Kappel 2007-01-14 14:29:27 0000 -------
Actually the DSO name has the same problem. Maybe the lua-wrapper can change
the .pc file too?

------- Comment #2 From Matti Bickel 2007-01-14 22:53:23 0000 -------
ouch, the pathes were supposed to be pointing to the right locations.
same for the DSO. I'll fix this asap.

------- Comment #3 From Matti Bickel 2007-01-14 23:14:36 0000 -------
In CVS.