From: Francis Laniel <flaniel@linux.microsoft.com>
To: buildroot@buildroot.org, Arnout Vandecappelle <arnout@mind.be>
Cc: Angelo Compagnucci <angelo.compagnucci@gmail.com>,
Samuel Martin <s.martin49@gmail.com>,
"Yann E . MORIN" <yann.morin.1998@free.fr>
Subject: Re: [Buildroot] [PATCH 3/3] package/sysdig: bump to 0.29.1
Date: Fri, 15 Apr 2022 11:06:28 +0100 [thread overview]
Message-ID: <11959024.O9o76ZdvQC@pwmachine> (raw)
In-Reply-To: <b2544177-df85-95a4-9b28-699545c69e4a@mind.be>
Hi.
Le jeudi 14 avril 2022, 20:05:06 BST Arnout Vandecappelle a écrit :
> On 14/04/2022 20:54, Arnout Vandecappelle wrote:
> > On 14/04/2022 19:43, Francis Laniel wrote:
> [snip]
>
> >> +# sysdig needs falcosecurity-libs sources, so we set the souce directory
> >> here. +# It will sadly compile again falcosecurity-libs, so we also need
> >> to set again +# grpc_cpp_plugin.
> >> +SYSDIG_CONF_OPTS +=
> >> -DFALCOSECURITY_LIBS_SOURCE_DIR=$(BUILD_DIR)/falcosecurity-libs-e5c53d648
> >> f3c4694385bbe488e7d47eaa36c229a
> >> -DGRPC_CPP_PLUGIN=$(HOST_DIR)/bin/grpc_cpp_plugin \
> >
> > This is not nice (as you wrote in the cover letter). If there's really no
> > way to tell sysdig to use the libs installed in STAGING_DIR, then the
> > solution is to remove falconsecurity-libs and instead download it as part
> > of the sysdig package. There are (fortunately) not many examples of that
> > in Buildroot, but there's something a bit similar in android-tools.
>
> Just to be clear: the *preferred* solution is to patch
> cmake/modules/falcosecurity-libs.cmake so it supports a system-installed
> falcosecurity-libs. (And then send that patch upstream to sysdig, of
> course).
Thank for your reviews and sorry for some misake I made (I was not aware of
make legal-info, I will take the habit to run it now).
I will try to find the best solution.
Another one I thought about was to set falcosecurity-libs as a generic-
package, so the .mk will just the source and the compilation can happen in
sysdig.mk.
What it is your opinion about this proposal?
>
> Regards,
> Arnout
>
> > # Take this version from cmake/modules/falcosecurity-libs.cmake
> > SYSDIG_FALCOSECURITY_LIBS_VERSION =
> > e5c53d648f3c4694385bbe488e7d47eaa36c229a SYSDIG_EXTRA_DOWNLOADS = $(call
> > github,falcosecurity,libs,$(SYSDIG_FALCOSECURITY_LIBS_VERSION))/falcosecur
> > ity-libs-$(SYSDIG_FALCOSECURITY_LIBS_VERSION).tar.gz define
> > SYSDIG_EXTRACT_FALCOSECURITY_LIBS
> > $(call suitable-extractor,$(notdir $(SYSDIG_EXTRA_DOWNLOADS))) \
> > $(SYSDIG_DL_DIR)/$(notdir $(SYSDIG_EXTRA_DOWNLOADS)) | \
> > $(TAR) -C $(@D)/falcosecurity-libs --strip-components=1 \
> > $(TAR_OPTIONS) -
> > endef
> > SYSDIG_POST_EXTRACT_HOOKS += SYSDIG_EXTRACT_FALCOSECURITY_LIBS
> >
> > (you'll need to adapt the above to make sure it's extracted in the right
> > place.)
> >
> >
> > Since the driver etc. are then part of the sysdig package again, not as
> > much will change. Just some directory names.
> >
> > BTW, please also mention in the commit message that the issue with the
> > driver is fixed in recent falcosecurity/libs
> >
> > Regards,
> > Arnout
> >
> >> + -DVALIJSON_INCLUDE=$(BUILD_DIR)/valijson-0.6/include/valijson
> >> SYSDIG_MODULE_SUBDIRS = driver
> >> SYSDIG_MODULE_MAKE_OPTS = KERNELDIR=$(LINUX_DIR)
> >> -$(eval $(kernel-module))
> >> $(eval $(cmake-package))
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
prev parent reply other threads:[~2022-04-15 10:06 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-14 17:43 [Buildroot] [PATCH 0/3] Bump sysdig to 0.29.1 Francis Laniel
2022-04-14 17:43 ` [Buildroot] [PATCH 1/3] nlohmann-json: add new package Francis Laniel
[not found] ` <d209da1d-df6a-031c-2cd2-c8dfe736338b@threespeedlogic.com>
2022-04-14 17:51 ` Francis Laniel
2022-04-14 17:43 ` [Buildroot] [PATCH 2/3] falcosecurity-libs: " Francis Laniel
2022-04-14 17:43 ` [Buildroot] [PATCH 3/3] package/sysdig: bump to 0.29.1 Francis Laniel
2022-04-14 18:54 ` Arnout Vandecappelle
2022-04-14 19:05 ` Arnout Vandecappelle
2022-04-15 10:06 ` Francis Laniel [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=11959024.O9o76ZdvQC@pwmachine \
--to=flaniel@linux.microsoft.com \
--cc=angelo.compagnucci@gmail.com \
--cc=arnout@mind.be \
--cc=buildroot@buildroot.org \
--cc=s.martin49@gmail.com \
--cc=yann.morin.1998@free.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox