From d3b91dd27feacce39fb594286be054952dc019fe Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Mon, 27 Aug 2018 23:12:52 +0200 Subject: [PATCH] procps: Remove uptime The uptime program from procps does not work on later android versions where reading /proc/uptime is not allowed. See https://github.com/termux/termux-app/issues/819 --- packages/procps/build.sh | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/packages/procps/build.sh b/packages/procps/build.sh index 5640c5309..e532ab134 100644 --- a/packages/procps/build.sh +++ b/packages/procps/build.sh @@ -1,6 +1,7 @@ TERMUX_PKG_HOMEPAGE=https://gitlab.com/procps-ng/procps TERMUX_PKG_DESCRIPTION="Utilities that give information about processes using the /proc filesystem" TERMUX_PKG_VERSION=3.3.15 +TERMUX_PKG_REVISION=1 TERMUX_PKG_SHA256=10bd744ffcb3de2d591d2f6acf1a54a7ba070fdcc432a855931a5057149f0465 TERMUX_PKG_SRCURL=https://fossies.org/linux/misc/procps-ng-$TERMUX_PKG_VERSION.tar.xz TERMUX_PKG_BUILD_IN_SRC=yes @@ -14,10 +15,12 @@ ac_cv_header_stdio_ext_h=no --disable-modern-top " TERMUX_PKG_DEPENDS="ncurses" -# https://bugs.launchpad.net/ubuntu/+source/coreutils/+bug/141168: +# About kill: https://bugs.launchpad.net/ubuntu/+source/coreutils/+bug/141168: # "For compatibility between distributions, can we have /bin/kill made available from coreutils?" -TERMUX_PKG_RM_AFTER_INSTALL="bin/kill share/man/man1/kill.1 usr/bin/w share/man/man1/w.1 usr/bin/slabtop share/man/man1/slabtop.1" - -termux_step_pre_configure() { - CFLAGS+=" -DHOST_NAME_MAX=255" -} +# About uptime: Does not work on later android versions as /proc/uptime cannot be read. +TERMUX_PKG_RM_AFTER_INSTALL=" +bin/kill share/man/man1/kill.1 +bin/slabtop share/man/man1/slabtop.1 +bin/uptime share/man/man1/uptime.1 +bin/w share/man/man1/w.1 +"