notbugAs an Amazon Associate I earn from qualifying purchases.
Want a good read? Try FreeBSD Mastery: Jails (IT Mastery Book 15)
Want a good monitor light? See my photosAll times are UTC
Ukraine

Bot filter coming soon

To deter bots pegging the database CPU to 100%, a bot testing filter to be added to the website. This should not affect newsfeeds etc. Anubis seems light-weight - it is already in use within the FreeBSD Project. This notice is just a heads up in case you see something odd. This notice will be updated after Anubis is installed.

Port details
lua54 Powerful, efficient, lightweight, embeddable scripting language
5.4.8 lang on this many watch lists=12 search for ports that depend on this port Find issues related to this port Report an issue related to this port View this port on Repology. pkg-fallout 5.4.7Version of this port present on the latest quarterly branch.
Maintainer: andrew@tao11.riddles.org.uk search for ports maintained by this maintainer
Port Added: 2020-10-15 17:55:29
Last Update: 2025-07-05 09:22:45
Commit Hash: 50f3581
People watching this port, also watch:: zstd, pkg, mpdecimal, git, icu
License: MIT
WWW:
https://www.lua.org/
Description:
Lua is a programming language originally designed for extending applications, but also frequently used as a general-purpose, stand-alone language. Lua combines simple procedural syntax (similar to Pascal) with powerful data description constructs based on associative arrays and extensible semantics. Lua is dynamically typed, interpreted from bytecodes, and has automatic memory management with garbage collection, making it ideal for configuration, scripting, and rapid prototyping. A fundamental concept in the design of Lua is to provide meta-mechanisms for implementing features, instead of providing a host of features directly in the language. For example, although Lua is not a pure object-oriented language, it does provide meta-mechanisms for implementing classes and inheritance. Lua's meta-mechanisms bring an economy of concepts and keep the language small, while allowing the semantics to be extended in unconventional ways. Extensible semantics is a distinguishing feature of Lua. Lua is implemented as a small library of C functions, written in ANSI C, and compiles unmodified in all known platforms. The implementation goals are simplicity, efficiency, portability, and low embedding cost.
Homepage    cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb

Manual pages:
pkg-plist: as obtained via: make generate-plist
Expand this list (21 items)
Collapse this list.
  1. @ldconfig
  2. /usr/local/share/licenses/lua54-5.4.8/catalog.mk
  3. /usr/local/share/licenses/lua54-5.4.8/LICENSE
  4. /usr/local/share/licenses/lua54-5.4.8/MIT
  5. bin/lua54
  6. bin/luac54
  7. include/lua54/lauxlib.h
  8. include/lua54/lua.h
  9. include/lua54/lua.hpp
  10. include/lua54/luaconf.h
  11. include/lua54/lualib.h
  12. lib/liblua-5.4.a
  13. lib/liblua-5.4.so
  14. libdata/pkgconfig/lua-5.4.pc
  15. share/man/man1/lua54.1.gz
  16. share/man/man1/luac54.1.gz
  17. @dir lib/lua/5.4
  18. @dir share/lua/5.4
  19. @owner
  20. @group
  21. @mode
Collapse this list.
Dependency lines:
  • lua54>0:lang/lua54
To install the port:
cd /usr/ports/lang/lua54/ && make install clean
To add the package, run one of these commands:
  • pkg install lang/lua54
  • pkg install lua54
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.
PKGNAME: lua54
Flavors: there is no flavor information for this port.
distinfo:
TIMESTAMP = 1751702639 SHA256 (lua-5.4.8.tar.gz) = 4f18ddae154e793e46eeab727c59ef1c0c0c2b744e7b94219710d76f530629ae SIZE (lua-5.4.8.tar.gz) = 374332

Packages (timestamps in pop-ups are UTC):
lua54
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest5.4.85.4.85.4.25.4.85.4.8-5.4.2-
FreeBSD:13:quarterly5.4.75.4.75.4.65.4.75.4.75.4.65.4.65.4.6
FreeBSD:14:latest5.4.85.4.85.4.45.4.85.4.85.4.6-5.4.6
FreeBSD:14:quarterly5.4.75.4.7-5.4.75.4.75.4.65.4.65.4.6
FreeBSD:15:latest5.4.85.4.8n/a5.4.7n/a5.4.6_15.4.6_15.4.6_1
Dependencies
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Library dependencies:
  1. libedit.so.0 : devel/libedit
This port is required by:
for Build
  1. devel/swig
  2. devel/swig40
  3. lang/fennel

Deleted ports which required this port:

Expand this list of 1 deleted port
  1. devel/lua-language-server*
  2. Collapse this list of deleted ports.
for Libraries
  1. archivers/rpm4
  2. comms/tio
  3. converters/lua-iconv
  4. converters/osm2pgsql
  5. databases/lua-lsqlite3
  6. databases/lua-pgsql
  7. databases/lua-xapian
Expand this list (118 items / 111 hidden - sorry, this count includes any deleted ports)
  1. Collapse this list).
  2. databases/luadbi
  3. databases/luasql-firebird
  4. databases/luasql-mysql
  5. databases/luasql-odbc
  6. databases/luasql-postgres
  7. databases/luasql-sqlite3
  8. databases/tokyotyrant
  9. devel/freebsd-git-devtools
  10. devel/kyua
  11. devel/llvm-devel
  12. devel/llvm11
  13. devel/llvm20
  14. devel/llvm21
  15. devel/love10
  16. devel/lua-Penlight
  17. devel/lua-argparse
  18. devel/lua-bitlib
  19. devel/lua-bitop
  20. devel/lua-cjson
  21. devel/lua-cqueues
  22. devel/lua-lgi
  23. devel/lua-libevent
  24. devel/lua-lpeg
  25. devel/lua-luacheck
  26. devel/lua-luarocks
  27. devel/lua-luastatic
  28. devel/lua-lunit
  29. devel/lua-lunitx
  30. devel/lua-posix
  31. devel/lua-stdlib
  32. devel/lua-stdlib-debug
  33. devel/lua-stdlib-normalize
  34. devel/lua-sysctl
  35. devel/luafilesystem
  36. devel/lutok
  37. devel/xmake-io
  38. dns/dnsdist
  39. dns/luaunbound
  40. dns/powerdns
  41. dns/powerdns-recursor
  42. editors/lite
  43. editors/lite-xl
  44. editors/mle
  45. editors/vis
  46. emulators/flycast
  47. emulators/mgba
  48. games/OpenTomb
  49. games/corsix-th
  50. games/etlegacy
  51. games/freeciv
  52. games/freeciv-nox11
  53. games/freeciv21
  54. games/jaggedalliance2
  55. games/megaglest
  56. games/onscripter
  57. games/onscripter-1byte
  58. games/wesnoth
  59. games/xnethack
  60. graphics/darktable
  61. graphics/lua-gd
  62. graphics/xournalpp
  63. irc/dxirc
  64. irc/weechat
  65. lang/py-lupa
  66. lang/tolua
  67. mail/imapfilter
  68. mail/opendkim
  69. mail/opendkim-devel
  70. math/sc-im
  71. multimedia/obs-studio
  72. multimedia/vlc
  73. multimedia/wireplumber
  74. net/asterisk18
  75. net/asterisk20
  76. net/asterisk22
  77. net/lua-luasocket
  78. net/lualdap
  79. net/msoak
  80. net/ntopng
  81. net/tinyfugue-devel
  82. net-im/prosody
  83. net-im/telegram-cli
  84. science/axom
  85. science/orthanc
  86. science/spheral
  87. security/lua-argon2
  88. security/lua-bcrypt
  89. security/luasec
  90. sysutils/libdnf
  91. sysutils/lua-puremagic
  92. sysutils/porch
  93. sysutils/slurm-wlm
  94. sysutils/vtm
  95. textproc/highlight
  96. textproc/libucl
  97. textproc/lua-icu-utils
  98. textproc/lua-luaexpat
  99. textproc/lua-lyaml
  100. www/bozohttpd
  101. www/faup
  102. www/lighttpd
  103. www/osrm-backend
  104. www/tokyopromenade
  105. x11-wm/notion
  106. Collapse this list.

Deleted ports which required this port:

Expand this list of 7 deleted ports
  1. graphics/darktable38*
  2. graphics/darktable40*
  3. graphics/darktable42*
  4. net/asterisk16*
  5. net/luasocket*
  6. sysutils/orch*
  7. textproc/luaexpat*
  8. Collapse this list of deleted ports.
for Run
  1. converters/lua-json
  2. databases/xapian-bindings
  3. devel/sol2
  4. lang/fennel

Configuration Options:
===> The following configuration options are available for lua54-5.4.8: ====> Documentation options DOCS=on: Install language and API reference (HTML, ~400kB) ====> Debugging options ASSERT=off: Enable interpreter assertions APICHECK=off: Enable API checks ====> Interactive command-line editing: you have to select exactly one of them EDITNONE=off: No command-line editing LIBEDIT_DL=on: Use dynamically loaded libedit (recommended) LIBEDIT=off: Use libedit (breaks lcurses) READLINE=off: Use GNU Readline (breaks lcurses) ===> Use 'make config' to modify these settings
Options name:
lang_lua54
USES:
cpe lua:core,54 libedit
FreshPorts was unable to extract/find any pkg message
Master Sites:
Expand this list (1 items)
Collapse this list.
  1. https://www.lua.org/ftp/
Collapse this list.

Number of commits found: 14

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
5.4.8
05 Jul 2025 09:22:45
commit hash: 50f358177e38d12040142c07ff40c6f3f3a37365commit hash: 50f358177e38d12040142c07ff40c6f3f3a37365commit hash: 50f358177e38d12040142c07ff40c6f3f3a37365commit hash: 50f358177e38d12040142c07ff40c6f3f3a37365 files touched by this commit
Wen Heping (wen) search for other commits by this committer
lang/lua54: Updatte to 5.4.8

PR:		288019
Reported by:	wen@
Approved by:	maintainer
5.4.7
09 Sep 2024 20:37:13
commit hash: 108aa10056f015d49ae19d7bdc3d1d18190db3eccommit hash: 108aa10056f015d49ae19d7bdc3d1d18190db3eccommit hash: 108aa10056f015d49ae19d7bdc3d1d18190db3eccommit hash: 108aa10056f015d49ae19d7bdc3d1d18190db3ec files touched by this commit
Vladimir Druzenko (vvd) search for other commits by this committer
Author: Älven
lang/lua54: update 5.4.6 → 5.4.7

Changelog: https://www.lua.org/bugs.html#5.4.7
Commitlog: https://www.lua.org/work/diffs-lua-5.4.6-lua-5.4.7.html

PR:		280955
Approved by:	andrew@tao11.riddles.org.uk (maintainer, timeout > 14 days)
5.4.6_1
23 Mar 2024 11:19:32
commit hash: d7511b9d00742c3e2d57c6c03718c4a6f4cd3e72commit hash: d7511b9d00742c3e2d57c6c03718c4a6f4cd3e72commit hash: d7511b9d00742c3e2d57c6c03718c4a6f4cd3e72commit hash: d7511b9d00742c3e2d57c6c03718c4a6f4cd3e72 files touched by this commit
Tijl Coosemans (tijl) search for other commits by this committer
Mk/bsd.port.mk: Add __MAKE_CONF=${NONEXISTENT} to WRK_ENV

And remove it from individual ports.  Use WRK_ENV in custom build
commands where necessary.

FreeBSD make(1) includes /usr/share/mk/sys.mk and that includes
/etc/make.conf if it exists.  This happens when you run make in a port
directory but it also happens when the upstream build system uses make.
This commit disables make.conf inclusion in the latter case because
users can define variables like CFLAGS in make.conf that override ports
framework variables and this can cause problems that are difficult to
diagnose.

If there are any build customisations made through make.conf that stop
working because of this commit then they should be made available by the
(Only the first 15 lines of the commit message are shown above View all of this commit message)
5.4.6_1
23 Jan 2024 14:51:23
commit hash: 577e953f2104305467c48a47d18f75eeba824e25commit hash: 577e953f2104305467c48a47d18f75eeba824e25commit hash: 577e953f2104305467c48a47d18f75eeba824e25commit hash: 577e953f2104305467c48a47d18f75eeba824e25 files touched by this commit
Muhammad Moinur Rahman (bofh) search for other commits by this committer
lang/lua54: Impelled to share/man

Approved by:    portmgr (blanket)
5.4.6
08 Jun 2023 10:51:06
commit hash: b4c88d1e7141e4bfcd2a9651fc24922b5b1556fecommit hash: b4c88d1e7141e4bfcd2a9651fc24922b5b1556fecommit hash: b4c88d1e7141e4bfcd2a9651fc24922b5b1556fecommit hash: b4c88d1e7141e4bfcd2a9651fc24922b5b1556fe files touched by this commit
Robert Clausecker (fuz) search for other commits by this committer
Author: Andrew "RhodiumToad" Gierth
lang/lua54: update to 5.4.6

Submitter becomes maintainer.

5.4.6 fixes the following bugs in 5.4.4 and 5.4.5:

Lua 5.4.5:
    Changing the signature of 'lua_resetthread' broke ABI.

Lua 5.4.4:
    lua.c assumes that argv has at least one element.
    Lua can generate wrong code when _ENV is <const>.
    Wrong code generation for constants in bitwise operations.
    Lua-stack overflow when C stack overflows while handling an error.
    'lua_settop' may use a pointer to stack invalidated by 'luaF_close'.
(Only the first 15 lines of the commit message are shown above View all of this commit message)
5.4.4
29 Nov 2022 09:24:55
commit hash: c8bef09e147ecae2926f545d602d2b1ca9ba1b0fcommit hash: c8bef09e147ecae2926f545d602d2b1ca9ba1b0fcommit hash: c8bef09e147ecae2926f545d602d2b1ca9ba1b0fcommit hash: c8bef09e147ecae2926f545d602d2b1ca9ba1b0f files touched by this commit
Koichiro Iwao (meta) search for other commits by this committer
lang/lua54: Update to 5.4.4

PR:		267430
Approved by:	maintainer timeout
07 Sep 2022 21:58:51
commit hash: fb16dfecae4a6efac9f3a78e0b759fb7a3c53de4commit hash: fb16dfecae4a6efac9f3a78e0b759fb7a3c53de4commit hash: fb16dfecae4a6efac9f3a78e0b759fb7a3c53de4commit hash: fb16dfecae4a6efac9f3a78e0b759fb7a3c53de4 files touched by this commit
Stefan Eßer (se) search for other commits by this committer
Remove WWW entries moved into port Makefiles

Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.

This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.

Approved by:		portmgr (tcberner)
5.4.2
07 Sep 2022 21:10:59
commit hash: b7f05445c00f2625aa19b4154ebcbce5ed2daa52commit hash: b7f05445c00f2625aa19b4154ebcbce5ed2daa52commit hash: b7f05445c00f2625aa19b4154ebcbce5ed2daa52commit hash: b7f05445c00f2625aa19b4154ebcbce5ed2daa52 files touched by this commit
Stefan Eßer (se) search for other commits by this committer
Add WWW entries to port Makefiles

It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.

Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.

There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above View all of this commit message)
5.4.2
31 Aug 2021 09:23:10
commit hash: d015b673ee59a11e4fe6579a8764ad53ed87f946commit hash: d015b673ee59a11e4fe6579a8764ad53ed87f946commit hash: d015b673ee59a11e4fe6579a8764ad53ed87f946commit hash: d015b673ee59a11e4fe6579a8764ad53ed87f946 files touched by this commit
Bernhard Froehlich (decke) search for other commits by this committer
lang/lua54: Add CPE information

Approved by:    portmgr (blanket)
5.4.2
07 Apr 2021 08:09:01
commit hash: cf118ccf875508b9a1c570044c93cfcc82bd455ccommit hash: cf118ccf875508b9a1c570044c93cfcc82bd455ccommit hash: cf118ccf875508b9a1c570044c93cfcc82bd455ccommit hash: cf118ccf875508b9a1c570044c93cfcc82bd455c files touched by this commit
Mathieu Arnold (mat) search for other commits by this committer
One more small cleanup, forgotten yesterday.
Reported by:	lwhsu
5.4.2
06 Apr 2021 14:31:07
commit hash: 305f148f482daf30dcf728039d03d019f88344ebcommit hash: 305f148f482daf30dcf728039d03d019f88344ebcommit hash: 305f148f482daf30dcf728039d03d019f88344ebcommit hash: 305f148f482daf30dcf728039d03d019f88344eb files touched by this commit
Mathieu Arnold (mat) search for other commits by this committer
Remove # $FreeBSD$ from Makefiles.
5.4.2
09 Mar 2021 14:13:41
Revision:567933Original commit files touched by this commit
mat search for other commits by this committer
Remove occurrences of %%LUA_LIBDIR%%.

Differential Revision:	https://reviews.freebsd.org/D29138
5.4.2
13 Dec 2020 22:23:04
Revision:558061Original commit files touched by this commit
sunpoet search for other commits by this committer
Update to 5.4.2

Changes:	https://www.lua.org/versions.html
Differential Revision:	https://reviews.freebsd.org/D27589
Submitted by:	Russell Haley <russ.haley@gmail.com> (maintainer)
Reviewed by:	Andrew Gierth <andrew_tao173@riddles.org.uk>
5.4.1
15 Oct 2020 17:55:20
Revision:552438Original commit files touched by this commit
kevans search for other commits by this committer
[NEW PORT] lang/lua54 - Lua 5.4.1

Highlights for this version:
- new generational mode for garbage collection
- to-be-closed variables
- const variables
- complete list: https://www.lua.org/manual/5.4/readme.html#changes

The Lua Manual can be found here: https://www.lua.org/manual/5.4/

Incompatibilities from the previous version are specifically documented
here: https://www.lua.org/manual/5.4/manual.html#8

Submitted by:	Russ Haley <russ haley gmail com>
Co-submitted by:	Andrew Gierth <andrew_tao173 riddles org uk>
Differential Revision:	https://reviews.freebsd.org/D14709

Number of commits found: 14