On Sat, Feb 19, 2022 at 1:05 AM Clément Péron <[email protected]> wrote: > > Hi Christian, > > On Thu, 17 Feb 2022 at 15:45, Christian Eggers <[email protected]> wrote: > > > > "A multiplatform C++ library for capturing, parsing and crafting of > > network packets" > > > > PcapPlusPlus uses as custom build system (shell script + Makefile). > > There were attempts for using cmake but this work has never been > > finished. > > Work is still ongoing by me > (https://github.com/seladb/PcapPlusPlus/pull/652), Review and help is > welcome :)
this fails on riscv32 which has 64bit time_t on by default unlike older 32bit architectures see https://errors.yoctoproject.org/Errors/Details/629829/ > > > > > Signed-off-by: Christian Eggers <[email protected]> > > --- > > .../pcapplusplus/pcapplusplus_21.11.bb | 40 +++++++++++++++++++ > > 1 file changed, 40 insertions(+) > > create mode 100644 > > meta-oe/recipes-connectivity/pcapplusplus/pcapplusplus_21.11.bb > > > > diff --git > > a/meta-oe/recipes-connectivity/pcapplusplus/pcapplusplus_21.11.bb > > b/meta-oe/recipes-connectivity/pcapplusplus/pcapplusplus_21.11.bb > > new file mode 100644 > > index 000000000000..0d2f83cf4af7 > > --- /dev/null > > +++ b/meta-oe/recipes-connectivity/pcapplusplus/pcapplusplus_21.11.bb > > @@ -0,0 +1,40 @@ > > +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 = "ddce58723a4ef7ab19bf1507e6323990b4d2d15e" > > + > > +S = "${WORKDIR}/git" > > + > > +EXTRA_CONF:libc-musl += "--musl" > I think there is one fix required to build musl > https://github.com/seladb/PcapPlusPlus/commit/0607f5ccb7a26bc1567908507e46603e7c16b1ac > additionally we should be using EXTRA_CONF:append:libc-musl = " --musl" > > +# PcapPlusPlus uses a custom shell script for configuration > > +do_configure () { > > + # must use the --default switch only if no other switches are set > > + mkdir -p "${D}${prefix}" > > + ./configure-linux.sh --install-dir "${D}${prefix}" ${EXTRA_CONF} > > +} > > + > > +do_compile () { > > + # build only libs > > + oe_runmake libs > > +} > > + > > +do_install () { > > + # install script uses PKG_CONFIG_PATH as destination path for .pc files > > + export PKG_CONFIG_PATH="${D}${libdir}/pkgconfig" > > + oe_runmake install > > + # remove example makefile > > + rm -rf "${D}${prefix}/etc" > > + # remove ${D} in .pc file > > + sed -i "s@${D}@@g" ${D}${libdir}/pkgconfig/*.pc > > + chown -R root:root ${D}${libdir}/pkgconfig/*.pc > > +} > > + > > +# main package is empty > > +RDEPENDS:${PN}-dev = "" > > Why not use ALLOW_EMPTY here ? lesser of two evils. > > > -- > > 2.34.1 > > > > > > > > > > >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#95391): https://lists.openembedded.org/g/openembedded-devel/message/95391 Mute This Topic: https://lists.openembedded.org/mt/89210336/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
