Gentoo Archives: gentoo-commits

From: Georgy Yakovlev <gyakovlev@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-process/bottom/files/, sys-process/bottom/
Date: Sat, 18 Sep 2021 22:08:14
Message-Id: 1632002882.02ab510ce592341df79855dfd04ec0b1e926fcc4.gyakovlev@gentoo
1 commit: 02ab510ce592341df79855dfd04ec0b1e926fcc4
2 Author: Randy Barlow <randy <AT> electronsweatshop <DOT> com>
3 AuthorDate: Sat Sep 18 17:54:38 2021 +0000
4 Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 18 22:08:02 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=02ab510c
7
8 sys-process/bottom: Update to 0.6.4
9
10 I have applied patches here to address two vulnerable dependencies[0]
11 and a failing test[1].
12
13 This fixes RUSTSEC-2021-0003[2] and RUSTSEC-2021-0093[3].
14
15 [0] https://github.com/ClementTsang/bottom/pull/580
16 [1] https://github.com/ClementTsang/bottom/pull/582
17 [2] https://rustsec.org/advisories/RUSTSEC-2021-0003
18 [3] https://rustsec.org/advisories/RUSTSEC-2021-0093
19
20 Closes: https://github.com/gentoo/gentoo/pull/22328
21 Signed-off-by: Randy Barlow <randy <AT> electronsweatshop.com>
22 Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>
23
24 sys-process/bottom/Manifest | 4 +
25 sys-process/bottom/bottom-0.6.4.ebuild | 225 +++++++++++++++++++++
26 .../files/bottom-0.6.4-RUSTSEC-2021-0003.patch | 31 +++
27 .../files/bottom-0.6.4-RUSTSEC-2021-0093.patch | 31 +++
28 ...eature-gate-test_default_battery_movement.patch | 41 ++++
29 sys-process/bottom/metadata.xml | 3 +
30 6 files changed, 335 insertions(+)
31
32 diff --git a/sys-process/bottom/Manifest b/sys-process/bottom/Manifest
33 index 8140e03c302..ed5d846e852 100644
34 --- a/sys-process/bottom/Manifest
35 +++ b/sys-process/bottom/Manifest
36 @@ -20,6 +20,7 @@ DIST battery-0.7.8.crate 40344 BLAKE2B 588d36a7f3050e07ccbeada47a328a474dcd647ce
37 DIST bitflags-1.2.1.crate 16745 BLAKE2B 0fa6d3ce44aad7616d5cd02aad8c1d0b0fed4022650eb43067c4a72e6fc88da05442674fa51826e4858a47c9de233e1ba2229820af094197cd11bb416ceffb2b SHA512 ad89b3798845e23737a620bba581c2ff1ff3e15bac12555c765e201d2c0b90ecea0cdbc5b5b1a3fa9858c385e8e041f8226f5acfae5bbbe9925643fff2bf3f0b
38 DIST blocking-1.0.2.crate 18571 BLAKE2B 30e69dce433ba3c0d153275b5a56407237de93a50d7a3f9b97505b17899400f8cc8c3dede3f63fca26d5d49e88c3c9ee7ba91401061dedc41358efe24a9bf2b9 SHA512 f9048544161cb3098ec7362487c8df4ece972445dfc94196cc2cbe7faa2b6f3f3e5abe56310675c798636148b0b709d864fb94959d36976043886feb149adb66
39 DIST bottom-0.6.3.crate 7713733 BLAKE2B cf5fe1d6cbdd636810874a21cd28b0239356b50e91edc03edc30d763a5669f19de7ffbcc44bbb321d15bcc9e00d6d7b4c7a8224a4cfb95c031cb1776575fe56b SHA512 9e5bba4a755af4fbe0c09c1454db20a3e115204b955dd6384adfcc91f038ffa5573fc87b7b9c12d24234d6e3ac14732f1054e4b4c246414c8fd3aa66c1fbb66a
40 +DIST bottom-0.6.4.crate 7809199 BLAKE2B 4fbcb7fc1053e546a3e0aeb887bbf6c68f8058f527f37354475e2fbe3353cde39abd5c1d32bbd23ff24ef896f206821959e7f67a5c26b668ed3f0b4d80787be2 SHA512 aa96f4204435125c0fa64337b5a473932a0841c3b830579ec28aaac80e9e79e62bf1303557a31f5141b4bb95a610aac8b4dd559978168485902f6c822361706d
41 DIST bstr-0.2.15.crate 344206 BLAKE2B 3a4f24d2a039f7aeee3b6fcbfcc2fa72f1ef8a06ff8bc039af055739436655851565a57e5a4f86a7984b00ee7598c1fbdf26f3302929f91d7efb1327fd36eb57 SHA512 6e464ca1aec722a283759ff6978bab1769dfc8d61aa683f8e4c59bd69c7be2fe86c5470f4c54457871c6640e2d50b6b882747ec567098eb78e62f7cb07cb93a2
42 DIST byteorder-1.4.2.crate 22148 BLAKE2B 4fd246d80ec9e0abf41a0779668d8b383098206eacbf7e16ab94a4aac39858471742934df41e20084f976a738154a97f642bebe51cb871afb2a50ff2cbdbf943 SHA512 f6d2bdc3fb456b3f7a99358a987bb593be027b47b06b896938a30a88d36459ec4d28be166ff8fea9b1ea468d95ad387488cc6aa8f07d0723d6a2a7d43e3617e8
43 DIST cache-padded-1.1.1.crate 8798 BLAKE2B 3f2b16f0fefcc5acf692684329e38ff59492d4c299413d25e1634ab27a59512b7453cad28b26f34f2b66db3d3c0b4b26f41df042305b7db2b8ca79d36704e8a4 SHA512 72c36ef2f66a097cf2fcbc06b82fa3d5451ecf2de1ee1513fbeb34c6752436109f9e453bec3aab7e1f89723c24f7c230cf4bff6caa09855402c8f92c1ccf49b5
44 @@ -39,6 +40,7 @@ DIST core-foundation-sys-0.8.2.crate 17461 BLAKE2B bafa6f6af67f55b34c20e50093a54
45 DIST crc32fast-1.2.1.crate 38172 BLAKE2B 80801a345f4c5ed8a5fd335bbf672eac1733a1c2b333dc8a8e0254338148ce7b34402201a8d2d7434dd1b057f33d99d3a8f02610ea50b54115d80bb8da28b2b0 SHA512 4c04236bb15a5c63b712c62652777917e947823abb20a0d0b372c850ec1c8695faa414e8de73904f1f1a296d7b00a6206cde8da404cf4cdaa2e8408e64b62b5e
46 DIST crossbeam-channel-0.5.0.crate 86811 BLAKE2B 9af4384f2b74d202971f1967887cfd0e71ddba9a6456ffbdfc80bf192d527f61242239d2eb6a0d9dcbe47be22eb414736976e6b1840c021610d96a3bf03c3d18 SHA512 838b433d48b84f1fea020a1d1324e366e6cdae30ef07396140f195afc45b8f705de6347d949b68ce1ed0708fe533ffaa2cfdedc9d2e6288a7325c188ccde9aa2
47 DIST crossbeam-deque-0.8.0.crate 20756 BLAKE2B 6bb602547cb0ca65552a9b981502221f1d3570422d22c867f654ba677e5c95aa5f81ed0022a498d3408c3f69291e1805b49fcfbfaff0d9a6075b75be3bf926ea SHA512 4efa73dcb9ef40b841039d24ffaf9bd7c63f8c0233bba1e0728fd5558702b4ef0af117543834c527335e99384d3c80d56293e891c9d94440f51f454b1b90c399
48 +DIST crossbeam-deque-0.8.1.crate 20852 BLAKE2B 0e7a2616b82c5e501c0f74935adfea3ee09db5475408be83db8f1b6faab4cd5509de2e029bdf6df90435e474ef91f3fc8d482ce3a72966b2a3bec5967666bdc4 SHA512 44a4fe1d4ab7457e2b0950be787b76b15e1bb0b1c108d032381ce3fe99bf7bf76f3d1718085660083d813e2639e66fdd3635d9186e85a9eb7267063b117eaca4
49 DIST crossbeam-epoch-0.9.1.crate 39561 BLAKE2B dedbd19d8aba2c19b844a10323ab488f0dffd5a8ad041cd715a9b1d6d14da343c0c680f6756736501ae420846a5d19bf5aa7bc7142daa39fee901e97f28bb557 SHA512 63d03e71013f7ffbc7b7a8ec5fe478323e7cf679bd126f03980c5e0790b57f5c48ce0ddb5e9c7ece31bd7380a944c1a1d462a9a1bf0126f9851e549739d8afc4
50 DIST crossbeam-utils-0.8.1.crate 35914 BLAKE2B 8d8e7e2df01f061d3596127dd62c1d5316540fbdb34e6b88badff8968a408b2bdbd0f86a32531f4e276b6d40a89c4834cd8e9991288a0bb8cc27d99ba2f7b978 SHA512 c9f3a513fd139dab3c8091366cd6d378ef8a4d00eb43a6c26d107361fea470a5ab180950a1204c1a8881c2ed1106500327d598ccb09c79d0eba2db11299aa286
51 DIST crossterm-0.18.2.crate 108404 BLAKE2B ba276975b3440f4d976c4f66aca2f46f2b8cc4715610e4fc6d3e1de2c98570639b68e4464393fbcb575091e3e8bc3af2ce567775b31a1bb9532cd8a42ef8c15a SHA512 21673eb1efa4b353b48c4d2e4780505fb1deb5ab5767787acf5f7133ef45e83176ad8d020804052e6b283135e72e1fa623b8e37417f805102a39d98cd72a4f18
52 @@ -119,6 +121,7 @@ DIST predicates-tree-1.0.0.crate 6251 BLAKE2B 00da28f7de9a7abb386c6a4425d8a2285d
53 DIST proc-macro-hack-0.5.19.crate 15556 BLAKE2B 98c22fc3e5f5fa8b6f44d15de42b6ffcc82ba3f98a07ffa48bcbc5d3abcfca6af136c5d0d8c7f1ca34261ed8f8c9c17a394231f97a4c342c81aa7f8b9e74b203 SHA512 9e4cbec41056438287f5b23086264c86e2f0cdc193064006556736377b2954229de13a585149b9995002c9aee3334ee2a80ae4afdcc96cabe7ed2bf718476952
54 DIST proc-macro-nested-0.1.6.crate 6498 BLAKE2B 6225a30c1668ac20c3c9ded7633458ab7079bd126aae538762547b112012050e9aae22389e2a18cc14696212a092a9985bc72538d4ca4d37ca0faf34a68c3833 SHA512 ed89e9bfc30e8d7a9be742a02e8f269bcedcf511d9e1487866f198b4410a2802ab576171b844ed15fa2848689247afcd208016555442dc24fef7609400e9c38f
55 DIST proc-macro2-1.0.27.crate 38625 BLAKE2B a55e2404e3c7444c6da8aca6c0e7702b865ec56cfd2c20fec319e737fc83b00bbf505c15dadaa8740d5a6d07c089ed4854a173049b1be9872bba132ae7cbc8db SHA512 3227bcaa726e88bfdb1b4d1243a4eb216ad2394a7a3b4b258de342ac76a1ab1a39a07f28f3490e42e2c2034176bf0d84b1c1fcadba2444c0abcc5878b02f93a4
56 +DIST procfs-0.10.1.crate 99288 BLAKE2B 625739fcb8cb0be3b62ae33ebf0a60236ab5872c15420eda331565a82a59fa69d7881da70f047ea9359feab66aa827d6ab8bb01251ccb9615c2a4bebc315d57a SHA512 21803f9bcf9e2ddb19876eeaa1c4cd0d52b1e8ba88cb47c63054a34c8f59266f5221ba72eef6672c0db3fd968523051cf49477220a83e542e8c9ebdb3cee6628
57 DIST procfs-0.9.1.crate 95051 BLAKE2B 62ed9f2ade0af58f6cc765da0bbb8540e8a1325f7532dca522accdcfd9a6a3b1b05321770114baf7092f16d38a1f77eabd43d9cd42c8bfdfaacbc25387fe2ff3 SHA512 9946c82b85dcaa53b0f0d98e48fe764b1f196f850eef29ac8abd1f7732c3200fbcf40b616186da43eef7ad8acdb288f5350a0ff176ceb338135f3d2ce38cbbbb
58 DIST quote-1.0.7.crate 25170 BLAKE2B 9597c94ac365bb6e9d632738a88ece2da7818cb9f3fa0e755324e693eb513c76347032737025375a486319caad13c22ae13bcb257703eacdf2fdc755cbac0de2 SHA512 b7cb576c07419854f71072a88e4216f50d78196703d3d8a1068dfd0f2ccb1e417c3a865ec3be613b46e74e46654f64378f527800701f74d50352cb766a885953
59 DIST rayon-1.5.0.crate 158037 BLAKE2B 6cb7f696e9c04d3aa6c3bf9c95690c2e259267024ac9701da5cd85c7d39b900a7e9e423e5b7602e108587a34c2519642ce1456dfd82fb13328ed3aba7516b569 SHA512 be15cbc7ad0fadb55e5640c78aa2eeac282872be88c5402338caad0a7ea604d2b8477648dcf7e453e22fbcdfefa915aa4bdbfa75e3d4f7a993fd8d85ed68395a
60 @@ -137,6 +140,7 @@ DIST signal-hook-0.1.16.crate 27183 BLAKE2B e275b3516c8e4dfb5f61f8d85c255237e152
61 DIST signal-hook-registry-1.2.2.crate 18127 BLAKE2B a47342d3ad3539e69a0449d6a8e526d94b858f2ca7c0ce03c52c05d095ffbaa05b803c0c585cabfef498244c647584b102d98f2bbb2da072ea5abf2fbd315657 SHA512 1d595cd19fabbb687262a4892449011ea2f8edf2d295d7a37ab05b252116271ae9c9639c336a66be94ffc82b12bc6a2aca0db2b6f31a11bc7428b39c8ae1efbd
62 DIST slab-0.4.2.crate 10136 BLAKE2B e30cad459bbbb69c4b56a573c47f4188714e0da298d87015c35a86c9315dc2d4308f27d7758846069b0cf94c93f10c44b0f8895427cdf1c93ae20adbb21b5977 SHA512 f9fd70d0cc5180393cebbe87fe984de0c103db1c2c2648fb7a0ee22cdabf37a7338fd511538f00e9a5564365cce2879afe19bf77c435870197bd6cafef5d6661
63 DIST smallvec-1.5.1.crate 26270 BLAKE2B 6275cd8f3e107f19e6badfc357d860d6c4832c3063491e4ed552483f6b46cad52d4de914f59bd9afa001d8a62a93580d6927dc5927ce62aab67e14ba9894d4c4 SHA512 e9b2e4c00ae8fb3bee01337dcbed586e72e922fbfbb69e7c79f3a6c9933495c56b1834797ea2a08e42bcf9cfa9c0842c414c2fcd68817e2b0702b2908b033842
64 +DIST smallvec-1.6.1.crate 26444 BLAKE2B ca6c50a63acdd93a2131654d99e50545a6e2d08eb3e2bd57d4a8ee073d90c08195ee442745a8d62a68179ce7bb8e229b7ff8c6fcf46372a9844bc9280b7c85cb SHA512 9e6061c8211a4485ab54eb541adf40748e1fc3fdfab0849e38e5fd34fc6cc69ae78bd065b788692385a6b8157b031c2fe373900e13d3e56e94fc08d574edaaad
65 DIST smol-1.2.5.crate 43577 BLAKE2B 6392f08d9c4559c4f2a7fbac79b342cc58e7835a274b045490e43f325ae53e81ad20ec651a53e479f0ff920d8a4af79be431abf6f6b45789a79193b5b999c2a0 SHA512 68ebf8e943a2b12452f487d15520fdc49a102467ec9d7c25aee7c275f1207db48e78ef994c86da57562abcecce3c337ffa9fe8104f5c2a9c3a5c8cb8f9d319f5
66 DIST socket2-0.3.17.crate 49764 BLAKE2B 406e34641e72b6d639f1af8503e04dbc122b87f3401dcab7fe99ac65d89120e1f804ca3dfe505e659ef8c5d738ff572744d28bb7132cd2fe98f5429f634e1d4f SHA512 148c3d9e829dab8d99d28fc96981dbebf2889f94e73f428bc885a04aa6889ed9432cb458ad7fc7b489128e88efa091b6170a00813d78886a46479c841fb04534
67 DIST strsim-0.8.0.crate 9309 BLAKE2B 40a8be506c43ee1ffe006ddc7dee98c3d418bdd205d57b78f5d1e4c9312feb57e1eaf952e02d92d4e0932db240c6fba45beb06ea8c4fc6de1cf1faa8b6a3a939 SHA512 1d55a8d946cd55f5f37d06aea536549ded95739fa58c0f2da285a0041154c181f663682bdcac643aa198b3e762d694a04f058db985c62ebe22b5c16327ba6d34
68
69 diff --git a/sys-process/bottom/bottom-0.6.4.ebuild b/sys-process/bottom/bottom-0.6.4.ebuild
70 new file mode 100644
71 index 00000000000..12d74fde94f
72 --- /dev/null
73 +++ b/sys-process/bottom/bottom-0.6.4.ebuild
74 @@ -0,0 +1,225 @@
75 +# Copyright 2020-2021 Gentoo Authors
76 +# Distributed under the terms of the GNU General Public License v2
77 +
78 +EAPI=8
79 +
80 +CRATES="
81 + addr2line-0.15.1
82 + adler-0.2.3
83 + aho-corasick-0.7.18
84 + ansi_term-0.11.0
85 + anyhow-1.0.40
86 + assert_cmd-1.0.3
87 + async-channel-1.5.1
88 + async-executor-1.4.0
89 + async-fs-1.5.0
90 + async-io-1.3.1
91 + async-lock-2.3.0
92 + async-net-1.5.0
93 + async-process-1.0.1
94 + async-task-4.0.3
95 + atomic-waker-1.0.0
96 + atty-0.2.14
97 + autocfg-1.0.1
98 + backtrace-0.3.59
99 + battery-0.7.8
100 + bitflags-1.2.1
101 + blocking-1.0.2
102 + bottom-0.6.4
103 + bstr-0.2.15
104 + byteorder-1.4.2
105 + cache-padded-1.1.1
106 + cargo-husky-1.5.0
107 + cassowary-0.3.0
108 + cc-1.0.67
109 + cfg-if-0.1.10
110 + cfg-if-1.0.0
111 + chrono-0.4.19
112 + clap-2.33.3
113 + concurrent-queue-1.2.2
114 + const_fn-0.4.4
115 + core-foundation-0.7.0
116 + core-foundation-0.9.1
117 + core-foundation-sys-0.7.0
118 + core-foundation-sys-0.8.2
119 + crc32fast-1.2.1
120 + crossbeam-channel-0.5.0
121 + crossbeam-deque-0.8.1
122 + crossbeam-epoch-0.9.1
123 + crossbeam-utils-0.8.1
124 + crossterm-0.18.2
125 + crossterm_winapi-0.6.2
126 + ctrlc-3.1.9
127 + difference-2.0.0
128 + dirs-3.0.2
129 + dirs-sys-0.3.6
130 + doc-comment-0.3.3
131 + either-1.6.1
132 + event-listener-2.5.1
133 + fastrand-1.4.0
134 + fern-0.6.0
135 + flate2-1.0.20
136 + float-cmp-0.8.0
137 + futures-0.3.14
138 + futures-channel-0.3.14
139 + futures-core-0.3.14
140 + futures-executor-0.3.14
141 + futures-io-0.3.14
142 + futures-lite-1.11.2
143 + futures-macro-0.3.14
144 + futures-sink-0.3.14
145 + futures-task-0.3.14
146 + futures-timer-3.0.2
147 + futures-util-0.3.14
148 + fxhash-0.2.1
149 + getrandom-0.2.3
150 + gimli-0.24.0
151 + glob-0.3.0
152 + hashbrown-0.9.1
153 + heim-0.1.0-rc.1
154 + heim-common-0.1.0-rc.1
155 + heim-cpu-0.1.0-rc.1
156 + heim-disk-0.1.0-rc.1
157 + heim-memory-0.1.0-rc.1
158 + heim-net-0.1.0-rc.1
159 + heim-runtime-0.1.0-rc.1
160 + heim-sensors-0.1.0-rc.1
161 + hermit-abi-0.1.17
162 + hex-0.4.3
163 + indexmap-1.6.2
164 + instant-0.1.9
165 + itertools-0.10.0
166 + lazy_static-1.4.0
167 + lazycell-1.3.0
168 + libc-0.2.94
169 + lock_api-0.4.2
170 + log-0.4.14
171 + macaddr-1.0.1
172 + mach-0.3.2
173 + memchr-2.4.0
174 + memoffset-0.6.1
175 + miniz_oxide-0.4.3
176 + mio-0.7.6
177 + miow-0.3.6
178 + nb-connect-1.0.2
179 + nix-0.19.1
180 + nix-0.20.0
181 + normalize-line-endings-0.3.0
182 + ntapi-0.3.6
183 + num-integer-0.1.44
184 + num-rational-0.3.2
185 + num-traits-0.2.14
186 + num_cpus-1.13.0
187 + object-0.24.0
188 + once_cell-1.5.2
189 + parking-2.0.0
190 + parking_lot-0.11.1
191 + parking_lot_core-0.8.1
192 + pin-project-lite-0.1.11
193 + pin-project-lite-0.2.4
194 + pin-utils-0.1.0
195 + polling-2.0.2
196 + predicates-1.0.8
197 + predicates-core-1.0.0
198 + predicates-tree-1.0.0
199 + proc-macro-hack-0.5.19
200 + proc-macro-nested-0.1.6
201 + proc-macro2-1.0.27
202 + procfs-0.10.1
203 + quote-1.0.7
204 + rayon-1.5.0
205 + rayon-core-1.9.0
206 + redox_syscall-0.1.57
207 + redox_syscall-0.2.8
208 + redox_users-0.4.0
209 + regex-1.5.4
210 + regex-automata-0.1.9
211 + regex-syntax-0.6.25
212 + rustc-demangle-0.1.18
213 + scopeguard-1.1.0
214 + serde-1.0.125
215 + serde_derive-1.0.125
216 + signal-hook-0.1.16
217 + signal-hook-registry-1.2.2
218 + slab-0.4.2
219 + smallvec-1.6.1
220 + smol-1.2.5
221 + socket2-0.3.17
222 + strsim-0.8.0
223 + syn-1.0.72
224 + sysinfo-0.18.2
225 + textwrap-0.11.0
226 + thiserror-1.0.24
227 + thiserror-impl-1.0.24
228 + time-0.1.44
229 + toml-0.5.8
230 + treeline-0.1.0
231 + tui-0.14.0
232 + typed-builder-0.9.0
233 + typenum-1.12.0
234 + unicode-segmentation-1.7.1
235 + unicode-width-0.1.8
236 + unicode-xid-0.2.1
237 + uom-0.30.0
238 + vec-arena-1.0.0
239 + vec_map-0.8.2
240 + wait-timeout-0.2.0
241 + waker-fn-1.1.0
242 + wasi-0.10.0+wasi-snapshot-preview1
243 + wepoll-sys-3.0.1
244 + widestring-0.4.3
245 + winapi-0.3.9
246 + winapi-i686-pc-windows-gnu-0.4.0
247 + winapi-x86_64-pc-windows-gnu-0.4.0
248 +"
249 +
250 +inherit bash-completion-r1 cargo
251 +
252 +DESCRIPTION="A graphical process/system monitor with a customizable interface"
253 +HOMEPAGE="https://github.com/ClementTsang/bottom"
254 +SRC_URI="$(cargo_crate_uris)"
255 +
256 +LICENSE="Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD BSD-2 MIT MPL-2.0 Unlicense ZLIB"
257 +SLOT="0"
258 +KEYWORDS="~amd64 ~arm64 ~ppc64"
259 +IUSE="+battery"
260 +
261 +PATCHES=(
262 + # See https://github.com/ClementTsang/bottom/pull/580
263 + "${FILESDIR}"/${PN}-0.6.4-RUSTSEC-2021-0003.patch
264 + # See https://github.com/ClementTsang/bottom/pull/580
265 + "${FILESDIR}"/${PN}-0.6.4-RUSTSEC-2021-0093.patch
266 + # See https://github.com/ClementTsang/bottom/pull/582
267 + "${FILESDIR}"/${PN}-0.6.4-feature-gate-test_default_battery_movement.patch
268 +)
269 +# Rust packages ignore CFLAGS and LDFLAGS so let's silence the QA warnings
270 +QA_FLAGS_IGNORED="usr/bin/btm"
271 +
272 +src_configure() {
273 + myfeatures=(
274 + $(usev battery)
275 + )
276 +
277 + # https://github.com/ClementTsang/bottom/blob/bacaca5548c2b23d261ef961ee6584b609529567/Cargo.toml#L63
278 + # fern and log features are for debugging only, so disable default features
279 + cargo_src_configure $(usev !debug --no-default-features)
280 +}
281 +
282 +src_install() {
283 + cargo_src_install
284 +
285 + # Find generated shell completion files. btm.bash can be present in multiple dirs if we build
286 + # additional features, so grab the first match only.
287 + local BUILD_DIR="$(dirname $(find target -name btm.bash -print -quit))"
288 +
289 + newbashcomp "${BUILD_DIR}"/btm.bash btm
290 +
291 + insinto /usr/share/fish/vendor_completions.d
292 + doins "${BUILD_DIR}"/btm.fish
293 +
294 + insinto /usr/share/zsh/site-functions
295 + doins "${BUILD_DIR}"/_btm
296 +
297 + local DOCS=( CHANGELOG.md README.md )
298 + einstalldocs
299 +}
300
301 diff --git a/sys-process/bottom/files/bottom-0.6.4-RUSTSEC-2021-0003.patch b/sys-process/bottom/files/bottom-0.6.4-RUSTSEC-2021-0003.patch
302 new file mode 100644
303 index 00000000000..a68f48fd1c0
304 --- /dev/null
305 +++ b/sys-process/bottom/files/bottom-0.6.4-RUSTSEC-2021-0003.patch
306 @@ -0,0 +1,31 @@
307 +From 72e97a2eafa50d85209018005fbc1ff4774ef524 Mon Sep 17 00:00:00 2001
308 +From: Randy Barlow <randy@×××××××××××××××××.com>
309 +Date: Sat, 18 Sep 2021 11:53:44 -0400
310 +Subject: [PATCH 1/2] RUSTSEC-2021-0003: Update smallvec
311 +
312 +https://rustsec.org/advisories/RUSTSEC-2021-0003
313 +
314 +Signed-off-by: Randy Barlow <randy@×××××××××××××××××.com>
315 +---
316 + Cargo.lock | 4 ++--
317 + 1 file changed, 2 insertions(+), 2 deletions(-)
318 +
319 +diff --git a/Cargo.lock b/Cargo.lock
320 +index 3bf6062..db1bd16 100644
321 +--- a/Cargo.lock
322 ++++ b/Cargo.lock
323 +@@ -1359,9 +1359,9 @@ checksum = "c111b5bd5695e56cffe5129854aa230b39c93a305372fdbb2668ca2394eea9f8"
324 +
325 + [[package]]
326 + name = "smallvec"
327 +-version = "1.5.1"
328 ++version = "1.6.1"
329 + source = "registry+https://github.com/rust-lang/crates.io-index"
330 +-checksum = "ae524f056d7d770e174287294f562e95044c68e88dec909a00d2094805db9d75"
331 ++checksum = "fe0f37c9e8f3c5a4a66ad655a93c74daac4ad00c441533bf5c6e7990bb42604e"
332 +
333 + [[package]]
334 + name = "smol"
335 +--
336 +2.31.1
337 +
338
339 diff --git a/sys-process/bottom/files/bottom-0.6.4-RUSTSEC-2021-0093.patch b/sys-process/bottom/files/bottom-0.6.4-RUSTSEC-2021-0093.patch
340 new file mode 100644
341 index 00000000000..34f96e11848
342 --- /dev/null
343 +++ b/sys-process/bottom/files/bottom-0.6.4-RUSTSEC-2021-0093.patch
344 @@ -0,0 +1,31 @@
345 +From 7600519682103b86cd43ccddac3bde715ccf217b Mon Sep 17 00:00:00 2001
346 +From: Randy Barlow <randy@×××××××××××××××××.com>
347 +Date: Sat, 18 Sep 2021 11:53:04 -0400
348 +Subject: [PATCH 1/3] RUSTSEC-2021-0093: Update crossbeam-deque
349 +
350 +https://rustsec.org/advisories/RUSTSEC-2021-0093
351 +
352 +Signed-off-by: Randy Barlow <randy@×××××××××××××××××.com>
353 +---
354 + Cargo.lock | 4 ++--
355 + 1 file changed, 2 insertions(+), 2 deletions(-)
356 +
357 +diff --git a/Cargo.lock b/Cargo.lock
358 +index 38df74e..3bf6062 100644
359 +--- a/Cargo.lock
360 ++++ b/Cargo.lock
361 +@@ -418,9 +418,9 @@ dependencies = [
362 +
363 + [[package]]
364 + name = "crossbeam-deque"
365 +-version = "0.8.0"
366 ++version = "0.8.1"
367 + source = "registry+https://github.com/rust-lang/crates.io-index"
368 +-checksum = "94af6efb46fef72616855b036a624cf27ba656ffc9be1b9a3c931cfc7749a9a9"
369 ++checksum = "6455c0ca19f0d2fbf751b908d5c55c1f5cbc65e03c4225427254b46890bdde1e"
370 + dependencies = [
371 + "cfg-if 1.0.0",
372 + "crossbeam-epoch",
373 +--
374 +2.31.1
375 +
376
377 diff --git a/sys-process/bottom/files/bottom-0.6.4-feature-gate-test_default_battery_movement.patch b/sys-process/bottom/files/bottom-0.6.4-feature-gate-test_default_battery_movement.patch
378 new file mode 100644
379 index 00000000000..374ec718102
380 --- /dev/null
381 +++ b/sys-process/bottom/files/bottom-0.6.4-feature-gate-test_default_battery_movement.patch
382 @@ -0,0 +1,41 @@
383 +From 9acfacb5a5f6feccc3007371876c0b4fce6b3cde Mon Sep 17 00:00:00 2001
384 +From: Randy Barlow <randy@×××××××××××××××××.com>
385 +Date: Sat, 18 Sep 2021 13:26:20 -0400
386 +Subject: [PATCH] Feature gate test_default_battery_movement
387 +
388 +test_default_battery_movement() is now feature gated on the
389 +battery feature.
390 +
391 +fixes #581
392 +
393 +Signed-off-by: Randy Barlow <randy@×××××××××××××××××.com>
394 +---
395 + tests/layout_management_tests.rs | 5 ++++-
396 + 1 file changed, 4 insertions(+), 1 deletion(-)
397 +
398 +diff --git a/tests/layout_management_tests.rs b/tests/layout_management_tests.rs
399 +index 4b4f7a9..3c341d0 100644
400 +--- a/tests/layout_management_tests.rs
401 ++++ b/tests/layout_management_tests.rs
402 +@@ -1,7 +1,9 @@
403 + //! Mocks layout management, so we can check if we broke anything.
404 +
405 + use bottom::app::layout_manager::{BottomLayout, BottomWidgetType};
406 +-use bottom::constants::{DEFAULT_BATTERY_LAYOUT, DEFAULT_LAYOUT, DEFAULT_WIDGET_ID};
407 ++#[cfg(feature = "battery")]
408 ++use bottom::constants::DEFAULT_BATTERY_LAYOUT;
409 ++use bottom::constants::{DEFAULT_LAYOUT, DEFAULT_WIDGET_ID};
410 + use bottom::options::{layout_options::Row, Config};
411 + use bottom::utils::error;
412 +
413 +@@ -126,6 +128,7 @@ fn test_default_movement() {
414 + );
415 + }
416 +
417 ++#[cfg(feature = "battery")]
418 + #[test]
419 + /// Tests battery movement in the default setup.
420 + fn test_default_battery_movement() {
421 +--
422 +2.31.1
423 +
424
425 diff --git a/sys-process/bottom/metadata.xml b/sys-process/bottom/metadata.xml
426 index a5d763762ac..cc41a7f280a 100644
427 --- a/sys-process/bottom/metadata.xml
428 +++ b/sys-process/bottom/metadata.xml
429 @@ -16,4 +16,7 @@
430 <upstream>
431 <remote-id type="github">ClementTsang/bottom</remote-id>
432 </upstream>
433 + <use>
434 + <flag name='battery'>Include support for laptop battery information.</flag>
435 + </use>
436 </pkgmetadata>