flua: Move to a new flua package
flua is a standalone third-party component that deserves its own package. In particular, this means things can use flua without having to depend on FreeBSD-utilities, which will be useful as more base utilities use flua. This saves ~500kB in FreeBSD-utilities for systems which don't need flua. MFC after: 3 days Reviewed by: kevans Sponsored by: https://www.patreon.com/bsdivy Differential Revision: https://reviews.freebsd.org/D53161
This commit is contained in:
@@ -27,6 +27,12 @@ NOTE TO PEOPLE WHO THINK THAT FreeBSD 16.x IS SLOW:
|
||||
world, or to merely disable the most expensive debugging functionality
|
||||
at runtime, run "ln -s 'abort:false,junk:false' /etc/malloc.conf".)
|
||||
|
||||
20251025:
|
||||
flua(1) has moved to the new FreeBSD-flua package. If you use flua,
|
||||
you may want to install this package if it's not otherwise installed
|
||||
as a dependency of something else. This change only affects pkgbase
|
||||
users.
|
||||
|
||||
20251021:
|
||||
Bump __FreeBSD_version to 1600002 for LinuxKPI. An embedded struct
|
||||
has changed size and might possibly be an issue otherwise.
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
.include <src.lua.mk>
|
||||
|
||||
PACKAGE= flua
|
||||
|
||||
# New flua modules should be added here rather than to SUBDIR so that we can do
|
||||
# the right thing for both bootstrap flua and target flua. The former does not
|
||||
# do any shared libs, so we just build them all straight into flua itself rather
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
PACKAGE= flua
|
||||
|
||||
SHLIBDIR?= ${LIBDIR}/flua
|
||||
|
||||
CFLAGS+= \
|
||||
|
||||
@@ -21,4 +21,9 @@ deps {
|
||||
"runtime" {
|
||||
version = "${VERSION}"
|
||||
},
|
||||
|
||||
# the pkgbase script requires flua
|
||||
"flua" {
|
||||
version = "${VERSION}"
|
||||
},
|
||||
}
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* SPDX-License-Identifier: ISC
|
||||
*
|
||||
* Copyright (c) 2025 Lexi Winter <ivy@FreeBSD.org>
|
||||
*
|
||||
* Permission to use, copy, modify, and distribute this software for any
|
||||
* purpose with or without fee is hereby granted, provided that the above
|
||||
* copyright notice and this permission notice appear in all copies.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
||||
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
comment = "Private Lua implementation"
|
||||
|
||||
desc = <<EOD
|
||||
flua(1) is an implementation of Lua for use by the base system. This facility
|
||||
is not intended for general use, and may be modified or removed at any time
|
||||
without notice.
|
||||
|
||||
Supported versions of Lua for general use are available in the FreeBSD Ports
|
||||
Collection.
|
||||
EOD
|
||||
|
||||
annotations {
|
||||
set = "optional,optional-jail"
|
||||
}
|
||||
@@ -27,6 +27,13 @@ loaded from a local disk or CD-ROM.
|
||||
nuageinit implements the cloud-init (https://cloud-init.io/) specification.
|
||||
EOD
|
||||
|
||||
deps {
|
||||
# nuageinit is written in Lua
|
||||
"flua" {
|
||||
version = "${VERSION}"
|
||||
},
|
||||
}
|
||||
|
||||
annotations {
|
||||
set = minimal
|
||||
}
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
* SPDX-License-Identifier: ISC
|
||||
*
|
||||
* Copyright (c) 2025 Lexi Winter <ivy@FreeBSD.org>
|
||||
*
|
||||
* Permission to use, copy, modify, and distribute this software for any
|
||||
* purpose with or without fee is hereby granted, provided that the above
|
||||
* copyright notice and this permission notice appear in all copies.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
||||
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
|
||||
deps {
|
||||
# Quite a few tests require flua.
|
||||
"flua" {
|
||||
version = "${VERSION}"
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user