Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/60419/?format=api
http://patches.dpdk.org/api/patches/60419/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1570035347-18360-1-git-send-email-david.marchand@redhat.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": "<1570035347-18360-1-git-send-email-david.marchand@redhat.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1570035347-18360-1-git-send-email-david.marchand@redhat.com", "date": "2019-10-02T16:55:47", "name": "devtools: reset compilation flags for each target", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "6e4f6f51de1b803e3c3d736319aa33d8826f0cc9", "submitter": { "id": 1173, "url": "http://patches.dpdk.org/api/people/1173/?format=api", "name": "David Marchand", "email": "david.marchand@redhat.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/1570035347-18360-1-git-send-email-david.marchand@redhat.com/mbox/", "series": [ { "id": 6667, "url": "http://patches.dpdk.org/api/series/6667/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=6667", "date": "2019-10-02T16:55:47", "name": "devtools: reset compilation flags for each target", "version": 1, "mbox": "http://patches.dpdk.org/series/6667/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/60419/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/60419/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 64E5B1BF00;\n\tWed, 2 Oct 2019 18:55:59 +0200 (CEST)", "from mx1.redhat.com (mx1.redhat.com [209.132.183.28])\n\tby dpdk.org (Postfix) with ESMTP id 8B9151BEF0\n\tfor <dev@dpdk.org>; Wed, 2 Oct 2019 18:55:57 +0200 (CEST)", "from smtp.corp.redhat.com\n\t(int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby mx1.redhat.com (Postfix) with ESMTPS id BC21D81F10;\n\tWed, 2 Oct 2019 16:55:56 +0000 (UTC)", "from dmarchan.remote.csb (ovpn-204-157.brq.redhat.com\n\t[10.40.204.157])\n\tby smtp.corp.redhat.com (Postfix) with ESMTP id BD57C19481;\n\tWed, 2 Oct 2019 16:55:55 +0000 (UTC)" ], "From": "David Marchand <david.marchand@redhat.com>", "To": "dev@dpdk.org", "Cc": "Thomas Monjalon <thomas@monjalon.net>", "Date": "Wed, 2 Oct 2019 18:55:47 +0200", "Message-Id": "<1570035347-18360-1-git-send-email-david.marchand@redhat.com>", "X-Scanned-By": "MIMEDefang 2.84 on 10.5.11.23", "X-Greylist": "Sender IP whitelisted, not delayed by milter-greylist-4.5.16\n\t(mx1.redhat.com [10.5.110.25]); Wed, 02 Oct 2019 16:55:56 +0000 (UTC)", "Subject": "[dpdk-dev] [PATCH] devtools: reset compilation flags for each target", "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": "Same idea than overriding PATH and PKG_CONFIG_PATH, it can be quite\nuseful to override compilation flags like CFLAGS, CPPFLAGS and LDFLAGS\nfor cross compilation or libraries that won't provide a pkg-config file.\n\nFixes: 272236741258 (\"devtools: load target-specific compilation environment\")\n\nSigned-off-by: David Marchand <david.marchand@redhat.com>\n---\n devtools/test-meson-builds.sh | 6 ++++++\n 1 file changed, 6 insertions(+)", "diff": "diff --git a/devtools/test-meson-builds.sh b/devtools/test-meson-builds.sh\nindex 08e83eb..6091347 100755\n--- a/devtools/test-meson-builds.sh\n+++ b/devtools/test-meson-builds.sh\n@@ -36,12 +36,18 @@ fi\n \n default_path=$PATH\n default_pkgpath=$PKG_CONFIG_PATH\n+default_cflags=$CFLAGS\n+default_cppflags=$CPPFLAGS\n+default_ldflags=$LDFLAGS\n \n load_env () # <target compiler>\n {\n \ttargetcc=$1\n \texport PATH=$default_path\n \texport PKG_CONFIG_PATH=$default_pkgpath\n+\texport CFLAGS=$default_cflags\n+\texport CPPFLAGS=$default_cppflags\n+\texport LDFLAGS=$default_ldflags\n \tunset DPDK_MESON_OPTIONS\n \tcommand -v $targetcc >/dev/null 2>&1 || return 1\n \tDPDK_TARGET=$($targetcc -v 2>&1 | sed -n 's,^Target: ,,p')\n", "prefixes": [] }{ "id": 60419, "url": "