Opened 7 months ago
Closed 6 months ago
#20312 closed enhancement (fixed)
Add luajit to the book to replace Lua 5.2
Reported by: | Douglas R. Reno | Owned by: | Douglas R. Reno |
---|---|---|---|
Priority: | normal | Milestone: | 12.3 |
Component: | BOOK | Version: | git |
Severity: | normal | Keywords: | |
Cc: |
Description ¶
Let's replace Lua 5.2 with LuaJIT (see the thread on blfs-dev)
In addition to modifying MPV and VLC, we'll also need to modify gegl and libpeas.
Change History (6)
comment:1 by , 7 months ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:2 by , 7 months ago
comment:3 by , 6 months ago
Please just use make PREFIX=/usr
and make PREFIX=/usr install
instead of overusing sed.
comment:4 by , 6 months ago
Generally overusing sed is bad, and in this case particularly bad because the upstream explicitly says "don't do that." From http://luajit.org/install.html#distro:
The LuaJIT build system has extra provisions for the needs of most POSIX-based distributions. If you're a package maintainer for a distribution, please make use of these features and avoid patching, subverting, autotoolizing or messing up the build system in unspeakable ways.
And:
PREFIX overrides the installation path and should usually be set to /usr. Setting this also changes the module paths and the paths needed to locate the shared library.
comment:5 by , 6 months ago
The upstream also says:
The build system has a special target for an amalgamated build, i.e. make amalg. This compiles the LuaJIT core as one huge C file and allows GCC to generate faster and shorter code. Alas, this requires lots of memory during the build. This may be a problem for some users, that's why it's not enabled by default. But it shouldn't be a problem for most build farms. It's recommended that binary distributions use this target for their LuaJIT builds.
I'm not sure if make amalg
is suitable for us. Maybe we need to measure how much RAM is used by it.
comment:6 by , 6 months ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
This was one of the easiest additions I've had to do in a while, as everything that the book said supported it didn't have any problems.
Because this is designed to be grabbed from git, I'll create a ticket in the pre-release milestone to remind us of what we need to do to create a new tarball.
Fixed at the following commits...
- LuaJIT added at dd7b8a4c3254c06f46d9d2226f2729e7185ef38e
- Made the dependency internal in GEGL at f0e8afc0e794845b57b7b5350cc338cadff37258 and 39fdb7aa0da6a3ba517354c663af1177e933d21d
- Made the dependency internal in libpeas at 535cd3dc270a9548d10373847217a2411c8d8601
- Allowed VLC to use Lua 5.4 again, it seems to work now with the latest release. aec39addf507855bb17d1ed45bba1a16fcb3f040
- Changed lua5.2 to luajit in MPV at f65e42dc9b716d59b3b11cc245ff6f370f3f0184
- Archived lua5.2 at c3f895735fb7d66d5e678bf36971cd80573b6339
This should do it.