Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.1/patches/2229163/?format=api
{ "id": 2229163, "url": "http://patchwork.ozlabs.org/api/1.1/patches/2229163/?format=api", "web_url": "http://patchwork.ozlabs.org/project/buildroot/patch/20260427201606.896700-1-ju.o@free.fr/", "project": { "id": 27, "url": "http://patchwork.ozlabs.org/api/1.1/projects/27/?format=api", "name": "Buildroot development", "link_name": "buildroot", "list_id": "buildroot.buildroot.org", "list_email": "buildroot@buildroot.org", "web_url": "", "scm_url": "", "webscm_url": "" }, "msgid": "<20260427201606.896700-1-ju.o@free.fr>", "date": "2026-04-27T20:16:06", "name": "[1/1] package/libabseil-cpp: add patch to fix build with gcc <= 12", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "745c08a9c48436b97b99e1530045e7cc9c77765d", "submitter": { "id": 80537, "url": "http://patchwork.ozlabs.org/api/1.1/people/80537/?format=api", "name": "Julien Olivain", "email": "ju.o@free.fr" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/buildroot/patch/20260427201606.896700-1-ju.o@free.fr/mbox/", "series": [ { "id": 501722, "url": "http://patchwork.ozlabs.org/api/1.1/series/501722/?format=api", "web_url": "http://patchwork.ozlabs.org/project/buildroot/list/?series=501722", "date": "2026-04-27T20:16:06", "name": "[1/1] package/libabseil-cpp: add patch to fix build with gcc <= 12", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/501722/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2229163/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2229163/checks/", "tags": {}, "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=oOgapBEb;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org\n (client-ip=2605:bc80:3010::138; helo=smtp1.osuosl.org;\n envelope-from=buildroot-bounces@buildroot.org; receiver=patchwork.ozlabs.org)" ], "Received": [ "from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138])\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 4g4FFb4xfgz1xvV\n\tfor <incoming-buildroot@patchwork.ozlabs.org>;\n Tue, 28 Apr 2026 06:16:19 +1000 (AEST)", "from localhost (localhost [127.0.0.1])\n\tby smtp1.osuosl.org (Postfix) with ESMTP id 43AD381320;\n\tMon, 27 Apr 2026 20:16:18 +0000 (UTC)", "from smtp1.osuosl.org ([127.0.0.1])\n by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP\n id eDroQPdF3AGe; Mon, 27 Apr 2026 20:16:17 +0000 (UTC)", "from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142])\n\tby smtp1.osuosl.org (Postfix) with ESMTP id 2312581323;\n\tMon, 27 Apr 2026 20:16:17 +0000 (UTC)", "from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138])\n by lists1.osuosl.org (Postfix) with ESMTP id 6C37E1B8\n for <buildroot@buildroot.org>; Mon, 27 Apr 2026 20:16:16 +0000 (UTC)", "from localhost (localhost [127.0.0.1])\n by smtp1.osuosl.org (Postfix) with ESMTP id 51C2681322\n for <buildroot@buildroot.org>; Mon, 27 Apr 2026 20:16:16 +0000 (UTC)", "from smtp1.osuosl.org ([127.0.0.1])\n by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP\n id TAEYXmeFeeu5 for <buildroot@buildroot.org>;\n Mon, 27 Apr 2026 20:16:15 +0000 (UTC)", "from smtp5-g21.free.fr (smtp5-g21.free.fr [212.27.42.5])\n by smtp1.osuosl.org (Postfix) with ESMTPS id 3408D81320\n for <buildroot@buildroot.org>; Mon, 27 Apr 2026 20:16:15 +0000 (UTC)", "from home.juju.sh (unknown\n [IPv6:2a01:e0a:1065:2100:52d9:65fe:2df3:c492])\n (Authenticated sender: ju.o@free.fr)\n by smtp5-g21.free.fr (Postfix) with ESMTPSA id B70B45FFB1;\n Mon, 27 Apr 2026 22:16:10 +0200 (CEST)" ], "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 smtp1.osuosl.org 2312581323", "OpenDKIM Filter v2.11.0 smtp1.osuosl.org 3408D81320" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=buildroot.org;\n\ts=default; t=1777320977;\n\tbh=flQlTa9SBS3TlzeCOu+9ddx44+rMll5BRFostiSeIUE=;\n\th=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post:\n\t List-Help:List-Subscribe:From:Reply-To:Cc:From;\n\tb=oOgapBEboAsLbrH8ajrnMte7e3UEEd+h4iKtZuha7dUWJvVc2bcNtn9xnLbLi4vpX\n\t dZpZqg/psN2/uIfNxMcemKuy7S3pkY9QtVs+ykEV1t06QiIY4o3hwjg4XfjwH0SVgl\n\t AqjZxNl95So6LXFnKt9wjjJ2HtyzzN/b6T+Sb1tuaD3AoE5xel3TCFJHI/TyKoBVkW\n\t V7pgyD4+nYfqDiCi07KS7qX7WMStuw6hP8Opoys7DxdEyRThF6FN5aKZqhx9/XBcY2\n\t JvTxUb29STs1eFvzYp1A/rnyZ5DhWU9N7WmzLP+p7/3rHxNm7E5k6KamOEtNUSVz23\n\t zC/YxxM8k39Ew==", "Received-SPF": "Pass (mailfrom) identity=mailfrom; client-ip=212.27.42.5;\n helo=smtp5-g21.free.fr; envelope-from=ju.o@free.fr; receiver=<UNKNOWN>", "DMARC-Filter": "OpenDMARC Filter v1.4.2 smtp1.osuosl.org 3408D81320", "To": "buildroot@buildroot.org", "Date": "Mon, 27 Apr 2026 22:16:06 +0200", "Message-ID": "<20260427201606.896700-1-ju.o@free.fr>", "X-Mailer": "git-send-email 2.54.0", "MIME-Version": "1.0", "X-Mailman-Original-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=free.fr; s=smtp-20201208; t=1777320973;\n bh=t1vjNXX3s/Onk0K+mkbJHzoHTc5F2QYvUv+THEZyLKk=;\n h=From:To:Cc:Subject:Date:From;\n b=LgmPlozJWLgGb9YzlonEzXAQBQLXZwec1uOP9l2YCsCuPfUgL9wf1qOIeFTv+W034\n xFL6nv6qmUwdK+/5LweKggaEMg9Ip0+Lhb8UxxMGrrkzqLjypMrXYkglSqH+yv+KwQ\n d8NC9yiQjslVbWgMjxO9J2Qub4Kcth1FoMl7ddVLkmrlUuS/qQDDUoof256ATNlXr7\n /cMwAMGpCQb9/gUcUWBbWtMM7Yf/dUCd3h+mrC9N5UF/IsUXUvemFU0Ur2sH+4X2R9\n /oN0FLWQGWLknBZCnPwZRoK3q8xQxMqAtOfhRdr3GKIdwx2ivequXzhv161qaN6UGq\n XKvSmiyqPj1qw==", "X-Mailman-Original-Authentication-Results": [ "smtp1.osuosl.org;\n dmarc=pass (p=quarantine dis=none)\n header.from=free.fr", "smtp1.osuosl.org;\n dkim=pass (2048-bit key) header.d=free.fr header.i=@free.fr\n header.a=rsa-sha256 header.s=smtp-20201208 header.b=LgmPlozJ" ], "Subject": "[Buildroot] [PATCH 1/1] package/libabseil-cpp: add patch to fix\n build with gcc <= 12", "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>", "From": "Julien Olivain via buildroot <buildroot@buildroot.org>", "Reply-To": "Julien Olivain <ju.o@free.fr>", "Cc": "Julien Olivain <ju.o@free.fr>", "Content-Type": "text/plain; charset=\"us-ascii\"", "Content-Transfer-Encoding": "7bit", "Errors-To": "buildroot-bounces@buildroot.org", "Sender": "\"buildroot\" <buildroot-bounces@buildroot.org>" }, "content": "libabseil-cpp headers can break some packages build, like protobuf,\nwhen compiled with gcc 12. See [1] [2]. The issue has been reported\nin protobuf upstream, in [3].\n\nThe issue is due to gcc <= 12 not supporting the mix of standard\nC++ attributes with GNU attributes. See [4].\n\nGcc 12 has been removed from Buildroot internal toolchains in\ncommit [5], but gcc 12 can still be present in external toolchains\nor on the host. This is currently the case of the Buildroot Docker\nreference image, based on Debian 12 (Bookworm).\n\nThis commit fixes the issue by adding a package patch.\n\nFixes:\n- [1] [2] and many more.\n\n[1] https://gitlab.com/buildroot.org/buildroot/-/jobs/13904066346\n[2] https://autobuild.buildroot.org/results/33f6cfd37cb48c15a53b3e7123d5ce8388a0f2ab\n[3] https://github.com/protocolbuffers/protobuf/issues/26383\n[4] https://gcc.gnu.org/PR69585\n[5] https://gitlab.com/buildroot.org/buildroot/-/commit/58cf7c51da3ae4804332f68ee934e153d695d047\n[6] https://github.com/abseil/abseil-cpp/pull/2044\n\nSigned-off-by: Julien Olivain <ju.o@free.fr>\n---\n ...SL_ATTRIBUTE_WARN_UNUSED-with-gcc-12.patch | 55 +++++++++++++++++++\n 1 file changed, 55 insertions(+)\n create mode 100644 package/libabseil-cpp/0002-base-fix-ABSL_ATTRIBUTE_WARN_UNUSED-with-gcc-12.patch", "diff": "diff --git a/package/libabseil-cpp/0002-base-fix-ABSL_ATTRIBUTE_WARN_UNUSED-with-gcc-12.patch b/package/libabseil-cpp/0002-base-fix-ABSL_ATTRIBUTE_WARN_UNUSED-with-gcc-12.patch\nnew file mode 100644\nindex 0000000000..8f5e255795\n--- /dev/null\n+++ b/package/libabseil-cpp/0002-base-fix-ABSL_ATTRIBUTE_WARN_UNUSED-with-gcc-12.patch\n@@ -0,0 +1,55 @@\n+From 77326826119439c06e341c9d090633ecd9b520d6 Mon Sep 17 00:00:00 2001\n+From: Julien Olivain <ju.o@free.fr>\n+Date: Mon, 27 Apr 2026 19:38:19 +0200\n+Subject: [PATCH] base: fix ABSL_ATTRIBUTE_WARN_UNUSED with gcc <= 12\n+\n+Gcc <= 12 does not support mixing standard C++ attributes with\n+GNU attributes. See [1].\n+\n+This can lead to build failures such as [2] [3] and [4]. In those\n+situations, the compilation fails with error such as:\n+\n+ /usr/include/absl/base/attributes.h:1076:36: error: expected identifier before '[' token\n+\n+Gcc maintainers mentioned in [1] comment 9 that this bugfix will\n+not be backported in Gcc 12. Gcc 12 is still used in LTS\n+distributions. For example, it is included in Debian 12 (Bookworm),\n+which is still supported until 2028. See [5].\n+\n+This commit adds a workaround for gcc <= 12 which uses\n+__attribute__ in that case, which fixes the compilation failure.\n+\n+[1] https://gcc.gnu.org/PR69585\n+[2] https://github.com/protocolbuffers/protobuf/issues/26383\n+[3] https://autobuild.buildroot.org/results/33f6cfd37cb48c15a53b3e7123d5ce8388a0f2ab/build-end.log\n+[4] https://gitlab.com/buildroot.org/buildroot/-/jobs/13904066346\n+[5] https://www.debian.org/releases/bookworm/\n+\n+Upstream: https://github.com/abseil/abseil-cpp/pull/2044\n+Signed-off-by: Julien Olivain <ju.o@free.fr>\n+---\n+ absl/base/attributes.h | 7 +++++++\n+ 1 file changed, 7 insertions(+)\n+\n+diff --git a/absl/base/attributes.h b/absl/base/attributes.h\n+index 5887fcaf..a26143e1 100644\n+--- a/absl/base/attributes.h\n++++ b/absl/base/attributes.h\n+@@ -1092,7 +1092,14 @@ struct AbslInternal_YouForgotToExplicitlyInitializeAField {\n+ // See https://clang.llvm.org/docs/AttributeReference.html#warn-unused and\n+ // https://gcc.gnu.org/onlinedocs/gcc/C_002b_002b-Attributes.html#index-warn_005funused-type-attribute\n+ #if ABSL_HAVE_CPP_ATTRIBUTE(gnu::warn_unused)\n++// Only GCC >= 13 allows mixing standard and gnu attributes.\n++// In case of gcc < 13, fallback on using __attribute__.\n++// https://gcc.gnu.org/PR69585\n++#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 13\n++#define ABSL_ATTRIBUTE_WARN_UNUSED __attribute__((warn_unused))\n++#else\n+ #define ABSL_ATTRIBUTE_WARN_UNUSED [[gnu::warn_unused]]\n++#endif\n+ #else\n+ #define ABSL_ATTRIBUTE_WARN_UNUSED\n+ #endif\n+-- \n+2.54.0\n+\n", "prefixes": [ "1/1" ] }