get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/2219211/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 2219211,
    "url": "http://patchwork.ozlabs.org/api/patches/2219211/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/buildroot/patch/20260402152156.653017-1-chakrabortyshubham66@gmail.com/",
    "project": {
        "id": 27,
        "url": "http://patchwork.ozlabs.org/api/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": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260402152156.653017-1-chakrabortyshubham66@gmail.com>",
    "list_archive_url": null,
    "date": "2026-04-02T15:21:55",
    "name": "package/ncurses: improve EGREP detection in configure script",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "10dcb4574e4ccdd341195293a1ba8272e4823bb2",
    "submitter": {
        "id": 92564,
        "url": "http://patchwork.ozlabs.org/api/people/92564/?format=api",
        "name": "Shubham Chakraborty",
        "email": "chakrabortyshubham66@gmail.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/buildroot/patch/20260402152156.653017-1-chakrabortyshubham66@gmail.com/mbox/",
    "series": [
        {
            "id": 498500,
            "url": "http://patchwork.ozlabs.org/api/series/498500/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/buildroot/list/?series=498500",
            "date": "2026-04-02T15:21:55",
            "name": "package/ncurses: improve EGREP detection in configure script",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/498500/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2219211/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2219211/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=Efb79PaN;\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 4fmlvv0fD2z1xtJ\n\tfor <incoming-buildroot@patchwork.ozlabs.org>;\n Fri, 03 Apr 2026 02:22:18 +1100 (AEDT)",
            "from localhost (localhost [127.0.0.1])\n\tby smtp3.osuosl.org (Postfix) with ESMTP id E6B9E610CB;\n\tThu,  2 Apr 2026 15:22:14 +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 7g5Ry4YEgyJK; Thu,  2 Apr 2026 15:22:12 +0000 (UTC)",
            "from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142])\n\tby smtp3.osuosl.org (Postfix) with ESMTP id 85592610BA;\n\tThu,  2 Apr 2026 15:22:12 +0000 (UTC)",
            "from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136])\n by lists1.osuosl.org (Postfix) with ESMTP id 96312196\n for <buildroot@buildroot.org>; Thu,  2 Apr 2026 15:22:11 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n by smtp3.osuosl.org (Postfix) with ESMTP id 70D94610BA\n for <buildroot@buildroot.org>; Thu,  2 Apr 2026 15:22:11 +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 qMUmvtkOSziJ for <buildroot@buildroot.org>;\n Thu,  2 Apr 2026 15:22:10 +0000 (UTC)",
            "from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com\n [IPv6:2607:f8b0:4864:20::62e])\n by smtp3.osuosl.org (Postfix) with ESMTPS id BC764610B7\n for <buildroot@buildroot.org>; Thu,  2 Apr 2026 15:22:10 +0000 (UTC)",
            "by mail-pl1-x62e.google.com with SMTP id\n d9443c01a7336-2ab39b111b9so4350415ad.1\n for <buildroot@buildroot.org>; Thu, 02 Apr 2026 08:22:10 -0700 (PDT)",
            "from fedora ([2409:40e5:104b:2bf0:f192:27a:e37e:a94d])\n by smtp.gmail.com with ESMTPSA id\n d9443c01a7336-2b27497c117sm30095475ad.40.2026.04.02.08.22.07\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Thu, 02 Apr 2026 08:22:08 -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 85592610BA",
            "OpenDKIM Filter v2.11.0 smtp3.osuosl.org BC764610B7"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=buildroot.org;\n\ts=default; t=1775143332;\n\tbh=V4JYhsQJcY5hnEmnfqQpHX236j1qaEfQpztQcfh8B9Q=;\n\th=From:To:Cc:Date:Subject:List-Id:List-Unsubscribe:List-Archive:\n\t List-Post:List-Help:List-Subscribe:From;\n\tb=Efb79PaNoAqdqasn+RN3ygCEBxyM36VT0mq6XJCe3eA2voSf5XhmsCTPr5jgNSZ8C\n\t NWG/6CpCTRQvPh5g9oU9YSO1SI66NoCrMHUIGzbPf30fR0s5cVFtujOa8ioCm1xWsS\n\t fq0umBeK3B4nmi4Z/0rCB13OQYsN9Y8PCmghXpq7rjGFJriqGAuoGbRUreahH6naxw\n\t 3IwqiLNxNoXE6gxJbm3Ddw2um7O2wCXmJ1TJ4Ldtfxg5D6IeRNmOOfNYnOS3MF0DRz\n\t WAXypcB8M7IF6QsFsXVRwCDda4pCoTYCF4GTi2yU1Me4ILnyDmKr4AVk82q38Jr/j+\n\t g0sUNtp3krFHg==",
        "Received-SPF": "Pass (mailfrom) identity=mailfrom;\n client-ip=2607:f8b0:4864:20::62e; helo=mail-pl1-x62e.google.com;\n envelope-from=chakrabortyshubham66@gmail.com; receiver=<UNKNOWN>",
        "DMARC-Filter": "OpenDMARC Filter v1.4.2 smtp3.osuosl.org BC764610B7",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1775143330; x=1775748130;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date\n :message-id:reply-to;\n bh=IGnEYU7Zmii84kp/VAtD5r4smvfs+DxTv/hR/7ILA28=;\n b=SWdTVpaPhVY8+v4qevPSU7RKGiGys0OU9N5hFqTieMWgse14eJju81Zjy91kNSZBHb\n PavcnnGHHFNejvrmQLLN7Jb+ehuv4NBC7KcyY9kSp7AogOWKwAiU1xR1eNdM7+g5cFsJ\n R3ocnvZMCX3QZG5laXJnpE+4J0QRgXKb7eaDhK7Xt1wlmhpiX677M+QWJ9vcf9ksNJDd\n zf9bhAx3XItl5tH++9iXzgim6qP2FSzl4JnocEfsWDd8iRTGlAEPs5WNHBYWyhC6ORVB\n rF8jft64tOOv9owx/Ifs9tSD3jzgUhPhgUzAUtWMOjY1at+UKY1GeiRGxsnRrgiWabvD\n PvGQ==",
        "X-Gm-Message-State": "AOJu0YxPK/ofciBMNRrWonOL/ago+jrvALsxA3qBqS5OzfMy41CPp5oi\n Dwr55GmzXZf6BdiYc8x5X0VeDEM45aAeia9o21H0LeknoHk2g8Mrhleh/WIBb64qyPk=",
        "X-Gm-Gg": "AeBDieu4ZK7y0J1KtlWS9H2LJkNKRfWunImURC9gtwQdB2WyGnyj+K3XOmzg1Avx9SX\n DT9PoG2dsLwCm9tcHpXINhDcyZ2tiyeD5h3xHYX5rSkFmJVX8rGJCpdd82lwXu7SpNzNiODk6Lb\n LvkFmRgm2YrzdwlUvh6IDlHJtkQxVLNv5bMGXiCTIhZuzHv70HhTRQ0ceh0NLnFg1Z4F/2SkPZh\n SmOfqncENxbbwMLVLY6z1ENWw8l9Yljh0UDABaXFPeiBIsIUBRpg0R3HU8ONzkembpu+Ot1+GuI\n RTa4E+gPznuFPfX8LiUAS3S0vjo/aonyCPjPEj0vtQGLMtrgAchtOnXIXNhOEQ+p/lpBolV7bU/\n V0ZSHBWIQZQaObOwk0Yh46hBFPYfy7WSBEEettemysUY1TN7t40RY8VKnms0COhk5s0rb5uCJPd\n cBlGYz46V/2cCWOhvfgOr05jIX+ZpPnRcynHJuYnqdeAzs",
        "X-Received": "by 2002:a17:903:38c4:b0:2ae:c5fc:b2ea with SMTP id\n d9443c01a7336-2b269c9b38cmr85460155ad.30.1775143329456;\n Thu, 02 Apr 2026 08:22:09 -0700 (PDT)",
        "From": "Shubham Chakraborty <chakrabortyshubham66@gmail.com>",
        "To": "buildroot@buildroot.org",
        "Cc": "Shubham Chakraborty <chakrabortyshubham66@gmail.com>",
        "Date": "Thu,  2 Apr 2026 20:51:55 +0530",
        "Message-ID": "<20260402152156.653017-1-chakrabortyshubham66@gmail.com>",
        "X-Mailer": "git-send-email 2.53.0",
        "MIME-Version": "1.0",
        "X-Mailman-Original-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20251104; t=1775143330; x=1775748130; darn=buildroot.org;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:from:to:cc:subject:date:message-id:reply-to;\n bh=IGnEYU7Zmii84kp/VAtD5r4smvfs+DxTv/hR/7ILA28=;\n b=g87tyS7IfgthVybYxpRiKsSY7GRq0Vj4UHP+ewkYZZi7ULT+sBpEA+P4yEL69ioUGx\n HDCZgbXcqcoHkH1UhRwcunJJLMGi7Swq6+8vFQ3ntYEAaladPD/Up6rlOutXptyeGYlM\n lYW468dkqBLRZFJeeRwDNxsEngR+l9apuRrLHtSpYKZyolIfCAIJxz6ADez5GBQBMmnp\n gS3eAsIb7waDC/geihtHnvTUfvvWTaAK29TjJrvtGG1rTWdlYiyN+IzHs1l6jbWHHWO0\n WRriOXB3V8SdDOHUZUNuejDptboCulwYpwoeB9yU8YAFdbSMuyoy7Wm8LYIrXY840m24\n ZPbw==",
        "X-Mailman-Original-Authentication-Results": [
            "smtp3.osuosl.org;\n dmarc=pass (p=none dis=none)\n header.from=gmail.com",
            "smtp3.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=g87tyS7I"
        ],
        "Subject": "[Buildroot] [PATCH] package/ncurses: improve EGREP detection in\n configure script",
        "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": "Building host-ncurses fails on systems where a non-standard 'ggrep'\nscript is present in the PATH (e.g., from Android build tools).\nThe ncurses configure script picks up 'ggrep' because it searches\nfor it before 'grep'.\n\nThe existing check for EGREP only verifies the exit code of:\n  echo a | $GREP -E '(a|b)' >/dev/null 2>&1\n\nThe problematic 'ggrep' script returns 0 but does not process stdin\ncorrectly, causing it to be selected as a working EGREP. This leads\nto failures later when the script is used to extract version numbers\nfrom dist.mk, resulting in:\n  configure: error: Release major-version value is empty\n\nImprove the check by verifying that the output of the test command\nmatches the expected value 'a'. This ensures the selected tool\nis a functional grep.\n\nSigned-off-by: Shubham Chakraborty <chakrabortyshubham66@gmail.com>\n---\n ...-EGREP-detection-in-configure-script.patch | 43 +++++++++++++++++++\n 1 file changed, 43 insertions(+)\n create mode 100644 package/ncurses/0001-Improve-EGREP-detection-in-configure-script.patch",
    "diff": "diff --git a/package/ncurses/0001-Improve-EGREP-detection-in-configure-script.patch b/package/ncurses/0001-Improve-EGREP-detection-in-configure-script.patch\nnew file mode 100644\nindex 0000000000..e43fd737cc\n--- /dev/null\n+++ b/package/ncurses/0001-Improve-EGREP-detection-in-configure-script.patch\n@@ -0,0 +1,43 @@\n+From 8fb8ef42710bec224ea4cd8940007d6c85268f0a Mon Sep 17 00:00:00 2001\n+From: Shubham Chakraborty <chakrabortyshubham66@gmail.com>\n+Date: Thu, 2 Apr 2026 20:33:10 +0530\n+Subject: [PATCH] Improve EGREP detection in configure script\n+\n+The ncurses configure script searches for ggrep before grep. To verify\n+if a found grep works as an extended grep (EGREP), it currently only\n+checks the exit code of the following command:\n+  echo a | $GREP -E '\\''(a|b)'\\'' >/dev/null 2>&1\n+\n+On systems where a tool or script named 'ggrep' is present in the PATH\n+but does not behave like a standard GNU grep (for example, a specialized\n+wrapper script that ignores stdin but returns an exit code of 0), the\n+configure script incorrectly identifies it as a working EGREP. This\n+leads to a failure later in the configuration process (e.g., \"Release\n+major-version value is empty\") because the tool fails to extract\n+information from source files like dist.mk.\n+\n+This patch improves the robustness of the check by verifying that the\n+output of the test command matches the expected value, ensuring that\n+the selected GREP actually processes input correctly.\n+\n+Signed-off-by: Shubham Chakraborty <chakrabortyshubham66@gmail.com>\n+---\n+ configure | 2 +-\n+ 1 file changed, 1 insertion(+), 1 deletion(-)\n+\n+diff --git a/configure b/configure\n+index 48ad381..ea8e4c4 100755\n+--- a/configure\n++++ b/configure\n+@@ -1238,7 +1238,7 @@ echo $ECHO_N \"checking for egrep... $ECHO_C\" >&6\n+ if test \"${ac_cv_path_EGREP+set}\" = set; then\n+   echo $ECHO_N \"(cached) $ECHO_C\" >&6\n+ else\n+-  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1\n++  if test \"`echo a | $GREP -E '(a|b)' 2>/dev/null`\" = \"a\"\n+    then ac_cv_path_EGREP=\"$GREP -E\"\n+    else\n+      for ac_prog in gegrep egrep\n+-- \n+2.53.0\n+\n",
    "prefixes": []
}