BSD Ports

devel/ldis 20260818 NetBSD

Lua 5.4 and 5.5 disassembler

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
Port added
Last update
Commit
945bcee9ae
License
mit
Categories
devel
Package size
33.8 KiB, 227.3 KiB installed

Description

This is ldis, a disassembler for lua binary files. It works for binaries compiled by the 5.4 and 5.5 branches of lua, discovering the compiler used to compile into the opcodes, and delivers the assembly opcodes and data in an easy to read form. It is similar to the output produced by luac -l -l, but of course, does not need the lua source code around to be able to recover the opcodes, constants, upvals and local variables.

In general, there is little lua consistency between major releases. Bytecodes are numbered differently, and so there is little consistency, and compiled programs usually need to be recompiled. This disassembler tries to bridge that gap, by being able to disassemble both 5.4 and 5.5-compiled binaries.

Install

Binary package:

pkgin install ldis

From pkgsrc:

cd /usr/pkgsrc/devel/ldis && make install clean

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

RepositoryVersion
NetBSD 10.1 x86_6420260818
NetBSD 10.1 aarch64-
SmartOS / illumos x86_64-
macOS 15 arm64-

Dependencies

No port depends on this one.

Commit history 3

DateCommitCreditsLog message
945bcee9ae agc devel/ldis - Update the package to version 20260818
+ set SPDX values properly + attempt to fix MAKE_JOBS_SAFE issue by adding .WAIT directive appropriately + expand a comment about paresing the lua 5.5 file header to be a tad less cryptic pkgsrc changes: + just define the version number in one place, for later ease of maintenance
d7074e7cdc wiz ldis: not make-jobs-safe
d55cd3b7d5 agc Import ldis, a lua 5.4 and 5.5 disassembler, into the packages collection.
This is ldis, a disassembler for lua binary files. It works for binaries compiled by the 5.4 and 5.5 branches of lua, discovering the compiler used to compile into the opcodes, and delivers the assembly opcodes and data in an easy to read form. It is similar to the output produced by luac -l -l, but of course, does not need the lua source code around to be able to recover the opcodes, constants, upvals and local variables. In general, there is little lua consistency between major lua releases. Bytecodes are numbered differently, and so there is little consistency, and compiled programs usually need to be recompiled. This disassembler tries to bridge that gap, by being able to disassemble both 5.4 and 5.5-compiled binaries.