get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 62783,
    "url": "http://patches.dpdk.org/api/patches/62783/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/24aae2ed616a13f9597cc6059f0288ddd91bf359.1573230233.git.anatoly.burakov@intel.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": "<24aae2ed616a13f9597cc6059f0288ddd91bf359.1573230233.git.anatoly.burakov@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/24aae2ed616a13f9597cc6059f0288ddd91bf359.1573230233.git.anatoly.burakov@intel.com",
    "date": "2019-11-08T16:25:22",
    "name": "[v7,01/10] config: change ABI versioning to global",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "f9ff3a2d089962b9214b1202a916114a530ab515",
    "submitter": {
        "id": 4,
        "url": "http://patches.dpdk.org/api/people/4/?format=api",
        "name": "Anatoly Burakov",
        "email": "anatoly.burakov@intel.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/24aae2ed616a13f9597cc6059f0288ddd91bf359.1573230233.git.anatoly.burakov@intel.com/mbox/",
    "series": [
        {
            "id": 7360,
            "url": "http://patches.dpdk.org/api/series/7360/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=7360",
            "date": "2019-11-08T16:25:21",
            "name": "Implement the new ABI policy and add helper scripts",
            "version": 7,
            "mbox": "http://patches.dpdk.org/series/7360/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/62783/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/62783/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 50A1AA04B4;\n\tFri,  8 Nov 2019 17:25:45 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id DDEF11C0C8;\n\tFri,  8 Nov 2019 17:25:38 +0100 (CET)",
            "from mga12.intel.com (mga12.intel.com [192.55.52.136])\n by dpdk.org (Postfix) with ESMTP id 05DD61C065\n for <dev@dpdk.org>; Fri,  8 Nov 2019 17:25:36 +0100 (CET)",
            "from orsmga008.jf.intel.com ([10.7.209.65])\n by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n 08 Nov 2019 08:25:36 -0800",
            "from silpixa00399498.ir.intel.com (HELO\n silpixa00399498.ger.corp.intel.com) ([10.237.223.151])\n by orsmga008.jf.intel.com with ESMTP; 08 Nov 2019 08:25:34 -0800"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.68,282,1569308400\"; d=\"scan'208\";a=\"196947402\"",
        "From": "Anatoly Burakov <anatoly.burakov@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "Marcin Baran <marcinx.baran@intel.com>,\n Thomas Monjalon <thomas@monjalon.net>,\n Bruce Richardson <bruce.richardson@intel.com>, john.mcnamara@intel.com,\n ray.kinsella@intel.com, david.marchand@redhat.com,\n Pawel Modrak <pawelx.modrak@intel.com>",
        "Date": "Fri,  8 Nov 2019 16:25:22 +0000",
        "Message-Id": "\n <24aae2ed616a13f9597cc6059f0288ddd91bf359.1573230233.git.anatoly.burakov@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": [
            "<cover.1573230233.git.anatoly.burakov@intel.com>",
            "<cover.1573230233.git.anatoly.burakov@intel.com>"
        ],
        "References": [
            "<cover.1573230233.git.anatoly.burakov@intel.com>",
            "<cover.1573059201.git.anatoly.burakov@intel.com>\n <cover.1573230233.git.anatoly.burakov@intel.com>"
        ],
        "Subject": "[dpdk-dev] [PATCH v7 01/10] config: change ABI versioning to global",
        "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: Marcin Baran <marcinx.baran@intel.com>\n\nAs per new ABI policy, all of the libraries are now versioned using\none global ABI version. Changes in this patch implement the\nnecessary steps to enable that.\n\nSigned-off-by: Marcin Baran <marcinx.baran@intel.com>\nSigned-off-by: Pawel Modrak <pawelx.modrak@intel.com>\nSigned-off-by: Anatoly Burakov <anatoly.burakov@intel.com>\nAcked-by: Bruce Richardson <bruce.richardson@intel.com>\n---\n\nNotes:\n    v6:\n    - Silenced grep error message on trying to grep a directory\n    \n    v3:\n    - Removed Windows support from Makefile changes\n    - Removed unneeded path conversions from meson files\n\n buildtools/meson.build |  2 ++\n config/ABI_VERSION     |  1 +\n config/meson.build     |  4 +++-\n drivers/meson.build    | 20 ++++++++++++--------\n lib/meson.build        | 18 ++++++++++++------\n meson_options.txt      |  2 --\n mk/rte.lib.mk          | 13 ++++---------\n 7 files changed, 34 insertions(+), 26 deletions(-)\n create mode 100644 config/ABI_VERSION",
    "diff": "diff --git a/buildtools/meson.build b/buildtools/meson.build\nindex 32c79c1308..78ce69977d 100644\n--- a/buildtools/meson.build\n+++ b/buildtools/meson.build\n@@ -12,3 +12,5 @@ if python3.found()\n else\n \tmap_to_def_cmd = ['meson', 'runpython', files('map_to_def.py')]\n endif\n+\n+is_experimental_cmd = [find_program('grep', 'findstr'), '^DPDK_']\ndiff --git a/config/ABI_VERSION b/config/ABI_VERSION\nnew file mode 100644\nindex 0000000000..9a7c1e503f\n--- /dev/null\n+++ b/config/ABI_VERSION\n@@ -0,0 +1 @@\n+20.0\ndiff --git a/config/meson.build b/config/meson.build\nindex 2b1cb92e7e..30aa2a5313 100644\n--- a/config/meson.build\n+++ b/config/meson.build\n@@ -18,6 +18,8 @@ endforeach\n # depending on the configuration options\n pver = meson.project_version().split('.')\n major_version = '@0@.@1@'.format(pver.get(0), pver.get(1))\n+abi_version = run_command(find_program('cat', 'more'),\n+\tfiles('ABI_VERSION')).stdout().strip()\n \n # extract all version information into the build configuration\n dpdk_conf.set('RTE_VER_YEAR', pver.get(0).to_int())\n@@ -37,7 +39,7 @@ endif\n \n pmd_subdir_opt = get_option('drivers_install_subdir')\n if pmd_subdir_opt.contains('<VERSION>')\n-\tpmd_subdir_opt = major_version.join(pmd_subdir_opt.split('<VERSION>'))\n+\tpmd_subdir_opt = abi_version.join(pmd_subdir_opt.split('<VERSION>'))\n endif\n driver_install_path = join_paths(get_option('libdir'), pmd_subdir_opt)\n eal_pmd_path = join_paths(get_option('prefix'), driver_install_path)\ndiff --git a/drivers/meson.build b/drivers/meson.build\nindex 156d2dc717..b03e0c3159 100644\n--- a/drivers/meson.build\n+++ b/drivers/meson.build\n@@ -124,12 +124,19 @@ foreach class:dpdk_driver_classes\n \t\t\t\t\toutput: out_filename,\n \t\t\t\t\tdepends: [pmdinfogen, tmp_lib])\n \n-\t\t\tif get_option('per_library_versions')\n-\t\t\t\tlib_version = '@0@.1'.format(version)\n-\t\t\t\tso_version = '@0@'.format(version)\n+\t\t\tversion_map = '@0@/@1@/@2@_version.map'.format(\n+\t\t\t\t\tmeson.current_source_dir(),\n+\t\t\t\t\tdrv_path, lib_name)\n+\n+\t\t\tis_experimental = run_command(is_experimental_cmd,\n+\t\t\t\tfiles(version_map)).returncode()\n+\n+\t\t\tif is_experimental != 0\n+\t\t\t\tlib_version = '0.1'\n+\t\t\t\tso_version = '0'\n \t\t\telse\n-\t\t\t\tlib_version = major_version\n-\t\t\t\tso_version = major_version\n+\t\t\t\tlib_version = abi_version\n+\t\t\t\tso_version = abi_version\n \t\t\tendif\n \n \t\t\t# now build the static driver\n@@ -142,9 +149,6 @@ foreach class:dpdk_driver_classes\n \t\t\t\tinstall: true)\n \n \t\t\t# now build the shared driver\n-\t\t\tversion_map = '@0@/@1@/@2@_version.map'.format(\n-\t\t\t\t\tmeson.current_source_dir(),\n-\t\t\t\t\tdrv_path, lib_name)\n \t\t\tshared_lib = shared_library(lib_name,\n \t\t\t\tsources,\n \t\t\t\tobjects: objs,\ndiff --git a/lib/meson.build b/lib/meson.build\nindex b2ec9c09a9..3cff2482b1 100644\n--- a/lib/meson.build\n+++ b/lib/meson.build\n@@ -106,12 +106,18 @@ foreach l:libraries\n \t\t\t\tcflags += '-DRTE_USE_FUNCTION_VERSIONING'\n \t\t\tendif\n \n-\t\t\tif get_option('per_library_versions')\n-\t\t\t\tlib_version = '@0@.1'.format(version)\n-\t\t\t\tso_version = '@0@'.format(version)\n+\t\t\tversion_map = '@0@/@1@/rte_@2@_version.map'.format(\n+\t\t\t\t\tmeson.current_source_dir(), dir_name, name)\n+\n+\t\t\tis_experimental = run_command(is_experimental_cmd,\n+\t\t\t\t\tfiles(version_map)).returncode()\n+\n+\t\t\tif is_experimental != 0\n+\t\t\t\tlib_version = '0.1'\n+\t\t\t\tso_version = '0'\n \t\t\telse\n-\t\t\t\tlib_version = major_version\n-\t\t\t\tso_version = major_version\n+\t\t\t\tlib_version = abi_version\n+\t\t\t\tso_version = abi_version\n \t\t\tendif\n \n \t\t\t# first build static lib\n@@ -127,7 +133,7 @@ foreach l:libraries\n \t\t\t\t\tdependencies: static_deps)\n \n \t\t\tif not use_function_versioning\n-\t\t\t\t# use pre-build objects to build shared lib\n+\t\t\t\t# then use pre-build objects to build shared lib\n \t\t\t\tsources = []\n \t\t\t\tobjs += static_lib.extract_all_objects(recursive: false)\n \t\t\telse\ndiff --git a/meson_options.txt b/meson_options.txt\nindex 89650b0e9c..da6a7f0302 100644\n--- a/meson_options.txt\n+++ b/meson_options.txt\n@@ -30,8 +30,6 @@ option('max_lcores', type: 'integer', value: 128,\n \tdescription: 'maximum number of cores/threads supported by EAL')\n option('max_numa_nodes', type: 'integer', value: 4,\n \tdescription: 'maximum number of NUMA nodes supported by EAL')\n-option('per_library_versions', type: 'boolean', value: true,\n-\tdescription: 'true: each lib gets its own version number, false: DPDK version used for each lib')\n option('tests', type: 'boolean', value: true,\n \tdescription: 'build unit tests')\n option('use_hpet', type: 'boolean', value: false,\ndiff --git a/mk/rte.lib.mk b/mk/rte.lib.mk\nindex 4df8849a08..b49af9192b 100644\n--- a/mk/rte.lib.mk\n+++ b/mk/rte.lib.mk\n@@ -11,20 +11,15 @@ EXTLIB_BUILD ?= n\n # VPATH contains at least SRCDIR\n VPATH += $(SRCDIR)\n \n-ifneq ($(CONFIG_RTE_MAJOR_ABI),)\n-ifneq ($(LIBABIVER),)\n-LIBABIVER := $(CONFIG_RTE_MAJOR_ABI)\n-endif\n+ifneq ($(shell grep -s \"^DPDK_\" $(SRCDIR)/$(EXPORT_MAP)),)\n+LIBABIVER := $(shell cat $(RTE_SRCDIR)/config/ABI_VERSION)\n+else\n+LIBABIVER := 0\n endif\n \n ifeq ($(CONFIG_RTE_BUILD_SHARED_LIB),y)\n LIB := $(patsubst %.a,%.so.$(LIBABIVER),$(LIB))\n ifeq ($(EXTLIB_BUILD),n)\n-ifeq ($(CONFIG_RTE_MAJOR_ABI),)\n-ifeq ($(CONFIG_RTE_NEXT_ABI),y)\n-LIB := $(LIB).1\n-endif\n-endif\n CPU_LDFLAGS += --version-script=$(SRCDIR)/$(EXPORT_MAP)\n endif\n endif\n",
    "prefixes": [
        "v7",
        "01/10"
    ]
}