sysdig: fix i686 build

This commit is contained in:
Jürgen Buchmüller 2019-12-20 01:18:06 +01:00
parent 9b2a018345
commit 69ad10bd3d
2 changed files with 13 additions and 3 deletions

View file

@ -0,0 +1,11 @@
--- userspace/libsinsp/cgroup_limits.cpp 2019-12-09 23:06:46.000000000 +0100
+++ userspace/libsinsp/cgroup_limits.cpp 2019-12-20 01:14:18.816734272 +0100
@@ -9,7 +9,7 @@
// This reports extremely large values (e.g. almost-but-not-quite 9EiB as set by k8s) as unlimited.
// Note: we use the same maximum value for cpu shares/quotas as well; the typical values are much lower
// and so should never exceed CGROUP_VAL_MAX either
-constexpr const int64_t CGROUP_VAL_MAX = (1UL << 42u) - 1;
+constexpr const int64_t CGROUP_VAL_MAX = (1ULL << 42u) - 1;
/**
* \brief Read a single int64_t value from cgroupfs

View file

@ -24,9 +24,8 @@ disable_parallel_build=yes
dkms_modules="sysdig ${version}"
nocross=yes
case "$XBPS_TARGET_MACHINE" in
i686*) broken="https://build.voidlinux.org/builders/i686_builder/builds/21617/steps/shell_3/logs/stdio" ;;
esac
# Avoid excessive warnings spam to the log
CXXFLAGS="-Wno-deprecated-declarations"
post_extract() {
sed -i 's,"${DIR_ETC}/bash_completion.d",share/bash-completion/completions,g' scripts/CMakeLists.txt