From b470466432643683c7515da885575ecd035f3946 Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Mon, 2 Oct 2023 15:33:06 +0200 Subject: [PATCH] procps: Make -f/--full the default for pgrep&pkill Without -f/--full, pgrep&pkill matches searches by default only on the binary name, which will not work with the changes proposed in https://github.com/termux/termux-exec/pull/24, as there the binary will always be /system/bin/linker64. --- packages/procps/build.sh | 2 +- packages/procps/pgrep.c.patch | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 packages/procps/pgrep.c.patch diff --git a/packages/procps/build.sh b/packages/procps/build.sh index 0e462be182711c..880dc6cc4781ce 100644 --- a/packages/procps/build.sh +++ b/packages/procps/build.sh @@ -3,7 +3,7 @@ TERMUX_PKG_DESCRIPTION="Utilities that give information about processes using th TERMUX_PKG_LICENSE="LGPL-2.0" TERMUX_PKG_MAINTAINER="@termux" TERMUX_PKG_VERSION=3.3.17 -TERMUX_PKG_REVISION=2 +TERMUX_PKG_REVISION=3 TERMUX_PKG_SRCURL=https://sourceforge.net/projects/procps-ng/files/Production/procps-ng-$TERMUX_PKG_VERSION.tar.xz TERMUX_PKG_SHA256=4518b3e7aafd34ec07d0063d250fd474999b20b200218c3ae56f5d2113f141b4 TERMUX_PKG_DEPENDS="ncurses" diff --git a/packages/procps/pgrep.c.patch b/packages/procps/pgrep.c.patch new file mode 100644 index 00000000000000..0f917b55c0b208 --- /dev/null +++ b/packages/procps/pgrep.c.patch @@ -0,0 +1,12 @@ +diff -u -r ../src-orig/pgrep.c ./pgrep.c +--- ../src-orig/pgrep.c 2023-10-02 11:04:29.715645019 +0000 ++++ ./pgrep.c 2023-10-02 11:17:10.632452771 +0000 +@@ -80,7 +80,7 @@ + + /* User supplied arguments */ + +-static int opt_full = 0; ++static int opt_full = 1; + static int opt_long = 0; + static int opt_longlong = 0; + static int opt_oldest = 0;