26 Commits

Author SHA1 Message Date
Liu Yiding
0fa0257275
sysdig: upgrade 0.28.0 -> 0.39.0
Upgrade sysdig to solve build failure after upgrading valijson to 1.1.0.

1.Changelog
  https://github.com/draios/sysdig/releases/tag/0.39.0

2.Update 0001-cmake-Pass-PROBE_NAME-via-CFLAGS.patch for 0.39.0

3.Remove following patches as merged upstream
  0001-Add-cstdint-for-uintXX_t-types.patch
  0001-libsinsp-fix-build-with-gcc-15.patch

4.Add 0001-Avoid-duplicate-operations-of-add_library.patch to fix do_configure errors
  -- Existing strlcat found, will *not* use local definition
  CMake Error at falcosecurity-libs/userspace/libscap/CMakeLists.txt:64 (add_library):
    add_library cannot create target "scap_error" because another target with
    the same name already exists.  The existing target is a static library

5.Add CMAKE option -DBUILD_SYSDIG_MODERN_BPF=OFF to fix bpf header file not found issue
  sysdig/0.39.0/recipe-sysroot/usr/include/bits/syscall.h:23:10: fatal error: 'bits/syscall-32.h' file not found
  |    23 | #include <bits/syscall-32.h>

6.Add do_configure:prepend() function and CFLAGS/CXXFLAGS to fix header file not found issue
  sysdig/0.39.0/sources/sysdig-0.39.0/falcosecurity-libs/userspace/libscap/engine/kmod/scap_kmod.c:30:10: fatal error: driver_config.h: No such file or directory
  |    30 | #include <driver_config.h>

7.Add do_compile:append() function to fix do_package QA Issue

Signed-off-by: Liu Yiding <liuyd.fnst@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2026-03-20 14:13:06 -07:00
Moritz Haase
cafce95171
sysdig: Allow to build with CMake 4+
The latest release seems to have support to build with CMake 4+, but updating
requires major changes to the recipe and so far I haven't managed to get a build
passing. Thus, apply the 'minimum policy version' override instead and backport
one patch to unblock builds with CMake 4.

Signed-off-by: Moritz Haase <Moritz.Haase@bmw.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-07-15 00:25:31 -07:00
Alexander Kanavin
fc78d37ff0
meta-openembedded/all: adapt to UNPACKDIR changes
Please see
https://git.yoctoproject.org/poky/commit/?id=4dd321f8b83afecd962393101b2a6861275b5265
for what changes are needed, and sed commands that can be used to make them en masse.

I've verified that bitbake -c patch world works with these, but did not run a world
build; the majority of recipes shouldn't need further fixups, but if there are
some that still fall out, they can be fixed in followups.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-06-25 06:44:52 -07:00
Martin Jansa
08cf358dc3
sysdig: fix build with gcc-15
fixes:
http://errors.yoctoproject.org/Errors/Details/852848/

In file included from TOPDIR/tmp/work/core2-64-oe-linux/sysdig/0.28.0/git/falcosecurity-libs/userspace/chisel/lua_parser.cpp:20:
TOPDIR/tmp/work/core2-64-oe-linux/sysdig/0.28.0/git/falcosecurity-libs/userspace/libsinsp/./gen_filter.h:87:17: error: 'uint64_t' does not name a type
   87 |         virtual uint64_t get_ts() const = 0;
      |                 ^~~~~~~~

Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-04-23 19:35:00 -07:00
Richard Purdie
eac1f5b9c0
recipes: Fix variable assignment whitespace
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-03-20 08:46:56 -07:00
Khem Raj
6c6944316b sysdig: Add SRCREV_FORMAT
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-08-12 07:55:50 -07:00
Khem Raj
1534ca7afe sysdig: Fix build with gcc13
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-02-02 20:29:12 -08:00
Khem Raj
013a702fd1 sysdig: Upgrade to 0.28.0
Drop patches, since they are not needed
Add a patch to define PROBE_NAME for CFLAGS
Disable sysdig for ppc64

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-03-24 09:45:25 -07:00
Khem Raj
14c7d8a0d7 recipes: Update LICENSE variable to use SPDX license identifiers
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-03-04 17:41:45 -08:00
Richard Purdie
b402a3076f recipes: Update SRC_URI branch and protocols
This patch updates SRC_URIs using git to include branch=master if no branch is set
and also to use protocol=https for github urls as generated by the conversion script
in OE-Core.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-11-03 06:57:49 -07:00
Khem Raj
ce3c3f2099 sysdig: Fix build with ncurses 6.3+
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-11-01 05:45:17 -07:00
Martin Jansa
c61dc077bb Convert to new override syntax
This is the result of automated script (0.9.1) conversion:

oe-core/scripts/contrib/convert-overrides.py .

converting the metadata to use ":" as the override character instead of "_".

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2021-08-03 10:21:25 -07:00
Khem Raj
51bb5a946d sysdig: Disable JIT on ppc64
since luajit is not available on ppc64

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-07-06 10:25:27 -07:00
Saul Wold
433603cb7d sysdig: disable building for ppc
Sysdig depends on tbb which no longer builds for powerpc

Signed-off-by: Saul Wold <saul.wold@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-05-19 18:39:35 -07:00
Khem Raj
d8053b7e2b sysdig: Depend on system libb64
avoid using vendored version

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-03-28 12:12:58 -07:00
Khem Raj
81ab62c975 sysdig: Upgrade to 0.27.1
Drop upstreamed patches

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-03-28 12:12:58 -07:00
Khem Raj
0651858d83 sysdig: Do not depend on luaJIT for riscv
LuaJIT is not porteed to riscv yet

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-04-19 11:55:06 -07:00
Andreas Müller
1cb563d831 sysdig: upgrade 0.26.5 -> 0.26.6
Bug fixes
    Rewrite the probe builder (#1576)
    Build fixes for 5.4+ kernels (#1595)
    Use Debian Stable as the base container image (#1605)
    All the fixes incorporated in 0.26.5 (that didn't get artifacts released for tooling reasons)

New features
    Support for s390x and ppc64le architectures

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-04-12 22:57:22 -07:00
Khem Raj
f5fdeea356 sysdig: Use luajit and build fixes on aarch64
latest luajit now supports aarch64

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-03-13 11:01:34 -07:00
Khem Raj
ed798c7643 sysdig: Upgrade to 0.26.5
* License changed to Apache-2.0 upstream as well [1]
* Forward port patches to apply on 0.26
* Just build libb64 from internal modules everything else should be
  provided by OE recipes
* Disable luajit mips64 since luajit on these arches is
  not available, fall back to liblua
* Disable build on musl and mips arch, it needs fixing in sysdig

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-02-29 22:26:50 -08:00
Armin Kuster
25206cde73 sysdig: don't build for aarch64
this package depends on luajit which is not supported on aarch64

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2018-03-21 18:32:48 -07:00
Khem Raj
0a10b5b25a sysdig: Use makefile generator instead of ninja for cmake
Fixes build errors e.g.
| ninja: error: build.ninja:205: bad $-escape (literal $ must be written as $$)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2018-02-11 11:53:42 -08:00
Martin Jansa
dc48e768f5 meta-oe: remove trailing spaces
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-08-22 15:56:29 +02:00
Khem Raj
5047910313 sysdig: Fix build with lua >= 5.2
It was still using deprecated lua contructs
also fix for musl while at it

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-10-23 12:56:18 +02:00
Bian Naimeng
2d8d524386 sysdig: 0.1.101 -> 0.1.102
upgrade sysdig to 0.1.102, and using GIT source instead of archive.

Because the bug had been fixed at upstream before 0.1.102 released,
so get rid of 01-donot-set-default-value-to-va_list.patch.

Please obtain detail from
3cf4db0831

Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-08-31 19:30:55 +02:00
Bian Naimeng
c37028884d sysdig: add new recipe
sysdig is a tool for system-level exploration and troubleshooting

Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-07-16 21:09:10 +02:00