{"id":2224875,"url":"http://patchwork.ozlabs.org/api/patches/2224875/?format=json","web_url":"http://patchwork.ozlabs.org/project/buildroot/patch/20260419090115.1129567-1-bernd@kuhls.net/","project":{"id":27,"url":"http://patchwork.ozlabs.org/api/projects/27/?format=json","name":"Buildroot development","link_name":"buildroot","list_id":"buildroot.buildroot.org","list_email":"buildroot@buildroot.org","web_url":"","scm_url":"","webscm_url":"","list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20260419090115.1129567-1-bernd@kuhls.net>","list_archive_url":null,"date":"2026-04-19T09:01:15","name":"[1/1] package/zeek: add various fixes for gcc >= 15.x","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"301ef5cc0ca848a6204f92b803eba14395eadd33","submitter":{"id":86624,"url":"http://patchwork.ozlabs.org/api/people/86624/?format=json","name":"Bernd Kuhls","email":"bernd@kuhls.net"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/buildroot/patch/20260419090115.1129567-1-bernd@kuhls.net/mbox/","series":[{"id":500488,"url":"http://patchwork.ozlabs.org/api/series/500488/?format=json","web_url":"http://patchwork.ozlabs.org/project/buildroot/list/?series=500488","date":"2026-04-19T09:01:15","name":"[1/1] package/zeek: add various fixes for gcc >= 15.x","version":1,"mbox":"http://patchwork.ozlabs.org/series/500488/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2224875/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2224875/checks/","tags":{},"related":[],"headers":{"Return-Path":"<buildroot-bounces@buildroot.org>","X-Original-To":["incoming-buildroot@patchwork.ozlabs.org","buildroot@buildroot.org"],"Delivered-To":["patchwork-incoming-buildroot@legolas.ozlabs.org","buildroot@buildroot.org"],"Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=buildroot.org header.i=@buildroot.org\n header.a=rsa-sha256 header.s=default header.b=NEdjD6bG;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org\n (client-ip=2605:bc80:3010::136; helo=smtp3.osuosl.org;\n envelope-from=buildroot-bounces@buildroot.org; receiver=patchwork.ozlabs.org)"],"Received":["from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fz2fZ6YM5z1yCv\n\tfor <incoming-buildroot@patchwork.ozlabs.org>;\n Sun, 19 Apr 2026 19:01:26 +1000 (AEST)","from localhost (localhost [127.0.0.1])\n\tby smtp3.osuosl.org (Postfix) with ESMTP id EBFBA60FC0;\n\tSun, 19 Apr 2026 09:01:24 +0000 (UTC)","from smtp3.osuosl.org ([127.0.0.1])\n by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP\n id 5bEVVVELYWt5; Sun, 19 Apr 2026 09:01:23 +0000 (UTC)","from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142])\n\tby smtp3.osuosl.org (Postfix) with ESMTP id AF22760FAF;\n\tSun, 19 Apr 2026 09:01:23 +0000 (UTC)","from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n by lists1.osuosl.org (Postfix) with ESMTP id 21CE624D\n for <buildroot@buildroot.org>; Sun, 19 Apr 2026 09:01:22 +0000 (UTC)","from localhost (localhost [127.0.0.1])\n by smtp4.osuosl.org (Postfix) with ESMTP id 0808240BAD\n for <buildroot@buildroot.org>; Sun, 19 Apr 2026 09:01:22 +0000 (UTC)","from smtp4.osuosl.org ([127.0.0.1])\n by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP\n id l91LdGB0gLyW for <buildroot@buildroot.org>;\n Sun, 19 Apr 2026 09:01:20 +0000 (UTC)","from dd20012.kasserver.com (dd20012.kasserver.com [85.13.140.57])\n by smtp4.osuosl.org (Postfix) with ESMTPS id 30EC840B8E\n for <buildroot@buildroot.org>; Sun, 19 Apr 2026 09:01:18 +0000 (UTC)","from fli4l.lan.fli4l (p4fd6cc94.dip0.t-ipconnect.de\n [79.214.204.148])\n by dd20012.kasserver.com (Postfix) with ESMTPSA id EF639A4C0C96;\n Sun, 19 Apr 2026 11:01:15 +0200 (CEST)","from bruckner.lan.fli4l ([192.168.1.1]:50252)\n by fli4l.lan.fli4l with esmtp (Exim 4.99.1)\n (envelope-from <bernd@kuhls.net>) id 1wEO1j-000000005ix-0QiY;\n Sun, 19 Apr 2026 09:01:15 +0000"],"X-Virus-Scanned":["amavis at osuosl.org","amavis at osuosl.org"],"X-Comment":"SPF check N/A for local connections - client-ip=140.211.166.142;\n helo=lists1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org;\n receiver=<UNKNOWN> ","DKIM-Filter":["OpenDKIM Filter v2.11.0 smtp3.osuosl.org AF22760FAF","OpenDKIM Filter v2.11.0 smtp4.osuosl.org 30EC840B8E"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=buildroot.org;\n\ts=default; t=1776589283;\n\tbh=RPIdyAqWFE2yLgzgbiCFjGLDmIQe0seBxB4N4Y2DxiE=;\n\th=From:To:Cc:Date:Subject:List-Id:List-Unsubscribe:List-Archive:\n\t List-Post:List-Help:List-Subscribe:From;\n\tb=NEdjD6bGV5tXtg5AY/SsIobyq9CRukjGUtXxV2aWSbX7geg/JEho7vvUE/BXlgvQ6\n\t Cr38fh9D2nxmZ2+XD7noI/vsDpPkqILAbVH5q+ruKg9O3erZaSYwuPKppvrt6NXoxc\n\t O8psu4iulHQ9Ta+cO2ObJbmIaUnKdT0Mbjx/8gapI3FTY/imUQG1pJD7jGGeawqwrk\n\t LrQyQ5kOdYXbS/ZBtCUkLFZy0Uj97BbCerRo9b+Sg8hFhyireE9LtBAQDcBeXljPy3\n\t 001K6X/fnUVot7Srk+oJjFCV/Ffm8VCdHPqpTuZWVjUyESlI8bDDSUcBbAy1LqgC0T\n\t ROtKxLPXK/mXQ==","Received-SPF":"Pass (mailfrom) identity=mailfrom; client-ip=85.13.140.57;\n helo=dd20012.kasserver.com; envelope-from=bernd@kuhls.net;\n receiver=<UNKNOWN>","DMARC-Filter":"OpenDMARC Filter v1.4.2 smtp4.osuosl.org 30EC840B8E","From":"Bernd Kuhls <bernd@kuhls.net>","To":"buildroot@buildroot.org","Cc":"Fabrice Fontaine <fontaine.fabrice@gmail.com>","Date":"Sun, 19 Apr 2026 11:01:15 +0200","Message-ID":"<20260419090115.1129567-1-bernd@kuhls.net>","X-Mailer":"git-send-email 2.47.3","MIME-Version":"1.0","X-Spamd-Bar":"-","X-Mailman-Original-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=kuhls.net;\n s=kas202511301023; t=1776589276;\n bh=pcctYbipgYh7NcIwAhWZxs/bSwgS8keO1x8dEu0jq1g=;\n h=From:To:Cc:Subject:Date:From;\n b=eYJOFkKiYtyzOgBjWh6f37Gm2HarC0LA5DzyaeTO245xRMeYJBwJuG/WJJJNZWbAC\n CoUGCvZzkF01gWvXuFKUGkZ6fZIztgCC4JN5Yi61Kdax68JajgYPkmZHSU3xGCmfWk\n edm/Sg5aLc/0xmd/cxzonlClmZ3lKZRphK3rdN9pWNDwNPe2ye4HjOzWpsPNkxroy+\n 5Uwy/UK2+Rzj68I8/qm5PSym5T+T6fZtc51/OZ65b8XXTImzQSYae/CluZ2EO3Kwd+\n UOEVoXrJ/FGBhApqVJSNP+8uYezAlQgiFVr/xd5qO1PNPNaKpbPyUnTQzqIJUCHB3A\n nif6ZJJPjlHUQ==","X-Mailman-Original-Authentication-Results":["smtp4.osuosl.org;\n dmarc=pass (p=none dis=none)\n header.from=kuhls.net","smtp4.osuosl.org;\n dkim=pass (2048-bit key,\n unprotected) header.d=kuhls.net header.i=@kuhls.net header.a=rsa-sha256\n header.s=kas202511301023 header.b=eYJOFkKi"],"Subject":"[Buildroot] [PATCH 1/1] package/zeek: add various fixes for gcc >=\n 15.x","X-BeenThere":"buildroot@buildroot.org","X-Mailman-Version":"2.1.30","Precedence":"list","List-Id":"Discussion and development of buildroot <buildroot.buildroot.org>","List-Unsubscribe":"<https://lists.buildroot.org/mailman/options/buildroot>,\n <mailto:buildroot-request@buildroot.org?subject=unsubscribe>","List-Archive":"<http://lists.buildroot.org/pipermail/buildroot/>","List-Post":"<mailto:buildroot@buildroot.org>","List-Help":"<mailto:buildroot-request@buildroot.org?subject=help>","List-Subscribe":"<https://lists.buildroot.org/mailman/listinfo/buildroot>,\n <mailto:buildroot-request@buildroot.org?subject=subscribe>","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Errors-To":"buildroot-bounces@buildroot.org","Sender":"\"buildroot\" <buildroot-bounces@buildroot.org>"},"content":"Fixes:\nhttps://autobuild.buildroot.net/results/022/0227cdc337fe7cbb19d9b88b2c3d890c6a3ee347/\n\nPlease note that patch 0006 fixes a follow-up error masked by the\nconfigure error found by the autobuilders.\n\nBuilding zeek with gcc 14.x works unpatched with this defconfig:\n\nBR2_x86_64=y\nBR2_TOOLCHAIN_EXTERNAL=y\nBR2_TOOLCHAIN_EXTERNAL_BOOTLIN_X86_64_GLIBC_STABLE=y\nBR2_PACKAGE_ZEEK=y\n\nThe cause of the build errors was the bump of gcc to 15.x, this\ndefconfig fails without these new patches:\n\nBR2_x86_64=y\nBR2_TOOLCHAIN_EXTERNAL=y\nBR2_PER_PACKAGE_DIRECTORIES=y\nBR2_PACKAGE_ZEEK=y\n\nSigned-off-by: Bernd Kuhls <bernd@kuhls.net>\n---\n@Fabrice: Building with BR2_PACKAGE_ZEEK_ZEEKCTL=y is still broken.\nOur zeek release 4.1.1 dates back to 2021 with > 8000 patches applied\nto upstream since then, current version is 8.1.1. Backporting python-\nrelated patches to fix the build of zeekctl looks really difficult due\nto many changes in the 3rd-party libraries/submodules used by zeek.\n\nDo you have any interest in further maintaining zeek or should we\nconsider to remove the package because it regularly causes build\nerrors due to its huge codebase?\n\n ...fedora-rawhide-due-to-FindBIND.cmake.patch | 28 ++++++++++\n ...dint-to-header-files-and-source-file.patch | 55 +++++++++++++++++++\n 2 files changed, 83 insertions(+)\n create mode 100644 package/zeek/0005-Fix-build-with-fedora-rawhide-due-to-FindBIND.cmake.patch\n create mode 100644 package/zeek/0006-Add-include-cstdint-to-header-files-and-source-file.patch","diff":"diff --git a/package/zeek/0005-Fix-build-with-fedora-rawhide-due-to-FindBIND.cmake.patch b/package/zeek/0005-Fix-build-with-fedora-rawhide-due-to-FindBIND.cmake.patch\nnew file mode 100644\nindex 0000000000..53f4d7bc1e\n--- /dev/null\n+++ b/package/zeek/0005-Fix-build-with-fedora-rawhide-due-to-FindBIND.cmake.patch\n@@ -0,0 +1,28 @@\n+From dd6b23769d624b88abb452d657e2aede4af6a211 Mon Sep 17 00:00:00 2001\n+From: Johanna Amann <johanna@corelight.com>\n+Date: Sun, 19 Apr 2026 09:02:20 +0200\n+Subject: [PATCH] Fix build with fedora rawhide due to FindBIND.cmake\n+\n+Upstream: https://github.com/zeek/zeek/issues/4329\n+\n+Signed-off-by: Bernd Kuhls <bernd@kuhls.net>\n+---\n+ cmake/FindBIND.cmake | 2 +-\n+ 1 file changed, 1 insertion(+), 1 deletion(-)\n+\n+diff --git a/cmake/FindBIND.cmake b/cmake/FindBIND.cmake\n+index a5e3204..da18242 100644\n+--- a/cmake/FindBIND.cmake\n++++ b/cmake/FindBIND.cmake\n+@@ -66,7 +66,7 @@ foreach (bindlib ${bind_libs})\n+         #include <arpa/nameser.h>\n+         #include <resolv.h>\n+         int main() {\n+-            int (*p)() = res_mkquery;\n++            int (*p)() = (int (*)())res_mkquery;\n+             return 0;\n+         }\n+ \" res_mkquery_works_${bindlib})\n+-- \n+2.47.3\n+\ndiff --git a/package/zeek/0006-Add-include-cstdint-to-header-files-and-source-file.patch b/package/zeek/0006-Add-include-cstdint-to-header-files-and-source-file.patch\nnew file mode 100644\nindex 0000000000..aacd86e7b5\n--- /dev/null\n+++ b/package/zeek/0006-Add-include-cstdint-to-header-files-and-source-file.patch\n@@ -0,0 +1,55 @@\n+From 4c7f302f0526713adae4aad7b3153be53039aca3 Mon Sep 17 00:00:00 2001\n+From: i2z1 <i2z1@yandex.ru>\n+Date: Tue, 6 May 2025 22:09:27 +0300\n+Subject: [PATCH] Add `#include <cstdint>` to header files and source file\n+\n+Upstream: https://github.com/zeek/paraglob/commit/4c7f302f0526713adae4aad7b3153be53039aca3\n+\n+Signed-off-by: Bernd Kuhls <bernd@kuhls.net>\n+---\n+ auxil/paraglob/include/paraglob/paraglob.h   | 2 ++\n+ auxil/paraglob/include/paraglob/serializer.h | 1 +\n+ src/paraglob.cpp              | 2 ++\n+ 3 files changed, 5 insertions(+)\n+\n+diff --git a/auxil/paraglob/include/paraglob/paraglob.h b/auxil/paraglob/include/paraglob/paraglob.h\n+index d29488c..f02b4f6 100644\n+--- a/auxil/paraglob/include/paraglob/paraglob.h\n++++ b/auxil/paraglob/include/paraglob/paraglob.h\n+@@ -13,6 +13,8 @@\n+ #include <vector>\n+ #include <memory> // std::unique_ptr\n+ \n++#include <cstdint>\n++\n+ class AhoCorasickPlus;\n+ \n+ namespace paraglob {\n+diff --git a/auxil/paraglob/include/paraglob/serializer.h b/auxil/paraglob/include/paraglob/serializer.h\n+index 38a3646..fe9be1a 100644\n+--- a/auxil/paraglob/include/paraglob/serializer.h\n++++ b/auxil/paraglob/include/paraglob/serializer.h\n+@@ -6,6 +6,7 @@\n+ \n+ #include <vector>\n+ #include <memory> // std::unique_ptr\n++#include <cstdint>\n+ \n+ #include \"paraglob/paraglob.h\"\n+ #include \"paraglob/exceptions.h\"\n+diff --git a/auxil/paraglob/src/paraglob.cpp b/auxil/paraglob/src/paraglob.cpp\n+index 3dd490f..feb87c6 100644\n+--- a/auxil/paraglob/src/paraglob.cpp\n++++ b/auxil/paraglob/src/paraglob.cpp\n+@@ -4,6 +4,8 @@\n+ \n+ #include \"ahocorasick/AhoCorasickPlus.h\"\n+ \n++#include <cstdint>\n++\n+ paraglob::Paraglob::Paraglob()\n+   : my_ac(new AhoCorasickPlus) {}\n+ \n+-- \n+2.47.3\n+\n","prefixes":["1/1"]}