sysdig: fix i686 build
This commit is contained in:
parent
9b2a018345
commit
69ad10bd3d
2 changed files with 13 additions and 3 deletions
11
srcpkgs/sysdig/patches/fix-uint64-const.patch
Normal file
11
srcpkgs/sysdig/patches/fix-uint64-const.patch
Normal 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
|
|
@ -24,9 +24,8 @@ disable_parallel_build=yes
|
||||||
dkms_modules="sysdig ${version}"
|
dkms_modules="sysdig ${version}"
|
||||||
nocross=yes
|
nocross=yes
|
||||||
|
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
# Avoid excessive warnings spam to the log
|
||||||
i686*) broken="https://build.voidlinux.org/builders/i686_builder/builds/21617/steps/shell_3/logs/stdio" ;;
|
CXXFLAGS="-Wno-deprecated-declarations"
|
||||||
esac
|
|
||||||
|
|
||||||
post_extract() {
|
post_extract() {
|
||||||
sed -i 's,"${DIR_ETC}/bash_completion.d",share/bash-completion/completions,g' scripts/CMakeLists.txt
|
sed -i 's,"${DIR_ETC}/bash_completion.d",share/bash-completion/completions,g' scripts/CMakeLists.txt
|
||||||
|
|
Loading…
Reference in a new issue