From: daniel@kipshagen.com
To: buildroot@buildroot.org
Cc: Francois Perrad <francois.perrad@gadz.org>,
Daniel Kipshagen <daniel@kipshagen.com>
Subject: [Buildroot] [PATCH] package/lua: fix BR2_PACKAGE_LUA_32BITS for Lua5.4
Date: Mon, 29 Jun 2026 09:24:24 +0200 [thread overview]
Message-ID: <20260629072424.172-1-daniel@kipshagen.com> (raw)
From: Daniel Kipshagen <daniel@kipshagen.com>
Lua 5.4 changed the way 32 bit lua is configured to define LUA_32BITS as
0 by default instead of leaving it commented out (see commit
dee6433a89b088a1f8da9531a92a2a2693e5dac7 in lua project),
which broke the sed in lua.mk. This resulted in lua5.4 not being
compiled as 32 bit.
This patch updates the sed to replace both versions of luaconf.h
so that 32 bit is configured. Tested with luaconf.h from lua 5.3
and 5.4.
Signed-off-by: Daniel Kipshagen <daniel@kipshagen.com>
---
package/lua/lua.mk | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/package/lua/lua.mk b/package/lua/lua.mk
index 269eafe4bb..bbff2f2e70 100644
--- a/package/lua/lua.mk
+++ b/package/lua/lua.mk
@@ -67,7 +67,9 @@ endif
ifeq ($(BR2_PACKAGE_LUA_32BITS),y)
define LUA_32BITS_LUACONF
- $(SED) 's/\/\* #define LUA_32BITS \*\//#define LUA_32BITS/' $(@D)/src/luaconf.h
+ $(SED) -e 's@/\* #define LUA_32BITS \*/@#define LUA_32BITS 1@' \
+ -e 's@#define LUA_32BITS[[:space:]]\+0@#define LUA_32BITS 1@' \
+ $(@D)/src/luaconf.h
endef
LUA_POST_PATCH_HOOKS += LUA_32BITS_LUACONF
--
2.33.1.windows.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
reply other threads:[~2026-06-29 7:24 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260629072424.172-1-daniel@kipshagen.com \
--to=daniel@kipshagen.com \
--cc=buildroot@buildroot.org \
--cc=francois.perrad@gadz.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox