get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 71844,
    "url": "http://patches.dpdk.org/api/patches/71844/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200621102612.22740-10-talshn@mellanox.com/",
    "project": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/projects/1/?format=api",
        "name": "DPDK",
        "link_name": "dpdk",
        "list_id": "dev.dpdk.org",
        "list_email": "dev@dpdk.org",
        "web_url": "http://core.dpdk.org",
        "scm_url": "git://dpdk.org/dpdk",
        "webscm_url": "http://git.dpdk.org/dpdk",
        "list_archive_url": "https://inbox.dpdk.org/dev",
        "list_archive_url_format": "https://inbox.dpdk.org/dev/{}",
        "commit_url_format": ""
    },
    "msgid": "<20200621102612.22740-10-talshn@mellanox.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200621102612.22740-10-talshn@mellanox.com",
    "date": "2020-06-21T10:26:12",
    "name": "[v7,9/9] build: generate version.map file for MinGW on Windows",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "48d8248b51dd611266d05ae6b50c69e6493e26e0",
    "submitter": {
        "id": 1669,
        "url": "http://patches.dpdk.org/api/people/1669/?format=api",
        "name": "Tal Shnaiderman",
        "email": "talshn@mellanox.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20200621102612.22740-10-talshn@mellanox.com/mbox/",
    "series": [
        {
            "id": 10531,
            "url": "http://patches.dpdk.org/api/series/10531/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=10531",
            "date": "2020-06-21T10:26:09",
            "name": "Windows bus/pci support",
            "version": 7,
            "mbox": "http://patches.dpdk.org/series/10531/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/71844/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/71844/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 4AAB2A0350;\n\tSun, 21 Jun 2020 12:27:48 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id ADA0E1C0CE;\n\tSun, 21 Jun 2020 12:26:38 +0200 (CEST)",
            "from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129])\n by dpdk.org (Postfix) with ESMTP id 651491C030\n for <dev@dpdk.org>; Sun, 21 Jun 2020 12:26:25 +0200 (CEST)",
            "from Internal Mail-Server by MTLPINE1 (envelope-from\n talshn@mellanox.com) with SMTP; 21 Jun 2020 13:26:20 +0300",
            "from l-wincomp04-vm.labs.mlnx (l-wincomp04-vm.mtl.labs.mlnx\n [10.237.1.5])\n by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id 05LAQJH4007270;\n Sun, 21 Jun 2020 13:26:20 +0300"
        ],
        "From": "talshn@mellanox.com",
        "To": "dev@dpdk.org",
        "Cc": "thomas@monjalon.net, pallavi.kadam@intel.com, dmitry.kozliuk@gmail.com,\n david.marchand@redhat.com, grive@u256.net, ranjit.menon@intel.com,\n navasile@linux.microsoft.com, harini.ramakrishnan@microsoft.com,\n ocardona@microsoft.com, anatoly.burakov@intel.com, fady@mellanox.com,\n bruce.richardson@intel.com, Tal Shnaiderman <talshn@mellanox.com>",
        "Date": "Sun, 21 Jun 2020 13:26:12 +0300",
        "Message-Id": "<20200621102612.22740-10-talshn@mellanox.com>",
        "X-Mailer": "git-send-email 2.16.1.windows.4",
        "In-Reply-To": "<20200621102612.22740-1-talshn@mellanox.com>",
        "References": "<20200618211546.24496-2-talshn@mellanox.com>\n <20200621102612.22740-1-talshn@mellanox.com>",
        "Subject": "[dpdk-dev] [PATCH v7 9/9] build: generate version.map file for\n\tMinGW on Windows",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "From: Tal Shnaiderman <talshn@mellanox.com>\n\nThe MinGW build for Windows has special cases where exported\nfunction contain additional prefix:\n\n__emutls_v.per_lcore__*\n\nTo avoid adding those prefixed functions to the version.map file\nthe map_to_def.py script was modified to create a map file for MinGW\nwith the needed changed.\n\nThe file name was changed to map_to_win.py and lib/meson.build map output\nwas unified with drivers/meson.build output\n\nSigned-off-by: Tal Shnaiderman <talshn@mellanox.com>\n---\n buildtools/{map_to_def.py => map_to_win.py} | 11 ++++++++++-\n buildtools/meson.build                      |  4 ++--\n drivers/meson.build                         | 12 +++++++++---\n lib/meson.build                             | 19 ++++++++++++++-----\n 4 files changed, 35 insertions(+), 11 deletions(-)\n rename buildtools/{map_to_def.py => map_to_win.py} (69%)",
    "diff": "diff --git a/buildtools/map_to_def.py b/buildtools/map_to_win.py\nsimilarity index 69%\nrename from buildtools/map_to_def.py\nrename to buildtools/map_to_win.py\nindex 6775b54a9d..a539f2129c 100644\n--- a/buildtools/map_to_def.py\n+++ b/buildtools/map_to_win.py\n@@ -10,12 +10,21 @@\n def is_function_line(ln):\n     return ln.startswith('\\t') and ln.endswith(';\\n') and \":\" not in ln\n \n+# MinGW keeps the original .map file but replaces per_lcore__* to __emutls_v.per_lcore__*\n+def create_mingw_map_file(input_map, output_map):\n+    with open(input_map) as f_in, open(output_map, 'w') as f_out:\n+        f_out.writelines([lines.replace('per_lcore__', '__emutls_v.per_lcore__') for lines in f_in.readlines()])\n \n def main(args):\n     if not args[1].endswith('version.map') or \\\n-            not args[2].endswith('exports.def'):\n+            not args[2].endswith('exports.def') and \\\n+            not args[2].endswith('mingw.map'):\n         return 1\n \n+    if args[2].endswith('mingw.map'):\n+        create_mingw_map_file(args[1], args[2])\n+        return 0\n+\n # special case, allow override if an def file already exists alongside map file\n     override_file = join(dirname(args[1]), basename(args[2]))\n     if exists(override_file):\ndiff --git a/buildtools/meson.build b/buildtools/meson.build\nindex d5f8291beb..f9d2fdf74b 100644\n--- a/buildtools/meson.build\n+++ b/buildtools/meson.build\n@@ -9,14 +9,14 @@ list_dir_globs = find_program('list-dir-globs.py')\n check_symbols = find_program('check-symbols.sh')\n ldflags_ibverbs_static = find_program('options-ibverbs-static.sh')\n \n-# set up map-to-def script using python, either built-in or external\n+# set up map-to-win script using python, either built-in or external\n python3 = import('python').find_installation(required: false)\n if python3.found()\n \tpy3 = [python3]\n else\n \tpy3 = ['meson', 'runpython']\n endif\n-map_to_def_cmd = py3 + files('map_to_def.py')\n+map_to_win_cmd = py3 + files('map_to_win.py')\n sphinx_wrapper = py3 + files('call-sphinx-build.py')\n \n # stable ABI always starts with \"DPDK_\"\ndiff --git a/drivers/meson.build b/drivers/meson.build\nindex 646a7d5eb5..2cd8505d10 100644\n--- a/drivers/meson.build\n+++ b/drivers/meson.build\n@@ -152,16 +152,22 @@ foreach class:dpdk_driver_classes\n \t\t\timplib = 'lib' + lib_name + '.dll.a'\n \n \t\t\tdef_file = custom_target(lib_name + '_def',\n-\t\t\t\tcommand: [map_to_def_cmd, '@INPUT@', '@OUTPUT@'],\n+\t\t\t\tcommand: [map_to_win_cmd, '@INPUT@', '@OUTPUT@'],\n \t\t\t\tinput: version_map,\n \t\t\t\toutput: '@0@_exports.def'.format(lib_name))\n-\t\t\tlk_deps = [version_map, def_file]\n+\n+\t\t\tmingw_map = custom_target(lib_name + '_mingw',\n+\t\t\t\tcommand: [map_to_win_cmd, '@INPUT@', '@OUTPUT@'],\n+\t\t\t\tinput: version_map,\n+\t\t\t\toutput: '@0@_mingw.map'.format(lib_name))\n+\n+\t\t\tlk_deps = [version_map, def_file, mingw_map]\n \t\t\tif is_windows\n \t\t\t\tif is_ms_linker\n \t\t\t\t\tlk_args = ['-Wl,/def:' + def_file.full_path(),\n \t\t\t\t\t\t'-Wl,/implib:drivers\\\\' + implib]\n \t\t\t\telse\n-\t\t\t\t\tlk_args = []\n+\t\t\t\t\tlk_args = ['-Wl,--version-script=' + mingw_map.full_path()]\n \t\t\t\tendif\n \t\t\telse\n \t\t\t\tlk_args = ['-Wl,--version-script=' + version_map]\ndiff --git a/lib/meson.build b/lib/meson.build\nindex a8fd317a18..af66610fcb 100644\n--- a/lib/meson.build\n+++ b/lib/meson.build\n@@ -149,19 +149,28 @@ foreach l:libraries\n \t\t\t\t\tmeson.current_source_dir(), dir_name, name)\n \t\t\timplib = dir_name + '.dll.a'\n \n-\t\t\tdef_file = custom_target(name + '_def',\n-\t\t\t\tcommand: [map_to_def_cmd, '@INPUT@', '@OUTPUT@'],\n+\t\t\tdef_file = custom_target(libname + '_def',\n+\t\t\t\tcommand: [map_to_win_cmd, '@INPUT@', '@OUTPUT@'],\n \t\t\t\tinput: version_map,\n-\t\t\t\toutput: 'rte_@0@_exports.def'.format(name))\n+\t\t\t\toutput: '@0@_exports.def'.format(libname))\n+\n+\t\t\tmingw_map = custom_target(libname + '_mingw',\n+\t\t\t\tcommand: [map_to_win_cmd, '@INPUT@', '@OUTPUT@'],\n+\t\t\t\tinput: version_map,\n+\t\t\t\toutput: '@0@_mingw.map'.format(libname))\n \n \t\t\tif is_ms_linker\n \t\t\t\tlk_args = ['-Wl,/def:' + def_file.full_path(),\n \t\t\t\t\t'-Wl,/implib:lib\\\\' + implib]\n \t\t\telse\n-\t\t\t\tlk_args = ['-Wl,--version-script=' + version_map]\n+\t\t\t\tif is_windows\n+\t\t\t\t\tlk_args = ['-Wl,--version-script=' + mingw_map.full_path()]\n+\t\t\t\telse\n+\t\t\t\t\tlk_args = ['-Wl,--version-script=' + version_map]\n+\t\t\t\tendif\n \t\t\tendif\n \n-\t\t\tlk_deps = [version_map, def_file]\n+\t\t\tlk_deps = [version_map, def_file, mingw_map]\n \t\t\tif not is_windows\n \t\t\t\t# on unix systems check the output of the\n \t\t\t\t# check-symbols.sh script, using it as a\n",
    "prefixes": [
        "v7",
        "9/9"
    ]
}