Re: lua loader failes
- In reply to: 内藤祐一郎 : "lua loader failes"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 30 Jul 2024 01:02:30 UTC
Yes. My fault. I'll fix. I thought I'd tested the menu... but apparently not. My apologies. Warner On Mon, Jul 29, 2024, 6:44 PM 内藤祐一郎 <naito.yuichiro@gmail.com> wrote: > Hi, I updated my FreeBSD current machine to the following commit. > > FreeBSD vega.yuisoft.com 15.0-CURRENT FreeBSD 15.0-CURRENT #29 > main-n271492-0eac99f76ec3: Tue Jul 30 08:59:51 JST 2024 > yuichiro@vega.yuisoft.com:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG > amd64 > > The lua loader fails as follows. > > ERROR: error loading module 'menu' from file '/boot/lua/menu.lua': > /boot/lua/menu.lua:420: '}' expected (to close '{' at line 415) near 'vi > sible’. > > A comma is probably missing. The following patch works for me. > > diff --git a/stand/lua/menu.lua b/stand/lua/menu.lua > index 66d7fe673023..7d295eeb65eb 100644 > --- a/stand/lua/menu.lua > +++ b/stand/lua/menu.lua > @@ -416,7 +416,7 @@ menu.welcome = { entry_type = > core.MENU_SEPARATOR, > name = function() > return "Loader requires updating" > - end > + end, > visible = function() > return core.loaderTooOld() > end > > > — > Yuichiro NAITO > naito.yuichiro@gmail.com > > > > >