Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.1/patches/2224786/?format=api
{ "id": 2224786, "url": "http://patchwork.ozlabs.org/api/1.1/patches/2224786/?format=api", "web_url": "http://patchwork.ozlabs.org/project/buildroot/patch/20260418155515.9980-3-chakrabortyshubham66@gmail.com/", "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": "<20260418155515.9980-3-chakrabortyshubham66@gmail.com>", "date": "2026-04-18T15:55:12", "name": "[3/3] package/libenca: fix C23 compatibility for getenv/getopt prototypes", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "33a36d0853935891b9168a698898eed9e5f0b8b7", "submitter": { "id": 92564, "url": "http://patchwork.ozlabs.org/api/1.1/people/92564/?format=api", "name": "Shubham Chakraborty", "email": "chakrabortyshubham66@gmail.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/buildroot/patch/20260418155515.9980-3-chakrabortyshubham66@gmail.com/mbox/", "series": [ { "id": 500451, "url": "http://patchwork.ozlabs.org/api/1.1/series/500451/?format=api", "web_url": "http://patchwork.ozlabs.org/project/buildroot/list/?series=500451", "date": "2026-04-18T15:55:10", "name": "[1/3] package/libenca: bump to version 1.22 and migrate to new upstream", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/500451/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2224786/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2224786/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=DnL4kA+B;\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 4fybvB5rBFz1yGt\n\tfor <incoming-buildroot@patchwork.ozlabs.org>;\n Sun, 19 Apr 2026 01:55:50 +1000 (AEST)", "from localhost (localhost [127.0.0.1])\n\tby smtp3.osuosl.org (Postfix) with ESMTP id 1CEBE60F69;\n\tSat, 18 Apr 2026 15:55:49 +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 TJPA6Eme4CLy; Sat, 18 Apr 2026 15:55:47 +0000 (UTC)", "from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142])\n\tby smtp3.osuosl.org (Postfix) with ESMTP id D72D160E90;\n\tSat, 18 Apr 2026 15:55:46 +0000 (UTC)", "from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133])\n by lists1.osuosl.org (Postfix) with ESMTP id C5D3C369\n for <buildroot@buildroot.org>; Sat, 18 Apr 2026 15:55:45 +0000 (UTC)", "from localhost (localhost [127.0.0.1])\n by smtp2.osuosl.org (Postfix) with ESMTP id 3965C4002D\n for <buildroot@buildroot.org>; Sat, 18 Apr 2026 15:55:44 +0000 (UTC)", "from smtp2.osuosl.org ([127.0.0.1])\n by localhost (smtp2.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP\n id LZSM-CYhmIiN for <buildroot@buildroot.org>;\n Sat, 18 Apr 2026 15:55:42 +0000 (UTC)", "from mail-pf1-x435.google.com (mail-pf1-x435.google.com\n [IPv6:2607:f8b0:4864:20::435])\n by smtp2.osuosl.org (Postfix) with ESMTPS id 3E9A340108\n for <buildroot@buildroot.org>; Sat, 18 Apr 2026 15:55:42 +0000 (UTC)", "by mail-pf1-x435.google.com with SMTP id\n d2e1a72fcca58-82f83bd32efso1284360b3a.2\n for <buildroot@buildroot.org>; Sat, 18 Apr 2026 08:55:42 -0700 (PDT)", "from fedora ([2409:40e5:112e:daba:4994:b597:7615:a059])\n by smtp.gmail.com with ESMTPSA id\n d2e1a72fcca58-82f8e9cbb1dsm5959033b3a.14.2026.04.18.08.55.38\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Sat, 18 Apr 2026 08:55:40 -0700 (PDT)" ], "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 D72D160E90", "OpenDKIM Filter v2.11.0 smtp2.osuosl.org 3E9A340108" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=buildroot.org;\n\ts=default; t=1776527746;\n\tbh=9MQp96kAfOdFvVL5jLDx6EiqPM40I8dANpXT+X9TCHo=;\n\th=From:To:Cc:Date:In-Reply-To:References:Subject:List-Id:\n\t List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:\n\t From;\n\tb=DnL4kA+BhIDWVPToTDZ8PAd/YRty/LcXJxEs4LDlws2+o+cUEUBiiNVgTJ8zvArCO\n\t pYUnw66kYHKqNCpp7rcp0Ztse2opJtBbJvu2Sc/nCsbHTAd9lidcVDvSwATLw2+dE0\n\t he8OZBXxa6uvF9PFhmOBbflfAPAVaM9Ermwn1+8kaakr5inVNAZ0gFEY5LFvQ+cnH9\n\t mz9uhQ5DtUq3nron9evz5Sm9sNaZtnOjcMbEHwaTI+WcZ859on+O18gbPWBROhAte8\n\t gO1OVTfzhLpHSq0XsaCzHZ5E2Ia7t18j//TAnDuMM4SqEO3p6OMd/yhKIhSXYQ9pty\n\t NqGQK4AaIdMLQ==", "Received-SPF": "Pass (mailfrom) identity=mailfrom;\n client-ip=2607:f8b0:4864:20::435; helo=mail-pf1-x435.google.com;\n envelope-from=chakrabortyshubham66@gmail.com; receiver=<UNKNOWN>", "DMARC-Filter": "OpenDMARC Filter v1.4.2 smtp2.osuosl.org 3E9A340108", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1776527741; x=1777132541;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from\n :to:cc:subject:date:message-id:reply-to;\n bh=7rCvZrLtggBIIuefhgwprHfASFcTJic2MlgtD/jvohY=;\n b=P74dsTz20uIZlY7fe+DfJj6i77eXNnVe2E9Yd25ah9fg+z2ossh9gS7aIlDOh3FMOZ\n ZfsAxbwplzmgrnd1vpr9sclB1Kh3K/rrtxekbhQMwhE7qAFstdb+8eqfFwNaT2k7moqV\n +Ss4jL8IvFE6fH+vubBxQtQ8BPczpZY9aDFf/qgKQQjkwvZqYn20uhdqlrEEY1KdOUYm\n eF5GgbRggbqoD/P27+5OFZL2/B+LW3jho3RZ6u987Pqore3tfcNco6ESvHk46PpJ0LPc\n fG9RGMHN+KF6UOD4Zqm+88E/sY6IbgL39hku/VFRlYZ2CDTENOZxddiLw4VUUGMt1e34\n pWIQ==", "X-Gm-Message-State": "AOJu0YxdC+NY3kd9FGEOxYvL3CnjDReK0z2xBvQ+CCncO3y9OQTUYHCa\n U20BkzulR9yZhPNLBIO8Y7h5F1PdTFD8bWEwZOKl0XhOCb/P/WTRdY1XtjLqS1vg", "X-Gm-Gg": "AeBDievyyyrpSW9/mfgobswsPKTXIyC5uaP9uT56BHJr/PGBZG7u58NNVwgxJ9BHwny\n Z8GQQ3yRgauGSHZ1isY2eZS7/13ahwVra7ToCNSKb2SYq6IkCauvx9LLoP6XbbGRTNgRtBSpn/e\n mLyaZXGiz2cjLGNTl/rcd//JRemeSV4OwRYOaKU7q82+86yh5a8qV1aenZojfHSCngYnTGwvn9Q\n gz/OD9vXnwbI6KS2FePbRbdpzEx7XA7mp2l78Qt6N2v/92BtXsPqS/M6Bn9KITlp8W9cJBD+ZDZ\n mMPZrnsfi4Lub4MLpoxK9ZANi5rSiQPl9M0I0Rl+LO9g8TUbfTPfRRNRGjf29mkBF+/+7+9vs1o\n HPu4eFv5KcWIJ45mkgswdxaKIMuM03PT8+0rNG3laGGKRM+xVNPxMK+SsWy634LyLcBUUbVOXyD\n szcw4ZkIHVsNrq5Ssf3ot60VmJb1Yah84kXWB/NN/LA9QE8O8DXeGyOwKs", "X-Received": "by 2002:a05:6a00:1c96:b0:82f:1d38:f692 with SMTP id\n d2e1a72fcca58-82f8c7db39dmr7142609b3a.6.1776527740932;\n Sat, 18 Apr 2026 08:55:40 -0700 (PDT)", "From": "Shubham Chakraborty <chakrabortyshubham66@gmail.com>", "To": "buildroot@buildroot.org", "Cc": "Shubham Chakraborty <chakrabortyshubham66@gmail.com>", "Date": "Sat, 18 Apr 2026 21:25:12 +0530", "Message-ID": "<20260418155515.9980-3-chakrabortyshubham66@gmail.com>", "X-Mailer": "git-send-email 2.53.0", "In-Reply-To": "<20260418155515.9980-1-chakrabortyshubham66@gmail.com>", "References": "<20260418155515.9980-1-chakrabortyshubham66@gmail.com>", "MIME-Version": "1.0", "X-Mailman-Original-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20251104; t=1776527741; x=1777132541; darn=buildroot.org;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n :message-id:reply-to;\n bh=7rCvZrLtggBIIuefhgwprHfASFcTJic2MlgtD/jvohY=;\n b=FfUmMEcuAKXVmz11dllfmAn3jwtwG/TDt+jS3iLwSRnsCoBUf44IFRLwhKqsKH02M+\n SB9PVut9yuG3WCbSmeh+aT+PVXh9H+psfUD38JNZ0IUsVL3i40sfJn4yrUN7cJ3qrEv5\n fHmGgTY2FF/JpVr9/dMdE6s0tibIk2FVkSayND1SZLbdc67xTQ9VOpyNTEX/lSPF+nAH\n X8PQe8CIxOFAuzN28PI7vSKbrFCL8PKXsZ8BNauWbOzYJs6BEdXXQxCvJaY5LK8U1MqE\n nCbI2zbMKwCfbOqM9+7qIM/+KnPoLwS6cvDVX0oVrBSMjZPiaayQtPZF30L1Li/i/BOY\n 9gXg==", "X-Mailman-Original-Authentication-Results": [ "smtp2.osuosl.org;\n dmarc=pass (p=none dis=none)\n header.from=gmail.com", "smtp2.osuosl.org;\n dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com\n header.a=rsa-sha256 header.s=20251104 header.b=FfUmMEcu" ], "Subject": "[Buildroot] [PATCH 3/3] package/libenca: fix C23 compatibility for\n getenv/getopt prototypes", "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": "GCC 15 defaults to C23, which removes support for K&R-style\nunprototyped function declarations. This causes build failures\nwith strict modern C libraries.\n\nAdd proper function prototypes for getopt, getopt_long,\ngetopt_long_only, getenv, and _getopt_internal to comply\nwith C23 requirements.\n\nFixes build with musl libc and GCC 15.\n\nUpstream: https://github.com/Project-OSS-Revival/enca/pull/97\n\nSigned-off-by: Shubham Chakraborty <chakrabortyshubham66@gmail.com>\n---\n ...atibility-for-getenv-getopt-prototyp.patch | 69 +++++++++++++++++++\n 1 file changed, 69 insertions(+)\n create mode 100644 package/libenca/0001-src-fix-C23-compatibility-for-getenv-getopt-prototyp.patch", "diff": "diff --git a/package/libenca/0001-src-fix-C23-compatibility-for-getenv-getopt-prototyp.patch b/package/libenca/0001-src-fix-C23-compatibility-for-getenv-getopt-prototyp.patch\nnew file mode 100644\nindex 0000000000..74e92ce677\n--- /dev/null\n+++ b/package/libenca/0001-src-fix-C23-compatibility-for-getenv-getopt-prototyp.patch\n@@ -0,0 +1,69 @@\n+From 1782ea5dd749cd66b38b03aa02bd0c2f9d558f83 Mon Sep 17 00:00:00 2001\n+From: Shubham Chakraborty <chakrabortyshubham66@gmail.com>\n+Date: Sat, 18 Apr 2026 14:25:27 +0530\n+Subject: [PATCH] src: fix C23 compatibility for getenv/getopt prototypes\n+\n+GCC 15 defaults to C23, which no longer supports unprototyped function\n+declarations (K&R style). This fixes conflicts with strict prototypes\n+in modern C libraries like musl.\n+\n+Build-tested in Buildroot using musl libc and C23.\n+\n+Upstream: https://github.com/Project-OSS-Revival/enca/pull/97\n+Signed-off-by: Shubham Chakraborty <chakrabortyshubham66@gmail.com>\n+---\n+ src/getopt.h | 16 +++++++++++-----\n+ src/getopt_long.c | 2 +-\n+ 2 files changed, 12 insertions(+), 6 deletions(-)\n+\n+diff --git a/src/getopt.h b/src/getopt.h\n+index 2eae587..91647ae 100644\n+--- a/src/getopt.h\n++++ b/src/getopt.h\n+@@ -144,7 +144,7 @@ struct option\n+ errors, only prototype getopt for the GNU C library. */\n+ extern int getopt (int __argc, char *const *__argv, const char *__shortopts);\n+ # else /* not __GNU_LIBRARY__ */\n+-extern int getopt ();\n++extern int getopt (int argc, char * const argv[], const char *shortopts);\n+ # endif /* __GNU_LIBRARY__ */\n+ \n+ # ifndef __need_getopt\n+@@ -161,12 +161,18 @@ extern int _getopt_internal (int __argc, char *const *__argv,\n+ \t\t\t int __long_only);\n+ # endif\n+ #else /* not __STDC__ */\n+-extern int getopt ();\n++extern int getopt (int argc, char * const argv[], const char *shortopts);\n+ # ifndef __need_getopt\n+-extern int getopt_long ();\n+-extern int getopt_long_only ();\n++extern int getopt_long (int argc, char *const *argv, const char *shortopts,\n++\t\t const struct option *longopts, int *longind);\n++extern int getopt_long_only (int argc, char *const *argv,\n++\t\t\t const char *shortopts,\n++\t\t const struct option *longopts, int *longind);\n+ \n+-extern int _getopt_internal ();\n++extern int _getopt_internal (int __argc, char *const *__argv,\n++\t\t\t const char *__shortopts,\n++\t\t const struct option *__longopts, int *__longind,\n++\t\t\t int __long_only);\n+ # endif\n+ #endif /* __STDC__ */\n+ \n+diff --git a/src/getopt_long.c b/src/getopt_long.c\n+index caba753..a55fe2a 100644\n+--- a/src/getopt_long.c\n++++ b/src/getopt_long.c\n+@@ -199,7 +199,7 @@ static char *posixly_correct;\n+ whose names are inconsistent. */\n+ \n+ #ifndef getenv\n+-extern char *getenv ();\n++extern char *getenv (const char *name);\n+ #endif\n+ \n+ static char *\n+-- \n+2.53.0\n", "prefixes": [ "3/3" ] }