pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/ldis



Module Name:    pkgsrc
Committed By:   agc
Date:           Mon Aug 10 19:01:25 UTC 2026

Added Files:
        pkgsrc/devel/ldis: DESCR Makefile PLIST distinfo
        pkgsrc/devel/ldis/patches: patch-bin-Makefile

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/ldis/DESCR pkgsrc/devel/ldis/Makefile \
    pkgsrc/devel/ldis/PLIST pkgsrc/devel/ldis/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/ldis/patches/patch-bin-Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/devel/ldis/DESCR
diff -u /dev/null pkgsrc/devel/ldis/DESCR:1.1
--- /dev/null   Mon Aug 10 19:01:25 2026
+++ pkgsrc/devel/ldis/DESCR     Mon Aug 10 19:01:24 2026
@@ -0,0 +1,13 @@
+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.
Index: pkgsrc/devel/ldis/Makefile
diff -u /dev/null pkgsrc/devel/ldis/Makefile:1.1
--- /dev/null   Mon Aug 10 19:01:25 2026
+++ pkgsrc/devel/ldis/Makefile  Mon Aug 10 19:01:24 2026
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1 2026/08/10 19:01:24 agc Exp $
+
+DISTNAME=              ldis-20260810
+CATEGORIES=            devel
+MASTER_SITES=          -${MASTER_SITE_CODEBERG:=agc-codeberg/ldis/archive/20260810.tar.gz}
+
+MAINTAINER=            agc%NetBSD.org@localhost
+HOMEPAGE=              https://codeberg.org/agc-codeberg/ldis/
+COMMENT=               Lua 5.4 and 5.5 disassembler
+LICENSE=               mit
+
+WRKSRC=                        ${WRKDIR}/ldis
+
+USE_LANGUAGES=         c
+
+USE_BSD_MAKEFILE=      yes
+AUTO_MKDIRS=           yes
+TEST_TARGET=           t
+
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/devel/ldis/PLIST
diff -u /dev/null pkgsrc/devel/ldis/PLIST:1.1
--- /dev/null   Mon Aug 10 19:01:25 2026
+++ pkgsrc/devel/ldis/PLIST     Mon Aug 10 19:01:24 2026
@@ -0,0 +1,9 @@
+@comment $NetBSD: PLIST,v 1.1 2026/08/10 19:01:24 agc Exp $
+bin/ldis
+lib/libldis.a
+lib/libldis.so
+lib/libldis.so.1
+lib/libldis.so.1.0
+lib/libldis_p.a
+man/man1/ldis.1
+man/man3/libldis.3
Index: pkgsrc/devel/ldis/distinfo
diff -u /dev/null pkgsrc/devel/ldis/distinfo:1.1
--- /dev/null   Mon Aug 10 19:01:25 2026
+++ pkgsrc/devel/ldis/distinfo  Mon Aug 10 19:01:24 2026
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2026/08/10 19:01:24 agc Exp $
+
+BLAKE2s (ldis-20260810.tar.gz) = 1ec3af3773c1e7f273addd6d8dc0f6dcdb9e3f54c2bcdc0081f3e18e5b58270f
+SHA512 (ldis-20260810.tar.gz) = 51ea5c18915000ad8883224f1e7d6d9dfb76772f61dc8fae2e5fd5aca654c7112a81191442ab6d00c274cfc413a58f72ef463591d18a572d6f88e565e1e85387
+Size (ldis-20260810.tar.gz) = 39415 bytes
+SHA1 (patch-bin-Makefile) = c233bcd084ada93a419cd322d4393ec3fd18dba3

Index: pkgsrc/devel/ldis/patches/patch-bin-Makefile
diff -u /dev/null pkgsrc/devel/ldis/patches/patch-bin-Makefile:1.1
--- /dev/null   Mon Aug 10 19:01:25 2026
+++ pkgsrc/devel/ldis/patches/patch-bin-Makefile        Mon Aug 10 19:01:25 2026
@@ -0,0 +1,15 @@
+$NetBSD: patch-bin-Makefile,v 1.1 2026/08/10 19:01:25 agc Exp $
+
+Remove hardcoded bindir setting
+
+--- bin/Makefile       2026/08/10 18:17:02     1.1
++++ bin/Makefile       2026/08/10 18:17:19
+@@ -23,7 +23,7 @@
+ LDFLAGS+=     -g -O0
+ .endif
+ 
+-BINDIR=       /usr/bin
++#BINDIR=      /usr/bin
+ 
+ .include <bsd.prog.mk>
+ 



Home | Main Index | Thread Index | Old Index