From: Sen Hastings <sen@hastings.org>
To: buildroot@buildroot.org
Cc: Mahyar Koshkouei <mahyar.koshkouei@gmail.com>,
Sen Hastings <sen@hastings.org>
Subject: [Buildroot] [PATCH 0/1] [RFC] re-add lua 5.2.4
Date: Thu, 9 Apr 2026 18:43:08 -0700 [thread overview]
Message-ID: <20260410014309.18115-2-sen@hastings.org> (raw)
I'm caught a bit between a rock and a hard place,
I want to use the simplefb (https://codeberg.org/gnarz/simplefb) library
with mpv, however simplefb needs lua 5.2 (or later with slight modification)
and cannot be easily backported to 5.1.
mpv of course only supports 5.2, 5.1 or luajit.
Porting mpv to lua 5.3 or newer would be pretty unwise, the mpv maintainers
have made it very clear it would break stuff (internally & externally)
and they are very uninterested in changing it, see:
https://github.com/mpv-player/mpv/wiki/FAQ#why-does-mpv-not-support-lua-53-or-newer
https://github.com/mpv-player/mpv/issues/9225
The least painful solution to my problem I can think of is re-adding lua 5.2
support to buildroot, basically entirely for the benefit of mpv.
It's very unlikely mpv will *ever* support a newer version of lua.
Any objections? It seems like we are still supporting lua 5.1 for legacy reasons,
and I am happy to maintain this.
Sen Hastings (1):
package/lua: re-add lua 5.2.4
Config.in.legacy | 10 +--
package/lua/5.2.4/0001-root-path.patch | 17 ++++
.../lua/5.2.4/0002-shared-libs-for-lua.patch | 78 +++++++++++++++++++
package/lua/5.2.4/0011-linenoise.patch | 26 +++++++
package/lua/5.2.4/lua.hash | 2 +
package/lua/Config.in | 7 +-
package/lua/lua.mk | 6 +-
package/luainterpreter/Config.in | 4 +
package/mpv/mpv.mk | 2 +-
9 files changed, 144 insertions(+), 8 deletions(-)
create mode 100644 package/lua/5.2.4/0001-root-path.patch
create mode 100644 package/lua/5.2.4/0002-shared-libs-for-lua.patch
create mode 100644 package/lua/5.2.4/0011-linenoise.patch
create mode 100644 package/lua/5.2.4/lua.hash
--
2.43.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next reply other threads:[~2026-04-10 1:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-10 1:43 Sen Hastings [this message]
2026-04-10 1:43 ` [Buildroot] [PATCH 1/1] package/lua: re-add lua 5.2.4 Sen Hastings
2026-04-11 8:10 ` [Buildroot] [PATCH 0/1] [RFC] " François Perrad via buildroot
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=20260410014309.18115-2-sen@hastings.org \
--to=sen@hastings.org \
--cc=buildroot@buildroot.org \
--cc=mahyar.koshkouei@gmail.com \
/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