<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/libexec/flua, branch release/13.1.0</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>stand: lua: enhance lfs.dir() to speed up kernels_autodetect</title>
<updated>2021-02-03T06:55:47+00:00</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2021-01-24T01:32:38+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=13de72571eb2532e253fb8d40edf47ebabb99e92'/>
<id>13de72571eb2532e253fb8d40edf47ebabb99e92</id>
<content type='text'>
This eliminates a lot of stat() calls that happen when lualoader renders the
menu with the default settings, and greatly speeds up rendering on my
laptop.

ftype is nil if loader/loader.efi hasn't been updated yet, falling back to
lfs.attributes() to test.

This is technically incompatible with lfs, but not in a particularly
terrible way.

(cherry picked from commit e25ee296c919d6567aa76058a7049eac974797fb)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This eliminates a lot of stat() calls that happen when lualoader renders the
menu with the default settings, and greatly speeds up rendering on my
laptop.

ftype is nil if loader/loader.efi hasn't been updated yet, falling back to
lfs.attributes() to test.

This is technically incompatible with lfs, but not in a particularly
terrible way.

(cherry picked from commit e25ee296c919d6567aa76058a7049eac974797fb)
</pre>
</div>
</content>
</entry>
<entry>
<title>Properly disable LUA_USE_DLOPEN for bootstrap flua</title>
<updated>2020-08-14T02:40:17+00:00</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2020-08-14T02:40:17+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=967fbfd9e2b7a015d5cba1491badcdf9044b28b9'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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
</pre>
</div>
</content>
</entry>
<entry>
<title>flua: don't allow dlopen, et al., for bootstrap flua</title>
<updated>2020-08-14T02:22:19+00:00</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2020-08-14T02:22:19+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=c2a2b4f3cf11e770892a524df637f671f5989719'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
There are some logistics issues that need to be sorted out here before we
can actually allow this to work.
</pre>
</div>
</content>
</entry>
<entry>
<title>flua: support "require" for binary objects in the base system</title>
<updated>2020-08-13T23:13:05+00:00</updated>
<author>
<name>Ed Maste</name>
<email>emaste@FreeBSD.org</email>
</author>
<published>2020-08-13T23:13:05+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=3bd8419597b44dc3da2b1e6ffc2c7ee9cf4aa195'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Export symbols from flua, and enable dlopen.

Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D26059
</pre>
</div>
</content>
</entry>
<entry>
<title>flua: add ucl library</title>
<updated>2020-06-22T03:14:43+00:00</updated>
<author>
<name>Ryan Moeller</name>
<email>freqlabs@FreeBSD.org</email>
</author>
<published>2020-06-22T03:14:43+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=94a82666846d62cdff7d78f78d428df35412e50d'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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
</pre>
</div>
</content>
</entry>
<entry>
<title>flua: follow-up to r359453, don't bother with libedit in bootstrap</title>
<updated>2020-03-30T20:01:44+00:00</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2020-03-30T20:01:44+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=28d832f993304707c58ce052ba4dd374de52e0b8'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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
</pre>
</div>
</content>
</entry>
<entry>
<title>flua: enable readline bits, courtesy of libedit</title>
<updated>2020-03-30T18:43:05+00:00</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2020-03-30T18:43:05+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=b4a19ee2422c66243410081c83cbd08f1505fc84'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is a nicer experience when attempting to run ad-hoc lua bits in the
flua REPL.

PR:		245121
MFC after:	1 week
</pre>
</div>
</content>
</entry>
<entry>
<title>Add an internal liblua and use it in flua.</title>
<updated>2020-03-17T17:28:12+00:00</updated>
<author>
<name>Brooks Davis</name>
<email>brooks@FreeBSD.org</email>
</author>
<published>2020-03-17T17:28:12+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=564b9ff2a7aa62f1094043b12de56ad75aa30394'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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
</pre>
</div>
</content>
</entry>
<entry>
<title>flua: implement chmod</title>
<updated>2020-03-13T15:40:35+00:00</updated>
<author>
<name>Ed Maste</name>
<email>emaste@FreeBSD.org</email>
</author>
<published>2020-03-13T15:40:35+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=405e3338ac841999673056a2b5537b4c0ad677db'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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
</pre>
</div>
</content>
</entry>
<entry>
<title>flua: newer GCC complains about format-nonliteral at WARNS=2</title>
<updated>2019-11-19T00:02:56+00:00</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2019-11-19T00:02:56+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=061f7e2fd06d694fab29236a2610a8467943d3a6'/>
<id>061f7e2fd06d694fab29236a2610a8467943d3a6</id>
<content type='text'>
Disable that one, too.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Disable that one, too.
</pre>
</div>
</content>
</entry>
</feed>
