public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Peter Kjellerstedt <peter.kjellerstedt@axis.com>,
	 openembedded-core@lists.openembedded.org
Subject: Re: [OE-core] [PATCH 3/7] lib/oe/patch: Make extractPatches() not extract ignored commits
Date: Sat, 17 Feb 2024 08:52:50 +0000	[thread overview]
Message-ID: <abcece2e903abb308dc1f09880bfc1127b308a50.camel@linuxfoundation.org> (raw)
In-Reply-To: <20240216185956.2606978-3-pkj@axis.com>

On Fri, 2024-02-16 at 19:59 +0100, Peter Kjellerstedt wrote:
> If a commit is marked with "%% ignore" it means it is used by devtool to
> keep track of changes to the source code that are not the result of
> running do_patch(). These changes need to actually be ignored when
> extracting the patches as they typically make no sense as actual patches
> in a recipe.
> 
> This also adds a new test for oe-selftest that verifies that there are
> no patches generated from ignored commits.
> 
> Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
[...]

> diff --git a/meta-selftest/recipes-extended/sysdig/sysdig-selftest_0.28.0.bb b/meta-selftest/recipes-extended/sysdig/sysdig-selftest_0.28.0.bb
> new file mode 100644
> index 0000000000..e114f465a0
> --- /dev/null
> +++ b/meta-selftest/recipes-extended/sysdig/sysdig-selftest_0.28.0.bb
> @@ -0,0 +1,64 @@
> +SUMMARY = "A New System Troubleshooting Tool Built for the Way You Work"
> +DESCRIPTION = "Sysdig is open source, system-level exploration: capture \
> +system state and activity from a running Linux instance, then save, \
> +filter and analyze."
> +HOMEPAGE = "http://www.sysdig.org/"
> +LICENSE = "Apache-2.0 & (MIT | GPL-2.0-only)"
> +LIC_FILES_CHKSUM = "file://COPYING;md5=f8fee3d59797546cffab04f3b88b2d44"
> +
> +inherit cmake pkgconfig
> +
> +#OECMAKE_GENERATOR = "Unix Makefiles"
> +JIT ?= "jit"
> +JIT:mipsarchn32 = ""
> +JIT:mipsarchn64 = ""
> +JIT:riscv64 = ""
> +JIT:riscv32 = ""
> +JIT:powerpc = ""
> +JIT:powerpc64le = ""
> +JIT:powerpc64 = ""
> +
> +#DEPENDS += "libb64 lua${JIT} zlib c-ares grpc-native grpc curl ncurses jsoncpp \
> +#            tbb jq openssl elfutils protobuf protobuf-native jq-native valijson"
> +RDEPENDS:${PN} = "bash"
> +
> +SRC_URI = "git://github.com/draios/sysdig.git;branch=dev;protocol=https;name=sysdig \
> +           git://github.com/falcosecurity/libs;protocol=https;branch=master;name=falco;subdir=git/falcosecurity-libs \
> +           file://0055-Add-cstdint-for-uintXX_t-types.patch;patchdir=./falcosecurity-libs \
> +           file://0099-cmake-Pass-PROBE_NAME-via-CFLAGS.patch \
> +           "
> +SRCREV_sysdig = "4fb6288275f567f63515df0ff0a6518043ecfa9b"
> +SRCREV_falco= "caa0e4d0044fdaaebab086592a97f0c7f32aeaa9"
> +
> +SRCREV_FORMAT = "sysdig_falco"
> +
> +S = "${WORKDIR}/git"
> +
> +EXTRA_OECMAKE = "\
> +                -DBUILD_DRIVER=OFF \
> +                -DMINIMAL_BUILD=ON \
> +                -DUSE_BUNDLED_DEPS=OFF \
> +                -DCREATE_TEST_TARGETS=OFF \
> +                -DDIR_ETC=${sysconfdir} \
> +                -DLUA_INCLUDE_DIR=${STAGING_INCDIR}/luajit-2.1 \
> +                -DFALCOSECURITY_LIBS_SOURCE_DIR=${S}/falcosecurity-libs \
> +                -DVALIJSON_INCLUDE=${STAGING_INCDIR}/valijson \
> +"
> +
> +#CMAKE_VERBOSE = "VERBOSE=1"
> +
> +FILES:${PN} += " \
> +    ${DIR_ETC}/* \
> +    ${datadir}/zsh/* \
> +    ${prefix}/src/*  \
> +"
> +# Use getaddrinfo_a is a GNU extension in libsinsp
> +# It should be fixed in sysdig, until then disable
> +# on musl
> +# Something like this https://code.videolan.org/ePirat/vlc/-/commit/01fd9fe4c7f6c5558f7345f38abf0152e17853ab  is needed to fix it
> +COMPATIBLE_HOST:libc-musl = "null"
> +COMPATIBLE_HOST:mips = "null"
> +COMPATIBLE_HOST:riscv64 = "null"
> +COMPATIBLE_HOST:riscv32 = "null"
> +COMPATIBLE_HOST:powerpc = "null"
> +COMPATIBLE_HOST:powerpc64le = "null"


This needs an EXCLUDE_FROM_WORLD = "1" else we see:

https://autobuilder.yoctoproject.org/typhoon/#/builders/117/builds/4386/steps/13/logs/stdio

It took me far too long to realise what was going wrong and where that recipe came from :/

Cheers,

Richard



  reply	other threads:[~2024-02-17  8:52 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-16 18:59 [PATCH 1/7] devtool: standard: Add some missing whitespace Peter Kjellerstedt
2024-02-16 18:59 ` [PATCH 2/7] devtool: _extract_source: Correct the removal of an old backup directory Peter Kjellerstedt
2024-02-16 18:59 ` [PATCH 3/7] lib/oe/patch: Make extractPatches() not extract ignored commits Peter Kjellerstedt
2024-02-17  8:52   ` Richard Purdie [this message]
2024-02-16 18:59 ` [PATCH 4/7] lib/oe/patch: Add GitApplyTree.commitIgnored() Peter Kjellerstedt
2024-02-16 18:59 ` [PATCH 5/7] devtool: Make use of oe.patch.GitApplyTree.commitIgnored() Peter Kjellerstedt
2024-02-16 18:59 ` [PATCH 6/7] patch.bbclass: " Peter Kjellerstedt
2024-02-16 19:30   ` Patchtest results for " patchtest
2024-02-16 18:59 ` [PATCH 7/7] lib/oe/patch: Use git notes to store the filenames for the patches Peter Kjellerstedt
2024-02-17 12:34   ` [OE-core] " Richard Purdie
2024-02-18 22:10     ` Peter Kjellerstedt

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=abcece2e903abb308dc1f09880bfc1127b308a50.camel@linuxfoundation.org \
    --to=richard.purdie@linuxfoundation.org \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=peter.kjellerstedt@axis.com \
    /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