Show a patch.

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

{
    "id": 73551,
    "url": "https://patches.dpdk.org/api/patches/73551/",
    "web_url": "https://patches.dpdk.org/patch/73551/",
    "project": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/projects/1/",
        "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"
    },
    "msgid": "<20200708212335.25338-3-dmitry.kozliuk@gmail.com>",
    "date": "2020-07-08T21:23:33",
    "name": "[v4,2/4] build: use Python pmdinfogen",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "17086e6c098069c6eee0e417e95a14174bd61b53",
    "submitter": {
        "id": 1581,
        "url": "https://patches.dpdk.org/api/people/1581/",
        "name": "Dmitry Kozlyuk",
        "email": "dmitry.kozliuk@gmail.com"
    },
    "delegate": {
        "id": 24651,
        "url": "https://patches.dpdk.org/api/users/24651/",
        "username": "dmarchand",
        "first_name": "David",
        "last_name": "Marchand",
        "email": "david.marchand@redhat.com"
    },
    "mbox": "https://patches.dpdk.org/patch/73551/mbox/",
    "series": [
        {
            "id": 10898,
            "url": "https://patches.dpdk.org/api/series/10898/",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=10898",
            "date": "2020-07-08T21:23:31",
            "name": "pmdinfogen: rewrite in Python",
            "version": 4,
            "mbox": "https://patches.dpdk.org/series/10898/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/73551/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/73551/checks/",
    "tags": {},
    "headers": {
        "X-Mailman-Version": "2.1.15",
        "Date": "Thu,  9 Jul 2020 00:23:33 +0300",
        "In-Reply-To": "<20200708212335.25338-1-dmitry.kozliuk@gmail.com>",
        "Errors-To": "dev-bounces@dpdk.org",
        "X-Mailer": "git-send-email 2.25.4",
        "Received": [
            "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id A4897A0526;\n\tWed,  8 Jul 2020 23:24:02 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 2C36E1DFEF;\n\tWed,  8 Jul 2020 23:23:53 +0200 (CEST)",
            "from mail-lj1-f193.google.com (mail-lj1-f193.google.com\n [209.85.208.193]) by dpdk.org (Postfix) with ESMTP id 7E9721DE98\n for <dev@dpdk.org>; Wed,  8 Jul 2020 23:23:49 +0200 (CEST)",
            "by mail-lj1-f193.google.com with SMTP id e8so21629371ljb.0\n for <dev@dpdk.org>; Wed, 08 Jul 2020 14:23:49 -0700 (PDT)",
            "from localhost.localdomain (broadband-37-110-65-23.ip.moscow.rt.ru.\n [37.110.65.23])\n by smtp.gmail.com with ESMTPSA id u9sm230590ljk.44.2020.07.08.14.23.47\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Wed, 08 Jul 2020 14:23:47 -0700 (PDT)"
        ],
        "References": "<20200708005355.7102-1-dmitry.kozliuk@gmail.com>\n <20200708212335.25338-1-dmitry.kozliuk@gmail.com>",
        "X-Google-Smtp-Source": "\n ABdhPJwiTEaSM2tBXc4t2jn+5HBQYpoj9D3YTurgZL4ZOB3knLuV0rsDxSNWjOqNrsCSn8c2rOS+qg==",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n h=from:to:cc:subject:date:message-id:in-reply-to:references\n :mime-version:content-transfer-encoding;\n bh=S80P6Jny2RG5HDhbqjgpDbYyO3/J3JYhYBKK+KpjIE8=;\n b=ToCUxVp89mnNzMOQKNErY1ZCnS6GkM1kn3czrDu8Iwi4HCqXNFaoj9yux8IxBaYsvM\n W+bffG1CAm0NOlKZpCANPrcHwzAdH1sDoKBcFYa3Kjof3FO8fay6Hy8kIVOd+PGPVK+r\n dHK19jsIfHTdqwxjO5SbhmgACfOIUWM1ZA2hFdxuOecXHZMtWrmCS7dBFjvFtU9cGu6N\n Wx0eGvPQEknSP9lkJ3ewG2+srfjPPK7r4zoXKSKFr9vDzCaZF6tvs3oBhA8Aoy9YDmin\n i/yUpIQSDQpMaFZgS4Yy3QxRUOLDA9wYSjEmUhUtQTasERMbIVEV67RdHCULmZbuok7s\n Y9ug==",
        "MIME-Version": "1.0",
        "X-Received": "by 2002:a2e:b53c:: with SMTP id\n z28mr27121273ljm.439.1594243428529;\n Wed, 08 Jul 2020 14:23:48 -0700 (PDT)",
        "Message-Id": "<20200708212335.25338-3-dmitry.kozliuk@gmail.com>",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20161025;\n h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n :references:mime-version:content-transfer-encoding;\n bh=S80P6Jny2RG5HDhbqjgpDbYyO3/J3JYhYBKK+KpjIE8=;\n b=a8mngIU26OE6tPwU3XjyqA71qZ/qP26Uthyh/PKiiqb3w5YbdNZZPTAy8IeU4fn/yg\n bQ8KUmrSv96oAXEFvT9vBByWeXse+yXasYZ9y8+UleY7JgKv+wdTULq+6gXW06uWdmXb\n N0RaF/NtrKT1CsIro8ocBo3x+f9B2y4KcNE18N2qKwOIePmfi1CICas5bhP8eDQRTRVK\n zpMhX6vCHRLOwXeRvh3HxXpWv0J0le8ukUr3SW6pqdB49ajvF/1hKJWCZCWB//PrbHwX\n FR1u08ScwPGaylTZc0DGBX9RP6BCX480GHtecoHL6IWdN6ySji2WCFjYbksAzmo+StpG\n lNRA==",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Content-Transfer-Encoding": "8bit",
        "From": "Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "List-Post": "<mailto:dev@dpdk.org>",
        "Return-Path": "<dev-bounces@dpdk.org>",
        "Sender": "\"dev\" <dev-bounces@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>",
        "To": "dev@dpdk.org",
        "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>",
        "X-BeenThere": "dev@dpdk.org",
        "X-Gm-Message-State": "AOAM5335nxK5wI8Omes39GQ2URcVtx5hghQaYKJ4PJBMJsaWkW0NQfog\n aLy0kT2Y9v2yhN9aMnhBGXYYbG06tXZ9RA==",
        "Cc": "Neil Horman <nhorman@tuxdriver.com>,\n Bruce Richardson <bruce.richardson@intel.com>,\n Thomas Monjalon <thomas@monjalon.net>, robin.jarry@6wind.com,\n Jie Zhou <jizh@microsoft.com>, Tal Shnaiderman <talshn@mellanox.com>,\n Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>,\n Aaron Conole <aconole@redhat.com>,\n Michael Santana <maicolgabriel@hotmail.com>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "Subject": "[dpdk-dev] [PATCH v4 2/4] build: use Python pmdinfogen"
    },
    "content": "Like for other build scripts, use Python interpreter to run pmdinfogen.\nAdjust wrapper script accordingly and also don't suppress stderr from ar\nand pmdinfogen.\n\nAdd python3-pyelftools to CI configuration.\n\nSigned-off-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>\n---\n .travis.yml                     | 2 +-\n GNUmakefile                     | 2 +-\n buildtools/Makefile             | 9 ---------\n buildtools/gen-pmdinfo-cfile.sh | 6 +++---\n buildtools/meson.build          | 1 +\n drivers/meson.build             | 2 +-\n meson.build                     | 1 -\n mk/internal/rte.compile-pre.mk  | 2 +-\n mk/rte.sdkinstall.mk            | 2 --\n 9 files changed, 8 insertions(+), 19 deletions(-)\n delete mode 100644 buildtools/Makefile",
    "diff": "diff --git a/.travis.yml b/.travis.yml\nindex 14f812423..28b559a25 100644\n--- a/.travis.yml\n+++ b/.travis.yml\n@@ -14,7 +14,7 @@ addons:\n   apt:\n     update: true\n     packages: &required_packages\n-      - [libnuma-dev, python3-setuptools, python3-wheel, python3-pip, ninja-build]\n+      - [libnuma-dev, python3-setuptools, python3-wheel, python3-pip, python3-pyelftools, ninja-build]\n       - [libbsd-dev, libpcap-dev, libibverbs-dev, libcrypto++-dev, libfdt-dev, libjansson-dev]\n \n _aarch64_packages: &aarch64_packages\ndiff --git a/GNUmakefile b/GNUmakefile\nindex e8de422df..242d30d2e 100644\n--- a/GNUmakefile\n+++ b/GNUmakefile\n@@ -12,6 +12,6 @@ export RTE_SDK\n # directory list\n #\n \n-ROOTDIRS-y := buildtools lib kernel drivers app\n+ROOTDIRS-y := lib kernel drivers app\n \n include $(RTE_SDK)/mk/rte.sdkroot.mk\ndiff --git a/buildtools/Makefile b/buildtools/Makefile\ndeleted file mode 100644\nindex 7f76fd7d6..000000000\n--- a/buildtools/Makefile\n+++ /dev/null\n@@ -1,9 +0,0 @@\n-# SPDX-License-Identifier: BSD-3-Clause\n-# Copyright(c) 2016 Neil Horman <nhorman@tuxdriver.com>\n-# All rights reserved.\n-\n-include $(RTE_SDK)/mk/rte.vars.mk\n-\n-DIRS-y += pmdinfogen\n-\n-include $(RTE_SDK)/mk/rte.subdir.mk\ndiff --git a/buildtools/gen-pmdinfo-cfile.sh b/buildtools/gen-pmdinfo-cfile.sh\nindex 43059cf36..109ee461e 100755\n--- a/buildtools/gen-pmdinfo-cfile.sh\n+++ b/buildtools/gen-pmdinfo-cfile.sh\n@@ -4,11 +4,11 @@\n \n arfile=$1\n output=$2\n-pmdinfogen=$3\n+shift 2\n+pmdinfogen=$*\n \n # The generated file must not be empty if compiled in pedantic mode\n echo 'static __attribute__((unused)) const char *generator = \"'$0'\";' > $output\n for ofile in `ar t $arfile` ; do\n-\tar p $arfile $ofile | $pmdinfogen - - >> $output 2> /dev/null\n+\tar p $arfile $ofile | $pmdinfogen - - >> $output\n done\n-exit 0\ndiff --git a/buildtools/meson.build b/buildtools/meson.build\nindex 04808dabc..3a64b28b7 100644\n--- a/buildtools/meson.build\n+++ b/buildtools/meson.build\n@@ -17,3 +17,4 @@ else\n endif\n map_to_win_cmd = py3 + files('map_to_win.py')\n sphinx_wrapper = py3 + files('call-sphinx-build.py')\n+pmdinfogen = py3 + files('pmdinfogen.py')\ndiff --git a/drivers/meson.build b/drivers/meson.build\nindex 161cfda04..3c4d4b700 100644\n--- a/drivers/meson.build\n+++ b/drivers/meson.build\n@@ -119,7 +119,7 @@ foreach class:dpdk_driver_classes\n \t\t\t\t\t\tcommand: [pmdinfo, tmp_lib.full_path(),\n \t\t\t\t\t\t\t'@OUTPUT@', pmdinfogen],\n \t\t\t\t\t\toutput: out_filename,\n-\t\t\t\t\t\tdepends: [pmdinfogen, tmp_lib])\n+\t\t\t\t\t\tdepends: [tmp_lib])\n \t\t\tendif\n \n \t\t\t# now build the static driver\ndiff --git a/meson.build b/meson.build\nindex 61d9a4f5f..a6e8c09c2 100644\n--- a/meson.build\n+++ b/meson.build\n@@ -45,7 +45,6 @@ subdir('buildtools')\n subdir('config')\n \n # build libs and drivers\n-subdir('buildtools/pmdinfogen')\n subdir('lib')\n subdir('drivers')\n \ndiff --git a/mk/internal/rte.compile-pre.mk b/mk/internal/rte.compile-pre.mk\nindex df05b5576..bb2ab0725 100644\n--- a/mk/internal/rte.compile-pre.mk\n+++ b/mk/internal/rte.compile-pre.mk\n@@ -59,7 +59,7 @@ endif\n CHECK_SYMBOLS_SCRIPT = $(RTE_SDK)/buildtools/check-symbols.sh\n CHECK_SYMBOLS = $(CHECK_SYMBOLS_SCRIPT) $(SRCDIR)/$(EXPORT_MAP) $@\n \n-PMDINFO_GEN = $(RTE_SDK_BIN)/app/dpdk-pmdinfogen $@ $@.pmd.c\n+PMDINFO_GEN = $(RTE_SDK)/buildtools/pmdinfogen.py $@ $@.pmd.c\n PMDINFO_CC = $(CC) $(CPPFLAGS) $(CFLAGS) $(EXTRA_CFLAGS) -c -o $@.pmd.o $@.pmd.c\n PMDINFO_LD = $(CROSS)ld -r $(filter-out -export-dynamic,$(LDFLAGS)) -o $@.o $@.pmd.o $@\n PMDINFO_TO_O = if grep -q 'RTE_PMD_REGISTER_.*(.*)' $<; then \\\ndiff --git a/mk/rte.sdkinstall.mk b/mk/rte.sdkinstall.mk\nindex 32bed5d95..875a64f04 100644\n--- a/mk/rte.sdkinstall.mk\n+++ b/mk/rte.sdkinstall.mk\n@@ -98,7 +98,6 @@ install-runtime:\n \t$(Q)cp $(CP_FLAGS)    $O/lib/* $(DESTDIR)$(libdir)\n \t$(Q)$(call rte_mkdir, $(DESTDIR)$(bindir))\n \t$(Q)tar -cf -      -C $O --exclude 'app/*.map' \\\n-\t\t--exclude app/dpdk-pmdinfogen \\\n \t\t--exclude 'app/cmdline*' --exclude app/test \\\n \t\t--exclude app/testacl --exclude app/testpipeline app | \\\n \t    tar -xf -      -C $(DESTDIR)$(bindir) $(TAR_X_FLAGS)\n@@ -134,7 +133,6 @@ install-sdk:\n \t$(Q)cp $(CP_FLAGS)      $(RTE_SDK)/buildtools    $(DESTDIR)$(sdkdir)\n \t$(Q)$(call rte_mkdir,                            $(DESTDIR)$(targetdir)/app)\n \t$(Q)cp $(CP_FLAGS)      $O/.config               $(DESTDIR)$(targetdir)\n-\t$(Q)cp $(CP_FLAGS)      $O/app/dpdk-pmdinfogen   $(DESTDIR)$(targetdir)/app\n \t$(Q)$(call rte_symlink, $(DESTDIR)$(includedir), $(DESTDIR)$(targetdir)/include)\n \t$(Q)$(call rte_symlink, $(DESTDIR)$(libdir),     $(DESTDIR)$(targetdir)/lib)\n \n",
    "prefixes": [
        "v4",
        "2/4"
    ]
}