mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-15 16:07:26 +00:00
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>
This commit is contained in:
@@ -3,39 +3,49 @@ 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 = "GPLv2"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
|
||||
LICENSE = "Apache-2.0 & (MIT | GPL-2.0)"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=f8fee3d59797546cffab04f3b88b2d44"
|
||||
|
||||
inherit cmake pkgconfig
|
||||
|
||||
OECMAKE_GENERATOR = "Unix Makefiles"
|
||||
#OECMAKE_GENERATOR = "Unix Makefiles"
|
||||
JIT ?= "jit"
|
||||
JIT_mipsarchn32 = ""
|
||||
JIT_mipsarchn64 = ""
|
||||
JIT_aarch64 = ""
|
||||
|
||||
DEPENDS = "luajit zlib ncurses"
|
||||
DEPENDS += "lua${JIT} zlib c-ares grpc-native grpc curl ncurses jsoncpp tbb jq openssl elfutils protobuf protobuf-native jq-native"
|
||||
RDEPENDS_${PN} = "bash"
|
||||
|
||||
SRC_URI = "git://github.com/draios/sysdig.git;branch=master \
|
||||
file://0001-libsinsp-Port-to-build-with-lua-5.2.patch \
|
||||
SRC_URI = "git://github.com/draios/sysdig.git;branch=dev \
|
||||
file://0001-fix-build-with-LuaJIT-2.1-betas.patch \
|
||||
file://0001-Fix-build-with-musl-backtrace-APIs-are-glibc-specifi.patch \
|
||||
file://fix-uint64-const.patch \
|
||||
"
|
||||
SRCREV = "85d16f33a82a17f87ccdbc088749271c71d87013"
|
||||
PV = "0.1.102+git${SRCPV}"
|
||||
# v0.26.4
|
||||
SRCREV = "9fa0d129668fdabf256446be4be35838888052d9"
|
||||
PV = "0.26.5"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
DIR_ETC="/etc"
|
||||
EXTRA_OECMAKE = ' -DUSE_BUNDLED_LUAJIT="OFF" \
|
||||
-DUSE_BUNDLED_ZLIB="OFF" \
|
||||
-DBUILD_DRIVER="OFF" \
|
||||
-DUSE_BUNDLED_NCURSES="OFF" \
|
||||
-DDIR_ETC="${DIR_ETC}" \
|
||||
'
|
||||
EXTRA_OECMAKE = "\
|
||||
-DBUILD_DRIVER=OFF \
|
||||
-DUSE_BUNDLED_DEPS=OFF \
|
||||
-DUSE_BUNDLED_B64=ON \
|
||||
-DCREATE_TEST_TARGETS=OFF \
|
||||
-DDIR_ETC=${sysconfdir} \
|
||||
-DLUA_INCLUDE_DIR=${STAGING_INCDIR}/luajit-2.1 \
|
||||
-DLUA_LIBRARY=libluajit-5.1.so \
|
||||
"
|
||||
|
||||
FILES_${PN} += " \
|
||||
${DIR_ETC}/* \
|
||||
${datadir}/zsh/* \
|
||||
${prefix}/src/* \
|
||||
"
|
||||
|
||||
# luajit not supported on Aarch64
|
||||
COMPATIBLE_HOST = "^(?!aarch64).*"
|
||||
|
||||
# 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"
|
||||
|
||||
Reference in New Issue
Block a user