============================================================================= FreeBSD-EN-26:07.pkgbase Errata Notice
The FreeBSD Project
Topic: Base packages fail to build with newer versions of libucl
Category: core
Module: packages
Announced: 2026-04-21
Affects: FreeBSD 15.0
Corrected: 2026-04-07 11:27:02 UTC (stable/15, 15.0-STABLE)
2026-04-21 15:44:26 UTC (releng/15.0, 15.0-RELEASE-p6)
For general information regarding FreeBSD Errata Notices and Security Advisories, including descriptions of the fields above, security
branches, and the following sections, please visit <URL:https://security.FreeBSD.org/>.
I. Background
The libucl library is used for parsing documents in the UCL markup format. The base system private Lua (flua) exposes libucl to Lua applications via
the "ucl" module.
II. Problem Description
In libucl version 0.9.3, an API change was made in the Lua ucl module
to prohibit the use of certain syntax by default, specifically the
".include" directive. This change causes the base system package build ("make update-packages") to fail when the host system is using libucl
0.9.3 or later.
III. Impact
Future versions of FreeBSD, which include libucl 0.9.3 or later, will
be unable to build FreeBSD 15.0 base system packages from source.
IV. Workaround
No workaround is available.
V. Solution
Update the base system source tree to a supported FreeBSD stable or
release / security branch (releng) dated after the correction date.
No action is required on the host (build) system.
To update your system via a source code patch:
The following patches have been verified to apply to the applicable
FreeBSD release branches.
a) Download the relevant patch from the location below, and verify the detached PGP signature using your PGP utility.
# fetch https://security.FreeBSD.org/patches/EN-26:07/pkgbase.patch
# fetch https://security.FreeBSD.org/patches/EN-26:07/pkgbase.patch.asc
# gpg --verify pkgbase.patch.asc
b) Apply the patch. Execute the following commands as root:
# cd /usr/src
# patch < /path/to/patch
VI. Correction details
This issue is corrected as of the corresponding Git commit hash in the following stable and release branches:
Branch/path Hash Revision ------------------------------------------------------------------------- stable/15/ 976b2ebf4309 stable/15-n282865 releng/15.0/ f3bbb238daa1 releng/15.0-n281021 -------------------------------------------------------------------------
Run the following command to see which files were modified by a
particular commit:
# git show --stat <commit hash>
Or visit the following URL, replacing NNNNNN with the hash:
<URL:https://cgit.freebsd.org/src/commit/?id=NNNNNN>
To determine the commit count in a working tree (for comparison against nNNNNNN in the table above), run:
# git rev-list --count --first-parent HEAD
VII. References
The latest revision of this advisory is available at <URL:https://security.FreeBSD.org/advisories/FreeBSD-EN-26:07.pkgbase.asc>
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 65 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 12:05:39 |
| Calls: | 862 |
| Files: | 1,311 |
| D/L today: |
5 files (10,064K bytes) |
| Messages: | 265,374 |