Show a patch.

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

{
    "id": 1852,
    "url": "https://patchwork.libcamera.org/api/patches/1852/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/1852/",
    "project": {
        "id": 1,
        "url": "https://patchwork.libcamera.org/api/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": "<20190819130245.7298-1-laurent.pinchart@ideasonboard.com>",
    "date": "2019-08-19T13:02:45",
    "name": "[libcamera-devel] meson: Define _FORTIFY_SOURCE for non-debug builds",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "291738f19b4efacf225331a35b7f975752e352ce",
    "submitter": {
        "id": 2,
        "url": "https://patchwork.libcamera.org/api/people/2/?format=api",
        "name": "Laurent Pinchart",
        "email": "laurent.pinchart@ideasonboard.com"
    },
    "delegate": {
        "id": 14,
        "url": "https://patchwork.libcamera.org/api/users/14/?format=api",
        "username": "pinchartl",
        "first_name": "Laurent",
        "last_name": "Pinchart",
        "email": "laurent.pinchart@ideasonboard.com"
    },
    "mbox": "https://patchwork.libcamera.org/patch/1852/mbox/",
    "series": [
        {
            "id": 465,
            "url": "https://patchwork.libcamera.org/api/series/465/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=465",
            "date": "2019-08-19T13:02:45",
            "name": "[libcamera-devel] meson: Define _FORTIFY_SOURCE for non-debug builds",
            "version": 1,
            "mbox": "https://patchwork.libcamera.org/series/465/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/1852/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/1852/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<laurent.pinchart@ideasonboard.com>",
        "Received": [
            "from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id A90A760C1E\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 19 Aug 2019 15:02:55 +0200 (CEST)",
            "from pendragon.bb.dnainternet.fi\n\t(dfj612yhrgyx302h3jwwy-3.rev.dnainternet.fi\n\t[IPv6:2001:14ba:21f5:5b00:ce28:277f:58d7:3ca4])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 29607510\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 19 Aug 2019 15:02:55 +0200 (CEST)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1566219775;\n\tbh=smnyKwvRKinU2i/rIAxH7POZPwIrL9/HAAMpg4TMY5Y=;\n\th=From:To:Subject:Date:From;\n\tb=s1+x7rmm7C7kSM5N8XfGfvYFW5ZVoPpCHJepb+ZVMCnbTAJXepzd31hzenZBetcQ0\n\tOq7bxGLSpSVD/lymqoL0Mfhg36rVo0XF6X8p5sGbFgPke2gOmYNGNDkxSDc6OI/m8J\n\t3EIpTq9mg7wJJjy7aLz1qJ7+M1Xn9Cqm+UyyW7mk=",
        "From": "Laurent Pinchart <laurent.pinchart@ideasonboard.com>",
        "To": "libcamera-devel@lists.libcamera.org",
        "Date": "Mon, 19 Aug 2019 16:02:45 +0300",
        "Message-Id": "<20190819130245.7298-1-laurent.pinchart@ideasonboard.com>",
        "X-Mailer": "git-send-email 2.21.0",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[libcamera-devel] [PATCH] meson: Define _FORTIFY_SOURCE for\n\tnon-debug builds",
        "X-BeenThere": "libcamera-devel@lists.libcamera.org",
        "X-Mailman-Version": "2.1.23",
        "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>",
        "X-List-Received-Date": "Mon, 19 Aug 2019 13:02:55 -0000"
    },
    "content": "_FORTIFY_SOURCE add useful checks during compilation. Enable it by\ndefault, except for debug builds as it requires at least a -O1\noptimisation level.\n\nSigned-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\n---\n meson.build | 6 ++++++\n 1 file changed, 6 insertions(+)",
    "diff": "diff --git a/meson.build b/meson.build\nindex 13d0605f903c..53263d68791d 100644\n--- a/meson.build\n+++ b/meson.build\n@@ -35,6 +35,12 @@ common_arguments = [\n     '-include', 'config.h',\n ]\n \n+if get_option('buildtype') != 'debug'\n+    common_arguments += [\n+        '-D_FORTIFY_SOURCE=1',\n+    ]\n+endif\n+\n c_arguments = common_arguments\n cpp_arguments = common_arguments\n \n",
    "prefixes": [
        "libcamera-devel"
    ]
}