From patchwork Sat Apr 22 15:59:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?RnLDqWTDqXJpYyBNYXJ0aW5zb25z?= X-Patchwork-Id: 22886 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id C6074C77B7F for ; Sat, 22 Apr 2023 15:59:59 +0000 (UTC) Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) by mx.groups.io with SMTP id smtpd.web10.10437.1682179195946706337 for ; Sat, 22 Apr 2023 08:59:56 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="signature has expired" header.i=@gmail.com header.s=20221208 header.b=EqZfYDTr; spf=pass (domain: gmail.com, ip: 209.85.128.45, mailfrom: frederic.martinsons@gmail.com) Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-3f1950f5676so15944425e9.3 for ; Sat, 22 Apr 2023 08:59:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682179194; x=1684771194; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=9cjp1ogdo4ofojqZKwp4y1Y1xui7YN6OnrH+gN6VrZ4=; b=EqZfYDTrH7nh+IHOJqH0LYJ8El9amsxY+nCb7cpNh694aHBbzSt2MgN9GztbhXGOOT 8IR++0+IEI4eM9490vCKnn5AO5bTR2sMc9yZ5sbEgOjvqJj8IK8k+2IBWk+Yo+uaCCQc Ke8Bhd9rAcXI901eVlhhua6srDmMY/JYQwaKB6vC4GB1Z5iSBXN9eU0Z29w323m5HF53 +gumX/uR9bnnGOJN8l1O9Xz/lHcmBhu20hNMyyqS81w/091wOcT6GFgBBWEId9+T2NPk PGhMsRI29XxDUUJMT+j7W4MqGKoekd+M/3Qj44LrLr3f0RfAZzF6V5wLtr2PsfGqr3GT zu6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682179194; x=1684771194; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9cjp1ogdo4ofojqZKwp4y1Y1xui7YN6OnrH+gN6VrZ4=; b=BGLpaBp9ci9O44VCYgCDBlG7ffe59Q+VvDnqg24vGVB8iCGupXP2lvBETPOvcuOO+0 qtVlrq0I5jiXsjjW1QUKOwvGn09evBJJ9jzNu4XVRoTFV1Ei/FgKZbptPxrLjUPs0ibf mgADDepB170fRrYwojJAh2TGSA42htKfP08FimNzTjuEoC7s3oMnOi0ZlTy5eIqLngre uyFO/rG8UQuulkGu5rv8qa0CMUF4eUsW94o+fhT6QSS8oJjrCUISrN79AKCejVXrBFrG WaULrazA9mu8HTIbjDKHpCmKGIzo5oQ9JmgCtH3JZbpihEWZbQh2B2/EWHrP4hf/+r29 tPPA== X-Gm-Message-State: AAQBX9ergmalkX7z1ebKMSAOFyMfXihq6dftGOUK4LwsCymOLVCIDXGv yDziBZBqnutnUW4t2ch19Evon7dgry8= X-Google-Smtp-Source: AKy350a3AJCyBikmJSmbveYyB0090WZkm+3R0MBsghPbVHci4zfdKAre2/MIhIzuO/qbZQiicCcp+A== X-Received: by 2002:a5d:4d8d:0:b0:2ee:f1f0:14bb with SMTP id b13-20020a5d4d8d000000b002eef1f014bbmr5657045wru.49.1682179193833; Sat, 22 Apr 2023 08:59:53 -0700 (PDT) Received: from work-pc.. ([2a01:e0a:8d5:c6c0:446e:1477:ec70:1aee]) by smtp.gmail.com with ESMTPSA id e29-20020a5d595d000000b002fddcb73162sm6798184wri.71.2023.04.22.08.59.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 22 Apr 2023 08:59:53 -0700 (PDT) From: frederic.martinsons@gmail.com To: openembedded-core@lists.openembedded.org Subject: [PATCH 1/3] ptest-cargo.bbclass: create class Date: Sat, 22 Apr 2023 17:59:41 +0200 Message-Id: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Sat, 22 Apr 2023 15:59:59 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/180320 From: Frederic Martinsons This new class offer the capbility to build rust tests and find them correctly. Due to non deterministic name of generated binaries, a custom parsing of build result must be performed. See https://github.com/rust-lang/cargo/issues/1924 All rust project will generate a test binary even if there are not test defined in source code (the binary will just output that it ran 0 tests) Signed-off-by: Frederic Martinsons --- meta/classes-recipe/ptest-cargo.bbclass | 108 ++++++++++++++++++++++++ 1 file changed, 108 insertions(+) create mode 100644 meta/classes-recipe/ptest-cargo.bbclass diff --git a/meta/classes-recipe/ptest-cargo.bbclass b/meta/classes-recipe/ptest-cargo.bbclass new file mode 100644 index 0000000000..a76b06b46a --- /dev/null +++ b/meta/classes-recipe/ptest-cargo.bbclass @@ -0,0 +1,108 @@ +inherit cargo ptest + +CARGO_TEST_BINARIES_FILES ?= "${B}/test_binaries_list" + +# sadly generated test binary have no deterministic names (https://github.com/rust-lang/cargo/issues/1924) +# which force us to parse the cargo output in json format to find those test binaries +python do_compile_ptest_base() { + import subprocess + import json + + cargo = bb.utils.which(d.getVar("PATH"), d.getVar("CARGO", True)) + cargo_build_flags = d.getVar("CARGO_BUILD_FLAGS", True) + rust_flags = d.getVar("RUSTFLAGS", True) + manifest_path = d.getVar("MANIFEST_PATH", True) + + env = os.environ.copy() + env['RUSTFLAGS'] = rust_flags + cmd = f"{cargo} build --tests --message-format json {cargo_build_flags}" + bb.note(f"Building tests with cargo ({cmd})") + + try: + proc = subprocess.Popen(cmd, shell=True, env=env, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) + except subprocess.CalledProcessError as e: + bb.fatal(f"Cannot build test with cargo: {e}") + + lines = [] + for line in proc.stdout: + data = line.decode('utf-8').strip('\n') + lines.append(data) + bb.note(data) + proc.communicate() + if proc.returncode != 0: + bb.fatal(f"Unable to compile test with cargo, '{cmd}' failed") + + # Definition of the format: https://doc.rust-lang.org/cargo/reference/external-tools.html#json-messages + test_bins = [] + for line in lines: + try: + data = json.loads(line) + except json.JSONDecodeError: + # skip lines that are not a json + pass + else: + try: + # Filter the test packages coming from the current manifest + current_manifest_path = os.path.normpath(data['manifest_path']) + project_manifest_path = os.path.normpath(manifest_path) + if current_manifest_path == project_manifest_path: + if data['target']['test'] or data['target']['doctest'] and data['executable']: + test_bins.append(data['executable']) + except KeyError as e: + # skip lines that do not meet the requirements + pass + + # All rust project will genrate at least one unit test binary + # It will just run a test suite with 0 tests if the project didn't define some + # So it is not expected to have an empty list here + if not test_bins: + bb.fatal("Unable to find any test binaries") + + cargo_test_binaries_file = d.getVar('CARGO_TEST_BINARIES_FILES', True) + bb.note(f"Found {len(test_bins)} tests, write their path into {cargo_test_binaries_file}") + with open(cargo_test_binaries_file, "w") as f: + for test_bin in test_bins: + f.write(f"{test_bin}\n") + +} + +python do_install_ptest_base() { + import shutil + + dest_dir = d.getVar("D", True) + pn = d.getVar("PN", True) + ptest_path = d.getVar("PTEST_PATH", True) + cargo_test_binaries_file = d.getVar('CARGO_TEST_BINARIES_FILES', True) + + ptest_dir = os.path.join(dest_dir, ptest_path.lstrip('/')) + os.makedirs(ptest_dir, exist_ok=True) + + test_bins = [] + with open(cargo_test_binaries_file, "r") as f: + for line in f.readlines(): + test_bins.append(line.strip('\n')) + + test_paths = [] + for test_bin in test_bins: + shutil.copy2(test_bin, ptest_dir) + test_paths.append(os.path.join(ptest_path, os.path.basename(test_bin))) + + ptest_script = os.path.join(ptest_dir, "run-ptest") + if os.path.exists(ptest_script): + with open(ptest_script, "a") as f: + for test_path in test_paths: + f.write(f"{test_path}\n") + else: + with open(ptest_script, "a") as f: + f.write("#!/bin/sh\n") + for test_path in test_paths: + f.write(f"{test_path}\n") + os.chmod(ptest_script, 0o755) + + # this is chown -R root:root ${D}${PTEST_PATH} + for root, dirs, files in os.walk(ptest_dir): + for d in dirs: + shutil.chown(os.path.join(root, d), "root", "root") + for f in files: + shutil.chown(os.path.join(root, f), "root", "root") +} From patchwork Sat Apr 22 15:59:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?RnLDqWTDqXJpYyBNYXJ0aW5zb25z?= X-Patchwork-Id: 22885 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id B95BCC77B7C for ; Sat, 22 Apr 2023 15:59:59 +0000 (UTC) Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) by mx.groups.io with SMTP id smtpd.web10.10439.1682179197335455652 for ; Sat, 22 Apr 2023 08:59:57 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="signature has expired" header.i=@gmail.com header.s=20221208 header.b=I0OBWxhW; spf=pass (domain: gmail.com, ip: 209.85.221.51, mailfrom: frederic.martinsons@gmail.com) Received: by mail-wr1-f51.google.com with SMTP id ffacd0b85a97d-2febac9cacdso1675043f8f.1 for ; Sat, 22 Apr 2023 08:59:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682179195; x=1684771195; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=Q11xLxpqteyriq9xx8iPLbj38UBSjXHRIFtO8X+vK70=; b=I0OBWxhWelWvt43shgX8FhHYN3YP6gZ3KmIL/Nc6V6IMe85AaV+H4O0uqRuWGqjREo FBIGQV2p9cS98p6/L8xww2tyK2FjEssBRDVTwdxnEDd86d+p5dFm2ltl/EUheUSGEvs4 PJVDHZjABwSCBYCbADDEt5FALs9Ba5Yj/2klRvUix8BeRYdFK2sV5VZKrk8qf+RDMpms arZ20Bz9Q3CiFR5EHRo6zDX1MdCyN8s4Tkh2VvFTci2H3J5uBXi8SvTh9ml5/rdnN92L OlPy7wdtG+b/egOhdeZzWN8u0Rw1JNvh7WUfJS07/RaZrfLovEZLNIpAEnwsThXz/9N5 +Rxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682179195; x=1684771195; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Q11xLxpqteyriq9xx8iPLbj38UBSjXHRIFtO8X+vK70=; b=RmWwFa/fbjKo82A5JALiqUY7OgllIZZn1hrgTAawMw+skz6NP19I+oVNVAyyFnDuw4 noL7DXBiST7ooqQmYdmcqsBsFefUVbtC8em9MuPmESsQlCAzU9Si9GHUy4KvROjnE2ZW Q/P/gbepPbDUaH8usTVe6RyaDbvs7l4VmFDT1YsmOFYTSMpzIEtEsn1vBtQgIxYRj0Um w/hFYbnCleDrOv20YQz0+uTkN3ysJlQRJ16yS3aSujXm8ki53sbLkK4YBeqxXCJin5FU SUa+ARQwjJlwj9a6oTJDITZcl+TWNKN8xl+Ppq7CkY8OuY9+WEiyXV+edsR/hhtDPLom 3yMg== X-Gm-Message-State: AAQBX9cQcQ+KWIKOsk5MmXq92KPS6GHbm2B20DugFGXlvPye2O7eAkCS 8bqGhyhkVnQw1irO0FYvyRX6vydXd6M= X-Google-Smtp-Source: AKy350bBxzWdyvWl+QTV85ZDUwRXtyaS8lDr2kp8NgjD3sUhMN1cQJYf43LlBVJPBodUB3uGwKtiCQ== X-Received: by 2002:adf:dd85:0:b0:2d1:9c50:5746 with SMTP id x5-20020adfdd85000000b002d19c505746mr6282011wrl.12.1682179195430; Sat, 22 Apr 2023 08:59:55 -0700 (PDT) Received: from work-pc.. ([2a01:e0a:8d5:c6c0:446e:1477:ec70:1aee]) by smtp.gmail.com with ESMTPSA id e29-20020a5d595d000000b002fddcb73162sm6798184wri.71.2023.04.22.08.59.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 22 Apr 2023 08:59:55 -0700 (PDT) From: frederic.martinsons@gmail.com To: openembedded-core@lists.openembedded.org Subject: [PATCH 2/3] python3-bcrypt: enable build of unit tests Date: Sat, 22 Apr 2023 17:59:42 +0200 Message-Id: <16bcdbc98416ac7f70147b2e5bd02ed8b5d7bece.1682178812.git.frederic.martinsons@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Sat, 22 Apr 2023 15:59:59 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/180321 From: Frederic Martinsons The source code of bcrypt extension doesn't define any tests but it is to show the ptest-cargo usage Signed-off-by: Frederic Martinsons --- meta/recipes-devtools/python/python3-bcrypt_4.0.1.bb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/meta/recipes-devtools/python/python3-bcrypt_4.0.1.bb b/meta/recipes-devtools/python/python3-bcrypt_4.0.1.bb index 21f2eb6ba4..b4f245530d 100644 --- a/meta/recipes-devtools/python/python3-bcrypt_4.0.1.bb +++ b/meta/recipes-devtools/python/python3-bcrypt_4.0.1.bb @@ -7,12 +7,14 @@ DEPENDS += "${PYTHON_PN}-cffi-native" SRC_URI[sha256sum] = "27d375903ac8261cfe4047f6709d16f7d18d39b1ec92aaf72af989552a650ebd" -inherit pypi python_setuptools3_rust ptest cargo-update-recipe-crates +inherit pypi python_setuptools3_rust ptest-cargo cargo-update-recipe-crates SRC_URI += " \ file://run-ptest \ " +CARGO_SRC_DIR = "src/_bcrypt" + require ${BPN}-crates.inc RDEPENDS:${PN}-ptest += " \ From patchwork Sat Apr 22 15:59:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?RnLDqWTDqXJpYyBNYXJ0aW5zb25z?= X-Patchwork-Id: 22884 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id BAEF5C77B76 for ; Sat, 22 Apr 2023 15:59:59 +0000 (UTC) Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) by mx.groups.io with SMTP id smtpd.web10.10440.1682179198601195398 for ; Sat, 22 Apr 2023 08:59:58 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="signature has expired" header.i=@gmail.com header.s=20221208 header.b=WSorTCr1; spf=pass (domain: gmail.com, ip: 209.85.221.52, mailfrom: frederic.martinsons@gmail.com) Received: by mail-wr1-f52.google.com with SMTP id ffacd0b85a97d-3010889c6ebso1662447f8f.2 for ; Sat, 22 Apr 2023 08:59:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682179197; x=1684771197; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=UN5mzQl81QbDfi7zGdBPYH8iMm58vkm8uQ9WWrA00nU=; b=WSorTCr19W4yuZKURrLXoXkb3pVVBtZFkU5b3mZkphPa8lNT7FFzT5r6wtX5BLvQgP nz0ybTGIdznEuJL9sm/NI3cyZ4Y/VIWNcxNZHf5IWfpaSJeRO6ZAm9uGPNLA4h+15FIE dMf9S5BKX8YlXqtnF+IHTViIuwt6XatGl/7gSRa1PvcqyUfx7/UhTfaz6VA0GE1RvPph T2c1tyeFWuuC3OQ/MoQf3Wj7e3fjpUVxuSI44LEvTVSJ87egDHdF58W5dIhV9P1DiGjo 4KPagTi1xEgbx34Mohw4cq+kj3zxjRP5LFDAXAjwvODPoSWyrSHxcr407ih12yCGwyaV NyCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682179197; x=1684771197; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=UN5mzQl81QbDfi7zGdBPYH8iMm58vkm8uQ9WWrA00nU=; b=RH77wBLeDAGo6YER3E+7KvGqytUzFx4QdVQasLUFAa5mChZV6EmHIos3rwUrF4ZR28 7b26GoFbeSK2HZfpwuj1DJ7gzZlM/r4Fgg3F7I0wn/EzgqTRFFJ0kLd3HxXUznoUBJRC wmH5Gx+QPEQAIgcfTMK2tq0GqdwnYjfldsV48S+oV/rKSwHAYYCvkTHrH1tWhQ4O5IuJ Zzh/PHUawTsPJ5h3L84Q/iOi4S2G7knL9HAjrSeU6xjJIFoPc7l3qdITwF1S39mYUQD+ bkVG6tugYe39rGFOHwJ5mPcSRGIJVtLcWQDI/bBaB3yAod4ZA+R0zwIyfChaj8dFYeAW fA5g== X-Gm-Message-State: AAQBX9ciw/DzmJBKOohueJBNrfD00R7x4yZgSMtFiFP+dPk4uPJrfj2Y QfhRQgU11ILivzvmkbpDejPR1+3MvrA= X-Google-Smtp-Source: AKy350ZeInoA8xmhe9EWltRPSlrKhiTVY+/6HT5Qu/4rGTX7qETCUSiGT20HVd7t5/h3wUoHpTO2kA== X-Received: by 2002:a5d:4fcd:0:b0:2cf:ec6c:f253 with SMTP id h13-20020a5d4fcd000000b002cfec6cf253mr6270247wrw.20.1682179196760; Sat, 22 Apr 2023 08:59:56 -0700 (PDT) Received: from work-pc.. ([2a01:e0a:8d5:c6c0:446e:1477:ec70:1aee]) by smtp.gmail.com with ESMTPSA id e29-20020a5d595d000000b002fddcb73162sm6798184wri.71.2023.04.22.08.59.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 22 Apr 2023 08:59:56 -0700 (PDT) From: frederic.martinsons@gmail.com To: openembedded-core@lists.openembedded.org Subject: [PATCH 3/3] zvariant: add ptest feature for zvariant test suite Date: Sat, 22 Apr 2023 17:59:43 +0200 Message-Id: <4f1ee72f98af8396292171efcf08d3db1efa44e8.1682178812.git.frederic.martinsons@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Sat, 22 Apr 2023 15:59:59 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/180322 From: Frederic Martinsons Signed-off-by: Frederic Martinsons --- .../recipes-extended/zvariant/zvariant_3.12.0.bb | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/meta-selftest/recipes-extended/zvariant/zvariant_3.12.0.bb b/meta-selftest/recipes-extended/zvariant/zvariant_3.12.0.bb index 4285d11b72..6c69c80940 100644 --- a/meta-selftest/recipes-extended/zvariant/zvariant_3.12.0.bb +++ b/meta-selftest/recipes-extended/zvariant/zvariant_3.12.0.bb @@ -7,6 +7,8 @@ HOMEPAGE = "https://gitlab.freedesktop.org/dbus/zbus/" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE;md5=b377b220f43d747efdec40d69fcaa69d" +DEPENDS += "${@bb.utils.contains('DISTRO_FEATURES', 'ptest', 'glib-2.0', '', d)}" + SRC_URI = " \ git://gitlab.freedesktop.org/dbus/zbus;protocol=https;branch=main;subpath=zvariant \ file://0001-Tweak-zvariant-crate-config.patch;striplevel=2 \ @@ -21,10 +23,17 @@ python do_clean_lic_file_symlink() { addtask clean_lic_file_symlink after do_unpack before do_patch -inherit cargo cargo-update-recipe-crates +inherit ptest-cargo pkgconfig cargo-update-recipe-crates # Remove this when the recipe is reproducible EXCLUDE_FROM_WORLD = "1" require ${BPN}-crates.inc require ${BPN}-git-crates.inc + +# zvariant is an indermediate product for the zbus project +# and so, it provided only a static lib (rlib) which fall only +# in -dev package +ALLOW_EMPTY:${PN} = "1" +RDEPENDS:${PN}-ptest:remove = "${PN}" +