Skip to contentSkip to conversation

New: [lua] fix build with 2010.08-rc1

Buildroot bugzilla at busybox.net 1 participant 12 messages Aug 5, 2010 – Apr 25, 2012

lore
Share & tools
lore
#0 lore raw

https://bugs.busybox.net/show_bug.cgi?id=2353

Summary: [lua] fix build with 2010.08-rc1
Product: buildroot
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
AssignedTo: unassigned at buildroot.uclibc.org
ReportedBy: francois.perrad at gadz.org
CC: buildroot at uclibc.org
Estimated Hours: 0.0

Created attachment 2305
--> https://bugs.busybox.net/attachment.cgi?id=2305
fix

with the attached patch, MYCFLAGS is really used,
so the support of readline and shared lib (with dlopen) works.

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#1 lore raw

[Buildroot] [Bug 2353] [lua] fix build with 2010.08-rc1

https://bugs.busybox.net/show_bug.cgi?id=2353

Fran?ois Perrad <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

               Host|                            |PC Ubuntu Lucid
             Target|                            |arm versatilepb (qemu)
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#2 lore raw

[Buildroot] [Bug 2353] [lua] fix build with 2010.08-rc1

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=2353

--- Comment #1 from Fran?ois Perrad <[email protected]> --- Created attachment 2323
--> https://bugs.busybox.net/attachment.cgi?id=2323
new version of the patch

simplified version of the patch

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#3 lore raw

[Buildroot] [Bug 2353] [lua] fix build with 2010.08-rc1

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=2353

--- Comment #2 from Thomas Petazzoni <[email protected]> --- Thanks Fran?ois for this patch. Your patch contained three things :

*) Remove -DLUA_USE_DLOPEN from LUA_MYCFLAGS when LUA_SHARED_LIBRARY is
enabled, and add -DLUA_USE_DLOPEN to LUA_MYCFLAGS when readline support is requested. Could you explain the rationale for this change ?

*) A fix to make sure that the value of MYCFLAGS actually gets passed to Lua.
This is correct, and I've committed it, in a slightly different form, see
http://git.buildroot.net/~tpetazzoni/git/buildroot/commit/?id=8199f9f94bab74e27b0eed1a52ed1125e3af62e8

*) A fix to make the clean in the src/ subdirectory. But I've just tested, the
main Lua Makefile already goes into the src/ subdirectory when doing "make clean" at the root directory of Lua sources. So "make lua-clean" in Buildroot already works fine. Which problem are you fixing here ?

Again, thanks!

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#4 lore raw

[Buildroot] [Bug 2353] [lua] fix build with 2010.08-rc1

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=2353

--- Comment #3 from Thomas Petazzoni <[email protected]> --- Oh, by the way, I did a test with the patch I mentionned, and readline is indeed working in the Lua interpreter (history, Ctrl+a, Ctrl+e, etc.)

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#5 lore raw

[Buildroot] [Bug 2353] [lua] fix build with 2010.08-rc1

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=2353

--- Comment #4 from Fran?ois Perrad <[email protected]> --- (In reply to comment #2)

Quoted 6 lines

Thanks Fran?ois for this patch. Your patch contained three things :

*) Remove -DLUA_USE_DLOPEN from LUA_MYCFLAGS when LUA_SHARED_LIBRARY is
enabled, and add -DLUA_USE_DLOPEN to LUA_MYCFLAGS when readline support is requested. Could you explain the rationale for this change ?

This part avoids some warnings about the redefinition of LUA_USE_DLOPEN, when BR2_PACKAGE_LUA_INTERPRETER_READLINE is set.

See in src/luaconf.h lines 36-40 :
#if defined(LUA_USE_LINUX)
#define LUA_USE_POSIX
#define LUA_USE_DLOPEN /* needs an extra library: -ldl */
#define LUA_USE_READLINE /* needs some extra libraries */
#endif

Quoted 8 lines

*) A fix to make sure that the value of MYCFLAGS actually gets passed to Lua.
This is correct, and I've committed it, in a slightly different form, see
http://git.buildroot.net/~tpetazzoni/git/buildroot/commit/?id=8199f9f94bab74e27b0eed1a52ed1125e3af62e8

*) A fix to make the clean in the src/ subdirectory. But I've just tested, the
main Lua Makefile already goes into the src/ subdirectory when doing "make clean" at the root directory of Lua sources. So "make lua-clean" in Buildroot already works fine. Which problem are you fixing here ?

There are 2 Makefiles in the Lua distribution :
Makefile which deals with different platforms : linux, mingw, ... src/Makefile which does the real job, and is used by LUA_BUILD_CMDS

For symmetry, I want use src/Makefile in LUA_CLEAN_CMDS.

The next step is to remove a part of lua-shared-libs.patch which alters Makefile.

Quoted 2 lines

Again, thanks!

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#6 lore raw

[Buildroot] [Bug 2353] [lua] fix build with 2010.08-rc1

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=2353

--- Comment #5 from Fran?ois Perrad <[email protected]> --- (In reply to comment #3)

Quoted 2 lines

Oh, by the way, I did a test with the patch I mentionned, and readline is indeed working in the Lua interpreter (history, Ctrl+a, Ctrl+e, etc.)

A easy way to check the loading of native extension is to build LuaFileSystem, and try :

    $ lua -l lfs
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#7 lore raw

[Buildroot] [Bug 2353] [lua] fix build with 2010.08-rc1

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=2353

--- Comment #6 from Fran?ois Perrad <[email protected]> --- Created attachment 2371
--> https://bugs.busybox.net/attachment.cgi?id=2371
patch only for warnings

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#9 lore raw

[Buildroot] [Bug 2353] [lua] fix build with 2010.08-rc1

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=2353

Gustavo Zacarias <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at buildroot.uclibc |gustavo at zacarias.com.ar
|.org |

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#10 lore raw

[Buildroot] [Bug 2353] [lua] fix build with 2010.08-rc1

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=2353

--- Comment #8 from Thomas Petazzoni <[email protected]> 2012-01-31 22:47:04 UTC --- Gustavo, since you are usually maintaining the Lua stuff, could you take care
of this bug?

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#11 lore raw

[Buildroot] [Bug 2353] [lua] fix build with 2010.08-rc1

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=2353

Peter Korsgaard <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #9 from Peter Korsgaard <[email protected]> 2012-04-25 10:22:04 UTC --- Fixed in git

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.