Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/64834/?format=api
https://patches.dpdk.org/api/patches/64834/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20200117112236.5225-2-bruce.richardson@intel.com/", "project": { "id": 1, "url": "https://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": "<20200117112236.5225-2-bruce.richardson@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20200117112236.5225-2-bruce.richardson@intel.com", "date": "2020-01-17T11:22:35", "name": "[1/2] doc/api: generate dependency file for examples doc", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "5c49d73302d02f3515bbd71e9240e5439305c3f1", "submitter": { "id": 20, "url": "https://patches.dpdk.org/api/people/20/?format=api", "name": "Bruce Richardson", "email": "bruce.richardson@intel.com" }, "delegate": { "id": 1, "url": "https://patches.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/20200117112236.5225-2-bruce.richardson@intel.com/mbox/", "series": [ { "id": 8193, "url": "https://patches.dpdk.org/api/series/8193/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=8193", "date": "2020-01-17T11:22:34", "name": "Do proper dependency tracking for doxygen", "version": 1, "mbox": "https://patches.dpdk.org/series/8193/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/64834/comments/", "check": "warning", "checks": "https://patches.dpdk.org/api/patches/64834/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 2EBFCA051A;\n\tFri, 17 Jan 2020 12:25:40 +0100 (CET)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id D56C31DBA;\n\tFri, 17 Jan 2020 12:25:35 +0100 (CET)", "from mga03.intel.com (mga03.intel.com [134.134.136.65])\n by dpdk.org (Postfix) with ESMTP id CEA412AB\n for <dev@dpdk.org>; Fri, 17 Jan 2020 12:25:31 +0100 (CET)", "from fmsmga008.fm.intel.com ([10.253.24.58])\n by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n 17 Jan 2020 03:25:31 -0800", "from silpixa00399126.ir.intel.com ([10.237.222.218])\n by fmsmga008.fm.intel.com with ESMTP; 17 Jan 2020 03:25:30 -0800" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.70,330,1574150400\"; d=\"scan'208\";a=\"220706528\"", "From": "Bruce Richardson <bruce.richardson@intel.com>", "To": "dev@dpdk.org", "Cc": "Bruce Richardson <bruce.richardson@intel.com>", "Date": "Fri, 17 Jan 2020 11:22:35 +0000", "Message-Id": "<20200117112236.5225-2-bruce.richardson@intel.com>", "X-Mailer": "git-send-email 2.20.1", "In-Reply-To": "<20200117112236.5225-1-bruce.richardson@intel.com>", "References": "<20200117112236.5225-1-bruce.richardson@intel.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH 1/2] doc/api: generate dependency file for\n\texamples doc", "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": "For the doxygen API for the examples folder, we can generate a build\ndependency file when we generate the examples.dox file. This allows\ncorrect rebuilds if the files in examples change.\n\nSigned-off-by: Bruce Richardson <bruce.richardson@intel.com>\n---\n doc/api/generate_examples.sh | 4 ++++\n doc/api/meson.build | 5 ++---\n 2 files changed, 6 insertions(+), 3 deletions(-)", "diff": "diff --git a/doc/api/generate_examples.sh b/doc/api/generate_examples.sh\nindex 6fcfe513b..dae7ee0be 100755\n--- a/doc/api/generate_examples.sh\n+++ b/doc/api/generate_examples.sh\n@@ -5,6 +5,10 @@\n EXAMPLES_DIR=$1\n API_EXAMPLES=$2\n \n+# generate a .d file including both C files and also build files, so we can\n+# detect both file changes and file additions/deletions\n+echo \"$API_EXAMPLES: $(find ${EXAMPLES_DIR} -type f \\( -name '*.c' -o -name 'meson.build' \\) -printf '%p ' )\" > ${API_EXAMPLES}.d\n+\n exec > \"${API_EXAMPLES}\"\n printf '/**\\n'\n printf '@page examples DPDK Example Programs\\n\\n'\ndiff --git a/doc/api/meson.build b/doc/api/meson.build\nindex c72b880e1..899e930fa 100644\n--- a/doc/api/meson.build\n+++ b/doc/api/meson.build\n@@ -15,7 +15,6 @@ generate_doxygen = find_program('generate_doxygen.sh')\n generate_examples = find_program('generate_examples.sh')\n generate_css = find_program('doxy-html-custom.sh')\n \n-inputdir = join_paths(meson.source_root(), 'examples')\n htmldir = join_paths('share', 'doc', 'dpdk')\n \n # due to the following bug: https://github.com/mesonbuild/meson/issues/4107\n@@ -24,9 +23,9 @@ htmldir = join_paths('share', 'doc', 'dpdk')\n # false it would be impossible to install the docs.\n # So use a configure option for now.\n example = custom_target('examples.dox',\n-\tinput: inputdir,\n \toutput: 'examples.dox',\n-\tcommand: [generate_examples, '@INPUT@', '@OUTPUT@'],\n+\tcommand: [generate_examples, join_paths(meson.source_root(), 'examples'), '@OUTPUT@'],\n+\tdepfile: 'examples.dox.d',\n \tinstall: get_option('enable_docs'),\n \tinstall_dir: htmldir,\n \tbuild_by_default: get_option('enable_docs'))\n", "prefixes": [ "1/2" ] }{ "id": 64834, "url": "