<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>162036</bug_id>
          
          <creation_ts>2007-01-14 13:05 0000</creation_ts>
          <short_desc>dev-lang/lua-5.1.1-r1: Misleading include path of the headers/libs</short_desc>
          <delta_ts>2007-01-14 23:14:36 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>unexist@dorfelite.net</reporter>
          <assigned_to>mabi@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>unexist@dorfelite.net</who>
            <bug_when>2007-01-14 13:05:12 0000</bug_when>
            <thetext>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&apos;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.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>unexist@dorfelite.net</who>
            <bug_when>2007-01-14 14:29:27 0000</bug_when>
            <thetext>Actually the DSO name has the same problem. Maybe the lua-wrapper can change the .pc file too?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mabi@gentoo.org</who>
            <bug_when>2007-01-14 22:53:23 0000</bug_when>
            <thetext>ouch, the pathes were supposed to be pointing to the right locations.
same for the DSO. I&apos;ll fix this asap.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mabi@gentoo.org</who>
            <bug_when>2007-01-14 23:14:36 0000</bug_when>
            <thetext>In CVS.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>