get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 811178,
    "url": "http://patchwork.ozlabs.org/api/patches/811178/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/buildroot/patch/20170907211628.18644-1-ps.report@gmx.net/",
    "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": "<20170907211628.18644-1-ps.report@gmx.net>",
    "list_archive_url": null,
    "date": "2017-09-07T21:16:28",
    "name": "[v2] gst1-plugins-bad: fix build against openjpeg 2.2",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "029bd591263a92c0c7ea591d45cec4451b38a0c3",
    "submitter": {
        "id": 43323,
        "url": "http://patchwork.ozlabs.org/api/people/43323/?format=api",
        "name": "Peter Seiderer",
        "email": "ps.report@gmx.net"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/buildroot/patch/20170907211628.18644-1-ps.report@gmx.net/mbox/",
    "series": [
        {
            "id": 2065,
            "url": "http://patchwork.ozlabs.org/api/series/2065/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/buildroot/list/?series=2065",
            "date": "2017-09-07T21:16:28",
            "name": "[v2] gst1-plugins-bad: fix build against openjpeg 2.2",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/2065/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/811178/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/811178/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<buildroot-bounces@busybox.net>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "buildroot@lists.busybox.net"
        ],
        "Delivered-To": [
            "patchwork-incoming@bilbo.ozlabs.org",
            "buildroot@osuosl.org"
        ],
        "Authentication-Results": "ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=busybox.net\n\t(client-ip=140.211.166.138; helo=whitealder.osuosl.org;\n\tenvelope-from=buildroot-bounces@busybox.net;\n\treceiver=<UNKNOWN>)",
        "Received": [
            "from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xpCv83jwNz9s3T\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri,  8 Sep 2017 07:16:52 +1000 (AEST)",
            "from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 5C73A88A1F;\n\tThu,  7 Sep 2017 21:16:49 +0000 (UTC)",
            "from whitealder.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id VJvLZRz+GU2C; Thu,  7 Sep 2017 21:16:47 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id D43B488A29;\n\tThu,  7 Sep 2017 21:16:47 +0000 (UTC)",
            "from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138])\n\tby ash.osuosl.org (Postfix) with ESMTP id 82D1D1C1F5B\n\tfor <buildroot@lists.busybox.net>;\n\tThu,  7 Sep 2017 21:16:46 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 7D03688B56\n\tfor <buildroot@lists.busybox.net>;\n\tThu,  7 Sep 2017 21:16:46 +0000 (UTC)",
            "from whitealder.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id uNCHy7B3gqoH for <buildroot@lists.busybox.net>;\n\tThu,  7 Sep 2017 21:16:45 +0000 (UTC)",
            "from mout.gmx.net (mout.gmx.net [212.227.15.15])\n\tby whitealder.osuosl.org (Postfix) with ESMTPS id 250C588A1F\n\tfor <buildroot@busybox.net>; Thu,  7 Sep 2017 21:16:44 +0000 (UTC)",
            "from linux.local ([188.99.112.207]) by mail.gmx.com (mrgmx001\n\t[212.227.17.190]) with ESMTPSA (Nemesis) id 0Likl3-1dJl912BYr-00cvcv;\n\tThu, 07 Sep 2017 23:16:30 +0200"
        ],
        "X-Virus-Scanned": [
            "amavisd-new at osuosl.org",
            "amavisd-new at osuosl.org"
        ],
        "X-Greylist": "domain auto-whitelisted by SQLgrey-1.7.6",
        "From": "Peter Seiderer <ps.report@gmx.net>",
        "To": "buildroot@busybox.net",
        "Date": "Thu,  7 Sep 2017 23:16:28 +0200",
        "Message-Id": "<20170907211628.18644-1-ps.report@gmx.net>",
        "X-Mailer": "git-send-email 2.12.3",
        "X-Provags-ID": "V03:K0:JBPZU/n5obdBzfMb+ug8+82lorIvg2mthfmtPk9h8qDPYE23jl+\n\tuEFXv2WkDnTSYn8FpVjmZqIbU3u5a41539Ai/DqFN2A8r1P90y0EEpGNDIVcxsCdga+6Ncw\n\tCWE9pMzXW+OJGgHxoyXDKyyTDl/uP7SI5eWA3bkNZ41HIywf3ic84ws7IullqMsvFyDzRvR\n\t/Q6puSvBMoyrBL2KQTF5g==",
        "X-UI-Out-Filterresults": "notjunk:1; V01:K0:Z47kwwRzFc8=:DF1b9oovo1i5tERWIYj0I6\n\t/+VzPR2U5o4FX0L7NEcGrvs0DiYr2lBgKHLGjIAYzPiuO6gewWcwOSXMCk0lVtsEsqxJ8Ior0\n\tc740Ga+2tvy6Hknz3HLkWrM5wvzhu8ren7ZvEiMV80D9ZS/KFbtEP2AjTKwjfeBi0JaKpfv8R\n\tMUX5jg2thvYluMNLg4bb9ck1F0mGPGXLCP7KQPrrwIQ/DeCXfZePa9b5v6XUsmKqoWdGEtSw5\n\tSnp8Ee/RDtU5LQpiht2jftEy+7vD53s0piSCjFZYF9Nx1UO4o3MHZ8GIYuhyyATNUqrzLoidi\n\t56bRECi5GqzVoH3mehcDWpNcdBtBCE5LLsFpkcW9m3zvAjm5n/Md/ck3opkFhq6sHo+PLYelJ\n\tn9F0l5p4CZUGIlHra3sWV1opXBz0oV5b/GwzXCpMy4MT1J1NLpU78hsBTNWV2lZg9SHSWdOr+\n\tpDtBaJ9/86yWPLncXULpoOxaYL4L3pJB1edSj1/w3wWgz8rJtxEItENeFjs89zPniYjmebnCO\n\tzW23y7BR2D+n3gfjfol/cN9AfjTSg92kLnMuUbf/pmi770oA6rY57K1qHowHQr5kc0XrBEJlt\n\tgIhRdXk0bpze4FRNuQJbFRJzelovp9kSCBLbcaISEoLtSS0piMfURLzCHaIG8p2Mlfsd3LaWz\n\tw80n+5u3M1VAkWWUU9EXUp+fHaHfkdIYfD78SMlyZmJkAawYyAS7uSFVvaVQp39dEAMJ/x9iD\n\tL2+b8P2chv9ckk3m9pRK2adGUFQrZBouUwQd5Bb9likxSbxwb0wnYixx2ZzSb94DF2FsLgFXQ\n\tj8fEjo2NIwYvdZAMBKvbDrHArl/9Q==",
        "Subject": "[Buildroot] [PATCH v2] gst1-plugins-bad: fix build against openjpeg\n\t2.2",
        "X-BeenThere": "buildroot@busybox.net",
        "X-Mailman-Version": "2.1.18-1",
        "Precedence": "list",
        "List-Id": "Discussion and development of buildroot <buildroot.busybox.net>",
        "List-Unsubscribe": "<http://lists.busybox.net/mailman/options/buildroot>,\n\t<mailto:buildroot-request@busybox.net?subject=unsubscribe>",
        "List-Archive": "<http://lists.busybox.net/pipermail/buildroot/>",
        "List-Post": "<mailto:buildroot@busybox.net>",
        "List-Help": "<mailto:buildroot-request@busybox.net?subject=help>",
        "List-Subscribe": "<http://lists.busybox.net/mailman/listinfo/buildroot>,\n\t<mailto:buildroot-request@busybox.net?subject=subscribe>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Errors-To": "buildroot-bounces@busybox.net",
        "Sender": "\"buildroot\" <buildroot-bounces@busybox.net>"
    },
    "content": "Add upstream patch to fix build against openjpeg 2.2 and patch\nto bump gettext version to 0.19 to fix autoreconf build step.\n\nFixes [1]:\n\n  gstopenjpeg.h:42:37: fatal error: openjpeg-2.1/openjpeg.h: No such file or directory\n\n[1] http://autobuild.buildroot.net/results/90f1f7838f08e3a557be27470406d4d84dbcc828\n\nSigned-off-by: Peter Seiderer <ps.report@gmx.net>\n---\n ...1-openjpeg-Fix-build-against-openjpeg-2.2.patch | 93 ++++++++++++++++++++++\n .../0002-Bump-gettext-version-to-0.19.patch        | 46 +++++++++++\n 2 files changed, 139 insertions(+)\n create mode 100644 package/gstreamer1/gst1-plugins-bad/0001-openjpeg-Fix-build-against-openjpeg-2.2.patch\n create mode 100644 package/gstreamer1/gst1-plugins-bad/0002-Bump-gettext-version-to-0.19.patch",
    "diff": "diff --git a/package/gstreamer1/gst1-plugins-bad/0001-openjpeg-Fix-build-against-openjpeg-2.2.patch b/package/gstreamer1/gst1-plugins-bad/0001-openjpeg-Fix-build-against-openjpeg-2.2.patch\nnew file mode 100644\nindex 0000000000..d9268bc9b6\n--- /dev/null\n+++ b/package/gstreamer1/gst1-plugins-bad/0001-openjpeg-Fix-build-against-openjpeg-2.2.patch\n@@ -0,0 +1,93 @@\n+From daaf649bda7231fd0d760802232a36ba62a4ea2d Mon Sep 17 00:00:00 2001\n+From: Clemens Lang <cal@macports.org>\n+Date: Sun, 13 Aug 2017 21:17:18 +0200\n+Subject: [PATCH] openjpeg: Fix build against openjpeg 2.2\n+\n+OpenJPEG 2.2 has some API changes and thus ships its headers in a new\n+include path. Add a configure check (to both meson and autoconf) to\n+detect the newer version of OpenJPEG and add conditional includes.\n+\n+Fix the autoconf test for OpenJPEG 2.1, which checked for HAVE_OPENJPEG,\n+which was always set even for 2.0.\n+\n+https://bugzilla.gnome.org/show_bug.cgi?id=786250\n+\n+Upstream: https://cgit.freedesktop.org/gstreamer/gst-plugins-bad/patch/?id=15f24fef53a955c7c76fc966302cb0453732e657\n+Signed-off-by: Peter Seiderer <ps.report@gmx.net>\n+---\n+ configure.ac               |  7 ++++++-\n+ ext/openjpeg/gstopenjpeg.h |  4 +++-\n+ ext/openjpeg/meson.build   | 21 +++++++++++++--------\n+ 3 files changed, 22 insertions(+), 10 deletions(-)\n+\n+diff --git a/configure.ac b/configure.ac\n+index 30e26b8..c4f08c7 100644\n+--- a/configure.ac\n++++ b/configure.ac\n+@@ -2813,8 +2813,13 @@ AG_GST_CHECK_FEATURE(OPENJPEG, [openjpeg library], openjpeg, [\n+   if test x\"$HAVE_OPENJPEG\" = x\"yes\"; then\n+     dnl minor API changes in v2.1\n+     AG_GST_PKG_CHECK_MODULES(OPENJPEG_2_1, libopenjp2 >= 2.1)\n+-    if test x\"$HAVE_OPENJPEG\" = x\"yes\"; then\n++    if test x\"$HAVE_OPENJPEG_2_1\" = x\"yes\"; then\n+       AC_DEFINE([HAVE_OPENJPEG_2_1], 1, [Define if OpenJPEG 2.1 is used])\n++        dnl include paths changed for v2.2\n++        AG_GST_PKG_CHECK_MODULES(OPENJPEG_2_2, libopenjp2 >= 2.2)\n++        if test x\"$HAVE_OPENJPEG_2_2\" = x\"yes\"; then\n++          AC_DEFINE([HAVE_OPENJPEG_2_2], 1, [Define if OpenJPEG 2.2 is used])\n++        fi\n+     fi\n+   else\n+     # Fallback to v1.5\n+diff --git a/ext/openjpeg/gstopenjpeg.h b/ext/openjpeg/gstopenjpeg.h\n+index 03ce52e..52410a4 100644\n+--- a/ext/openjpeg/gstopenjpeg.h\n++++ b/ext/openjpeg/gstopenjpeg.h\n+@@ -38,7 +38,9 @@\n+ #define OPJ_CPRL CPRL\n+ #else\n+ #include <stdio.h>\n+-# ifdef HAVE_OPENJPEG_2_1\n++# if defined(HAVE_OPENJPEG_2_2)\n++#  include <openjpeg-2.2/openjpeg.h>\n++# elif defined(HAVE_OPENJPEG_2_1)\n+ #  include <openjpeg-2.1/openjpeg.h>\n+ # else\n+ #  include <openjpeg-2.0/openjpeg.h>\n+diff --git a/ext/openjpeg/meson.build b/ext/openjpeg/meson.build\n+index d60974c..e9c416c 100644\n+--- a/ext/openjpeg/meson.build\n++++ b/ext/openjpeg/meson.build\n+@@ -6,16 +6,21 @@ openjpeg_sources = [\n+ \n+ openjpeg_cargs = []\n+ \n+-# Check for 2.1, then 2.0\n+-openjpeg_dep = dependency('libopenjp2', version : '>=2.1', required : false)\n++# Check for 2.2, 2.1, then 2.0\n++openjpeg_dep = dependency('libopenjp2', version : '>=2.2', required : false)\n+ if openjpeg_dep.found()\n+-  openjpeg_cargs += ['-DHAVE_OPENJPEG_2_1']\n++  openjpeg_cargs += ['-DHAVE_OPENJPEG_2_2']\n+ else\n+-  openjpeg_dep = dependency('libopenjp2', required : false)\n+-  # Fallback to 1.5\n+-  if not openjpeg_dep.found()\n+-    openjpeg_dep = dependency('libopenjpeg1', required : false)\n+-    openjpeg_cargs += ['-DHAVE_OPENJPEG_1']\n++  openjpeg_dep = dependency('libopenjp2', version : '>=2.1', required : false)\n++  if openjpeg_dep.found()\n++    openjpeg_cargs += ['-DHAVE_OPENJPEG_2_1']\n++  else\n++    openjpeg_dep = dependency('libopenjp2', required : false)\n++    # Fallback to 1.5\n++    if not openjpeg_dep.found()\n++      openjpeg_dep = dependency('libopenjpeg1', required : false)\n++      openjpeg_cargs += ['-DHAVE_OPENJPEG_1']\n++    endif\n+   endif\n+ endif\n+ \n+-- \n+2.12.3\n+\ndiff --git a/package/gstreamer1/gst1-plugins-bad/0002-Bump-gettext-version-to-0.19.patch b/package/gstreamer1/gst1-plugins-bad/0002-Bump-gettext-version-to-0.19.patch\nnew file mode 100644\nindex 0000000000..ccac1f1073\n--- /dev/null\n+++ b/package/gstreamer1/gst1-plugins-bad/0002-Bump-gettext-version-to-0.19.patch\n@@ -0,0 +1,46 @@\n+From 750da2a0dbaaefa4e702bf7ede16917b57b7efa8 Mon Sep 17 00:00:00 2001\n+From: Peter Seiderer <ps.report@gmx.net>\n+Date: Thu, 7 Sep 2017 23:01:44 +0200\n+Subject: [PATCH] Bump gettext version to 0.19\n+\n+Fixes autoreconf failure:\n+\n+  *** error: gettext infrastructure mismatch: using a Makefile.in.in from gettext version 0.17 but the autoconf macros are from gettext version 0.19\n+\n+Signed-off-by: Peter Seiderer <ps.report@gmx.net>\n+---\n+ configure.ac      | 2 +-\n+ po/Makefile.in.in | 4 ++--\n+ 2 files changed, 3 insertions(+), 3 deletions(-)\n+\n+diff --git a/configure.ac b/configure.ac\n+index c4f08c7..009f6e6 100644\n+--- a/configure.ac\n++++ b/configure.ac\n+@@ -67,7 +67,7 @@ AC_SUBST(ACLOCAL_AMFLAGS, \"-I m4 -I common/m4\")\n+ \n+ dnl set up gettext\n+ dnl the version check needs to stay here because autopoint greps for it\n+-AM_GNU_GETTEXT_VERSION([0.17])\n++AM_GNU_GETTEXT_VERSION([0.19])\n+ AM_GNU_GETTEXT([external])\n+ AG_GST_GETTEXT([gst-plugins-bad-$GST_API_VERSION])\n+ \n+diff --git a/po/Makefile.in.in b/po/Makefile.in.in\n+index fecf500..fcd3167 100644\n+--- a/po/Makefile.in.in\n++++ b/po/Makefile.in.in\n+@@ -8,8 +8,8 @@\n+ # Please note that the actual code of GNU gettext is covered by the GNU\n+ # General Public License and is *not* in the public domain.\n+ #\n+-# Origin: gettext-0.17\n+-GETTEXT_MACRO_VERSION = 0.17\n++# Origin: gettext-0.19\n++GETTEXT_MACRO_VERSION = 0.19\n+ \n+ PACKAGE = @PACKAGE@\n+ VERSION = @VERSION@\n+-- \n+2.12.3\n+\n",
    "prefixes": [
        "v2"
    ]
}