get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2216494,
    "url": "http://patchwork.ozlabs.org/api/patches/2216494/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260326160033.68318-8-kkostiuk@redhat.com/",
    "project": {
        "id": 14,
        "url": "http://patchwork.ozlabs.org/api/projects/14/?format=api",
        "name": "QEMU Development",
        "link_name": "qemu-devel",
        "list_id": "qemu-devel.nongnu.org",
        "list_email": "qemu-devel@nongnu.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260326160033.68318-8-kkostiuk@redhat.com>",
    "list_archive_url": null,
    "date": "2026-03-26T16:00:33",
    "name": "[7/7] meson: Build block_syms and qemu_syms only when enable_modules",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "cad9fa05f387f886267be28a514e98a77dd77dee",
    "submitter": {
        "id": 83198,
        "url": "http://patchwork.ozlabs.org/api/people/83198/?format=api",
        "name": "Kostiantyn Kostiuk",
        "email": "kkostiuk@redhat.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260326160033.68318-8-kkostiuk@redhat.com/mbox/",
    "series": [
        {
            "id": 497612,
            "url": "http://patchwork.ozlabs.org/api/series/497612/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=497612",
            "date": "2026-03-26T16:00:28",
            "name": "Misc changes to allow building with Windows Clang",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/497612/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2216494/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2216494/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=EzzkDJEG;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org\n (client-ip=209.51.188.17; helo=lists.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)"
        ],
        "Received": [
            "from lists.gnu.org (lists.gnu.org [209.51.188.17])\n\t(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fhT6y31kXz1yGD\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 27 Mar 2026 03:02:02 +1100 (AEDT)",
            "from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces@nongnu.org>)\n\tid 1w5n9K-0004Wu-Ut; Thu, 26 Mar 2026 12:01:34 -0400",
            "from eggs.gnu.org ([2001:470:142:3::10])\n by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <kkostiuk@redhat.com>)\n id 1w5n96-0004BZ-Kl\n for qemu-devel@nongnu.org; Thu, 26 Mar 2026 12:01:22 -0400",
            "from us-smtp-delivery-124.mimecast.com ([170.10.133.124])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <kkostiuk@redhat.com>)\n id 1w5n8z-0001js-MI\n for qemu-devel@nongnu.org; Thu, 26 Mar 2026 12:01:20 -0400",
            "from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com\n (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by\n relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3,\n cipher=TLS_AES_256_GCM_SHA384) id us-mta-638-d97lcdbUOIO6dAep6i7TSw-1; Thu,\n 26 Mar 2026 12:01:07 -0400",
            "from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com\n (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n (No client certificate requested)\n by mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS\n id 5FDD519560B5; Thu, 26 Mar 2026 16:01:06 +0000 (UTC)",
            "from srv1.redhat.com (unknown [10.44.32.2])\n by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with\n ESMTPS\n id 585B530002C3; Thu, 26 Mar 2026 16:01:03 +0000 (UTC)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1774540872;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:cc:mime-version:mime-version:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=4s+kssxdiz6yzKzC6/rTBLUs0Om1IyNCc7yUiU8Zopo=;\n b=EzzkDJEGuK1sUxpkWEfjJu0Y1PJW4cMZWyVJVRQliWEHBirAslzD+5+w4peUSPsqN2aj2w\n WmGFFv1yTpQjspTHdCNIBchX1yI0bz7kmThb+AV+Xg9NKEJzZBc+MYaSqA7KdcD0+wiEAZ\n lfcBEUtMXhgL+NHAK9UcqT1gGLBZJlI=",
        "X-MC-Unique": "d97lcdbUOIO6dAep6i7TSw-1",
        "X-Mimecast-MFC-AGG-ID": "d97lcdbUOIO6dAep6i7TSw_1774540866",
        "From": "Kostiantyn Kostiuk <kkostiuk@redhat.com>",
        "To": "qemu-devel@nongnu.org,\n\tqemu-block@nongnu.org",
        "Cc": "Paolo Bonzini <pbonzini@redhat.com>,\n =?utf-8?q?Marc-Andr=C3=A9_Lureau?= <marcandre.lureau@redhat.com>,\n\t=?utf-8?q?Daniel_P_=2E_Berrang=C3=A9?= <berrange@redhat.com>, =?utf-8?q?Phi?=\n\t=?utf-8?q?lippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org>,\n Kevin Wolf <kwolf@redhat.com>, Yan Vugenfirer <yvugenfi@redhat.com>",
        "Subject": "[PATCH 7/7] meson: Build block_syms and qemu_syms only when\n enable_modules",
        "Date": "Thu, 26 Mar 2026 18:00:33 +0200",
        "Message-ID": "<20260326160033.68318-8-kkostiuk@redhat.com>",
        "In-Reply-To": "<20260326160033.68318-1-kkostiuk@redhat.com>",
        "References": "<20260326160033.68318-1-kkostiuk@redhat.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-Scanned-By": "MIMEDefang 3.4.1 on 10.30.177.4",
        "Received-SPF": "pass client-ip=170.10.133.124;\n envelope-from=kkostiuk@redhat.com;\n helo=us-smtp-delivery-124.mimecast.com",
        "X-Spam_score_int": "-20",
        "X-Spam_score": "-2.1",
        "X-Spam_bar": "--",
        "X-Spam_report": "(-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001,\n DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,\n RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=0.001,\n RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001,\n SPF_HELO_PASS=-0.001,\n SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no",
        "X-Spam_action": "no action",
        "X-BeenThere": "qemu-devel@nongnu.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "qemu development <qemu-devel.nongnu.org>",
        "List-Unsubscribe": "<https://lists.nongnu.org/mailman/options/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>",
        "List-Archive": "<https://lists.nongnu.org/archive/html/qemu-devel>",
        "List-Post": "<mailto:qemu-devel@nongnu.org>",
        "List-Help": "<mailto:qemu-devel-request@nongnu.org?subject=help>",
        "List-Subscribe": "<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=subscribe>",
        "Errors-To": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org",
        "Sender": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org"
    },
    "content": "Signed-off-by: Kostiantyn Kostiuk <kkostiuk@redhat.com>\n---\n meson.build | 25 ++++++++++++++-----------\n 1 file changed, 14 insertions(+), 11 deletions(-)",
    "diff": "diff --git a/meson.build b/meson.build\nindex e1baa0ea80..c7ab9c47c4 100644\n--- a/meson.build\n+++ b/meson.build\n@@ -3897,6 +3897,9 @@ modinfo_generate = find_program('scripts/modinfo-generate.py')\n modinfo_files = []\n audio_modinfo_files = []\n \n+block_syms = []\n+qemu_syms = []\n+\n block_mods = []\n system_mods = []\n emulator_modules = []\n@@ -4012,18 +4015,18 @@ if enable_modules\n   if emulator_modules.length() > 0\n     alias_target('modules', emulator_modules)\n   endif\n-endif\n \n-nm = find_program('nm')\n-undefsym = find_program('scripts/undefsym.py')\n-block_syms = custom_target('block.syms', output: 'block.syms',\n-                             input: [libqemuutil, block_mods],\n-                             capture: true,\n-                             command: [undefsym, nm, '@INPUT@'])\n-qemu_syms = custom_target('qemu.syms', output: 'qemu.syms',\n-                             input: [libqemuutil, system_mods],\n-                             capture: true,\n-                             command: [undefsym, nm, '@INPUT@'])\n+  nm = find_program('nm')\n+  undefsym = find_program('scripts/undefsym.py')\n+  block_syms = custom_target('block.syms', output: 'block.syms',\n+                              input: [libqemuutil, block_mods],\n+                              capture: true,\n+                              command: [undefsym, nm, '@INPUT@'])\n+  qemu_syms = custom_target('qemu.syms', output: 'qemu.syms',\n+                              input: [libqemuutil, system_mods],\n+                              capture: true,\n+                              command: [undefsym, nm, '@INPUT@'])\n+endif\n \n authz_ss = authz_ss.apply({})\n libauthz = static_library('authz', authz_ss.sources() + genh,\n",
    "prefixes": [
        "7/7"
    ]
}