Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-process/psmisc/, sys-process/psmisc/files/
Date: Mon, 24 Sep 2018 11:27:43
Message-Id: 1537788432.6c1e6dc1b44372a36852071f5f35b22e686d6cea.polynomial-c@gentoo
1 commit: 6c1e6dc1b44372a36852071f5f35b22e686d6cea
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Mon Sep 24 11:13:02 2018 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 24 11:27:12 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c1e6dc1
7
8 sys-process/psmisc: Revbump to fix "killall -SIG".
9
10 Upstream re-released version 23.2 with the killall fixes.
11
12 Closes: https://bugs.gentoo.org/664066
13 Package-Manager: Portage-2.3.49, Repoman-2.3.11
14
15 sys-process/psmisc/Manifest | 2 +-
16 .../psmisc-23.2-killall_options_parsing.patch | 79 ----------------------
17 .../{psmisc-23.2.ebuild => psmisc-23.2-r1.ebuild} | 6 +-
18 3 files changed, 2 insertions(+), 85 deletions(-)
19
20 diff --git a/sys-process/psmisc/Manifest b/sys-process/psmisc/Manifest
21 index 3e422d1ce55..7d43e8db087 100644
22 --- a/sys-process/psmisc/Manifest
23 +++ b/sys-process/psmisc/Manifest
24 @@ -1,2 +1,2 @@
25 DIST psmisc-23.1.tar.xz 296136 BLAKE2B e53f7b80f1106622d652dad772d4236a62a1eb58e277f078cf0392d5a0bd7963c66805e28f6d1300999f2e2e5dcb692b1ecb3f6d39cefa77ebbc87302cd730be SHA512 f678869ea555986a2538ada9630b74ce79304f3ee85cc9d69a3912d8d30ad491829eac0dcb69aae7003ee9b5de9645d2135b80a9e0b77824e60c417dc0be5f95
26 -DIST psmisc-23.2.tar.xz 298784 BLAKE2B 61d1ad385f176cbe3ca0edcdd41ed026ab52aca4190c31551392cf83d0bf293de22899b13238d7ebeb1627013a2dc734ca91ad7a0a313c9d92b7af662728bf21 SHA512 114dc4d9a4d66374ee75cd6c845230c24540aa1d7562253c6fd5695552698afcf3e2ad2d7e9675addc63201f7e6d9e697287c72a638705194155bec508211dc3
27 +DIST psmisc-23.2.tar.xz 303820 BLAKE2B 6c63a54b91e1e31f812bc47c10937e8767fa2990bef66ee779bf44887625719e7342da05137222a6636df7a0e520c39318faba3e7a1022c54fd9f3f172ecc851 SHA512 a8d4e91443b66de1c4418fd74b5eb6dd42caddc937e75dfb35a4e49b9b35236db779e2a480c1693bcc7feaf0957b1028850134040685e88e6ff7ffcb572e20e8
28
29 diff --git a/sys-process/psmisc/files/psmisc-23.2-killall_options_parsing.patch b/sys-process/psmisc/files/psmisc-23.2-killall_options_parsing.patch
30 deleted file mode 100644
31 index 48aecb24e5c..00000000000
32 --- a/sys-process/psmisc/files/psmisc-23.2-killall_options_parsing.patch
33 +++ /dev/null
34 @@ -1,79 +0,0 @@
35 -From 258ee9166e585f87005d3a9686938a4fa26669f9 Mon Sep 17 00:00:00 2001
36 -From: Craig Small <csmall@×××××××.au>
37 -Date: Tue, 18 Sep 2018 21:17:00 +1000
38 -Subject: [PATCH] killall: Another go at option parsing
39 -
40 -This now seems to be working. There are some evil hacks, especially for
41 -the -ve option combination but it seems that we have a winner.
42 -
43 -Added a bunch more option parsing tests which picked up -ILL passed but
44 --VTALRM did not. Not sure why, but length seems my guess
45 -
46 -References:
47 - psmisc/psmisc#13
48 - psmisc/psmisc#12
49 ----
50 -
51 -diff --git a/src/killall.c b/src/killall.c
52 -index 64c406a..2715515 100644
53 ---- a/src/killall.c
54 -+++ b/src/killall.c
55 -@@ -857,7 +857,7 @@ main (int argc, char **argv)
56 -
57 - opterr = 0;
58 - #ifdef WITH_SELINUX
59 -- while ( (optc = getopt_long(argc,argv,"egy:o:ilqrs:u:vwZ:VIn:",options,NULL)) != -1) {
60 -+ while ( (optc = getopt_long_only(argc,argv,"egy:o:ilqrs:u:vwZ:VIn:",options,NULL)) != -1) {
61 - #else
62 - while ( (optc = getopt_long_only(argc,argv,"egy:o:ilqrs:u:vwVIn:",options,NULL)) != -1) {
63 - #endif
64 -@@ -914,7 +914,7 @@ main (int argc, char **argv)
65 - ignore_case = 1;
66 - } else {
67 - sig_num = get_signal (argv[optind]+1, "killall");
68 -- skip_error=1;
69 -+ skip_error=optind;
70 - }
71 - break;
72 - case 'V':
73 -@@ -922,8 +922,10 @@ main (int argc, char **argv)
74 - if (strcmp(argv[optind-1],"-V") == 0 || strncmp(argv[optind-1],"--",2) == 0) {
75 - print_version();
76 - return 0;
77 -+ } else {
78 -+ sig_num = get_signal (argv[optind]+1, "killall");
79 -+ skip_error=optind;
80 - }
81 -- sig_num = get_signal (argv[optind]+1, "killall");
82 - break;
83 - case 'n': {
84 - long num;
85 -@@ -948,6 +950,15 @@ main (int argc, char **argv)
86 - break;
87 - #endif /*WITH_SELINUX*/
88 - case '?':
89 -+ if (skip_error == optind)
90 -+ break;
91 -+ /* Sigh, this is a hack because -ve could be -version or
92 -+ * -verbose */
93 -+ if (strncmp(argv[optind-1], "-ve", 3) == 0) {
94 -+ verbose=1;
95 -+ exact=1;
96 -+ break;
97 -+ }
98 - /* Signal names are in uppercase, so check to see if the argv
99 - * is upper case */
100 - if (argv[optind-1][1] >= 'A' && argv[optind-1][1] <= 'Z') {
101 -@@ -957,9 +968,6 @@ main (int argc, char **argv)
102 - if (argv[optind-1][1] >= '0' && argv[optind-1][1] <= '9') {
103 - sig_num = atoi(argv[optind-1]+1);
104 - } else {
105 -- if (skip_error)
106 -- skip_error=0;
107 -- else
108 - usage(NULL);
109 - }
110 - }
111 ---
112 -2.18.0
113 -
114
115 diff --git a/sys-process/psmisc/psmisc-23.2.ebuild b/sys-process/psmisc/psmisc-23.2-r1.ebuild
116 similarity index 92%
117 rename from sys-process/psmisc/psmisc-23.2.ebuild
118 rename to sys-process/psmisc/psmisc-23.2-r1.ebuild
119 index dd989ab0b6b..2157294a11d 100644
120 --- a/sys-process/psmisc/psmisc-23.2.ebuild
121 +++ b/sys-process/psmisc/psmisc-23.2-r1.ebuild
122 @@ -1,4 +1,4 @@
123 -# Copyright 1999-2018 Gentoo Foundation
124 +# Copyright 1999-2018 Gentoo Authors
125 # Distributed under the terms of the GNU General Public License v2
126
127 EAPI=6
128 @@ -21,10 +21,6 @@ DEPEND="${RDEPEND}
129
130 DOCS=( AUTHORS ChangeLog NEWS README )
131
132 -PATCHES=(
133 - "${FILESDIR}/${P}-killall_options_parsing.patch"
134 -)
135 -
136 src_configure() {
137 local myeconfargs=(
138 --disable-harden-flags