Patch Detail
Show a patch.
GET /api/1.1/patches/12445/?format=api
{ "id": 12445, "url": "https://patchwork.libcamera.org/api/1.1/patches/12445/?format=api", "web_url": "https://patchwork.libcamera.org/patch/12445/", "project": { "id": 1, "url": "https://patchwork.libcamera.org/api/1.1/projects/1/?format=api", "name": "libcamera", "link_name": "libcamera", "list_id": "libcamera_core", "list_email": "libcamera-devel@lists.libcamera.org", "web_url": "", "scm_url": "", "webscm_url": "" }, "msgid": "<20210527092743.1347857-1-paul.elder@ideasonboard.com>", "date": "2021-05-27T09:27:43", "name": "[libcamera-devel] utils: ipc: extract-docs: Extract the SPDX header if it exists", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "2036d4c5711a7db9df86fcf79f62db5485a50fef", "submitter": { "id": 17, "url": "https://patchwork.libcamera.org/api/1.1/people/17/?format=api", "name": "Paul Elder", "email": "paul.elder@ideasonboard.com" }, "delegate": null, "mbox": "https://patchwork.libcamera.org/patch/12445/mbox/", "series": [ { "id": 2084, "url": "https://patchwork.libcamera.org/api/1.1/series/2084/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=2084", "date": "2021-05-27T09:27:43", "name": "[libcamera-devel] utils: ipc: extract-docs: Extract the SPDX header if it exists", "version": 1, "mbox": "https://patchwork.libcamera.org/series/2084/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/patches/12445/comments/", "check": "pending", "checks": "https://patchwork.libcamera.org/api/patches/12445/checks/", "tags": {}, "headers": { "Return-Path": "<libcamera-devel-bounces@lists.libcamera.org>", "X-Original-To": "parsemail@patchwork.libcamera.org", "Delivered-To": "parsemail@patchwork.libcamera.org", "Received": [ "from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id D9AC5C3203\n\tfor <parsemail@patchwork.libcamera.org>;\n\tThu, 27 May 2021 09:27:56 +0000 (UTC)", "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 40EBA68924;\n\tThu, 27 May 2021 11:27:56 +0200 (CEST)", "from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id A74FB602AA\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 27 May 2021 11:27:54 +0200 (CEST)", "from pyrite.rasen.tech (unknown\n\t[IPv6:2400:4051:61:600:2c71:1b79:d06d:5032])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 19FA6B2C;\n\tThu, 27 May 2021 11:27:52 +0200 (CEST)" ], "Authentication-Results": "lancelot.ideasonboard.com;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=ideasonboard.com header.i=@ideasonboard.com\n\theader.b=\"n9QJMXUe\"; dkim-atps=neutral", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1622107674;\n\tbh=2DFVoe6lWM0spw16QQoM2HNR6zY1KS3BwD15JnOnHbg=;\n\th=From:To:Cc:Subject:Date:From;\n\tb=n9QJMXUeFbuc+g6U368We2h9yTiH145dwttYtOM4vd+qQCDCMRGasWNs/2XOel61a\n\tHXOK0zn6mWCOnFNgT76iK/HZaPyAfNYj0ivUz/KF1L8sMWPd5245uXRmVsOuctOxF+\n\tJX/48TGl3fDQjs7/WilHmoHeo5TP4dvJr3acA9NQ=", "From": "Paul Elder <paul.elder@ideasonboard.com>", "To": "libcamera-devel@lists.libcamera.org", "Date": "Thu, 27 May 2021 18:27:43 +0900", "Message-Id": "<20210527092743.1347857-1-paul.elder@ideasonboard.com>", "X-Mailer": "git-send-email 2.27.0", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[libcamera-devel] [PATCH] utils: ipc: extract-docs: Extract the\n\tSPDX header if it exists", "X-BeenThere": "libcamera-devel@lists.libcamera.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "<libcamera-devel.lists.libcamera.org>", "List-Unsubscribe": "<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>", "List-Archive": "<https://lists.libcamera.org/pipermail/libcamera-devel/>", "List-Post": "<mailto:libcamera-devel@lists.libcamera.org>", "List-Help": "<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>", "List-Subscribe": "<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>", "Errors-To": "libcamera-devel-bounces@lists.libcamera.org", "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>" }, "content": "Take the SPDX header from the mojom file, if it exists. Otherwise\ndefault to LGPL-2.1+ as before.\n\nSigned-off-by: Paul Elder <paul.elder@ideasonboard.com>\n---\n utils/ipc/extract-docs.py | 10 ++++++++--\n 1 file changed, 8 insertions(+), 2 deletions(-)", "diff": "diff --git a/utils/ipc/extract-docs.py b/utils/ipc/extract-docs.py\nindex 56566ce0..b617b6fa 100755\n--- a/utils/ipc/extract-docs.py\n+++ b/utils/ipc/extract-docs.py\n@@ -12,6 +12,7 @@ import sys\n \n regex_block_start = re.compile('^\\/\\*\\*$')\n regex_block_end = re.compile('^ \\*\\/$')\n+regex_spdx = re.compile('^\\/\\* SPDX-License-Identifier: .* \\*\\/$')\n \n \n def main(argv):\n@@ -28,8 +29,13 @@ def main(argv):\n \n lines = open(args.input, 'r').readlines()\n pipeline = args.input.split('/')[-1].replace('.mojom', '')\n- data = f'''\\\n-/* SPDX-License-Identifier: LGPL-2.1-or-later */\n+\n+ if regex_spdx.match(lines[0]):\n+ data = lines[0]\n+ else:\n+ data = '/* SPDX-License-Identifier: LGPL-2.1-or-later */'\n+\n+ data += f'''\\\n /*\n * Copyright (C) 2021, Google Inc.\n *\n", "prefixes": [ "libcamera-devel" ] }