Bug 1226307 - Lua includes missing for luajit
Summary: Lua includes missing for luajit
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Other (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Gordon Leung
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-13 18:10 UTC by Gordon Leung
Modified: 2024-06-19 00:45 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gordon Leung 2024-06-13 18:10:56 UTC
I am attempting to update the sile package to 0.15.0 but due to some issues I temporarily need to use luajit.

The problem is that SILE expects certain header files which are not in luajit-devel:
[    5s] checking for icu-uc icu-io... yes
[    5s] checking for a Lua interpreter with version >= 5.1... luajit
[    5s] checking for luajit... /usr/bin/luajit
[    5s] checking for luajit version... 5.1
[    5s] checking for luajit jit version... 2.1.1707061634
[    5s] checking for luajit platform... unknown
[    5s] checking for luajit script directory... ${prefix}/share/luajit-5_1-2.1
[    5s] checking for luajit module directory... ${exec_prefix}/lib64/lua/5.1
[    5s] checking if LUA_VERSION is defined... yes
[    5s] checking if LUAJIT_VERSION is defined... yes
[    5s] checking for lua.h... no
[    6s] checking for lualib.h... no
[    6s] checking for lauxlib.h... no
[    6s] checking for luaconf.h... no
[    6s] checking for luajit.h... no
[    6s] configure: error: cannot find Lua includes

SILE does correctly identify the headers for lua5.4 though:
[   23s] checking if LUA_VERSION is defined... yes
[   23s] checking for lua.h... no
[   24s] checking for lualib.h... no
[   24s] checking for lauxlib.h... no
[   24s] checking for luaconf.h... no
[   24s] checking for Lua headers in... /usr/include/lua5.4
[   24s] checking for lua.h... yes
[   24s] checking for lualib.h... yes
[   24s] checking for lauxlib.h... yes
[   24s] checking for luaconf.h... yes
[   24s] checking for Lua header version... 5.4
...

I think luajit-devel should include the requested headers
Comment 1 OBSbugzilla Bot 2024-06-14 17:55:04 UTC
This is an autogenerated message for OBS integration:
This bug (1226307) was mentioned in
https://build.opensuse.org/request/show/1180955 Factory / sile
Comment 2 OBSbugzilla Bot 2024-06-15 16:15:03 UTC
This is an autogenerated message for OBS integration:
This bug (1226307) was mentioned in
https://build.opensuse.org/request/show/1181041 Factory / sile
Comment 3 OBSbugzilla Bot 2024-06-17 17:15:04 UTC
This is an autogenerated message for OBS integration:
This bug (1226307) was mentioned in
https://build.opensuse.org/request/show/1181352 Factory / sile
Comment 4 Gordon Leung 2024-06-18 17:23:04 UTC
Turns out the luajit headers ARE included in luajit-devel just in a (non-standard) directory which is: /usr/include/luajit-5_1-2.1

So any package which wants to build with luajit-devel headers needs to add:
export LUA_INCLUDE="-I/usr/include/luajit-5_1-2.1"
to their %build and %install sections.
Comment 5 OBSbugzilla Bot 2024-06-18 17:55:09 UTC
This is an autogenerated message for OBS integration:
This bug (1226307) was mentioned in
https://build.opensuse.org/request/show/1181548 Factory / sile
Comment 6 OBSbugzilla Bot 2024-06-19 00:45:02 UTC
This is an autogenerated message for OBS integration:
This bug (1226307) was mentioned in
https://build.opensuse.org/request/show/1181622 Factory / sile