Page MenuHomeFreeBSD

liblua: ensure that "require" will fail in bootstrap flua
ClosedPublic

Authored by emaste on Apr 28 2020, 11:48 PM.
Tags
None
Referenced Files
F137489934: D24610.id71133.diff
Sun, Nov 23, 10:49 PM
Unknown Object (File)
Sat, Nov 22, 4:09 PM
Unknown Object (File)
Wed, Nov 19, 12:01 AM
Unknown Object (File)
Mon, Nov 17, 7:18 AM
Unknown Object (File)
Sat, Nov 15, 5:53 PM
Unknown Object (File)
Fri, Nov 14, 12:37 AM
Unknown Object (File)
Thu, Nov 6, 12:32 PM
Unknown Object (File)
Oct 25 2025, 3:06 AM
Subscribers
None

Details

Summary

We do not want to support bootstrapping lua modules, so ensure that require will fail by providing a nonexistent path.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

emaste created this revision.
kevans added inline comments.
lib/liblua/Makefile
31 โ†—(On Diff #71133)

This should probably read ?.so to be consistent with the name, but given that we're intentionally clobbering these to something that won't resolve, I won't insist.

This revision is now accepted and ready to land.Apr 29 2020, 12:59 AM
lib/liblua/Makefile
31 โ†—(On Diff #71133)

Yes good point, I just cut and pasted.

We could actually drop the ? part completely, just /nonexistent and it would fail just as well, but the ? may give a necessary clue via dtrace/ktrace if bootstrap does break from this.