From nobody Sat Oct 4 14:06:45 2025 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4cf6lp4xxnz68xZt; Sat, 04 Oct 2025 14:06:46 +0000 (UTC) (envelope-from kevans@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cf6lp4Jhsz410h; Sat, 04 Oct 2025 14:06:46 +0000 (UTC) (envelope-from kevans@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1759586806; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=eJ18CO4xXInRpuUmPUJb4DoSwfBAA9Lfn3r16NNdfoU=; b=dwrFNbAJrNBABZn3Mbz8HvL3Ip33kxqCrW4CWjHoiv3xbqAPCZXNdvVq1FWrgYhdQeYLYg 3D3OoxYFPVuDXyANfZpo76q5CnXJuVOAGIJEOhWFhTPoRQpqdzZ7sJorlvZG5z47oFWIot vOwhEbzJ91izfczu/ENzJRfs6z11Fs8gvumhpbhqhGF2cKY9zR9Kuw6t5mCRlunpFO7fyv PXRYydlZ2wIENKxPxelUs3fSDZYPdHX+oQYrR9Kq5uqIqo4EnPtKQTTrd5/Kp5ecWXbFg9 LIz2uUR6DXdCdebS9QyJ4QoNdbc9XIVo/Wn8eJ/kt6FBttQQ2hAYc4qb5dyf+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1759586806; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=eJ18CO4xXInRpuUmPUJb4DoSwfBAA9Lfn3r16NNdfoU=; b=o85tAS4Hcv/B2pbqCIXZefqsDxf04CnFtCLkH6lt5KvFUmWE9mKiystJpf2CAlsikAx4K2 0Acovr53sBXa1Yw1fGB5V7T1tx5Sq2gxjGGqV8v5+YxUF+P6iw0MdP9ptTlWMItTCuoiSP 5GcjU20FlgOdUXSoXn72/rgl1ZEqg5wwdYbgZT7lh6vvYtrOAobkpWJhx5q7bh9u/pfcZH rvWGez/qrihcTbF+Kv/dAnqYxe2cpp9UhdA1TXzbtV9tLdxtxNrSJVoleraw7J+MzFw1Fk 0Y2P75os5/ohX9ZkXzCowTiEcunpDMFBnxzUunl4RPokofwGSuqcs4g3OUTEdg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1759586806; a=rsa-sha256; cv=none; b=I+0htxjozEeM/r4yYLWRWP6y1g2UpvOuG3o+0lNUhJPDRIhYVqkqL0bRWAOvGBfgV9n12W OdMu6O3drIL4U1zLHu2kGemPsVZpIraS1mKyIlvuZ7u1GfapWsSsfq220v2Jd+sFzZEQZv l3Z1uKPZ+0O6+2ae9rOAAZ36JYXXQ9ejR3/1WIYJYK0+z9x+sMuhZERcQ6h0j4UMV296k6 MkU2htLuf7aqHLIcyEzY8hYxdYILAo6ehAn+lGF1PXWGC5/eL4630YbJvAdVHgaA81xfv7 u6tBJgCbTmHvDx2Nv4FKXFQB5T+gGqs5PmJwg76VxkFSdrqRGh4fsRhoC2gz4A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from [10.9.4.95] (unknown [209.182.120.176]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) (Authenticated sender: kevans/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4cf6lp17wBzngX; Sat, 04 Oct 2025 14:06:46 +0000 (UTC) (envelope-from kevans@FreeBSD.org) Message-ID: <6d10bcbc-38c9-4424-bc4e-55490c9d646b@FreeBSD.org> Date: Sat, 4 Oct 2025 09:06:45 -0500 List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: git: 1953a12ee2cd - main - flua: support our flua modules in the bootstrap flua To: Mark Johnston Cc: src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org References: <202510031810.593IAZE9008541@gitrepo.freebsd.org> <27098bd2-04e8-4ef7-8b8e-f7b170eb8151@FreeBSD.org> Content-Language: en-US From: Kyle Evans In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 10/4/25 07:42, Mark Johnston wrote: > On Fri, Oct 03, 2025 at 07:57:31PM -0500, Kyle Evans wrote: >> On 10/3/25 17:45, Mark Johnston wrote: >>> On Fri, Oct 03, 2025 at 04:44:38PM -0500, Kyle Evans wrote: >>>> On 10/3/25 16:39, Mark Johnston wrote: >>>>> On Fri, Oct 03, 2025 at 06:10:35PM +0000, Kyle Evans wrote: >>>>>> The branch main has been updated by kevans: >>>>>> >>>>>> URL: https://cgit.FreeBSD.org/src/commit/?id=1953a12ee2cde1afacb3e3f7612d89695c96e04f >>>>>> >>>>>> commit 1953a12ee2cde1afacb3e3f7612d89695c96e04f >>>>>> Author: Kyle Evans >>>>>> AuthorDate: 2025-10-03 18:09:03 +0000 >>>>>> Commit: Kyle Evans >>>>>> CommitDate: 2025-10-03 18:09:14 +0000 >>>>>> >>>>>> flua: support our flua modules in the bootstrap flua >>>>>> This version builds every module into the flua binary itself, since all >>>>>> of the bootstrap tools are built -DNO_SHARED. As a result, we also >>>>>> cannot dlsym(), so we can't really discover the names of our newly >>>>>> builtin modules. Instead, just build out a linker set with all of our >>>>>> luaopen_*() functions to register everything up-front. >>>>>> Building in all of the modules isn't strictly necessary, but it means >>>>>> that we have an example of how to add a bootstrap module everywhere you >>>>>> go and one doesn't need to consider whether bootstrap flua can use a >>>>>> module when writing scripts. On my build machine, the consequence on >>>>>> our binary size is an increase from around 1.6M -> 1.9M, which isn't >>>>>> really that bad. >>>>>> .lua modules can install into their usual path below $WORLDTMP/legacy >>>>>> and we'll pick them up automagically by way of the ctor that sets up >>>>>> LUA_PATH early on. >>>>>> Reviewed by: bapt, emaste >>>>>> Differential Revision: https://reviews.freebsd.org/D51890 >>>>> >>>>> This breaks cross-building from other OSes since linker.h and kenv.h >>>>> aren't available. I guess we can safely exclude those from the >>>>> bootstrap build? It could be done conditionally on ${.MAKE.OS} perhaps, >>>>> but it's probably better to be consistent. >>>> >>>> Hi, >>>> >>>> Hmm, yes- I think excluding libfreebsd and libjail doesn't make it much more >>>> difficult to reason about what's available in the bootstrap flua. >>>> >>>> re: cross-builds, yikes- I forgot that we'll end up bootstrapping flua there. I >>>> bet it's also broken without libyaml and libucl here: https://reviews.freebsd.org/D52894? >>> >>> I don't see any bootstrap build failures in an Ubuntu chroot after I >>> disable building libfreebsd. Let me know if you'd like me to submit a >>> patch for that. >> >> I backed all of it out for the time being, because testing with the github jobs pointed out >> something funky[0] with the for mach-o, and I don't want to stand in the >> way of breaking cross-builds for this at the moment. > > Thanks! On the latest main I do see some test failures from nuageinit, > which I presume are fallout from the changes. For instance: > Hi, I moved lposix back into flua for now; I forgot / failed to notice that the require model for lposix was a lot more complicated. The other two builtins are more trivial, so I left those out and just fixed the one place I found (in nuageinit) where we accidentally referenced them without an appropriate require(). Some of the nuageinit network tests fail locally, but seems unrelated as they're dumping out some of my host configuration: ===> nuageinit:config2_network_static_v4 Result: failed: atf-check failed; see the output of the test for details Start time: 2025-10-04T14:05:37.210330Z End time: 2025-10-04T14:05:37.528481Z Duration: 0.318s [...] Standard output: Executing command [ /usr/libexec/nuageinit /tmp/kyua.Vhgb9a/25/work/media/nuageinit nocloud ] Executing command [ cat /tmp/kyua.Vhgb9a/25/work/etc/rc.conf.d/network ] Standard error: Fail: stdout does not match golden output --- network 2025-10-04 14:05:39.331660000 +0000 +++ /tmp/kyua.Vhgb9a/25/work/check.MPF2Ag/stdout 2025-10-04 14:05:39.355412000 +0000 @@ -1,4 +1,4 @@ -ifconfig_ue0="inet 192.0.2.2/24" -ifconfig_ue0_ipv6="inet6 2001:db8::2/64" -ipv6_network_interfaces="ue0" -ipv6_default_interface="ue0" +ifconfig_bridge0="inet 192.0.2.2/24" +ifconfig_bridge0_ipv6="inet6 2001:db8::2/64" +ipv6_network_interfaces="bridge0" +ipv6_default_interface="bridge0" Files left in work directory after failure: etc, home, media, network, routing, var ===> Failed tests nuageinit:config2_network -> failed: atf-check failed; see the output of the test for details [0.317s] nuageinit:config2_network_static_v4 -> failed: atf-check failed; see the output of the test for details [0.318s] nuageinit:nocloud_network -> failed: atf-check failed; see the output of the test for details [0.336s]