Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/44734/?format=api
https://patches.dpdk.org/api/patches/44734/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20180914161717.15777-1-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": "<20180914161717.15777-1-bruce.richardson@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20180914161717.15777-1-bruce.richardson@intel.com", "date": "2018-09-14T16:17:17", "name": "[v2] devtools/test-meson-build: use shared libraries to save space", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "b9feb2372dd718e91d698468e1de1bed68fc9fb1", "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/20180914161717.15777-1-bruce.richardson@intel.com/mbox/", "series": [ { "id": 1327, "url": "https://patches.dpdk.org/api/series/1327/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=1327", "date": "2018-09-14T16:17:17", "name": "[v2] devtools/test-meson-build: use shared libraries to save space", "version": 2, "mbox": "https://patches.dpdk.org/series/1327/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/44734/comments/", "check": "fail", "checks": "https://patches.dpdk.org/api/patches/44734/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 353755B2A;\n\tFri, 14 Sep 2018 18:17:34 +0200 (CEST)", "from mga03.intel.com (mga03.intel.com [134.134.136.65])\n\tby dpdk.org (Postfix) with ESMTP id 2845B5B12\n\tfor <dev@dpdk.org>; Fri, 14 Sep 2018 18:17:32 +0200 (CEST)", "from orsmga008.jf.intel.com ([10.7.209.65])\n\tby orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t14 Sep 2018 09:17:31 -0700", "from bricha3-mobl.ger.corp.intel.com (HELO\n\tdebian-vm-1.ir.intel.com) ([10.237.221.107])\n\tby orsmga008.jf.intel.com with ESMTP; 14 Sep 2018 09:17:23 -0700" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.53,373,1531810800\"; d=\"scan'208\";a=\"73258554\"", "From": "Bruce Richardson <bruce.richardson@intel.com>", "To": "dev@dpdk.org", "Cc": "Bruce Richardson <bruce.richardson@intel.com>", "Date": "Fri, 14 Sep 2018 17:17:17 +0100", "Message-Id": "<20180914161717.15777-1-bruce.richardson@intel.com>", "X-Mailer": "git-send-email 2.11.0", "Subject": "[dpdk-dev] [PATCH v2] devtools/test-meson-build: use shared\n\tlibraries to save space", "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": "For usability, the default build type in meson is static, so that\nbinaries can be run from the build directory easily. However, static\nbuilds take more space, so for build-testing purposes default to using\nshared builds where possible.\n\nSigned-off-by: Bruce Richardson <bruce.richardson@intel.com>\n---\nWith this patch applied on Debian 9 (Stretch) the space used by a DPDK\ncheckout and test builds drops from ~2.5G to <1G. [Including space used\nby cross compiles]\n\nV2: fix typo in commit message\n---\n devtools/test-meson-builds.sh | 9 +++++----\n 1 file changed, 5 insertions(+), 4 deletions(-)", "diff": "diff --git a/devtools/test-meson-builds.sh b/devtools/test-meson-builds.sh\nindex 66723fe2b..1542dab01 100755\n--- a/devtools/test-meson-builds.sh\n+++ b/devtools/test-meson-builds.sh\n@@ -9,6 +9,7 @@\n \n srcdir=$(dirname $(readlink -m $0))/..\n MESON=${MESON:-meson}\n+use_shared=\"--default-library=shared\"\n \n if command -v ninja >/dev/null 2>&1 ; then\n \tninja_cmd=ninja\n@@ -42,23 +43,23 @@ for c in gcc clang ; do\n done\n \n # test compilation with minimal x86 instruction set\n-build build-x86-default -Dmachine=nehalem\n+build build-x86-default -Dmachine=nehalem $use_shared\n \n # test 32-bit x86 compilation\n # NOTE: meson >0.47 recommended for best results\n-build build-i686 --cross-file config/x86/i686_sse4_linuxapp_gcc\n+build build-i686 --cross-file config/x86/i686_sse4_linuxapp_gcc $use_shared\n \n # enable cross compilation if gcc cross-compiler is found\n c=aarch64-linux-gnu-gcc\n if command -v $c >/dev/null 2>&1 ; then\n \t# compile the general v8a also for clang to increase coverage\n \texport CC=\"ccache clang\"\n-\tbuild build-arm64-host-clang --cross-file \\\n+\tbuild build-arm64-host-clang $use_shared --cross-file \\\n \t\tconfig/arm/arm64_armv8_linuxapp_gcc\n \n \tfor f in config/arm/arm*gcc ; do\n \t\texport CC=\"ccache gcc\"\n \t\tbuild build-$(basename $f | tr '_' '-' | cut -d'-' -f-2) \\\n-\t\t\t--cross-file $f\n+\t\t\t--cross-file $f $use_shared\n \tdone\n fi\n", "prefixes": [ "v2" ] }{ "id": 44734, "url": "