From a777f849662c09a67ec94cc7a445ebea86260a40 Mon Sep 17 00:00:00 2001 From: Leonid Pliushch Date: Fri, 8 Oct 2021 17:51:32 +0300 Subject: [PATCH] move from unstable: cppcheck --- packages/cppcheck/build.sh | 8 ++++++++ packages/cppcheck/threadexecuter.patch | 11 +++++++++++ 2 files changed, 19 insertions(+) create mode 100644 packages/cppcheck/build.sh create mode 100644 packages/cppcheck/threadexecuter.patch diff --git a/packages/cppcheck/build.sh b/packages/cppcheck/build.sh new file mode 100644 index 000000000..2e3ea0887 --- /dev/null +++ b/packages/cppcheck/build.sh @@ -0,0 +1,8 @@ +TERMUX_PKG_HOMEPAGE=https://github.com/danmar/cppcheck +TERMUX_PKG_DESCRIPTION="tool for static C/C++ code analysis" +TERMUX_PKG_LICENSE="GPL-3.0" +TERMUX_PKG_VERSION=2.5 +TERMUX_PKG_REVISION=1 +TERMUX_PKG_SRCURL=https://github.com/danmar/cppcheck/archive/$TERMUX_PKG_VERSION.tar.gz +TERMUX_PKG_SHA256=dc27154d799935c96903dcc46653c526c6f4148a6912b77d3a50cb35dabd82e1 +TERMUX_PKG_BLACKLISTED_ARCHES="i686" diff --git a/packages/cppcheck/threadexecuter.patch b/packages/cppcheck/threadexecuter.patch new file mode 100644 index 000000000..46340a046 --- /dev/null +++ b/packages/cppcheck/threadexecuter.patch @@ -0,0 +1,11 @@ +--- cli/threadexecutor.cpp.orig 2019-11-08 23:29:10.428984535 +0000 ++++ ./cli/threadexecutor.cpp 2019-11-08 23:29:51.245623336 +0000 +@@ -143,7 +143,7 @@ + + bool ThreadExecutor::checkLoadAverage(size_t nchildren) + { +-#if defined(__CYGWIN__) || defined(__QNX__) // getloadavg() is unsupported on Cygwin, Qnx. ++#if defined(__CYGWIN__) || defined(__QNX__) || defined(__ANDROID__) // getloadavg() is unsupported on Cygwin, Qnx. + return true; + #else + if (!nchildren || !mSettings.loadAverage) {