Add user space utility:dropwatch
PATCH 1/1 Add user space utility:dropwatch
--- .../dropwatch/dropwatch_git.bb | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 meta/recipes-extended/dropwatch/dropwatch_git.bb
meta/recipes-extended/dropwatch/dropwatch_git.bb new file +22 -0
@@ -0,0 +1,22 @@ +# Copyright (C) 2024 chenheyun <[email protected]> +# Released under the MIT license (see COPYING.MIT for the terms) + +SUMMARY = "User space utility to diagnose to NetWorking packets are getting dropped" +DESCRIPTION = "Dropwatch is an utility to interface to the kernel to monitor for dropped \ + network packets" + +HOMEPAGE = "https://github.com/nhorman/dropwatch/" +LICENSE = "GPLv2+" +LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a" +DEPENDS = "libnl readline libpcap binutils" + +PV = "1.0.0" + +SRC_URI = "git://github.com/nhorman/dropwatch/;branch=master;protocol=https" +SRCREV = "853457b77dbc3d6665a379f3fe31ec53f11b6f61" + +S = "${WORKDIR}/git" + +inherit autotools pkgconfig gettext + +BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.25.1
Patchtest results for [PATCH] Add user space utility:dropwatch
Thank you for your submission. Patchtest identified one or more issues with the patch. Please see the log below for more information:
---
Testing patch /home/patchtest/share/mboxes/Add-user-space-utility-dropwatch.patch
FAIL: test commit message presence: Please include a commit message on your patch explaining the change (test_mbox.TestMbox.test_commit_message_presence)
PASS: test Signed-off-by presence (test_mbox.TestMbox.test_signed_off_by_presence)
PASS: test author valid (test_mbox.TestMbox.test_author_valid)
PASS: test lic files chksum presence (test_metadata.TestMetadata.test_lic_files_chksum_presence)
PASS: test license presence (test_metadata.TestMetadata.test_license_presence)
PASS: test max line length (test_metadata.TestMetadata.test_max_line_length)
PASS: test mbox format (test_mbox.TestMbox.test_mbox_format)
PASS: test non-AUH upgrade (test_mbox.TestMbox.test_non_auh_upgrade)
PASS: test shortlog format (test_mbox.TestMbox.test_shortlog_format)
PASS: test shortlog length (test_mbox.TestMbox.test_shortlog_length)
PASS: test summary presence (test_metadata.TestMetadata.test_summary_presence)
SKIP: pretest pylint: No python related patches, skipping test (test_python_pylint.PyLint.pretest_pylint)
SKIP: pretest src uri left files: No modified recipes, skipping pretest (test_metadata.TestMetadata.pretest_src_uri_left_files)
SKIP: test CVE check ignore: No modified recipes, skipping test (test_metadata.TestMetadata.test_cve_check_ignore)
SKIP: test CVE tag format: No new CVE patches introduced (test_patch.TestPatch.test_cve_tag_format)
SKIP: test Signed-off-by presence: No new CVE patches introduced (test_patch.TestPatch.test_signed_off_by_presence)
SKIP: test Upstream-Status presence: No new CVE patches introduced (test_patch.TestPatch.test_upstream_status_presence_format)
SKIP: test bugzilla entry format: No bug ID found (test_mbox.TestMbox.test_bugzilla_entry_format)
SKIP: test lic files chksum modified not mentioned: No modified recipes, skipping test (test_metadata.TestMetadata.test_lic_files_chksum_modified_not_mentioned)
SKIP: test pylint: No python related patches, skipping test (test_python_pylint.PyLint.test_pylint)
SKIP: test series merge on head: Merge test is disabled for now (test_mbox.TestMbox.test_series_merge_on_head)
SKIP: test src uri left files: No modified recipes, skipping pretest (test_metadata.TestMetadata.test_src_uri_left_files)
SKIP: test target mailing list: Series merged, no reason to check other mailing lists (test_mbox.TestMbox.test_target_mailing_list)
---
Please address the issues identified and
submit a new revision of the patch, or alternatively, reply to this email with an explanation of why the patch should be accepted. If you believe these results are due to an error in patchtest, please submit a bug at https://bugzilla.yoctoproject.org/ (use the 'Patchtest' category under 'Yocto Project Subprojects'). For more information on specific failures, see: https://wiki.yoctoproject.org/wiki/Patchtest. Thank you!
meta/recipes-extended/dropwatch/dropwatch_git.bb line 6
Quoted 3 lines · chenheyun via lists.openembedded.org
meta/recipes-extended/dropwatch/dropwatch_git.bb new file +3
-0+SUMMARY = "User space utility to diagnose to NetWorking packets are getting dropped" +DESCRIPTION = "Dropwatch is an utility to interface to the kernel to monitor for dropped \ + network packets"
A useful tool, for sure, but I don’t see why this should be in oe-core. I suggest adding it to meta-oe instead.
Review
Quoted 2 lines
(quoted diff) +2
-0+SRCREV = "853457b77dbc3d6665a379f3fe31ec53f11b6f61" +PV = "1.0.0"
These are contradictory. 853457b7 is the current HEAD, but the latest release is 1.5.4.
If you need to package a post-release snapshot, then set PV to "1.5.4+git”.
Ross
Hi,
can you change the summary of the commit to something like dropwatch: New userspace to diagnose network package drops? It's common to name the module/component first and then what happened.
Quoted 1 line · chenheyun via lists.openembedded.org
Signed-off-by chenheyun <[email protected]>
Is your name "Chen Heyun"?
meta/recipes-extended/dropwatch/dropwatch_git.bb
Quoted 6 lines
--- .../dropwatch/dropwatch_git.bb | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 meta/recipes-extended/dropwatch/dropwatch_git.bbmeta/recipes-extended/dropwatch/dropwatch_git.bb +0
-0
Maybe the meta-openembedded/meta-networking would better fit and recipes-support directory.
Quoted 5 lines
new file mode 100755
index 0000000000..62a1eab777
meta/recipes-extended/dropwatch/dropwatch_git.bb line 9
Quoted 9 lines
meta/recipes-extended/dropwatch/dropwatch_git.bb new file +9
-0@@ -0,0 +1,22 @@ +# Copyright (C) 2024 chenheyun <[email protected]> +# Released under the MIT license (see COPYING.MIT for the terms) + +SUMMARY = "User space utility to diagnose to NetWorking packets are getting dropped" +DESCRIPTION = "Dropwatch is an utility to interface to the kernel to monitor for dropped \ + network packets" + +HOMEPAGE = "https://github.com/nhorman/dropwatch/" +LICENSE = "GPLv2+"
Use the SPDX identifier GPL-2.0-or-later
meta/recipes-extended/dropwatch/dropwatch_git.bb line 13
Quoted 4 lines
meta/recipes-extended/dropwatch/dropwatch_git.bb new file +4
-0+LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a" +DEPENDS = "libnl readline libpcap binutils" + +PV = "1.0.0"
The common way is to put the version in the filename in place of git, i.e. dropwatch_1.0.0.bb and don't use the PV.
A useful tool to check the recipes is https://github.com/priv-kweihmann/oelint-adv/. You can use
docker run -ti --rm -v "$(pwd):/code" -w /code -v oelint-adv-venv:/.venv \
python:3.12-bookworm /bin/bash -c '
python3 -m venv --upgrade-deps /.venv
. /.venv/bin/activate
python3 -m pip install oelint-adv
oelint-adv layer/recipes/dropwatch/dropwatch_1.0.0.bb'
Kind regards
Jörg Sommer
Signature · 5 lines
Navimatix GmbH Tatzendpromenade 2 D-07745 Jena Geschäftsführer: Steffen Späthe, Jan Rommeley Registergericht: Amtsgericht Jena, HRB 501480
Le 09/02/2024 à 12:24, chenheyun a écrit :
Quoted 24 lines
Signed-off-by chenheyun <[email protected]>--- .../dropwatch/dropwatch_git.bb | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 meta/recipes-extended/dropwatch/dropwatch_git.bbmeta/recipes-extended/dropwatch/dropwatch_git.bb new file +12
-0@@ -0,0 +1,22 @@ +# Copyright (C) 2024 chenheyun <[email protected]> +# Released under the MIT license (see COPYING.MIT for the terms) + +SUMMARY = "User space utility to diagnose to NetWorking packets are getting dropped" +DESCRIPTION = "Dropwatch is an utility to interface to the kernel to monitor for dropped \ + network packets" + +HOMEPAGE = "https://github.com/nhorman/dropwatch/" +LICENSE = "GPLv2+" +LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a" +DEPENDS = "libnl readline libpcap binutils" +
meta/recipes-extended/dropwatch/dropwatch_git.bb line 22
Quoted 10 lines
meta/recipes-extended/dropwatch/dropwatch_git.bb new file +10
-0+PV = "1.0.0" + +SRC_URI = "git://github.com/nhorman/dropwatch/;branch=master;protocol=https" +SRCREV = "853457b77dbc3d6665a379f3fe31ec53f11b6f61" + +S = "${WORKDIR}/git" + +inherit autotools pkgconfig gettext + +BBCLASSEXTEND = "native nativesdk"
Happy to see this tool packaged, but, as Ross said, maybe not in OE-Core but in meta-openembedded instead.
That said, neither nativesdk-dropwatch nor dropwatch-native build:
ERROR: Nothing PROVIDES 'nativesdk-libpcap' (but virtual:nativesdk:/home/yocon/Documents/projets/yocto/poky/meta/recipes-extended/dropwatch/dropwatch_git.bb DEPENDS on or otherwise requires it). Close matches:
[...]
ERROR: Required build target 'nativesdk-dropwatch' has no buildable providers. Missing or unbuildable dependency chain was: ['nativesdk-dropwatch', 'nativesdk-libpcap']
for dropwatch-native, logs are here: https://pastebin.com/Z6qEATiE
=> You need to drop the "native nativesdk" in BBCLASSEXTEND (or fix the build problem but I don't see the point of having this tool on the build/native host)
Regards,
Signature · 2 lines
Yoann Congal Smile ECS - Tech Expert
Quoted 2 lines · Yoann Congal
meta-openembedde
Hi,
i am doubt with OE-Core and meta-openembedded。
i am sure that OE-Core means: https://git.openembedded.org/openembedded-core/
meta-openembedded means what? like https://git.openembedded.org/openembedded/? ( https://git.openembedded.org/openembedded/ ) but https://git.openembedded.org/openembedded/ say "it has been replaced by a new model based upon OpenEmbedded-Core (OE-Core)"
what should i do?
please help me. thanks.
Quoted 11 lines · chenheyun
Quoted 1 line · Yoann Congal
meta-openembedde
Hi,
i am doubt with OE-Core and meta-openembedded。
i am sure that OE-Core means:https://git.openembedded.org/openembedded-core/ meta-openembedded means what? like https://git.openembedded.org/openembedded/?
but https://git.openembedded.org/openembedded/ say "it has been replaced by a new model based upon OpenEmbedded-Core (OE-Core)"what should i do?
please help me. thanks.
This is meta-openembedded:
https://git.openembedded.org/meta-openembedded/
Cheers,
Richard
Hi,
thank you very much.
we usually build our project,poky ,meta-openembedded, meta-selinux and so on.
https://git.openembedded.org/openembedded-core/ for what? ( https://git.openembedded.org/openembedded-core/ )
poky is a reference collection of several other repositories used for testing, it includes bitbake, openembedded-core (both on git.openembedded.org) and meta-yocto (on git.yoctoproject.org).
Alex
Quoted 14 lines · chenheyun
Hi,
thank you very much.
we usually build our project,poky ,meta-openembedded, meta-selinux and so on.
https://git.openembedded.org/openembedded-core/ for what?-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#195257): https://lists.openembedded.org/g/openembedded-core/message/195257
Mute This Topic: https://lists.openembedded.org/mt/104256897/1686489
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-