summaryrefslogtreecommitdiff
path: root/sys-process/psmisc
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-02-13 21:41:11 +0000
committerV3n3RiX <venerix@redcorelinux.org>2021-02-13 21:41:11 +0000
commitc8d60dada2ec8eb48b2d2b290cd6683ccec40e39 (patch)
treec44943ee0563a3fa957716de909fed683117fcb9 /sys-process/psmisc
parent69051588e2f955485fe5d45d45e616bc60a2de57 (diff)
gentoo (valentine's day) resync : 14.02.2021
Diffstat (limited to 'sys-process/psmisc')
-rw-r--r--sys-process/psmisc/Manifest8
-rw-r--r--sys-process/psmisc/files/psmisc-23.2-killall_check_truncated_16_char.patch122
-rw-r--r--sys-process/psmisc/files/psmisc-23.2-old_comm_len.patch28
-rw-r--r--sys-process/psmisc/psmisc-23.1-r1.ebuild51
-rw-r--r--sys-process/psmisc/psmisc-23.4.ebuild (renamed from sys-process/psmisc/psmisc-23.2-r2.ebuild)24
5 files changed, 12 insertions, 221 deletions
diff --git a/sys-process/psmisc/Manifest b/sys-process/psmisc/Manifest
index d71d573a8f3e..9ffe46dcb284 100644
--- a/sys-process/psmisc/Manifest
+++ b/sys-process/psmisc/Manifest
@@ -1,9 +1,5 @@
-AUX psmisc-23.2-killall_check_truncated_16_char.patch 4440 BLAKE2B d04ab70003cb9de27c918ff72a283fbbfc087760a11ff4fad9cf587ff2aa4e3e22bafe94d615d192f33c0d7e0868efd03949e6f1b60acbeaba475600d2e546ee SHA512 ec9247957426865f009b5bd22bb518c229a52e5f26908e304fd6b3a891204bc53cf6cb2974d9b38741a5afb9b6f9ebfd622a7911412a53b90ec20366f3b3f4ca
-AUX psmisc-23.2-old_comm_len.patch 602 BLAKE2B ebcf12e6debdef6a708594f2193103f41c36babd2b5b6ae2027c17364102fc906bf88cd275e2a9183bde62d94da6106fa2eb36cdc62af4a77ca0623be2cc8d01 SHA512 fea4df7b9cabfc5e02628a7876a032027c738f1515b049caf5ccdc376cc6a64eacd1c232d006ab102c5c5aed9e0b40c3cbd23c9e698312dc853b06abd2809c8a
-DIST psmisc-23.1.tar.xz 296136 BLAKE2B e53f7b80f1106622d652dad772d4236a62a1eb58e277f078cf0392d5a0bd7963c66805e28f6d1300999f2e2e5dcb692b1ecb3f6d39cefa77ebbc87302cd730be SHA512 f678869ea555986a2538ada9630b74ce79304f3ee85cc9d69a3912d8d30ad491829eac0dcb69aae7003ee9b5de9645d2135b80a9e0b77824e60c417dc0be5f95
-DIST psmisc-23.2.tar.xz 303820 BLAKE2B 6c63a54b91e1e31f812bc47c10937e8767fa2990bef66ee779bf44887625719e7342da05137222a6636df7a0e520c39318faba3e7a1022c54fd9f3f172ecc851 SHA512 a8d4e91443b66de1c4418fd74b5eb6dd42caddc937e75dfb35a4e49b9b35236db779e2a480c1693bcc7feaf0957b1028850134040685e88e6ff7ffcb572e20e8
DIST psmisc-23.3.tar.xz 311896 BLAKE2B f38360dfb037a758633a8ff25af1de70be83ae5b2f2afe856ce237ade7bd2720f7c270c5af884313177022aa70f408dfce0c39e5d847057a6fdba98e3363561c SHA512 791ffef78d87b092d653da98710b338017466a9e1e1935968b9f0194ccef8da941317aa0c39d821d46b20d95d6539ccf78e5ebb71ad1032ae62337a397180d58
-EBUILD psmisc-23.1-r1.ebuild 1270 BLAKE2B 372ee0848e1201eb5718481b8c6ae0ed80acf3c9c94957b6b64c768f610687ce285a775324a6b76c23de3d309b35c88dd2e96f2c752ad6db145f4191721c0755 SHA512 982c57baaa9985aa9ac140b7bbb65718c88d8aa8b79e2e5b07267f0aa1eeae52aed5d1e7e338f054758d444a8eb04b4866d75042a4a32c1877bcb2a3c0794cb2
-EBUILD psmisc-23.2-r2.ebuild 1274 BLAKE2B 653aaf23f8fbc371338cd0639877bd467ff87987648d0d68838bfa6094f0ef2f29b372c89df171a3ab38ddfa5500de104bab650f0fca5aabed2ccfddd016a7af SHA512 31e2681b481e2f7a2b4da2b86d980a7a6789090c9ea89efe04e48ed595d4464ac55cebeae56899aacb30717d74efe49728796416fa7a8eafeb1fc33d4c1fc7a2
+DIST psmisc-23.4.tar.xz 370000 BLAKE2B e762171c4d3252421a49b352fadb3e892f66862f003a313a0cc692f973364b06d2652a51d331314462784d94ad55189e74c4d7a023d5d7c917c5e5c05009f46b SHA512 b05781fdb283a6f132bd385d64437f8080e6bc0e11cd2e3e02227678682bb67b3c89edec34a6d067d77312811d072dc60b47ebb32b168c4c69bbc36df643a471
EBUILD psmisc-23.3-r1.ebuild 1150 BLAKE2B b3ef07952efb80a7e13a5683e23949e06db15ee298e029bae355438fc7a49a4fbc1a30c8bde47502715062d36181dcbbdb9f830af41a1afb11889f013faaf186 SHA512 bc76d36a24722841f9078fb5a72e41e5e0df3e9489524cba257ef02d1aecf50c281cc883c008834eff0b859f2841ee9f60b7661c64c390d7bc32525816f656d4
+EBUILD psmisc-23.4.ebuild 1195 BLAKE2B 5924989ee1655fb9439e4718847c9171a8e011c0707db01519215f7c919d0c241a3e0e887d0fc6f5ecebfece77ae748430fd9379315ad02c6115ecd866fa33a1 SHA512 71f721429c81332cac93cd1ee5f3c7d0abc7bed54cd47c031056aff302f3eeee2ae937aa894bea76aa8da96409bf5d3a8cf79d9e9974598ff6bc8d668b087453
MISC metadata.xml 326 BLAKE2B 899a2f3fa295d2e0e8d6114542a149db37c730b845d7ba720127ca2b9b85044c53ff7aa107f866a6e2ece895a8159e25350b17d9665fc9ff915aed3640ac22cf SHA512 580a0e66078b7304d0bf76e3c990e61ee4c073b49381b60c5f3f01e2b64d5f0c318eb5596f7da09a70fa52dc93769b25f37f531038e5d7ce6278dda10e18117c
diff --git a/sys-process/psmisc/files/psmisc-23.2-killall_check_truncated_16_char.patch b/sys-process/psmisc/files/psmisc-23.2-killall_check_truncated_16_char.patch
deleted file mode 100644
index bfc2a24d5de9..000000000000
--- a/sys-process/psmisc/files/psmisc-23.2-killall_check_truncated_16_char.patch
+++ /dev/null
@@ -1,122 +0,0 @@
-From 1188315cd037d73bf946a0003b70c6423cc330d2 Mon Sep 17 00:00:00 2001
-From: Craig Small <csmall@enc.com.au>
-Date: Wed, 7 Nov 2018 20:13:09 +1100
-Subject: [PATCH] killall: match on 16 character commlen too
-
-The comm length increase meant killall could accomodate the
-larger comm name given out by newer kernels but it meant that
-if a user relied on the previous 16 character truncation then
-processes that used to match would fail.
-
-killall now checks to see if the the comm is the old COMM_LEN
-length and the given name is longer than old COMM_LEN and does
-a truncated match as well.
-
-References:
- https://bugs.debian.org/912748
----
- ChangeLog | 3 +++
- src/killall.c | 69 +++++++++++++++++++++++++++++++++++----------------
- 2 files changed, 50 insertions(+), 22 deletions(-)
-
-diff --git a/ChangeLog b/ChangeLog
-index 7fd2abd..37962cb 100644
---- a/ChangeLog
-+++ b/ChangeLog
-@@ -1,3 +1,6 @@
-+Changes in 23.4
-+===============
-+ * killall: check also truncated 16 char comm names Debian #912748
- Changes in 23.2
- ===============
- * misc: Command names increased from 16 to 64 characters
-diff --git a/src/killall.c b/src/killall.c
-index 2715515..09212a4 100644
---- a/src/killall.c
-+++ b/src/killall.c
-@@ -492,6 +492,49 @@ create_pid_table(int *max_pids, int *pids)
- return pid_table;
- }
-
-+#define strcmp2(A,B,I) (I? strcasecmp((A),(B)):strcmp((A),(B)))
-+#define strncmp2(A,B,L,I) (I? strncasecmp((A),(B),(L)):strncmp((A),(B),(L)))
-+static int match_process_name(
-+ const char *proc_comm,
-+ const int comm_len,
-+ const char *proc_cmdline,
-+ const char *match_name,
-+ const int match_len,
-+ const int got_long
-+ )
-+{
-+ /* process is old length but matching longer */
-+ if (comm_len == OLD_COMM_LEN - 1 && match_len >= OLD_COMM_LEN - 1)
-+ {
-+ if (got_long)
-+ {
-+ return (0 == strncmp2 (match_name, proc_cmdline, OLD_COMM_LEN - 1,
-+ ignore_case));
-+ } else {
-+ return (0 == strncmp2 (match_name, proc_comm, OLD_COMM_LEN - 1,
-+ ignore_case));
-+ }
-+ }
-+
-+ if (comm_len == COMM_LEN - 1 && match_len >= COMM_LEN - 1)
-+ {
-+ if (got_long)
-+ {
-+ return (0 == strncmp2 (match_name, proc_cmdline, COMM_LEN - 1,
-+ ignore_case));
-+ } else {
-+ return (0 == strncmp2 (match_name, proc_comm, COMM_LEN - 1,
-+ ignore_case));
-+ }
-+ }
-+ /* Not old new COMM_LEN so we match all of it */
-+ if (got_long)
-+ {
-+ return (0 == strcmp2 (match_name, proc_cmdline, ignore_case));
-+ }
-+ return (0 == strcmp2 (match_name, proc_comm, ignore_case));
-+}
-+
- #ifdef WITH_SELINUX
- static int
- kill_all(int signal, int name_count, char **namelist, struct passwd *pwent,
-@@ -599,28 +642,10 @@ kill_all (int signal, int name_count, char **namelist, struct passwd *pwent)
- {
- if (!name_info[j].st.st_dev)
- {
-- if (length != COMM_LEN - 1 || name_info[j].name_length < COMM_LEN - 1)
-- {
-- if (ignore_case == 1)
-- {
-- if (strcasecmp (namelist[j], comm))
-- continue;
-- } else {
-- if (strcmp(namelist[j], comm))
-- continue;
-- }
-- } else {
-- if (ignore_case == 1)
-- {
-- if (got_long ? strcasecmp (namelist[j], command) :
-- strncasecmp (namelist[j], comm, COMM_LEN - 1))
-- continue;
-- } else {
-- if (got_long ? strcmp (namelist[j], command) :
-- strncmp (namelist[j], comm, COMM_LEN - 1))
-- continue;
-- }
-- }
-+ if (!match_process_name(comm, length, command, namelist[j],
-+ name_info[j].name_length, got_long))
-+ continue;
-+
- } else {
- int ok = 1;
- if (asprintf (&path, PROC_BASE "/%d/exe", pid_table[i]) < 0)
---
-2.18.1
-
diff --git a/sys-process/psmisc/files/psmisc-23.2-old_comm_len.patch b/sys-process/psmisc/files/psmisc-23.2-old_comm_len.patch
deleted file mode 100644
index ae237e691099..000000000000
--- a/sys-process/psmisc/files/psmisc-23.2-old_comm_len.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-From e2cf9f3e83e0fc0278ff39a4dfc8e3f2730eebca Mon Sep 17 00:00:00 2001
-From: Craig Small <csmall@enc.com.au>
-Date: Wed, 7 Nov 2018 20:19:38 +1100
-Subject: [PATCH] misc: Remember to add comm.h too
-
-The previous commit should have included comm.h too
----
- src/comm.h | 6 ++++++
- 1 file changed, 6 insertions(+)
-
-diff --git a/src/comm.h b/src/comm.h
-index b54b998..b10eb36 100644
---- a/src/comm.h
-+++ b/src/comm.h
-@@ -33,4 +33,10 @@
- */
- #define COMM_LEN 64
-
-+/*
-+ * Older kernels had only 16 characters, which means we may have to check this
-+ * too
-+ */
-+#define OLD_COMM_LEN 16
-+
- #endif
---
-2.18.1
-
diff --git a/sys-process/psmisc/psmisc-23.1-r1.ebuild b/sys-process/psmisc/psmisc-23.1-r1.ebuild
deleted file mode 100644
index 1f826b2f6c36..000000000000
--- a/sys-process/psmisc/psmisc-23.1-r1.ebuild
+++ /dev/null
@@ -1,51 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-DESCRIPTION="A set of tools that use the proc filesystem"
-HOMEPAGE="http://psmisc.sourceforge.net/"
-SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 s390 sparc x86 ~amd64-linux ~x86-linux"
-IUSE="ipv6 nls selinux X"
-
-RDEPEND=">=sys-libs/ncurses-5.7-r7:0=
- nls? ( virtual/libintl )
- selinux? ( sys-libs/libselinux )"
-DEPEND="${RDEPEND}
- >=sys-devel/libtool-2.2.6b
- nls? ( sys-devel/gettext )"
-
-DOCS=( AUTHORS ChangeLog NEWS README )
-
-src_configure() {
- local myeconfargs=(
- $(use_enable selinux)
- --disable-harden-flags
- $(use_enable ipv6)
- $(use_enable nls)
- )
- econf "${myeconfargs[@]}"
-}
-
-src_compile() {
- # peekfd is a fragile crap hack #330631
- nonfatal emake -C src peekfd || touch src/peekfd{.o,}
- emake
-}
-
-src_install() {
- default
-
- use X || rm -f "${ED%/}"/usr/bin/pstree.x11
-
- [[ -s ${ED%/}/usr/bin/peekfd ]] || rm -f "${ED%/}"/usr/bin/peekfd
- [[ -e ${ED%/}/usr/bin/peekfd ]] || rm -f "${ED%/}"/usr/share/man/man1/peekfd.1
-
- # fuser is needed by init.d scripts; use * wildcard for #458250
- dodir /bin
- mv "${ED%/}"/usr/bin/*fuser "${ED%/}"/bin || die
-}
diff --git a/sys-process/psmisc/psmisc-23.2-r2.ebuild b/sys-process/psmisc/psmisc-23.4.ebuild
index c06e9f526a80..70bf7153aa56 100644
--- a/sys-process/psmisc/psmisc-23.2-r2.ebuild
+++ b/sys-process/psmisc/psmisc-23.4.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
+EAPI=7
DESCRIPTION="A set of tools that use the proc filesystem"
HOMEPAGE="http://psmisc.sourceforge.net/"
@@ -12,20 +12,16 @@ SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
IUSE="ipv6 nls selinux X"
-RDEPEND=">=sys-libs/ncurses-5.7-r7:0=
+RDEPEND="!=app-i18n/man-pages-l10n-4.0.0-r0
+ >=sys-libs/ncurses-5.7-r7:0=
nls? ( virtual/libintl )
selinux? ( sys-libs/libselinux )"
-DEPEND="${RDEPEND}
- >=sys-devel/libtool-2.2.6b
+DEPEND="${RDEPEND}"
+BDEPEND=">=sys-devel/libtool-2.2.6b
nls? ( sys-devel/gettext )"
DOCS=( AUTHORS ChangeLog NEWS README )
-PATCHES=(
- "${FILESDIR}/${P}-old_comm_len.patch"
- "${FILESDIR}/${P}-killall_check_truncated_16_char.patch"
-)
-
src_configure() {
local myeconfargs=(
--disable-harden-flags
@@ -39,12 +35,12 @@ src_configure() {
src_install() {
default
- use X || rm -f "${ED%/}"/usr/bin/pstree.x11
+ use X || rm -f "${ED}"/usr/bin/pstree.x11
- [[ -s ${ED%/}/usr/bin/peekfd ]] || rm -f "${ED%/}"/usr/bin/peekfd
- [[ -e ${ED%/}/usr/bin/peekfd ]] || rm -f "${ED%/}"/usr/share/man/man1/peekfd.1
+ [[ -s ${ED}/usr/bin/peekfd ]] || rm -f "${ED}"/usr/bin/peekfd
+ [[ -e ${ED}/usr/bin/peekfd ]] || rm -f "${ED}"/usr/share/man/man1/peekfd.1
# fuser is needed by init.d scripts; use * wildcard for #458250
dodir /bin
- mv "${ED%/}"/usr/bin/*fuser "${ED%/}"/bin || die
+ mv "${ED}"/usr/bin/*fuser "${ED}"/bin || die
}