Re: [yocto-patches] [meta-security][PATCH] crowdsec: Fix recipe to match upstream source layout

Scott Murray <[email protected]>
Newsgroups org.yoctoproject.lists.yocto-patches
Message-ID <[email protected]>
On Wed, 22 Apr 2026, Song, Jiaying (CN) via lists.yoctoproject.org wrote:

> Kindly ping

Note that I made this patch irrelevant in a rewrite to fix the crowdsec
recipe so it actually builds.  While I appreciate fixes, the license file
check failing was a symptom of a larger problem.

Scott


> -----Original Message-----
> From: [email protected] <[email protected]> On Behalf Of Song, Jiaying (CN) via lists.yoctoproject.org
> Sent: Wednesday, April 15, 2026 2:53 PM
> To: [email protected]
> Cc: Song, Jiaying (CN) <[email protected]>
> Subject: [yocto-patches] [meta-security][PATCH] crowdsec: Fix recipe to match upstream source layout
>
> The LICENSE file is in the repository root, not src/import/.
> The Makefile is also in the root, so do_compile should cd to ${S}.
> Fix do_install_ typo to do_install so the task actually runs.
>
> Signed-off-by: Jiaying Song <[email protected]>
> ---
>  recipes-ids/crowdsec/crowdsec_1.1.1.bb | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/recipes-ids/crowdsec/crowdsec_1.1.1.bb b/recipes-ids/crowdsec/crowdsec_1.1.1.bb
> index fa13e9d..c7fe3dd 100644
> --- a/recipes-ids/crowdsec/crowdsec_1.1.1.bb
> +++ b/recipes-ids/crowdsec/crowdsec_1.1.1.bb
> @@ -1,7 +1,7 @@
>  SUMMARY = "CrowdSec is a free, modern & collaborative behavior detection engine, coupled with a global IP reputation network."
>
>  LICENSE = "MIT"
> -LIC_FILES_CHKSUM = "file://src/import/LICENSE;md5=105e75b680b2ab82fa5718661b41f3bf"
> +LIC_FILES_CHKSUM = "file://LICENSE;md5=105e75b680b2ab82fa5718661b41f3bf"
>
>  SRC_URI = "git://github.com/crowdsecurity/crowdsec.git;branch=master;protocol=https"
>  SRCREV = "73e0bbaf93070f4a640eb5a22212b5dcf26699de"
> @@ -24,11 +24,11 @@ do_compile() {
>      export CGO_CFLAGS="${BUILDSDK_CFLAGS} --sysroot=${STAGING_DIR_TARGET}"
>      export CGO_LDFLAGS="${BUILDSDK_LDFLAGS} --sysroot=${STAGING_DIR_TARGET}"
>
> -    cd ${S}/src/import
> +    cd ${S}
>      oe_runmake release
>  }
>
> -do_install_ () {
> +do_install () {
>     chmod +x -R --silent ${B}/pkg
>  }
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.