From nobody Tue Apr 7 01:31:12 2026 X-Original-To: pkgbase@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 4fqTDv3nlYz6YQVN for ; Tue, 07 Apr 2026 01:31:27 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qt1-f177.google.com (mail-qt1-f177.google.com [209.85.160.177]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fqTDs2FBjz3GqZ for ; Tue, 07 Apr 2026 01:31:25 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=none; arc=pass ("google.com:s=arc-20240605:i=1"); dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=freebsd.org (policy=none); spf=pass (mx1.freebsd.org: domain of adrian.chadd@gmail.com designates 209.85.160.177 as permitted sender) smtp.mailfrom=adrian.chadd@gmail.com Received: by mail-qt1-f177.google.com with SMTP id d75a77b69052e-50d6b9bca48so57407531cf.2 for ; Mon, 06 Apr 2026 18:31:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1775525484; cv=none; d=google.com; s=arc-20240605; b=TEYbM383v6h/pkGDSY6xPfj8wC2mRgeuSwq1ZpT9cRgctbIBANvbMPiVhnPPXKlsG1 G+W2W5hYH4U6QM+VQ9nsAqMZqZgWXAIIhVCHbhpzaZQyz4uPy0zSi6G2J+SOM/dQKZjB JzacoqaoHZIRtxtmJoqKnmLslYdqmXiACYOOR7ZluEENQ+50TjHQ9aM66MM2VM3hnAjV z0lMMemprVnghcPb0Nx8qlU7xcagZQWLnXA7f2a/UQGp+Y+dMNg3cZblJpWGNbtqmCw4 qmTF0ui7eRiOkWjlz0+tAZr1iU/uE8JWI8WQCXdCbshzAiZ4WMl1GnaQYFJvLlsXTR3F 5crg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=to:subject:message-id:date:from:in-reply-to:references:mime-version; bh=TyCWI1FjrC7L/bbCL9Hq2ezU/Zv144gy+Zwlh5D6hug=; fh=AKW+9ULtFarKbolAHwzT4eQJgCm+zcOWSS4cSrNsTCs=; b=USVLDvv1+Mpb0dqETn2WVxb5idL6TQeqSBszFQihxpu65AatvraIF8Wrv1BSNcEmEo xtzSRyEWStH0vNFU9D+i3Xr3qSzSLBPtiEbHUDB/00i8S+KiNtL71jO4UIl07IujbT2E SglvEpnH4xZ7dVmTuV4UJ3Jfk/26BfKp185CqhBDyvuiMQ9xB67zMrnJh//8sznCLYn3 dxFiT5jyjzPp5nUw//rMozW4Ny03uVuXV2JNs7tBuouoapkUlmciN0qTi/YrZ49/XrK5 Sl8oQFvFjL1l9f08BPEi9SrQmFo9cwFyvQcsWA+BOgBfy7rfbKTVK3K4H7WDJpE9ZxAN bGsg==; darn=freebsd.org ARC-Authentication-Results: i=1; mx.google.com; arc=none X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775525484; x=1776130284; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=TyCWI1FjrC7L/bbCL9Hq2ezU/Zv144gy+Zwlh5D6hug=; b=ZhMIm5fLTPXBctQl58p8sFp5UvElme8FgjQ0MqPiuG5bjJzgJ/+HMeBP4xSxfGo8rr Lql1RMCjpJXnmkiuJpsiw7WPFiiCQhzWpBzumtLx+lEn68Jfh4JNi1ghYgRMvadYP2Wd +j5duF7/LV96vImAFWUX/jCWoAj0oLVzFTicYrZ3d1L+6v0wloMK9u/0w2POEmZFBFX0 cynkOzsYZ7tuQZNhrJcOOvxPoO+b3xJo7QDdaQV0fo3WD5zHfWO6EHzExhf/HH1BdoXA im2OlSWc9/cMw7P8c9MCiGfkF8TNyaCAErqcg8eLatT8UpaF30hwOmtp80OZ/bSom/O1 OeBQ== X-Forwarded-Encrypted: i=1; AJvYcCXKfxsFySiGL9FQmg6MwLMV577xc7OWVlyMsM2mFTvuWr8Qn6MbJV5s3NVkMl8kgRqnd8jONufk@freebsd.org X-Gm-Message-State: AOJu0YzbuhxxrgtrH3O2Y3zN7Zv08/nFylLMAAMzoNgPtBu0OmUVU0tB J7wWzAXxFcZA8mDTs7tfPV3fC/K2FhImpNQX7xL+4ujQiSOSnTHO+t7h7Hhh9VPW/2zUySbRFJ4 4Su0CTK7SB7O3ykCK19wnYy9u/woP0+oqPw== X-Gm-Gg: AeBDiescWcx35OSW0Chxiu80V1hcYKu88z3q9YDUUziS3V2K5RPJ6cHgu2vrnFeO+Vc W/u2Sdns/Oo1qh1uZuBmlJ7c9evcSPMlOmZcc20dPNVgp9JZ9BAYJpGKhCH0JdhAHw8L0BdXAvI thxs9rWYTawxfYs/8TOe6X3Jbs+WyWuI1sloY2PTwNxWY9bFlurtvHAv8Tk+lwqggwZ7Wk7zUoL kmVLZaA0tlQm73xKTQd11Umc86pr3Aa2qaLq7Zh8QbJwa3OmCDc9oQsq9h0th6BX4WY+Ej0rCdF vy9T+tssXCacXsaj1uwnFaABpiovNekWHrcCx01x784zLxmfTvao1/BwTP+gCorCr9RAb8QRkb1 ekYC7xj2A4D4N3snxwgMlmAZB2Xk= X-Received: by 2002:a05:622a:10d:b0:50b:4a3f:c798 with SMTP id d75a77b69052e-50d62a91b69mr224131441cf.43.1775525484013; Mon, 06 Apr 2026 18:31:24 -0700 (PDT) List-Id: Packaging the FreeBSD base system List-Archive: https://lists.freebsd.org/archives/freebsd-pkgbase List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-pkgbase@FreeBSD.org MIME-Version: 1.0 References: In-Reply-To: From: Adrian Chadd Date: Mon, 6 Apr 2026 18:31:12 -0700 X-Gm-Features: AQROBzBUYnlHLAANwv1nK0_wHddMWeuV-G5qKDlQYRhNvtFupUEs4uNdNU8aZ-s Message-ID: Subject: Re: pkgbase breakage in main due to libucl upgrade To: current@freebsd.org, pkgbase@freebsd.org, bofh@freebsd.org, bapt@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Spamd-Result: default: False [-1.64 / 15.00]; ARC_ALLOW(-1.00)[google.com:s=arc-20240605:i=1]; NEURAL_SPAM_MEDIUM(0.92)[0.919]; NEURAL_HAM_LONG(-0.87)[-0.873]; NEURAL_HAM_SHORT(-0.69)[-0.688]; FORGED_SENDER(0.30)[adrian@freebsd.org,adrianchadd@gmail.com]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17]; MIME_GOOD(-0.10)[text/plain]; DMARC_POLICY_SOFTFAIL(0.10)[freebsd.org : SPF not aligned (relaxed), No valid DKIM,none]; RWL_MAILSPIKE_GOOD(-0.10)[209.85.160.177:from]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; MISSING_XM_UA(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; RCVD_IN_DNSWL_NONE(0.00)[209.85.160.177:from]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; TAGGED_FROM(0.00)[]; TO_DN_NONE(0.00)[]; FROM_HAS_DN(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[pkgbase@freebsd.org]; MLMMJ_DEST(0.00)[pkgbase@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; R_DKIM_NA(0.00)[]; FROM_NEQ_ENVFROM(0.00)[adrian@freebsd.org,adrianchadd@gmail.com] X-Rspamd-Queue-Id: 4fqTDs2FBjz3GqZ X-Spamd-Bar: - hi! On Mon, 6 Apr 2026 at 07:11, Lexi Winter wrote: > > hello, > > as a couple of people already reported[0][1] the pkgbase build is > currently broken in main. this affects building packages for any > version of FreeBSD when the build host is main abda442d92fd[2] or > later. > > this is not trivial to fix. the issue is that libucl changed the > lua bindings in an incompatible way, specifically to disable use > of macros (which includes ".include") by default[3]. that breaks > the API that the pkgbase build scripts rely on, and those scripts > use the host flua. > > as an immediate fix, i have three diffs for review: > > - "packages: Fix build with libucl 0.9.3" > https://reviews.freebsd.org/D56266 > > this change, which is backward-compatible with previous versions > of lua libucl, fixes the ABI breakage. > > - "flua: Always build as a bootstrap tool" > https://reviews.freebsd.org/D56270 > "packages: Always use the bootstrap flua" > https://reviews.freebsd.org/D56271 > > these changes mean we'll use the version of flua and libucl from > the source tree to build packages, instead of the host versions, > which protects us from future API breaks. > > if you're running into this issue right now, you can apply the patch > from D56266 to fix your build, and optionally the other two diffs if > you like (but they aren't required). this has to be done on the src > tree being built, *not* the build system. > > unfortunately, none of these changes fix the general problem which is > that we can't build FreeBSD 15.0 on FreeBSD 16-CURRENT. i'm open to > other suggestsions here, but i think the best approach is to revert the > libucl commit that changed the ABI; while this is a security fix, the > only things using flua are in the base system, and none of them should > be affected by the issue being fixed. > > any thoughts? > > [0] https://lists.freebsd.org/archives/freebsd-current/2026-April/010080.html > [1] https://lists.freebsd.org/archives/freebsd-pkgbase/2026-April/001284.html > [2] https://cgit.freebsd.org/src/commit/?id=abda442d92fdbadcf81c79bc9ddba001d133c429 > [3] https://github.com/vstakhov/libucl/commit/8a0294f9eaa4e70342e562cb92792bbe3df90e70 *reads* * I think your diffs / approach is good; * I honestly don't think we should revert the libucl change; it'll just end up making future work less fun as other random flua/libucl shenanigans happen; * I think we should document in the 15.0 errata that building 15.0 on 16.0 after date X is a known broken thing, and to either build on 15.x or apply a workaround (eg a patch to disable the check, explaining what it does and the security risk) * and I think we should figure out what to backport to stable/15 to unbreak things. -adrian