Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 779574 - dev-lua/luaposix: fatal error: 'lua.h' file not found
Summary: dev-lua/luaposix: fatal error: 'lua.h' file not found
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Azamat H. Hackimov
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2021-03-31 18:11 UTC by dm9pZCAq
Modified: 2021-03-31 19:44 UTC (History)
2 users (show)

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


Attachments
patch to fix LUA_INCDIR (luaposix.patch,519 bytes, patch)
2021-03-31 18:11 UTC, dm9pZCAq
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description dm9pZCAq 2021-03-31 18:11:31 UTC
Created attachment 696543 [details, diff]
patch to fix LUA_INCDIR

i am using luajit
and default LUA_INCDIR in build-aux/luke is "$LUA_DIR/include/lua$LUAVERSION" 
which is expanded to /usr/include/lua5.1
but there should be /usr/include/luajit-2.0

to fix it in src_compile should be LUA_INCDIR="${ED}/$(lua_get_include_dir)"
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-03-31 18:48:28 UTC
(No need to manually CC)
Comment 2 Conrad Kostecki gentoo-dev 2021-03-31 19:38:55 UTC
While I agree, that the include is wrong for luajit, your patch won't work, as {ED} is the directory, where the emerge happens. It won't find there lua ;-)
Comment 3 Larry the Git Cow gentoo-dev 2021-03-31 19:44:04 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d810adcd6834e06725f271ef7af2df72c902fcb2

commit d810adcd6834e06725f271ef7af2df72c902fcb2
Author:     Conrad Kostecki <conikost@gentoo.org>
AuthorDate: 2021-03-31 19:43:20 +0000
Commit:     Conrad Kostecki <conikost@gentoo.org>
CommitDate: 2021-03-31 19:43:57 +0000

    dev-lua/luaposix: drop old version
    
    Closes: https://bugs.gentoo.org/779574
    Package-Manager: Portage-3.0.17, Repoman-3.0.2
    Signed-off-by: Conrad Kostecki <conikost@gentoo.org>

 dev-lua/luaposix/luaposix-35.0-r101.ebuild | 76 ------------------------------
 1 file changed, 76 deletions(-)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=10d0523dbd630c97a99d91541d5910deab9b85cf

commit 10d0523dbd630c97a99d91541d5910deab9b85cf
Author:     Conrad Kostecki <conikost@gentoo.org>
AuthorDate: 2021-03-31 19:42:28 +0000
Commit:     Conrad Kostecki <conikost@gentoo.org>
CommitDate: 2021-03-31 19:43:56 +0000

    dev-lua/luaposix: use correct lua includedir
    
    Closes: https://bugs.gentoo.org/779574
    Package-Manager: Portage-3.0.17, Repoman-3.0.2
    Signed-off-by: Conrad Kostecki <conikost@gentoo.org>

 dev-lua/luaposix/luaposix-35.0-r102.ebuild | 77 ++++++++++++++++++++++++++++++
 1 file changed, 77 insertions(+)