[Buildroot] [PATCH 1/1] package/bat: fix build with GCC 15
El Mehdi YOUNES
elmehdi.younes at smile.fr
Thu Sep 4 15:12:15 UTC 2025
Le 03/09/2025 à 21:21, Thomas Petazzoni a écrit :
> On Tue, 2 Sep 2025 15:42:50 +0200
> El Mehdi YOUNES via buildroot <buildroot at buildroot.org> wrote:
>
>> Bat pulls in the onig crate (version 6.4.0) through syntect with the
>> default "regex-onig" feature. This crate depends on the Oniguruma C
>> library (via onig_sys), which fails to build with GCC 15 due to C23
>> keyword conflicts. Newer versions of onig fix this issue, but bat
>> cannot directly update the onig version because it is pinned by syntect.
>>
>> To resolve the build failure, apply a patch that replaces the
>> "regex-onig" feature with "regex-fancy" in bat's minimal-application
>> feature set. This switches bat to use the pure-Rust fancy-regex engine
>> instead of Oniguruma, avoiding the problematic onig_sys dependency.
>>
>> Fixes:
>>
>> https://autobuild.buildroot.net/?reason=bat-%
>>
>> Signed-off-by: El Mehdi YOUNES <elmehdi.younes at smile.fr>
>> ---
>> ...ig-by-regex-fancy-in-minimal-applica.patch | 40 +++++++++++++++++++
>> 1 file changed, 40 insertions(+)
>> create mode 100644 package/bat/0001-Replace-regex-onig-by-regex-fancy-in-minimal-applica.patch
> Tested-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
>
> If you fix the autobuild.buildroot.net URL and clarify the "Upstream:
> not submitted" tag in the patch, this is good to go for me as it allows
> to fix the build issue.
>
> Thanks!
Done! I sent a v2.
Best regards,
El Mehdi
> Thomas
More information about the buildroot
mailing list