connectivity: add pcapplusplus recipe
PATCH v2 1/1 connectivity: add pcapplusplus recipe
Add PcapPlusPlus 23.09 recipe.
--- .../pcapplusplus/pcapplusplus_23.09.bb | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 meta-oe/recipes-connectivity/pcapplusplus/pcapplusplus_23.09.bb
meta-oe/recipes-connectivity/pcapplusplus/pcapplusplus_23.09.bb new file +21 -0
@@ -0,0 +1,21 @@ +SUMMARY = "A multiplatform C++ library for capturing, parsing and crafting of network packets" +HOMEPAGE = "https://pcapplusplus.github.io/" +BUGTRACKER = "https://github.com/seladb/PcapPlusPlus/issues" +SECTION = "libs/network" +LICENSE = "Unlicense" +LIC_FILES_CHKSUM = "file://LICENSE;md5=911690f51af322440237a253d695d19f" + +DEPENDS = "libpcap" + +SRC_URI = "git://github.com/seladb/PcapPlusPlus.git;protocol=https;branch=master" +SRCREV = "4cf8ed44f9dd145f874dc1dd747dfefcfcab75be" + +S = "${WORKDIR}/git" + +inherit cmake + +PACKAGECONFIG ??= "" +PACKAGECONFIG[examples] = "-DPCAPPP_BUILD_EXAMPLES=ON,-DPCAPPP_BUILD_EXAMPLES=OFF" +PACKAGECONFIG[shared] = "-DBUILD_SHARED_LIBS=ON,-DBUILD_SHARED_LIBS=OFF" +PACKAGECONFIG[tests] = "-DPCAPPP_BUILD_TESTS=ON,-DPCAPPP_BUILD_TESTS=OFF" +PACKAGECONFIG[zstd] = "-DLIGHT_PCAPNG_ZSTD=ON,-DLIGHT_PCAPNG_ZSTD=OFF,zstd"
Signature · 1 line
2.39.3 (Apple Git-145)
Quoted 6 lines
-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Clément Péron
Sent: den 27 oktober 2023 21:49
To: [email protected]
Cc: Clément Péron <[email protected]>
Subject: [oe] [PATCH v2] connectivity: add pcapplusplus recipe
A more standard subject would be something like:
pcapplusplus: Add recipe
Quoted 25 lines
Add PcapPlusPlus 23.09 recipe.
Signed-off-by Clément Péron <[email protected]>--- .../pcapplusplus/pcapplusplus_23.09.bb | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 meta-oe/recipes-connectivity/pcapplusplus/pcapplusplus_23.09.bb(quoted diff) +0
-0connectivity/pcapplusplus/pcapplusplus_23.09.bb b/meta-oe/recipes-connectivity/pcapplusplus/pcapplusplus_23.09.bb new file mode 100644
index 000000000..39c6942c8meta-oe/recipes-connectivity/pcapplusplus/pcapplusplus_23.09.bb new file +9
-0@@ -0,0 +1,21 @@ +SUMMARY = "A multiplatform C++ library for capturing, parsing and crafting of network packets" +HOMEPAGE = "https://pcapplusplus.github.io/" +BUGTRACKER = "https://github.com/seladb/PcapPlusPlus/issues" +SECTION = "libs/network" +LICENSE = "Unlicense" +LIC_FILES_CHKSUM = "file://LICENSE;md5=911690f51af322440237a253d695d19f" + +DEPENDS = "libpcap" +
meta-oe/recipes-connectivity/pcapplusplus/pcapplusplus_23.09.bb line 19
Quoted 10 lines
meta-oe/recipes-connectivity/pcapplusplus/pcapplusplus_23.09.bb new file +10
-0+SRC_URI = "git://github.com/seladb/PcapPlusPlus.git;protocol=https;branch=master" +SRCREV = "4cf8ed44f9dd145f874dc1dd747dfefcfcab75be" + +S = "${WORKDIR}/git" + +inherit cmake + +PACKAGECONFIG ??= "" +PACKAGECONFIG[examples] = "-DPCAPPP_BUILD_EXAMPLES=ON,-DPCAPPP_BUILD_EXAMPLES=OFF" +PACKAGECONFIG[shared] = "-DBUILD_SHARED_LIBS=ON,-DBUILD_SHARED_LIBS=OFF"
Did you really mean to not enable the "shared" PACAKEGCONFIG, and thus only build static libraries? That seems very odd.
meta-oe/recipes-connectivity/pcapplusplus/pcapplusplus_23.09.bb line 21
Quoted 2 lines
meta-oe/recipes-connectivity/pcapplusplus/pcapplusplus_23.09.bb new file +2
-0+PACKAGECONFIG[tests] = "-DPCAPPP_BUILD_TESTS=ON,-DPCAPPP_BUILD_TESTS=OFF" +PACKAGECONFIG[zstd] = "-DLIGHT_PCAPNG_ZSTD=ON,-DLIGHT_PCAPNG_ZSTD=OFF,zstd"
Since it is unlikely that anyone wants to enable the examples and only build statically, I would suggest replacing the first two PACKAGECONFIGs above with:
EXTRA_OECMAKE += "-DBUILD_SHARED_LIBS=ON -DPCAPPP_BUILD_EXAMPLES=OFF"
And unless you plan on adding ptest support, you may as well remove the tests PACKAGECONFIG too, and make that:
EXTRA_OECMAKE += "-DBUILD_SHARED_LIBS=ON -DPCAPPP_BUILD_EXAMPLES=OFF -DPCAPPP_BUILD_TESTS=OFF"
And if either of those three matches the upstream defaults, you can of course remove it altogether.
Quoted 2 lines
--
2.39.3 (Apple Git-145)
//Peter
Hi Peter,
Quoted 42 lines · Peter Kjellerstedt
Quoted 7 lines
-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Clément Péron
Sent: den 27 oktober 2023 21:49
To: [email protected]
Cc: Clément Péron <[email protected]>
Subject: [oe] [PATCH v2] connectivity: add pcapplusplus recipeA more standard subject would be something like:
pcapplusplus: Add recipe
Quoted 30 lines
Add PcapPlusPlus 23.09 recipe.
Signed-off-by Clément Péron <[email protected]>--- .../pcapplusplus/pcapplusplus_23.09.bb | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 meta-oe/recipes-connectivity/pcapplusplus/pcapplusplus_23.09.bb(quoted diff) +0
-0connectivity/pcapplusplus/pcapplusplus_23.09.bb b/meta-oe/recipes-connectivity/pcapplusplus/pcapplusplus_23.09.bb new file mode 100644
index 000000000..39c6942c8meta-oe/recipes-connectivity/pcapplusplus/pcapplusplus_23.09.bb new file +14
-0@@ -0,0 +1,21 @@ +SUMMARY = "A multiplatform C++ library for capturing, parsing and crafting of network packets" +HOMEPAGE = "https://pcapplusplus.github.io/" +BUGTRACKER = "https://github.com/seladb/PcapPlusPlus/issues" +SECTION = "libs/network" +LICENSE = "Unlicense" +LIC_FILES_CHKSUM = "file://LICENSE;md5=911690f51af322440237a253d695d19f" + +DEPENDS = "libpcap" + +SRC_URI = "git://github.com/seladb/PcapPlusPlus.git;protocol=https;branch=master" +SRCREV = "4cf8ed44f9dd145f874dc1dd747dfefcfcab75be" + +S = "${WORKDIR}/git" +
Quoted 8 lines
meta-oe/recipes-connectivity/pcapplusplus/pcapplusplus_23.09.bb line 19
Quoted 5 lines
meta-oe/recipes-connectivity/pcapplusplus/pcapplusplus_23.09.bb new file +5
-0+inherit cmake + +PACKAGECONFIG ??= "" +PACKAGECONFIG[examples] = "-DPCAPPP_BUILD_EXAMPLES=ON,-DPCAPPP_BUILD_EXAMPLES=OFF" +PACKAGECONFIG[shared] = "-DBUILD_SHARED_LIBS=ON,-DBUILD_SHARED_LIBS=OFF"Did you really mean to not enable the "shared" PACAKEGCONFIG, and thus only build static libraries? That seems very odd.
Thanks for your feedback, indeed in my application I only use a small part of Pcap++ and don't want to have all the Pcap++ shared library.
Also the shared library is not the default behavior on PcapPP repo as they are some issues with Windows DLL.
Quoted 7 lines
meta-oe/recipes-connectivity/pcapplusplus/pcapplusplus_23.09.bb line 21
Quoted 3 lines
meta-oe/recipes-connectivity/pcapplusplus/pcapplusplus_23.09.bb new file +2
-0+PACKAGECONFIG[tests] = "-DPCAPPP_BUILD_TESTS=ON,-DPCAPPP_BUILD_TESTS=OFF" +PACKAGECONFIG[zstd] = "-DLIGHT_PCAPNG_ZSTD=ON,-DLIGHT_PCAPNG_ZSTD=OFF,zstd"Since it is unlikely that anyone wants to enable the examples and only build statically, I would suggest replacing the first two PACKAGECONFIGs above with:
Examples may be bad naming. It's more like "Tools" which binaries like Arping, DnsSpoofing, HttpAnalyzer, etc...
Then inside these Examples there are trivial ones that are called "Tutorials" which the configuration is not configurable here.
Quoted 10 lines
EXTRA_OECMAKE+= "-DBUILD_SHARED_LIBS=ON -DPCAPPP_BUILD_EXAMPLES=OFF"And unless you plan on adding ptest support, you may as well remove the tests PACKAGECONFIG too, and make that:
EXTRA_OECMAKE+= "-DBUILD_SHARED_LIBS=ON -DPCAPPP_BUILD_EXAMPLES=OFF -DPCAPPP_BUILD_TESTS=OFF"And if either of those three matches the upstream defaults, you can of course remove it altogether.
So you prefer to have everything defined with EXTRA_OECMAKE.
Why not let the user have this configurable through packageconfig if it's possible and doesn't cost?
Thanks
Clement
Quoted 5 lines
Quoted 3 lines
--
2.39.3 (Apple Git-145)//Peter
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hi Peter,
+Khem
Quoted 16 lines · Clément Péron via lists.openembedded.org
Hi Peter,
Quoted 11 lines · Peter Kjellerstedt
Quoted 7 lines
-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Clément Péron
Sent: den 27 oktober 2023 21:49
To: [email protected]
Cc: Clément Péron <[email protected]>
Subject: [oe] [PATCH v2] connectivity: add pcapplusplus recipeA more standard subject would be something like:
pcapplusplus: Add recipe
Is it ok, if I send a v3 changing the subject and enabling the shared option by default.
But leaving the other packageconfig available.
Does that seem good to you?
Quoted 93 lines
Quoted 31 lines
Quoted 31 lines
Add PcapPlusPlus 23.09 recipe.
Signed-off-by Clément Péron <[email protected]>--- .../pcapplusplus/pcapplusplus_23.09.bb | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 meta-oe/recipes-connectivity/pcapplusplus/pcapplusplus_23.09.bb(quoted diff) +0
-0connectivity/pcapplusplus/pcapplusplus_23.09.bb b/meta-oe/recipes-connectivity/pcapplusplus/pcapplusplus_23.09.bb new file mode 100644
index 000000000..39c6942c8meta-oe/recipes-connectivity/pcapplusplus/pcapplusplus_23.09.bb new file +14
-0@@ -0,0 +1,21 @@ +SUMMARY = "A multiplatform C++ library for capturing, parsing and crafting of network packets" +HOMEPAGE = "https://pcapplusplus.github.io/" +BUGTRACKER = "https://github.com/seladb/PcapPlusPlus/issues" +SECTION = "libs/network" +LICENSE = "Unlicense" +LIC_FILES_CHKSUM = "file://LICENSE;md5=911690f51af322440237a253d695d19f" + +DEPENDS = "libpcap" + +SRC_URI = "git://github.com/seladb/PcapPlusPlus.git;protocol=https;branch=master" +SRCREV = "4cf8ed44f9dd145f874dc1dd747dfefcfcab75be" + +S = "${WORKDIR}/git" +Quoted 8 lines
meta-oe/recipes-connectivity/pcapplusplus/pcapplusplus_23.09.bb line 19
Quoted 5 lines
meta-oe/recipes-connectivity/pcapplusplus/pcapplusplus_23.09.bb new file +5
-0+inherit cmake + +PACKAGECONFIG ??= "" +PACKAGECONFIG[examples] = "-DPCAPPP_BUILD_EXAMPLES=ON,-DPCAPPP_BUILD_EXAMPLES=OFF" +PACKAGECONFIG[shared] = "-DBUILD_SHARED_LIBS=ON,-DBUILD_SHARED_LIBS=OFF"Did you really mean to not enable the "shared" PACAKEGCONFIG, and thus only build static libraries? That seems very odd.
Thanks for your feedback, indeed in my application I only use a small part of Pcap++ and don't want to have all the Pcap++ shared library.
Also the shared library is not the default behavior on PcapPP repo as they are some issues with Windows DLL.
Quoted 7 lines
meta-oe/recipes-connectivity/pcapplusplus/pcapplusplus_23.09.bb line 21
Quoted 3 lines
meta-oe/recipes-connectivity/pcapplusplus/pcapplusplus_23.09.bb new file +2
-0+PACKAGECONFIG[tests] = "-DPCAPPP_BUILD_TESTS=ON,-DPCAPPP_BUILD_TESTS=OFF" +PACKAGECONFIG[zstd] = "-DLIGHT_PCAPNG_ZSTD=ON,-DLIGHT_PCAPNG_ZSTD=OFF,zstd"Since it is unlikely that anyone wants to enable the examples and only build statically, I would suggest replacing the first two PACKAGECONFIGs above with:
Examples may be bad naming. It's more like "Tools" which binaries like Arping, DnsSpoofing, HttpAnalyzer, etc...
Then inside these Examples there are trivial ones that are called "Tutorials" which the configuration is not configurable here.
Quoted 10 lines
EXTRA_OECMAKE+= "-DBUILD_SHARED_LIBS=ON -DPCAPPP_BUILD_EXAMPLES=OFF"And unless you plan on adding ptest support, you may as well remove the tests PACKAGECONFIG too, and make that:
EXTRA_OECMAKE+= "-DBUILD_SHARED_LIBS=ON -DPCAPPP_BUILD_EXAMPLES=OFF -DPCAPPP_BUILD_TESTS=OFF"And if either of those three matches the upstream defaults, you can of course remove it altogether.
So you prefer to have everything defined with
EXTRA_OECMAKE.Why not let the user have this configurable through packageconfig if it's possible and doesn't cost?
Thanks
ClementQuoted 5 lines
Quoted 3 lines
--
2.39.3 (Apple Git-145)//Peter
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#105785): https://lists.openembedded.org/g/openembedded-devel/message/105785
Mute This Topic: https://lists.openembedded.org/mt/102228837/4240582
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Please send the delta as a new patch the v2 is merged
Quoted 141 lines · Clément Péron
Hi Peter,
+Khem
Quoted 8 lines · Clément Péron via lists.openembedded.org
Hi Peter,
Quoted 3 lines · Peter Kjellerstedt
Quoted 3 lines
-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Clément Péron
Quoted 8 lines
Quoted 8 lines
Quoted 4 lines
Sent: den 27 oktober 2023 21:49
To: [email protected]
Cc: Clément Péron <[email protected]>
Subject: [oe] [PATCH v2] connectivity: add pcapplusplus recipeA more standard subject would be something like:
pcapplusplus: Add recipe
Is it ok, if I send a v3 changing the subject and enabling the shared option by default.
But leaving the other packageconfig available.
Does that seem good to you?
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Add PcapPlusPlus 23.09 recipe.
Signed-off-by Clément Péron <[email protected]>--- .../pcapplusplus/pcapplusplus_23.09.bb | 21+++++++++++++++++++
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
1 file changed, 21 insertions(+) create mode 100644 meta-oe/recipes-connectivity/pcapplusplus/pcapplusplus_23.09.bb
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
(quoted diff) +0
-0connectivity/pcapplusplus/pcapplusplus_23.09.bb
b/meta-oe/recipes-connectivity/pcapplusplus/pcapplusplus_23.09.bb
Quoted 4 lines
Quoted 4 lines
meta-oe/recipes-connectivity/pcapplusplus/
Quoted 4 lines
new file mode 100644
index 000000000..39c6942c8meta-oe/recipes-connectivity/pcapplusplus/ new file +0
-0pcapplusplus_23.09.bb
Quoted 2 lines
Quoted 2 lines
meta-oe/recipes-connectivity/pcapplusplus/ line 1
Quoted 2 lines
meta-oe/recipes-connectivity/pcapplusplus/ new file +1
-0@@ -0,0 +1,21 @@ +SUMMARY = "A multiplatform C++ library for capturing, parsing andcrafting of network packets"
Quoted 5 lines
Quoted 5 lines
meta-oe/recipes-connectivity/pcapplusplus/ line 6
Quoted 5 lines
meta-oe/recipes-connectivity/pcapplusplus/ new file +5
-0+HOMEPAGE = "https://pcapplusplus.github.io/" +BUGTRACKER = "https://github.com/seladb/PcapPlusPlus/issues" +SECTION = "libs/network" +LICENSE = "Unlicense" +LIC_FILES_CHKSUM ="file://LICENSE;md5=911690f51af322440237a253d695d19f"
Quoted 4 lines
Quoted 4 lines
meta-oe/recipes-connectivity/pcapplusplus/ line 10
Quoted 4 lines
meta-oe/recipes-connectivity/pcapplusplus/ new file +4
-0+ +DEPENDS = "libpcap" + +SRC_URI = "git://github.com/seladb/PcapPlusPlus.git;protocol=https;branch=master"
Quoted 8 lines
Quoted 8 lines
meta-oe/recipes-connectivity/pcapplusplus/ line 18
Quoted 8 lines
meta-oe/recipes-connectivity/pcapplusplus/ new file +8
-0+SRCREV = "4cf8ed44f9dd145f874dc1dd747dfefcfcab75be" + +S = "${WORKDIR}/git" + +inherit cmake + +PACKAGECONFIG ??= "" +PACKAGECONFIG[examples] ="-DPCAPPP_BUILD_EXAMPLES=ON,-DPCAPPP_BUILD_EXAMPLES=OFF"
Quoted 1 line
Quoted 1 line
meta-oe/recipes-connectivity/pcapplusplus/ line 19
Quoted 1 line
meta-oe/recipes-connectivity/pcapplusplus/ new file +1
-0+PACKAGECONFIG[shared] ="-DBUILD_SHARED_LIBS=ON,-DBUILD_SHARED_LIBS=OFF"
Quoted 12 lines
Quoted 3 lines
Did you really mean to not enable the "shared" PACAKEGCONFIG, and thus only build static libraries? That seems very odd.
Thanks for your feedback, indeed in my application I only use a small part of Pcap++ and don't want to have all the Pcap++ shared library.
Also the shared library is not the default behavior on PcapPP repo as they are some issues with Windows DLL.
Quoted 2 lines
Quoted 2 lines
meta-oe/recipes-connectivity/pcapplusplus/ new file +1
-0+PACKAGECONFIG[tests] ="-DPCAPPP_BUILD_TESTS=ON,-DPCAPPP_BUILD_TESTS=OFF"
Quoted 1 line
Quoted 1 line
meta-oe/recipes-connectivity/pcapplusplus/ line 21
Quoted 1 line
meta-oe/recipes-connectivity/pcapplusplus/ new file +1
-0+PACKAGECONFIG[zstd] ="-DLIGHT_PCAPNG_ZSTD=ON,-DLIGHT_PCAPNG_ZSTD=OFF,zstd"
Quoted 9 lines
Quoted 4 lines
Since it is unlikely that anyone wants to enable the examples and only build statically, I would suggest replacing the first two PACKAGECONFIGs above with:
Examples may be bad naming. It's more like "Tools" which binaries like Arping, DnsSpoofing, HttpAnalyzer, etc...
Then inside these Examples there are trivial ones that are called
"Tutorials"
Quoted 9 lines
which the configuration is not configurable here.
Quoted 7 lines
EXTRA_OECMAKE+= "-DBUILD_SHARED_LIBS=ON -DPCAPPP_BUILD_EXAMPLES=OFF"And unless you plan on adding ptest support, you may as well remove the tests PACKAGECONFIG too, and make that:
EXTRA_OECMAKE+= "-DBUILD_SHARED_LIBS=ON -DPCAPPP_BUILD_EXAMPLES=OFF-DPCAPPP_BUILD_TESTS=OFF"
Quoted 13 lines
Quoted 3 lines
And if either of those three matches the upstream defaults, you can of course remove it altogether.
So you prefer to have everything defined with
EXTRA_OECMAKE.Why not let the user have this configurable through packageconfig if it's possible and doesn't cost?
Thanks
ClementQuoted 1 line
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines
--
2.39.3 (Apple Git-145)//Peter
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#105785):https://lists.openembedded.org/g/openembedded-devel/message/105785
Quoted 3 lines
Mute This Topic: https://lists.openembedded.org/mt/102228837/4240582
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [Quoted 2 lines
-=-=-=-=-=-=-=-=-=-=-=-