Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/128896/?format=api
http://patchwork.dpdk.org/api/patches/128896/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20230621170058.2740340-4-david.marchand@redhat.com/", "project": { "id": 1, "url": "http://patchwork.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": "<20230621170058.2740340-4-david.marchand@redhat.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20230621170058.2740340-4-david.marchand@redhat.com", "date": "2023-06-21T17:00:57", "name": "[v4,3/4] build: select deprecated libraries", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "cd180d3989cb6d8efc78b7e9424887c3e4290746", "submitter": { "id": 1173, "url": "http://patchwork.dpdk.org/api/people/1173/?format=api", "name": "David Marchand", "email": "david.marchand@redhat.com" }, "delegate": { "id": 1, "url": "http://patchwork.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20230621170058.2740340-4-david.marchand@redhat.com/mbox/", "series": [ { "id": 28608, "url": "http://patchwork.dpdk.org/api/series/28608/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=28608", "date": "2023-06-21T17:00:54", "name": "Select optional libraries", "version": 4, "mbox": "http://patchwork.dpdk.org/series/28608/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/128896/comments/", "check": "success", "checks": "http://patchwork.dpdk.org/api/patches/128896/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 mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 506C342D16;\n\tWed, 21 Jun 2023 19:01:36 +0200 (CEST)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id EBE5D42D12;\n\tWed, 21 Jun 2023 19:01:27 +0200 (CEST)", "from us-smtp-delivery-124.mimecast.com\n (us-smtp-delivery-124.mimecast.com [170.10.129.124])\n by mails.dpdk.org (Postfix) with ESMTP id 76A0042D10\n for <dev@dpdk.org>; Wed, 21 Jun 2023 19:01:27 +0200 (CEST)", "from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com\n [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS\n (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n us-mta-553-2ROesEk7MQyHt8Ai2fGDCA-1; Wed, 21 Jun 2023 13:01:23 -0400", "from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com\n [10.11.54.9])\n (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n (No client certificate requested)\n by mimecast-mx02.redhat.com (Postfix) with ESMTPS id BD04D10311E5;\n Wed, 21 Jun 2023 17:01:18 +0000 (UTC)", "from dmarchan.redhat.com (unknown [10.45.224.210])\n by smtp.corp.redhat.com (Postfix) with ESMTP id E3D07492B01;\n Wed, 21 Jun 2023 17:01:16 +0000 (UTC)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1687366887;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:cc:mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=5cHBr7/ynbi8Vbabgmho3/X3+HyWHwbvgQgmzxb074E=;\n b=AzfNMxE5vQjZT3qHRT1WNNLu0ZETMf0UjXJw5GfJIGuh9pOPkgLoKoqyq9thUwJ1rgeN2d\n D0+2OtIiLzsZVJYynFtV+0e8e0q6eRbiKtc4gF90OO7x/q6fQ9Hm9bLo3W0tskX/44Xypn\n odUa80fh1SsQ2js3HqiKWKr+m+c0+TA=", "X-MC-Unique": "2ROesEk7MQyHt8Ai2fGDCA-1", "From": "David Marchand <david.marchand@redhat.com>", "To": "dev@dpdk.org", "Cc": "thomas@monjalon.net, bluca@debian.org, tredaelli@redhat.com,\n i.maximets@ovn.org, james.r.harris@intel.com, mohammed@hawari.fr,\n Aaron Conole <aconole@redhat.com>,\n Michael Santana <maicolgabriel@hotmail.com>,\n Bruce Richardson <bruce.richardson@intel.com>", "Subject": "[PATCH v4 3/4] build: select deprecated libraries", "Date": "Wed, 21 Jun 2023 19:00:57 +0200", "Message-Id": "<20230621170058.2740340-4-david.marchand@redhat.com>", "In-Reply-To": "<20230621170058.2740340-1-david.marchand@redhat.com>", "References": "<20211117112847.7362-6-david.marchand@redhat.com>\n <20230621170058.2740340-1-david.marchand@redhat.com>", "MIME-Version": "1.0", "X-Scanned-By": "MIMEDefang 3.1 on 10.11.54.9", "X-Mimecast-Spam-Score": "0", "X-Mimecast-Originator": "redhat.com", "Content-Transfer-Encoding": "8bit", "Content-Type": "text/plain; charset=\"US-ASCII\"; x-default=true", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.29", "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" }, "content": "Rework deprecated libraries selection by introducing a new configuration\noption.\n\nThis breaks existing configurations that were relying on disable_libs=''\nfor enabling deprecated libraries.\nOn the other hand, it will make enabling optional libraries more\nstraightforward by taking the deprecated libraries out of the picture.\n\nSigned-off-by: David Marchand <david.marchand@redhat.com>\n---\n .ci/linux-build.sh | 2 +-\n devtools/test-meson-builds.sh | 8 ++++----\n lib/meson.build | 9 +++++++--\n meson_options.txt | 4 +++-\n 4 files changed, 15 insertions(+), 8 deletions(-)", "diff": "diff --git a/.ci/linux-build.sh b/.ci/linux-build.sh\nindex 9631e342b5..da51f8e55e 100755\n--- a/.ci/linux-build.sh\n+++ b/.ci/linux-build.sh\n@@ -97,7 +97,7 @@ if [ \"$MINI\" = \"true\" ]; then\n OPTS=\"$OPTS -Denable_drivers=net/null\"\n OPTS=\"$OPTS -Ddisable_libs=*\"\n else\n- OPTS=\"$OPTS -Ddisable_libs=\"\n+ OPTS=\"$OPTS -Denable_deprecated_libs=true\"\n fi\n \n if [ \"$ASAN\" = \"true\" ]; then\ndiff --git a/devtools/test-meson-builds.sh b/devtools/test-meson-builds.sh\nindex 9131088c9d..efeddb36f3 100755\n--- a/devtools/test-meson-builds.sh\n+++ b/devtools/test-meson-builds.sh\n@@ -120,10 +120,10 @@ config () # <dir> <builddir> <meson options>\n \t\treturn\n \tfi\n \toptions=\n-\t# deprecated libs may be disabled by default, so for complete builds ensure\n-\t# no libs are disabled\n-\tif ! echo $* | grep -q -- 'disable_libs' ; then\n-\t\toptions=\"$options -Ddisable_libs=\"\n+\t# deprecated libs are disabled by default, so for complete builds\n+\t# enable them\n+\tif ! echo $* | grep -q -- 'enable_deprecated_libs' ; then\n+\t\toptions=\"$options -Denable_deprecated_libs=true\"\n \tfi\n \tif echo $* | grep -qw -- '--default-library=shared' ; then\n \t\toptions=\"$options -Dexamples=all\"\ndiff --git a/lib/meson.build b/lib/meson.build\nindex 363a4fd79f..a6e9e19b42 100644\n--- a/lib/meson.build\n+++ b/lib/meson.build\n@@ -136,13 +136,18 @@ foreach l:libraries\n deps += ['eal']\n endif\n \n- if disabled_libs.contains(l)\n+ if dpdk_libs_deprecated.contains(l) and not get_option('enable_deprecated_libs')\n+ build = false\n+ reason = 'deprecated libraries disabled via build config'\n+ elif disabled_libs.contains(l)\n build = false\n reason = 'explicitly disabled via build config'\n if dpdk_libs_deprecated.contains(l)\n reason += ' (deprecated lib)'\n endif\n- else\n+ endif\n+\n+ if build\n if dpdk_libs_deprecated.contains(l)\n warning('Enabling deprecated library, \"@0@\"'.format(l))\n endif\ndiff --git a/meson_options.txt b/meson_options.txt\nindex 82c8297065..f959015e46 100644\n--- a/meson_options.txt\n+++ b/meson_options.txt\n@@ -10,7 +10,7 @@ option('disable_apps', type: 'string', value: '', description:\n 'Comma-separated list of apps to explicitly disable.')\n option('disable_drivers', type: 'string', value: '', description:\n 'Comma-separated list of drivers to explicitly disable.')\n-option('disable_libs', type: 'string', value: 'flow_classify,kni', description:\n+option('disable_libs', type: 'string', value: '', description:\n 'Comma-separated list of libraries to explicitly disable. [NOTE: not all libs can be disabled]')\n option('drivers_install_subdir', type: 'string', value: 'dpdk/pmds-<VERSION>', description:\n 'Subdirectory of libdir where to install PMDs. Defaults to using a versioned subdirectory.')\n@@ -18,6 +18,8 @@ option('enable_docs', type: 'boolean', value: false, description:\n 'build documentation')\n option('enable_apps', type: 'string', value: '', description:\n 'Comma-separated list of apps to build. If unspecified, build all apps.')\n+option('enable_deprecated_libs', type: 'boolean', value: false, description:\n+ 'Add deprecated libraries to the list of optional libraries to build')\n option('enable_drivers', type: 'string', value: '', description:\n 'Comma-separated list of drivers to build. If unspecified, build all drivers.')\n option('enable_driver_sdk', type: 'boolean', value: false, description:\n", "prefixes": [ "v4", "3/4" ] }{ "id": 128896, "url": "