Port details
lua54 Powerful, efficient, lightweight, embeddable scripting language
5.4.8_1 lang Σ=7 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.8_1Version of this port present on the latest quarterly branch. upstream: 5.4.9A newer version was found upstream by portscout, first on 2026-08-26.
Maintainer: andrew@tao11.riddles.org.uk search for ports maintained by this maintainer
Port Added: 2020-10-15 17:55:29
Last Update: 2026-11-24 16:06:28
Commit Hash: a9844c5
People watching this port, also watch: curl, gnupg, git, pkg, png
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 (22 items)
Collapse this list.
  1. @ldconfig
  2. /usr/local/share/licenses/lua54-5.4.8_1/catalog.mk
  3. /usr/local/share/licenses/lua54-5.4.8_1/LICENSE
  4. /usr/local/share/licenses/lua54-5.4.8_1/MIT
  5. share/sbom/pc/lua54.pc
  6. bin/lua54
  7. bin/luac54
  8. include/lua54/lauxlib.h
  9. include/lua54/lua.h
  10. include/lua54/lua.hpp
  11. include/lua54/luaconf.h
  12. include/lua54/lualib.h
  13. lib/liblua-5.4.a
  14. lib/liblua-5.4.so
  15. libdata/pkgconfig/lua-5.4.pc
  16. share/man/man1/lua54.1.gz
  17. share/man/man1/luac54.1.gz
  18. @dir lib/lua/5.4
  19. @dir share/lua/5.4
  20. @owner
  21. @group
  22. @mode
Collapse this list.
USE_RC_SUBR (Service Scripts)
  • no SUBR information found for this port
Dependency lines:
  • For RUN/BUILD depends:
    • lua54>0:lang/lua54
  • For LIB depends:
    • liblua-5.4.so: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
ABIaarch64amd64armv6armv7i386
FreeBSD:14:latest5.4.85.4.85.4.45.4.85.4.8
FreeBSD:14:quarterly5.4.85.4.8-5.4.75.4.8
FreeBSD:15:latest5.4.85.4.8n/a5.4.8n/a
FreeBSD:15:quarterly5.4.85.4.8n/a-n/a
FreeBSD:16:latest5.4.85.4.8n/a-n/a
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. dns/knot-resolver6
  3. lang/fennel
  4. net-im/prosody
  5. sysutils/fastfetch
  6. sysutils/ucored

Deleted ports which required this port:

Expand this list of 1 deleted port
  1. devel/swig40*
  2. Collapse this list of deleted ports.
for Libraries #
  1. archivers/lua-zlib
  2. archivers/rpm4
  3. comms/tio
  4. converters/lua-iconv
  5. converters/osm2pgsql
  6. databases/lua-lsqlite3
  7. databases/lua-pgsql
Expand this list (140 items / 133 hidden - sorry, this count includes any deleted ports)
  1. Collapse this list.
  2. databases/lua-xapian
  3. databases/luadbi
  4. databases/luasql-firebird
  5. databases/luasql-mysql
  6. databases/luasql-odbc
  7. databases/luasql-postgres
  8. databases/luasql-sqlite3
  9. databases/tokyotyrant
  10. devel/llvm-devel
  11. devel/llvm20
  12. devel/llvm21
  13. devel/llvm22
  14. devel/llvm23
  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-cjson-openresty
  22. devel/lua-cqueues
  23. devel/lua-lgi
  24. devel/lua-libevent
  25. devel/lua-lpeg
  26. devel/lua-luacheck
  27. devel/lua-luarocks
  28. devel/lua-luarocks-build-luke
  29. devel/lua-luastatic
  30. devel/lua-lunit
  31. devel/lua-lunitx
  32. devel/lua-optparse
  33. devel/lua-posix
  34. devel/lua-std.functional
  35. devel/lua-std.prototype
  36. devel/lua-stdlib
  37. devel/lua-stdlib-debug
  38. devel/lua-stdlib-normalize
  39. devel/lua-sysctl
  40. devel/luafilesystem
  41. devel/lutok
  42. devel/mfc-candidates
  43. devel/xmake-io
  44. dns/dnsdist
  45. dns/luaunbound
  46. dns/powerdns
  47. dns/powerdns-recursor
  48. editors/lite
  49. editors/lite-xl
  50. editors/mle
  51. editors/rehex
  52. editors/vis
  53. emulators/flycast
  54. emulators/mgba
  55. games/OpenTomb
  56. games/battletanks
  57. games/corsix-th
  58. games/etlegacy
  59. games/freeciv
  60. games/freeciv-nox11
  61. games/freeciv21
  62. games/jaggedalliance2
  63. games/megaglest
  64. games/onscripter
  65. games/onscripter-1byte
  66. games/stonesoup
  67. games/trx
  68. games/wesnoth
  69. games/xnethack
  70. graphics/darktable
  71. graphics/ipe
  72. graphics/lua-gd
  73. graphics/lua-qrencode
  74. graphics/xournalpp
  75. irc/dxirc
  76. irc/weechat
  77. lang/py-lupa
  78. lang/tolua
  79. mail/dovecot24
  80. mail/imapfilter
  81. mail/opendkim
  82. mail/opendkim-devel
  83. math/sc-im
  84. multimedia/obs-studio
  85. multimedia/vlc
  86. multimedia/wireplumber
  87. net/asterisk20
  88. net/asterisk22
  89. net/asterisk24
  90. net/lua-luasocket
  91. net/lualdap
  92. net/msoak
  93. net/ntopng
  94. net/tinyfugue-devel
  95. net/zapret2
  96. net-im/telegram-cli
  97. science/orthanc
  98. science/smith
  99. science/spheral
  100. security/lua-argon2
  101. security/lua-bcrypt
  102. security/luasec
  103. security/nmap
  104. sysutils/libdnf
  105. sysutils/lua-puremagic
  106. sysutils/porch
  107. sysutils/slurm-wlm
  108. sysutils/vtm
  109. textproc/highlight
  110. textproc/libucl
  111. textproc/lua-icu-utils
  112. textproc/lua-luaexpat
  113. textproc/lua-lyaml
  114. www/bozohttpd
  115. www/domoticz
  116. www/domoticz-devel
  117. www/faup
  118. www/lighttpd
  119. www/osrm-backend
  120. www/tokyopromenade
  121. x11/libinput
  122. x11-wm/awesome-devel
  123. x11-wm/notion
  124. Collapse this list.

Deleted ports which required this port:

Expand this list of 11 deleted ports
  1. devel/freebsd-git-devtools*
  2. devel/kyua*
  3. graphics/darktable38*
  4. graphics/darktable40*
  5. graphics/darktable42*
  6. net/asterisk16*
  7. net/asterisk18*
  8. net/luasocket*
  9. science/serac*
  10. sysutils/orch*
  11. textproc/luaexpat*
  12. Collapse this list of deleted ports.
for Run #
  1. converters/lua-json
  2. databases/xapian-bindings
  3. devel/sol2
  4. dns/knot-resolver6
  5. lang/fennel
  6. net-im/prosody

Configuration Options: #
===> The following configuration options are available for lua54-5.4.8_1: ====> 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
pkg-message: #
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: 15 #

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
5.4.8_1
24 Nov 2026 16:06:28
commit hash: a9844c5f4e09f61d7f32547bba99636395fd9341commit hash: a9844c5f4e09f61d7f32547bba99636395fd9341commit hash: a9844c5f4e09f61d7f32547bba99636395fd9341commit hash: a9844c5f4e09f61d7f32547bba99636395fd9341 files touched by this commit
Dag-Erling Smørgrav (des) search for other commits by this committer
various: Bump ports with CPE data
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:567933commit hash: 18f4cb47cc25322c08ca2126841b573a0c444be3commit hash: 18f4cb47cc25322c08ca2126841b573a0c444be3commit hash: 18f4cb47cc25322c08ca2126841b573a0c444be3commit hash: 18f4cb47cc25322c08ca2126841b573a0c444be3Original 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:558061commit hash: 9eb3bfc62133b79bc0a8a295b7b6aad8dca9adcccommit hash: 9eb3bfc62133b79bc0a8a295b7b6aad8dca9adcccommit hash: 9eb3bfc62133b79bc0a8a295b7b6aad8dca9adcccommit hash: 9eb3bfc62133b79bc0a8a295b7b6aad8dca9adccOriginal 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:552438commit hash: 3f8f20827c59dc79bc4045a7eaaadbbbcf84870dcommit hash: 3f8f20827c59dc79bc4045a7eaaadbbbcf84870dcommit hash: 3f8f20827c59dc79bc4045a7eaaadbbbcf84870dcommit hash: 3f8f20827c59dc79bc4045a7eaaadbbbcf84870dOriginal 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: 15