<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test/libexec/flua, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test/atom?h=main</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/'/>
<updated>2020-08-14T02:40:17Z</updated>
<entry>
<title>Properly disable LUA_USE_DLOPEN for bootstrap flua</title>
<updated>2020-08-14T02:40:17Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2020-08-14T02:40:17Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=967fbfd9e2b7a015d5cba1491badcdf9044b28b9'/>
<id>urn:sha1:967fbfd9e2b7a015d5cba1491badcdf9044b28b9</id>
<content type='text'>
flua does have some specific bits that will include luaconf.h, but the
definition of LUA_USE_DLOPEN for those won't matter. This belongs in liblua
instead.

To expand on my previous commit, which was a little sparse with details,
it's not really safe to allow LUA_USE_DLOPEN with host lib paths being used.
The host system could have an entirely different lua version and this could
cause us to crash and burn.

If we want to revive this later, we need to make sure to define c module
paths inside OBJDIR that are compiled against whatever version we've
bootstrapped.

Pointy hat:	kevans
</content>
</entry>
<entry>
<title>flua: don't allow dlopen, et al., for bootstrap flua</title>
<updated>2020-08-14T02:22:19Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2020-08-14T02:22:19Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=c2a2b4f3cf11e770892a524df637f671f5989719'/>
<id>urn:sha1:c2a2b4f3cf11e770892a524df637f671f5989719</id>
<content type='text'>
There are some logistics issues that need to be sorted out here before we
can actually allow this to work.
</content>
</entry>
<entry>
<title>flua: support "require" for binary objects in the base system</title>
<updated>2020-08-13T23:13:05Z</updated>
<author>
<name>Ed Maste</name>
<email>emaste@FreeBSD.org</email>
</author>
<published>2020-08-13T23:13:05Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=3bd8419597b44dc3da2b1e6ffc2c7ee9cf4aa195'/>
<id>urn:sha1:3bd8419597b44dc3da2b1e6ffc2c7ee9cf4aa195</id>
<content type='text'>
Export symbols from flua, and enable dlopen.

Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D26059
</content>
</entry>
<entry>
<title>flua: add ucl library</title>
<updated>2020-06-22T03:14:43Z</updated>
<author>
<name>Ryan Moeller</name>
<email>freqlabs@FreeBSD.org</email>
</author>
<published>2020-06-22T03:14:43Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=94a82666846d62cdff7d78f78d428df35412e50d'/>
<id>urn:sha1:94a82666846d62cdff7d78f78d428df35412e50d</id>
<content type='text'>
libucl comes with a Lua library binding.  Build it into flua.

This lets us parse/generate config files in the various formats supported by
libucl with flua.  For example, the following script will detect the format of
an object written to stdin as one of UCL config, JSON, or YAML and write it to
stdout as pretty-printed JSON:

local ucl = require('ucl')
local parser = ucl.parser()
parser:parse_string(io.read('*a'))
local obj = parser:get_object()
print(ucl.to_format(obj, 'json'))

Reviewed by:	kevans, pstef
Approved by:	mmacy (mentor)
Relnotes:	yes
Differential Revision:	https://reviews.freebsd.org/D25009
</content>
</entry>
<entry>
<title>flua: follow-up to r359453, don't bother with libedit in bootstrap</title>
<updated>2020-03-30T20:01:44Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2020-03-30T20:01:44Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=28d832f993304707c58ce052ba4dd374de52e0b8'/>
<id>urn:sha1:28d832f993304707c58ce052ba4dd374de52e0b8</id>
<content type='text'>
The bootstrap flua should not be used for REPL-like activities; exclude it
to save the dependency on libedit and not waste time with it.

X-MFC-With:	r359453
</content>
</entry>
<entry>
<title>flua: enable readline bits, courtesy of libedit</title>
<updated>2020-03-30T18:43:05Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2020-03-30T18:43:05Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=b4a19ee2422c66243410081c83cbd08f1505fc84'/>
<id>urn:sha1:b4a19ee2422c66243410081c83cbd08f1505fc84</id>
<content type='text'>
This is a nicer experience when attempting to run ad-hoc lua bits in the
flua REPL.

PR:		245121
MFC after:	1 week
</content>
</entry>
<entry>
<title>Add an internal liblua and use it in flua.</title>
<updated>2020-03-17T17:28:12Z</updated>
<author>
<name>Brooks Davis</name>
<email>brooks@FreeBSD.org</email>
</author>
<published>2020-03-17T17:28:12Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=564b9ff2a7aa62f1094043b12de56ad75aa30394'/>
<id>urn:sha1:564b9ff2a7aa62f1094043b12de56ad75aa30394</id>
<content type='text'>
The new liblua will be used in a forthcoming import of kyua.

Reviewed by:	kevans
Obtained from:	CheriBSD
Sponsored by:	DARPA
Differential Revision:	https://reviews.freebsd.org/D24090
</content>
</entry>
<entry>
<title>flua: implement chmod</title>
<updated>2020-03-13T15:40:35Z</updated>
<author>
<name>Ed Maste</name>
<email>emaste@FreeBSD.org</email>
</author>
<published>2020-03-13T15:40:35Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=405e3338ac841999673056a2b5537b4c0ad677db'/>
<id>urn:sha1:405e3338ac841999673056a2b5537b4c0ad677db</id>
<content type='text'>
Lua does not provide a native way to change the permission of a file.

Submitted by:	Yang Wang &lt;2333@outlook.jp&gt;
Reviewed by:	kevans
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D24036
</content>
</entry>
<entry>
<title>flua: newer GCC complains about format-nonliteral at WARNS=2</title>
<updated>2019-11-19T00:02:56Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2019-11-19T00:02:56Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=061f7e2fd06d694fab29236a2610a8467943d3a6'/>
<id>urn:sha1:061f7e2fd06d694fab29236a2610a8467943d3a6</id>
<content type='text'>
Disable that one, too.
</content>
</entry>
<entry>
<title>Add flua to the base system, install to /usr/libexec</title>
<updated>2019-11-18T23:21:13Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2019-11-18T23:21:13Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=506f36402925a87ed1d1483189ba07cd42f27a3d'/>
<id>urn:sha1:506f36402925a87ed1d1483189ba07cd42f27a3d</id>
<content type='text'>
FreeBSDlua ("flua") is a FreeBSD-private lua, flavored with whatever
extensions we need for base system operations. We currently support a subset
of lfs and lposix that are used in the rewrite of makesyscall.sh into lua,
added in r354786.

flua is intentionally written such that one can install standard lua and
some set of lua modules from ports and achieve the same effect.

linit_flua is a copy of linit.c from contrib/lua with lfs and lposix added
in. This is similar to what we do in stand/. linit.c has been renamed to
make it clear that this has flua-specific bits.

luaconf has been slightly obfuscated to make extensions more difficult. Part
of the problem is that flua is already hard enough to use as a bootstrap
tool because it's not in PATH- attempting to do extension loading would
require a special bootstrap version of flua with paths changed to protect
the innocent.

src.lua.mk has been added to make it easy for in-tree stuff to find flua,
whether it's bootstrap-flua or relying on PATH frobbing by Makefile.inc1.

Reviewed by:	brooks, emaste (both earlier version), imp
Differential Revision:	https://reviews.freebsd.org/D21893
</content>
</entry>
</feed>
