Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/50917/?format=api
http://patches.dpdk.org/api/patches/50917/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20190307115448.54041-4-bruce.richardson@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": "<20190307115448.54041-4-bruce.richardson@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20190307115448.54041-4-bruce.richardson@intel.com", "date": "2019-03-07T11:54:47", "name": "[3/4] build: move meson version handling to config directory", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "e2656a7414662b3f21f82ddeccd0e1263d3b9e7b", "submitter": { "id": 20, "url": "http://patches.dpdk.org/api/people/20/?format=api", "name": "Bruce Richardson", "email": "bruce.richardson@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/20190307115448.54041-4-bruce.richardson@intel.com/mbox/", "series": [ { "id": 3660, "url": "http://patches.dpdk.org/api/series/3660/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=3660", "date": "2019-03-07T11:54:44", "name": "One versionfile to rule them all...", "version": 1, "mbox": "http://patches.dpdk.org/series/3660/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/50917/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/50917/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@dpdk.org", "Delivered-To": "patchwork@dpdk.org", "Received": [ "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id A6D8B4F90;\n\tThu, 7 Mar 2019 12:55:17 +0100 (CET)", "from mga07.intel.com (mga07.intel.com [134.134.136.100])\n\tby dpdk.org (Postfix) with ESMTP id 6508D4CC3\n\tfor <dev@dpdk.org>; Thu, 7 Mar 2019 12:55:15 +0100 (CET)", "from orsmga002.jf.intel.com ([10.7.209.21])\n\tby orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t07 Mar 2019 03:55:14 -0800", "from silpixa00399126.ir.intel.com (HELO\n\tsilpixa00399126.ger.corp.intel.com) ([10.237.222.236])\n\tby orsmga002.jf.intel.com with ESMTP; 07 Mar 2019 03:55:13 -0800" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.58,451,1544515200\"; d=\"scan'208\";a=\"139925646\"", "From": "Bruce Richardson <bruce.richardson@intel.com>", "To": "dev@dpdk.org", "Cc": "Bruce Richardson <bruce.richardson@intel.com>", "Date": "Thu, 7 Mar 2019 11:54:47 +0000", "Message-Id": "<20190307115448.54041-4-bruce.richardson@intel.com>", "X-Mailer": "git-send-email 2.20.1", "In-Reply-To": "<20190307115448.54041-1-bruce.richardson@intel.com>", "References": "<20190307115448.54041-1-bruce.richardson@intel.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH 3/4] build: move meson version handling to config\n\tdirectory", "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\t<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\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "To keep the top-level meson.build file as clean and clear as\npossible, we move the version handling - which was originally short\nbut now is a lot longer - to the config/meson.build file, where the\nrest of the build configuration is already being set up.\n\nSigned-off-by: Bruce Richardson <bruce.richardson@intel.com>\n---\n config/meson.build | 26 ++++++++++++++++++++++++++\n meson.build | 26 --------------------------\n 2 files changed, 26 insertions(+), 26 deletions(-)", "diff": "diff --git a/config/meson.build b/config/meson.build\nindex 0419607d3..bbe17c786 100644\n--- a/config/meson.build\n+++ b/config/meson.build\n@@ -1,6 +1,32 @@\n # SPDX-License-Identifier: BSD-3-Clause\n # Copyright(c) 2017 Intel Corporation\n \n+# set the major version, which might be used by drivers and libraries\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+\n+# extract all version information into the build configuration\n+dpdk_conf.set('RTE_VER_YEAR', pver.get(0))\n+dpdk_conf.set('RTE_VER_MONTH', pver.get(1))\n+if pver.get(2).contains('-rc')\n+\trc_ver = pver.get(2).split('-rc')\n+\tdpdk_conf.set('RTE_VER_MINOR', rc_ver.get(0))\n+\tdpdk_conf.set_quoted('RTE_VER_SUFFIX', '-rc')\n+\tdpdk_conf.set('RTE_VER_RELEASE', rc_ver.get(1))\n+else\n+\tdpdk_conf.set('RTE_VER_MINOR', pver.get(2))\n+\tdpdk_conf.set_quoted('RTE_VER_SUFFIX', '')\n+\tdpdk_conf.set('RTE_VER_RELEASE', 0)\n+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+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)\n+\n # set the machine type and cflags for it\n if meson.is_cross_build()\n \tmachine = host_machine.cpu()\ndiff --git a/meson.build b/meson.build\nindex 9d5320395..b0151f0c7 100644\n--- a/meson.build\n+++ b/meson.build\n@@ -17,32 +17,6 @@ dpdk_drivers = []\n dpdk_extra_ldflags = []\n dpdk_app_link_libraries = []\n \n-# set the major version, which might be used by drivers and libraries\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-\n-# extract all version information into the build configuration\n-dpdk_conf.set('RTE_VER_YEAR', pver.get(0))\n-dpdk_conf.set('RTE_VER_MONTH', pver.get(1))\n-if pver.get(2).contains('-rc')\n-\trc_ver = pver.get(2).split('-rc')\n-\tdpdk_conf.set('RTE_VER_MINOR', rc_ver.get(0))\n-\tdpdk_conf.set_quoted('RTE_VER_SUFFIX', '-rc')\n-\tdpdk_conf.set('RTE_VER_RELEASE', rc_ver.get(1))\n-else\n-\tdpdk_conf.set('RTE_VER_MINOR', pver.get(2))\n-\tdpdk_conf.set_quoted('RTE_VER_SUFFIX', '')\n-\tdpdk_conf.set('RTE_VER_RELEASE', 0)\n-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-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)\n-\n # configure the build, and make sure configs here and in config folder are\n # able to be included in any file. We also store a global array of include dirs\n # for passing to pmdinfogen scripts\n", "prefixes": [ "3/4" ] }{ "id": 50917, "url": "