1 |
commit: 2161b3a104c9a5664131b9297766db0538e7464e |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Nov 27 16:16:14 2019 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Nov 27 16:16:24 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2161b3a1 |
7 |
|
8 |
sys-fs/lvm2: Removed old |
9 |
|
10 |
Package-Manager: Portage-2.3.80, Repoman-2.3.19 |
11 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
12 |
|
13 |
sys-fs/lvm2/Manifest | 3 - |
14 |
sys-fs/lvm2/files/lvm.rc-2.02.116-r6 | 132 ---------- |
15 |
sys-fs/lvm2/files/lvm.rc-2.02.172 | 149 ----------- |
16 |
sys-fs/lvm2/files/lvm.rc-2.02.183 | 152 ----------- |
17 |
.../lvm2-2.02.129-static-pkgconfig-libs.patch | 102 -------- |
18 |
.../files/lvm2-2.02.130-pthread-pkgconfig.patch | 32 --- |
19 |
.../lvm2-2.02.139-dynamic-static-ldflags.patch | 63 ----- |
20 |
sys-fs/lvm2/files/lvm2-2.02.145-mkdev.patch | 127 ---------- |
21 |
sys-fs/lvm2/lvm2-2.02.145-r2.ebuild | 254 ------------------- |
22 |
sys-fs/lvm2/lvm2-2.02.183.ebuild | 259 ------------------- |
23 |
sys-fs/lvm2/lvm2-2.02.185-r1.ebuild | 278 --------------------- |
24 |
11 files changed, 1551 deletions(-) |
25 |
|
26 |
diff --git a/sys-fs/lvm2/Manifest b/sys-fs/lvm2/Manifest |
27 |
index 9b72fb0647e..701f9bc11eb 100644 |
28 |
--- a/sys-fs/lvm2/Manifest |
29 |
+++ b/sys-fs/lvm2/Manifest |
30 |
@@ -1,7 +1,4 @@ |
31 |
DIST LVM2.2.02.116.tgz 1538340 BLAKE2B 718261b60626f2eca5ba13011646bf551523ed8e59aaceceb9097221c000268b7533ac43151ff1d9229911d87e764fbdb29ffa1d305f2aae99220a68e301559a SHA512 992541339637d597257850b4ff7f5348fb7cdcccf806ac8d986a3be1ad1edc5f6bfaedeed5128690c541d1a485cdc75742e90a766363c39867901003518fb84d |
32 |
-DIST LVM2.2.02.145.tgz 1986370 BLAKE2B 0c9e5efae17f26ff86152cecbf0b11a74e85007b2fa9491f44dec03ac8c11375bacf6685213b4be19037c8fbf70e13549516716ecf8fa262919a44625e6aab34 SHA512 84e28b3efc940837ea9da70fce620744aea0945ba29383b76ad7bcd4b5259b897c714162a8e8b7cfe26ae736a3ad2eca633a3e0df4d6280a32b28bd4cf472d27 |
33 |
-DIST LVM2.2.02.183.tgz 2380574 BLAKE2B b1fe71b6cdb8ee20dd53d0ad3399c553487baafa12657ec81a794c84ad161988afdb8693ac247877a2645d693a0740c74c8b991047ed2ba4adc9ec75f1c261a9 SHA512 3947523c6b0862ada40677ed171ed0cf95e070119e377296fc5ccb153e9c4212d34c0b16a887dbd68ccf265525345dabfed2aa59fb3604555429a7e2ecfff4d7 |
34 |
DIST LVM2.2.02.184.tgz 2383698 BLAKE2B b6e308d76d541b9461dfcc6e82db256a175ccdabfae9c9d57d84eabd0d5ea50e3e09954b34741903e027412c2c26f72a5005fe934261576337a810738139deb8 SHA512 9db74f675e7c58f663a39afb79b6f33a33ad2cfbda63e9783ef5027f33977b4a1262a2e6754aa67c586eed083ee119a2e837c32a7746dcc53f13877c9d65c390 |
35 |
-DIST LVM2.2.02.185.tgz 2386328 BLAKE2B d2e31de3eedd7518ea2d239cb9b36b38e351d7fc070097a1fc4e7934e3636195da3247fba57d684bb0b31b7f3dbdfe29161bd121b2962b2c35c8c9d7914b4506 SHA512 f421505551aec2a09bc862f2fcc1ee825bc4d94c53a01d13265631e99308d60fbca40112be5bc7824cce3ef223c0775d2f6c345f6a3f227229a0566c903841bf |
36 |
DIST LVM2.2.02.186.tgz 2389759 BLAKE2B e094c0135d455386ea5789208899d4dbdd5e78bebf52e49ab5587f881fbc2b94c6accecacf1b4ed182b0c87046402c00a47a1b724795a94fe3ec998b580a77ae SHA512 06a1c00142ee41d8a576a5e06a5beae70baced3020e753ce3b612355cc4d9e33be4acf58569d49436c4ee1118d288d884c7301b7d886074eaf9f2fa6b0248c03 |
37 |
DIST LVM2.2.03.06.tgz 2453672 BLAKE2B 3d39bef4915ddb15c51011c131afcd2735723fc3e880e01fb863d82ccac0c34b7d71f6a3a126c6bb53fbf2dd923ccf0443e4e02a492fc0660ee1ef168dbb0e79 SHA512 2a01d34fa58348b0fac3d40a9ce736aa499af18c7e9bf96a3eeefc6a2de6a73460c83b6c67be20e9bd440998cbf847bc3e7a028385f38d715e221a5a857d391f |
38 |
|
39 |
diff --git a/sys-fs/lvm2/files/lvm.rc-2.02.116-r6 b/sys-fs/lvm2/files/lvm.rc-2.02.116-r6 |
40 |
deleted file mode 100644 |
41 |
index cf430c6654d..00000000000 |
42 |
--- a/sys-fs/lvm2/files/lvm.rc-2.02.116-r6 |
43 |
+++ /dev/null |
44 |
@@ -1,132 +0,0 @@ |
45 |
-#!/sbin/openrc-run |
46 |
-# Copyright 1999-2019 Gentoo Authors |
47 |
-# Distributed under the terms of the GNU General Public License v2 |
48 |
- |
49 |
-_get_lvm_path() { |
50 |
- local lvm_path= |
51 |
- for lvm_path in /bin/lvm /sbin/lvm ; do |
52 |
- [ -x "$lvm_path" ] && break |
53 |
- done |
54 |
- echo "${lvm_path}" |
55 |
-} |
56 |
- |
57 |
-_need_lvmetad() |
58 |
-{ |
59 |
- local lvm_path="$(_get_lvm_path)" |
60 |
- [ ! -x "${lvm_path}" ] && return 1 |
61 |
- ${lvm_path} dumpconfig global 2>/dev/null | grep -q 'use_lvmetad=1' |
62 |
-} |
63 |
- |
64 |
-depend() { |
65 |
- before checkfs fsck |
66 |
- after modules device-mapper |
67 |
- # We may use lvmetad based on the configuration. If we added lvmetad |
68 |
- # support while lvm2 is running then we aren't dependent on it. For the |
69 |
- # more common case, if its disabled in the config we aren't dependent |
70 |
- # on it. |
71 |
- config /etc/lvm/lvm.conf |
72 |
- local _need= |
73 |
- if service_started; then |
74 |
- _need=$(service_get_value need) |
75 |
- else |
76 |
- if _need_lvmetad; then |
77 |
- _need="${_need} lvmetad" |
78 |
- fi |
79 |
- fi |
80 |
- need sysfs ${_need} |
81 |
-} |
82 |
- |
83 |
-config='global { locking_dir = "/run/lock/lvm" }' |
84 |
- |
85 |
-dm_in_proc() { |
86 |
- local retval=0 |
87 |
- for x in devices misc ; do |
88 |
- grep -qs 'device-mapper' /proc/${x} |
89 |
- retval=$((${retval} + $?)) |
90 |
- done |
91 |
- return ${retval} |
92 |
-} |
93 |
- |
94 |
-start() { |
95 |
- # LVM support for /usr, /home, /opt .... |
96 |
- # This should be done *before* checking local |
97 |
- # volumes, or they never get checked. |
98 |
- |
99 |
- # NOTE: Add needed modules for LVM or RAID, etc |
100 |
- # to /etc/modules.autoload if needed |
101 |
- lvm_path="$(_get_lvm_path)" |
102 |
- for lvm_path in /bin/lvm /sbin/lvm ; do |
103 |
- [ -x "$lvm_path" ] && break |
104 |
- done |
105 |
- if [ ! -x "$lvm_path" ]; then |
106 |
- eerror "Cannot find lvm binary in /sbin or /bin!" |
107 |
- return 1 |
108 |
- fi |
109 |
- if [ -z "${CDBOOT}" ] ; then |
110 |
- if [ -e /proc/modules ] && ! dm_in_proc ; then |
111 |
- modprobe dm-mod 2>/dev/null |
112 |
- fi |
113 |
- if [ -d /proc/lvm ] || dm_in_proc ; then |
114 |
- ebegin "Setting up the Logical Volume Manager" |
115 |
- #still echo stderr for debugging |
116 |
- lvm_commands="#! ${lvm_path} --config '${config}'\n" |
117 |
- # Extra PV find pass because some devices might not have been available until very recently |
118 |
- lvm_commands="${lvm_commands}pvscan\n" |
119 |
- # Now make the nodes |
120 |
- lvm_commands="${lvm_commands}vgscan --mknodes\n" |
121 |
- # And turn them on! |
122 |
- lvm_commands="${lvm_commands}vgchange --sysinit -a ly\n" |
123 |
- # Order of this is important, have to work around dash and LVM readline |
124 |
- printf "%b\n" "${lvm_commands}" | $lvm_path /proc/self/fd/0 --config "${config}" >/dev/null |
125 |
- eend $? "Failed to setup the LVM" |
126 |
- fi |
127 |
- fi |
128 |
-} |
129 |
- |
130 |
-start_post() |
131 |
-{ |
132 |
- # Save if we needed lvmetad |
133 |
- if _need_lvmetad; then |
134 |
- service_set_value need lvmetad |
135 |
- fi |
136 |
-} |
137 |
- |
138 |
-stop() { |
139 |
- for lvm_path in /bin/lvm /sbin/lvm ; do |
140 |
- [ -x "$lvm_path" ] && break |
141 |
- done |
142 |
- if [ ! -x "$lvm_path" ]; then |
143 |
- eerror "Cannot find lvm binary in /sbin or /bin!" |
144 |
- return 1 |
145 |
- fi |
146 |
-# Stop LVM2 |
147 |
-if [ -x /sbin/vgs ] && \ |
148 |
- [ -x /sbin/vgchange ] && \ |
149 |
- [ -x /sbin/lvchange ] && \ |
150 |
- [ -f /etc/lvmtab -o -d /etc/lvm ] && \ |
151 |
- [ -d /proc/lvm -o "`grep device-mapper /proc/misc 2>/dev/null`" ] |
152 |
-then |
153 |
- einfo "Shutting down the Logical Volume Manager" |
154 |
- |
155 |
- VGS=$($lvm_path vgs --config "${config}" -o vg_name --noheadings --nosuffix --rows 2> /dev/null) |
156 |
- |
157 |
- if [ "$VGS" ] |
158 |
- then |
159 |
- ebegin " Shutting Down LVs & VGs" |
160 |
- #still echo stderr for debugging |
161 |
- lvm_commands="#! ${lvm_path} --config '${config}'\n" |
162 |
- # Extra PV find pass because some devices might not have been available until very recently |
163 |
- lvm_commands="${lvm_commands}lvchange --sysinit -a ln ${VGS}\n" |
164 |
- # Now make the nodes |
165 |
- lvm_commands="${lvm_commands}vgchange --sysinit -a ln ${VGS}\n" |
166 |
- # Order of this is important, have to work around dash and LVM readline |
167 |
- printf "%b\n" "${lvm_commands}" | $lvm_path /proc/self/fd/0 --config "${config}" >/dev/null |
168 |
- eend $? "Failed (possibly some LVs still needed for /usr or root)" |
169 |
- fi |
170 |
- |
171 |
- einfo "Finished shutting down the Logical Volume Manager" |
172 |
- return 0 |
173 |
-fi |
174 |
-} |
175 |
- |
176 |
-# vim:ts=4 |
177 |
|
178 |
diff --git a/sys-fs/lvm2/files/lvm.rc-2.02.172 b/sys-fs/lvm2/files/lvm.rc-2.02.172 |
179 |
deleted file mode 100644 |
180 |
index 82037b28adf..00000000000 |
181 |
--- a/sys-fs/lvm2/files/lvm.rc-2.02.172 |
182 |
+++ /dev/null |
183 |
@@ -1,149 +0,0 @@ |
184 |
-#!/sbin/openrc-run |
185 |
-# Copyright 1999-2019 Gentoo Authors |
186 |
-# Distributed under the terms of the GNU General Public License v2 |
187 |
- |
188 |
-_get_lvm_path() { |
189 |
- local lvm_path= |
190 |
- for lvm_path in /bin/lvm /sbin/lvm ; do |
191 |
- [ -x "$lvm_path" ] && break |
192 |
- done |
193 |
- echo "${lvm_path}" |
194 |
-} |
195 |
- |
196 |
-_need_lvmetad() |
197 |
-{ |
198 |
- local lvm_path="$(_get_lvm_path)" |
199 |
- [ ! -x "${lvm_path}" ] && return 1 |
200 |
- ${lvm_path} dumpconfig global 2>/dev/null | grep -q 'use_lvmetad=1' |
201 |
-} |
202 |
- |
203 |
-_need_lvmlockd() |
204 |
-{ |
205 |
- local lvm_path="$(_get_lvm_path)" |
206 |
- [ ! -x "${lvm_path}" ] && return 1 |
207 |
- ${lvm_path} dumpconfig global 2>/dev/null | grep -q 'use_lvmlockd=1' |
208 |
-} |
209 |
- |
210 |
-depend() { |
211 |
- before checkfs fsck |
212 |
- after modules device-mapper |
213 |
- # We may use lvmetad based on the configuration. If we added lvmetad |
214 |
- # support while lvm2 is running then we aren't dependent on it. For the |
215 |
- # more common case, if its disabled in the config we aren't dependent |
216 |
- # on it. |
217 |
- config /etc/lvm/lvm.conf |
218 |
- local _need= |
219 |
- if service_started; then |
220 |
- _need=$(service_get_value need) |
221 |
- else |
222 |
- if _need_lvmetad; then |
223 |
- _need="${_need} lvmetad" |
224 |
- fi |
225 |
- if _need_lvmlockd; then |
226 |
- _need="${_need} lvmlockd" |
227 |
- fi |
228 |
- fi |
229 |
- need sysfs ${_need} |
230 |
-} |
231 |
- |
232 |
-config='global { locking_dir = "/run/lock/lvm" }' |
233 |
- |
234 |
-dm_in_proc() { |
235 |
- local retval=0 |
236 |
- for x in devices misc ; do |
237 |
- grep -qs 'device-mapper' /proc/${x} |
238 |
- retval=$((${retval} + $?)) |
239 |
- done |
240 |
- return ${retval} |
241 |
-} |
242 |
- |
243 |
-start() { |
244 |
- # LVM support for /usr, /home, /opt .... |
245 |
- # This should be done *before* checking local |
246 |
- # volumes, or they never get checked. |
247 |
- |
248 |
- # NOTE: Add needed modules for LVM or RAID, etc |
249 |
- # to /etc/modules.autoload if needed |
250 |
- lvm_path="$(_get_lvm_path)" |
251 |
- for lvm_path in /bin/lvm /sbin/lvm ; do |
252 |
- [ -x "$lvm_path" ] && break |
253 |
- done |
254 |
- if [ ! -x "$lvm_path" ]; then |
255 |
- eerror "Cannot find lvm binary in /sbin or /bin!" |
256 |
- return 1 |
257 |
- fi |
258 |
- if [ -z "${CDBOOT}" ] ; then |
259 |
- if [ -e /proc/modules ] && ! dm_in_proc ; then |
260 |
- modprobe dm-mod 2>/dev/null |
261 |
- fi |
262 |
- if [ -d /proc/lvm ] || dm_in_proc ; then |
263 |
- ebegin "Setting up the Logical Volume Manager" |
264 |
- #still echo stderr for debugging |
265 |
- lvm_commands="#!${lvm_path}\n" |
266 |
- # Extra PV find pass because some devices might not have been available until very recently |
267 |
- lvm_commands="${lvm_commands}pvscan --config '${config}'\n" |
268 |
- # Now make the nodes |
269 |
- lvm_commands="${lvm_commands}vgscan --config '${config}' --mknodes\n" |
270 |
- # And turn them on! |
271 |
- lvm_commands="${lvm_commands}vgchange --config '${config}' --sysinit -a ly\n" |
272 |
- if _need_lvmlockd; then |
273 |
- # Start lockd VGs as required |
274 |
- lvm_commands="${lvm_commands}vgchange --config '${config}' --lock-start --lock-opt auto\n" |
275 |
- fi |
276 |
- # Order of this is important, have to work around dash and LVM readline |
277 |
- printf "%b\n" "${lvm_commands}" | $lvm_path /proc/self/fd/0 >/dev/null |
278 |
- eend $? "Failed to setup the LVM" |
279 |
- fi |
280 |
- fi |
281 |
-} |
282 |
- |
283 |
-start_post() |
284 |
-{ |
285 |
- # Save if we needed lvmetad |
286 |
- if _need_lvmetad; then |
287 |
- service_set_value need lvmetad |
288 |
- fi |
289 |
-} |
290 |
- |
291 |
-stop() { |
292 |
- for lvm_path in /bin/lvm /sbin/lvm ; do |
293 |
- [ -x "$lvm_path" ] && break |
294 |
- done |
295 |
- if [ ! -x "$lvm_path" ]; then |
296 |
- eerror "Cannot find lvm binary in /sbin or /bin!" |
297 |
- return 1 |
298 |
- fi |
299 |
- |
300 |
- # Stop LVM2 |
301 |
- if [ -x /sbin/vgs ] && \ |
302 |
- [ -x /sbin/vgchange ] && \ |
303 |
- [ -x /sbin/lvchange ] && \ |
304 |
- [ -f /etc/lvmtab -o -d /etc/lvm ] && \ |
305 |
- [ -d /proc/lvm -o "`grep device-mapper /proc/misc 2>/dev/null`" ] |
306 |
- then |
307 |
- einfo "Shutting down the Logical Volume Manager" |
308 |
- |
309 |
- VGS=$($lvm_path vgs --config "${config}" -o vg_name --noheadings --nosuffix --rows 2> /dev/null) |
310 |
- |
311 |
- if [ "$VGS" ] |
312 |
- then |
313 |
- local _ending="eend" |
314 |
- [ "$RC_RUNLEVEL" = shutdown ] && _ending="ewend" |
315 |
- ebegin " Shutting Down LVs & VGs" |
316 |
- #still echo stderr for debugging |
317 |
- lvm_commands="#!${lvm_path}\n" |
318 |
- # Extra PV find pass because some devices might not have been available until very recently |
319 |
- lvm_commands="${lvm_commands}lvchange --config '${config}' --sysinit -a ln ${VGS}\n" |
320 |
- # Now make the nodes |
321 |
- lvm_commands="${lvm_commands}vgchange --config '${config}' --sysinit -a ln ${VGS}\n" |
322 |
- # Order of this is important, have to work around dash and LVM readline |
323 |
- printf "%b\n" "${lvm_commands}" | $lvm_path /proc/self/fd/0 --config "${config}" >/dev/null |
324 |
- ${_ending} $? "Failed (possibly some LVs still needed for /usr or root)" |
325 |
- fi |
326 |
- |
327 |
- einfo "Finished shutting down the Logical Volume Manager" |
328 |
- return 0 |
329 |
- fi |
330 |
-} |
331 |
- |
332 |
-# vim:ts=4 |
333 |
|
334 |
diff --git a/sys-fs/lvm2/files/lvm.rc-2.02.183 b/sys-fs/lvm2/files/lvm.rc-2.02.183 |
335 |
deleted file mode 100644 |
336 |
index ce499a6dd21..00000000000 |
337 |
--- a/sys-fs/lvm2/files/lvm.rc-2.02.183 |
338 |
+++ /dev/null |
339 |
@@ -1,152 +0,0 @@ |
340 |
-#!/sbin/openrc-run |
341 |
-# Copyright 1999-2019 Gentoo Authors |
342 |
-# Distributed under the terms of the GNU General Public License v2 |
343 |
- |
344 |
-_get_lvm_path() { |
345 |
- local lvm_path= |
346 |
- for lvm_path in /bin/lvm /sbin/lvm ; do |
347 |
- [ -x "$lvm_path" ] && break |
348 |
- done |
349 |
- echo "${lvm_path}" |
350 |
-} |
351 |
- |
352 |
-_need_lvmetad() |
353 |
-{ |
354 |
- local lvm_path="$(_get_lvm_path)" |
355 |
- [ ! -x "${lvm_path}" ] && return 1 |
356 |
- ${lvm_path} dumpconfig global 2>/dev/null | grep -q 'use_lvmetad=1' |
357 |
-} |
358 |
- |
359 |
-_need_lvmlockd() |
360 |
-{ |
361 |
- local lvm_path="$(_get_lvm_path)" |
362 |
- [ ! -x "${lvm_path}" ] && return 1 |
363 |
- ${lvm_path} dumpconfig global 2>/dev/null | grep -q 'use_lvmlockd=1' |
364 |
-} |
365 |
- |
366 |
-depend() { |
367 |
- before checkfs fsck |
368 |
- after modules device-mapper |
369 |
- # We may use lvmetad based on the configuration. If we added lvmetad |
370 |
- # support while lvm2 is running then we aren't dependent on it. For the |
371 |
- # more common case, if its disabled in the config we aren't dependent |
372 |
- # on it. |
373 |
- config /etc/lvm/lvm.conf |
374 |
- local _need= |
375 |
- if service_started; then |
376 |
- _need=$(service_get_value need) |
377 |
- else |
378 |
- if _need_lvmetad; then |
379 |
- _need="${_need} lvmetad" |
380 |
- fi |
381 |
- if _need_lvmlockd; then |
382 |
- _need="${_need} lvmlockd" |
383 |
- fi |
384 |
- fi |
385 |
- need sysfs udev ${_need} |
386 |
-} |
387 |
- |
388 |
-config='global { locking_dir = "/run/lock/lvm" }' |
389 |
- |
390 |
-dm_in_proc() { |
391 |
- local retval=0 |
392 |
- for x in devices misc ; do |
393 |
- grep -qs 'device-mapper' /proc/${x} |
394 |
- retval=$((${retval} + $?)) |
395 |
- done |
396 |
- return ${retval} |
397 |
-} |
398 |
- |
399 |
-start() { |
400 |
- # LVM support for /usr, /home, /opt .... |
401 |
- # This should be done *before* checking local |
402 |
- # volumes, or they never get checked. |
403 |
- |
404 |
- # NOTE: Add needed modules for LVM or RAID, etc |
405 |
- # to /etc/modules.autoload if needed |
406 |
- lvm_path="$(_get_lvm_path)" |
407 |
- for lvm_path in /bin/lvm /sbin/lvm ; do |
408 |
- [ -x "$lvm_path" ] && break |
409 |
- done |
410 |
- if [ ! -x "$lvm_path" ]; then |
411 |
- eerror "Cannot find lvm binary in /sbin or /bin!" |
412 |
- return 1 |
413 |
- fi |
414 |
- if [ -z "${CDBOOT}" ] ; then |
415 |
- if [ -e /proc/modules ] && ! dm_in_proc ; then |
416 |
- modprobe dm-mod 2>/dev/null |
417 |
- fi |
418 |
- if [ -d /proc/lvm ] || dm_in_proc ; then |
419 |
- ebegin "Setting up the Logical Volume Manager" |
420 |
- #still echo stderr for debugging |
421 |
- lvm_commands="#!${lvm_path}\n" |
422 |
- # Extra PV find pass because some devices might not have been available until very recently |
423 |
- lvm_commands="${lvm_commands}pvscan --config '${config}'\n" |
424 |
- # Now make the nodes |
425 |
- lvm_commands="${lvm_commands}vgscan --config '${config}' --mknodes\n" |
426 |
- # And turn them on! |
427 |
- lvm_commands="${lvm_commands}vgchange --config '${config}' --sysinit -a ly\n" |
428 |
- if _need_lvmlockd; then |
429 |
- # Start lockd VGs as required |
430 |
- lvm_commands="${lvm_commands}vgchange --config '${config}' --lock-start --lock-opt auto\n" |
431 |
- fi |
432 |
- # Order of this is important, have to work around dash and LVM readline |
433 |
- printf "%b\n" "${lvm_commands}" | $lvm_path /proc/self/fd/0 >/dev/null |
434 |
- eend $? "Failed to setup the LVM" |
435 |
- fi |
436 |
- fi |
437 |
-} |
438 |
- |
439 |
-start_post() |
440 |
-{ |
441 |
- # Save if we needed lvmetad |
442 |
- if _need_lvmetad; then |
443 |
- service_set_value need lvmetad |
444 |
- fi |
445 |
-} |
446 |
- |
447 |
-stop() { |
448 |
- for lvm_path in /bin/lvm /sbin/lvm ; do |
449 |
- [ -x "$lvm_path" ] && break |
450 |
- done |
451 |
- if [ ! -x "$lvm_path" ]; then |
452 |
- eerror "Cannot find lvm binary in /sbin or /bin!" |
453 |
- return 1 |
454 |
- fi |
455 |
- |
456 |
- # Stop LVM2 |
457 |
- if [ -x /sbin/vgs ] && \ |
458 |
- [ -x /sbin/vgchange ] && \ |
459 |
- [ -x /sbin/lvchange ] && \ |
460 |
- [ -f /etc/lvmtab -o -d /etc/lvm ] && \ |
461 |
- [ -d /proc/lvm -o "`grep device-mapper /proc/misc 2>/dev/null`" ] |
462 |
- then |
463 |
- einfo "Shutting down the Logical Volume Manager" |
464 |
- |
465 |
- VGS=$($lvm_path vgs --config "${config}" -o vg_name --noheadings --nosuffix --rows 2> /dev/null) |
466 |
- |
467 |
- if [ "$VGS" ] |
468 |
- then |
469 |
- local _ending="eend" |
470 |
- [ "$RC_RUNLEVEL" = shutdown ] && _ending="ewend" |
471 |
- ebegin " Shutting Down LVs & VGs" |
472 |
- #still echo stderr for debugging |
473 |
- lvm_commands="#!${lvm_path}\n" |
474 |
- # Extra PV find pass because some devices might not have been available until very recently |
475 |
- lvm_commands="${lvm_commands}lvchange --config '${config}' --sysinit -a ln ${VGS}\n" |
476 |
- # Now make the nodes |
477 |
- lvm_commands="${lvm_commands}vgchange --config '${config}' --sysinit -a ln ${VGS}\n" |
478 |
- # Order of this is important, have to work around dash and LVM readline |
479 |
- printf "%b\n" "${lvm_commands}" | $lvm_path /proc/self/fd/0 --config "${config}" >/dev/null |
480 |
- rc=$? |
481 |
- msg="Failed (possibly some LVs still needed for /usr or root)" |
482 |
- [ "$RC_RUNLEVEL" = shutdown ] && msg="${msg} [rc=$rc]" && rc=0 |
483 |
- ${_ending} $rc "${msg}" |
484 |
- fi |
485 |
- |
486 |
- einfo "Finished shutting down the Logical Volume Manager" |
487 |
- return 0 |
488 |
- fi |
489 |
-} |
490 |
- |
491 |
-# vim:ts=4 |
492 |
|
493 |
diff --git a/sys-fs/lvm2/files/lvm2-2.02.129-static-pkgconfig-libs.patch b/sys-fs/lvm2/files/lvm2-2.02.129-static-pkgconfig-libs.patch |
494 |
deleted file mode 100644 |
495 |
index 239694523b3..00000000000 |
496 |
--- a/sys-fs/lvm2/files/lvm2-2.02.129-static-pkgconfig-libs.patch |
497 |
+++ /dev/null |
498 |
@@ -1,102 +0,0 @@ |
499 |
---- LVM2.2.02.129/configure.in |
500 |
-+++ LVM2.2.02.129/configure.in |
501 |
-@@ -1287,6 +1287,7 @@ |
502 |
- fi]) |
503 |
- if test "$BLKID_WIPING" = yes; then |
504 |
- BLKID_PC="blkid" |
505 |
-+ BLKID_STATIC_LIBS=`$PKG_CONFIG --static --libs $BLKID_PC` |
506 |
- DEFAULT_USE_BLKID_WIPING=1 |
507 |
- AC_DEFINE([BLKID_WIPING_SUPPORT], 1, [Define to 1 to use libblkid detection of signatures when wiping.]) |
508 |
- else |
509 |
-@@ -1332,6 +1333,7 @@ |
510 |
- if test "$UDEV_SYNC" = yes; then |
511 |
- pkg_config_init |
512 |
- PKG_CHECK_MODULES(UDEV, libudev >= 143, [UDEV_PC="libudev"]) |
513 |
-+ UDEV_STATIC_LIBS=`$PKG_CONFIG --static --libs libudev` |
514 |
- AC_DEFINE([UDEV_SYNC_SUPPORT], 1, [Define to 1 to enable synchronisation with udev processing.]) |
515 |
- fi |
516 |
- |
517 |
-@@ -1558,19 +1560,32 @@ |
518 |
- if test "$SELINUX" = yes; then |
519 |
- AC_CHECK_LIB([sepol], [sepol_check_context], [ |
520 |
- AC_DEFINE([HAVE_SEPOL], 1, [Define to 1 if sepol_check_context is available.]) |
521 |
-- SELINUX_LIBS="-lsepol"]) |
522 |
-+ SEPOL_LIBS="-lsepol"]) |
523 |
-+ |
524 |
-+ dnl -- init pkgconfig if required |
525 |
-+ if test x$PKGCONFIG_INIT != x1; then |
526 |
-+ pkg_config_init |
527 |
-+ fi |
528 |
-+ PKG_CHECK_MODULES(SELINUX, libselinux, [ |
529 |
-+ SELINUX_PC="libselinux" |
530 |
-+ SELINUX_STATIC_LIBS=`$PKG_CONFIG --static --libs libselinux` |
531 |
-+ SELINUX_LIBS="$SELINUX_LIBS $SEPOL_LIBS" |
532 |
-+ AC_DEFINE([HAVE_SELINUX], 1, [Define to 1 to include support for selinux.]) |
533 |
-+ ],[ |
534 |
-+ dnl -- old non-pkgconfig method, is buggy with static builds |
535 |
- |
536 |
- AC_CHECK_LIB([selinux], [is_selinux_enabled], [ |
537 |
- AC_CHECK_HEADERS([selinux/selinux.h],, hard_bailout) |
538 |
- AC_CHECK_HEADERS([selinux/label.h]) |
539 |
- AC_DEFINE([HAVE_SELINUX], 1, [Define to 1 to include support for selinux.]) |
540 |
-- SELINUX_LIBS="-lselinux $SELINUX_LIBS" |
541 |
-+ SELINUX_LIBS="-lselinux $SEPOL_LIBS" |
542 |
- SELINUX_PC="libselinux" |
543 |
- HAVE_SELINUX=yes ], [ |
544 |
- AC_MSG_WARN(Disabling selinux) |
545 |
- SELINUX_LIBS= |
546 |
- SELINUX_PC= |
547 |
- HAVE_SELINUX=no ]) |
548 |
-+ ]) |
549 |
- fi |
550 |
- |
551 |
- ################################################################################ |
552 |
-@@ -1902,6 +1917,7 @@ |
553 |
- ################################################################################ |
554 |
- AC_SUBST(APPLIB) |
555 |
- AC_SUBST(AWK) |
556 |
-+AC_SUBST(BLKID_STATIC_LIBS) |
557 |
- AC_SUBST(BLKID_PC) |
558 |
- AC_SUBST(BUILD_CMIRRORD) |
559 |
- AC_SUBST(BUILD_DMEVENTD) |
560 |
-@@ -2005,6 +2021,7 @@ |
561 |
- AC_SUBST(SALCK_CFLAGS) |
562 |
- AC_SUBST(SALCK_LIBS) |
563 |
- AC_SUBST(SELINUX_LIBS) |
564 |
-+AC_SUBST(SELINUX_STATIC_LIBS) |
565 |
- AC_SUBST(SELINUX_PC) |
566 |
- AC_SUBST(SNAPSHOTS) |
567 |
- AC_SUBST(STATICDIR) |
568 |
-@@ -2020,6 +2037,7 @@ |
569 |
- AC_SUBST(CACHE_DUMP_CMD) |
570 |
- AC_SUBST(CACHE_REPAIR_CMD) |
571 |
- AC_SUBST(CACHE_RESTORE_CMD) |
572 |
-+AC_SUBST(UDEV_STATIC_LIBS) |
573 |
- AC_SUBST(UDEV_PC) |
574 |
- AC_SUBST(UDEV_RULES) |
575 |
- AC_SUBST(UDEV_SYNC) |
576 |
---- LVM2.2.02.129/make.tmpl.in |
577 |
-+++ LVM2.2.02.129/make.tmpl.in |
578 |
-@@ -43,7 +43,7 @@ |
579 |
- |
580 |
- LIBS = @LIBS@ |
581 |
- # Extra libraries always linked with static binaries |
582 |
--STATIC_LIBS = $(SELINUX_LIBS) $(UDEV_LIBS) $(BLKID_LIBS) |
583 |
-+STATIC_LIBS = $(SELINUX_STATIC_LIBS) $(UDEV_STATIC_LIBS) $(BLKID_STATIC_LIBS) |
584 |
- DEFS += @DEFS@ |
585 |
- # FIXME set this only where it's needed, not globally? |
586 |
- CFLAGS ?= @COPTIMISE_FLAG@ @CFLAGS@ |
587 |
-@@ -58,10 +58,13 @@ |
588 |
- PTHREAD_LIBS = @PTHREAD_LIBS@ |
589 |
- READLINE_LIBS = @READLINE_LIBS@ |
590 |
- SELINUX_LIBS = @SELINUX_LIBS@ |
591 |
-+SELINUX_STATIC_LIBS = @SELINUX_STATIC_LIBS@ |
592 |
- UDEV_CFLAGS = @UDEV_CFLAGS@ |
593 |
- UDEV_LIBS = @UDEV_LIBS@ |
594 |
-+UDEV_STATIC_LIBS = @UDEV_STATIC_LIBS@ |
595 |
- BLKID_CFLAGS = @BLKID_CFLAGS@ |
596 |
- BLKID_LIBS = @BLKID_LIBS@ |
597 |
-+BLKID_STATIC_LIBS = @BLKID_STATIC_LIBS@ |
598 |
- VALGRIND_CFLAGS = @VALGRIND_CFLAGS@ |
599 |
- TESTING = @TESTING@ |
600 |
- |
601 |
|
602 |
diff --git a/sys-fs/lvm2/files/lvm2-2.02.130-pthread-pkgconfig.patch b/sys-fs/lvm2/files/lvm2-2.02.130-pthread-pkgconfig.patch |
603 |
deleted file mode 100644 |
604 |
index 11db632e2e7..00000000000 |
605 |
--- a/sys-fs/lvm2/files/lvm2-2.02.130-pthread-pkgconfig.patch |
606 |
+++ /dev/null |
607 |
@@ -1,32 +0,0 @@ |
608 |
-Make sure that libdm usage always brings in pthread libraries, both in |
609 |
-pkgconfig and during manual build. |
610 |
- |
611 |
---- LVM2.2.02.130/libdm/libdevmapper.pc.in |
612 |
-+++ LVM2.2.02.130/libdm/libdevmapper.pc.in |
613 |
-@@ -9,4 +9,4 @@ |
614 |
- Cflags: -I${includedir} |
615 |
- Libs: -L${libdir} -ldevmapper |
616 |
- Requires.private: @SELINUX_PC@ @UDEV_PC@ |
617 |
--Libs.private: -lm @RT_LIB@ |
618 |
-+Libs.private: -lm @RT_LIB@ @PTHREAD_LIBS@ |
619 |
---- LVM2.2.02.130/tools/Makefile.in |
620 |
-+++ LVM2.2.02.130/tools/Makefile.in |
621 |
-@@ -90,6 +90,7 @@ |
622 |
- INSTALL_LVM_TARGETS += install_tools_static |
623 |
- INSTALL_DMSETUP_TARGETS += install_dmsetup_static |
624 |
- INSTALL_CMDLIB_TARGETS += install_cmdlib_static |
625 |
-+ STATIC_LIBS += @PTHREAD_LIBS@ |
626 |
- endif |
627 |
- |
628 |
- LVMLIBS = $(LVMINTERNAL_LIBS) |
629 |
-@@ -120,6 +121,10 @@ |
630 |
- |
631 |
- include $(top_builddir)/make.tmpl |
632 |
- |
633 |
-+ifeq ("@STATIC_LINK@", "yes") |
634 |
-+ STATIC_LIBS += @PTHREAD_LIBS@ |
635 |
-+endif |
636 |
-+ |
637 |
- device-mapper: $(TARGETS_DM) |
638 |
- |
639 |
- CFLAGS_dmsetup.o += $(UDEV_CFLAGS) $(EXTRA_EXEC_CFLAGS) |
640 |
|
641 |
diff --git a/sys-fs/lvm2/files/lvm2-2.02.139-dynamic-static-ldflags.patch b/sys-fs/lvm2/files/lvm2-2.02.139-dynamic-static-ldflags.patch |
642 |
deleted file mode 100644 |
643 |
index 312e546e240..00000000000 |
644 |
--- a/sys-fs/lvm2/files/lvm2-2.02.139-dynamic-static-ldflags.patch |
645 |
+++ /dev/null |
646 |
@@ -1,63 +0,0 @@ |
647 |
-diff -ur LVM2.2.02.139_O/configure.in LVM2.2.02.139/configure.in |
648 |
---- LVM2.2.02.139_O/configure.in 2016-01-19 12:54:33.155187005 +0000 |
649 |
-+++ LVM2.2.02.139/configure.in 2016-01-19 12:56:39.487181372 +0000 |
650 |
-@@ -31,6 +31,7 @@ |
651 |
- linux*) |
652 |
- CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym" |
653 |
- ELDFLAGS="-Wl,--export-dynamic" |
654 |
-+ STATIC_LDFLAGS="-Wl,--no-export-dynamic" |
655 |
- # FIXME Generate list and use --dynamic-list=.dlopen.sym |
656 |
- CLDWHOLEARCHIVE="-Wl,-whole-archive" |
657 |
- CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive" |
658 |
-@@ -2009,6 +2010,7 @@ |
659 |
- AC_SUBST(SELINUX_PC) |
660 |
- AC_SUBST(SNAPSHOTS) |
661 |
- AC_SUBST(STATICDIR) |
662 |
-+AC_SUBST(STATIC_LDFLAGS) |
663 |
- AC_SUBST(STATIC_LINK) |
664 |
- AC_SUBST(TESTING) |
665 |
- AC_SUBST(TESTSUITE_DATA) |
666 |
-diff -ur LVM2.2.02.139_O/daemons/dmeventd/Makefile.in LVM2.2.02.139/daemons/dmeventd/Makefile.in |
667 |
---- LVM2.2.02.139_O/daemons/dmeventd/Makefile.in 2016-01-19 12:54:33.278186999 +0000 |
668 |
-+++ LVM2.2.02.139/daemons/dmeventd/Makefile.in 2016-01-19 12:57:44.277178484 +0000 |
669 |
-@@ -67,7 +67,7 @@ |
670 |
- $(DL_LIBS) $(LVMLIBS) $(LIBS) -rdynamic |
671 |
- |
672 |
- dmeventd.static: $(LIB_STATIC) dmeventd.o $(interfacebuilddir)/libdevmapper.a |
673 |
-- $(CC) $(CFLAGS) $(LDFLAGS) $(ELDFLAGS) -static -L. -L$(interfacebuilddir) -o $@ \ |
674 |
-+ $(CC) $(CFLAGS) $(LDFLAGS) $(ELDFLAGS) $(STATIC_LDFLAGS) -static -L. -L$(interfacebuilddir) -o $@ \ |
675 |
- dmeventd.o $(DL_LIBS) $(LVMLIBS) $(LIBS) $(STATIC_LIBS) |
676 |
- |
677 |
- ifeq ("@PKGCONFIG@", "yes") |
678 |
-diff -ur LVM2.2.02.139_O/make.tmpl.in LVM2.2.02.139/make.tmpl.in |
679 |
---- LVM2.2.02.139_O/make.tmpl.in 2016-01-19 12:54:33.529186988 +0000 |
680 |
-+++ LVM2.2.02.139/make.tmpl.in 2016-01-19 12:58:31.514176378 +0000 |
681 |
-@@ -49,6 +49,7 @@ |
682 |
- # FIXME set this only where it's needed, not globally? |
683 |
- CFLAGS ?= @COPTIMISE_FLAG@ @CFLAGS@ |
684 |
- LDFLAGS ?= @COPTIMISE_FLAG@ @LDFLAGS@ |
685 |
-+STATIC_LDFLAGS += @STATIC_LDFLAGS@ |
686 |
- CLDFLAGS += @CLDFLAGS@ |
687 |
- ELDFLAGS += @ELDFLAGS@ |
688 |
- LDDEPS += @LDDEPS@ |
689 |
-diff -ur LVM2.2.02.139_O/tools/Makefile.in LVM2.2.02.139/tools/Makefile.in |
690 |
---- LVM2.2.02.139_O/tools/Makefile.in 2016-01-08 18:51:21.000000000 +0000 |
691 |
-+++ LVM2.2.02.139/tools/Makefile.in 2016-01-19 13:00:08.349172060 +0000 |
692 |
-@@ -129,7 +129,7 @@ |
693 |
- -o $@ dmsetup.o -ldevmapper $(LIBS) |
694 |
- |
695 |
- dmsetup.static: dmsetup.o $(interfacebuilddir)/libdevmapper.a |
696 |
-- $(CC) $(CFLAGS) $(LDFLAGS) -static -L$(interfacebuilddir) \ |
697 |
-+ $(CC) $(CFLAGS) $(LDFLAGS) $(STATIC_LDFLAGS) -static -L$(interfacebuilddir) \ |
698 |
- -o $@ dmsetup.o -ldevmapper $(M_LIBS) $(PTHREAD_LIBS) $(STATIC_LIBS) $(LIBS) |
699 |
- |
700 |
- all: device-mapper |
701 |
-@@ -146,7 +146,7 @@ |
702 |
- endif |
703 |
- |
704 |
- lvm.static: $(OBJECTS) lvm-static.o $(top_builddir)/lib/liblvm-internal.a $(interfacebuilddir)/libdevmapper.a |
705 |
-- $(CC) $(CFLAGS) $(LDFLAGS) -static -L$(interfacebuilddir) -o $@ \ |
706 |
-+ $(CC) $(CFLAGS) $(LDFLAGS) $(STATIC_LDFLAGS) -static -L$(interfacebuilddir) -o $@ \ |
707 |
- $(OBJECTS) lvm-static.o $(LVMLIBS) $(STATIC_LIBS) $(LIBS) |
708 |
- |
709 |
- liblvm2cmd.a: $(top_builddir)/lib/liblvm-internal.a $(OBJECTS) lvmcmdlib.o lvm2cmd.o |
710 |
|
711 |
diff --git a/sys-fs/lvm2/files/lvm2-2.02.145-mkdev.patch b/sys-fs/lvm2/files/lvm2-2.02.145-mkdev.patch |
712 |
deleted file mode 100644 |
713 |
index f91dccd5c18..00000000000 |
714 |
--- a/sys-fs/lvm2/files/lvm2-2.02.145-mkdev.patch |
715 |
+++ /dev/null |
716 |
@@ -1,127 +0,0 @@ |
717 |
-https://bugs.gentoo.org/580062 |
718 |
- |
719 |
-From 2a1d0fa8ea765604cd8274aac5aa7876f1c145c9 Mon Sep 17 00:00:00 2001 |
720 |
-From: Mike Frysinger <vapier@g.o> |
721 |
-Date: Tue, 19 Apr 2016 23:53:22 -0400 |
722 |
-Subject: [PATCH] convert major/minor/makedev handling |
723 |
- |
724 |
-Most of the files in here use MAJOR/MINOR/MKDEV macros, but a few |
725 |
-missed it. Update the defines in those files to match them. |
726 |
---- |
727 |
- daemons/cmirrord/functions.c | 16 ++++++++++++---- |
728 |
- daemons/dmeventd/plugins/snapshot/dmeventd_snapshot.c | 12 ++++++++++-- |
729 |
- lib/filters/filter-sysfs.c | 6 ++++-- |
730 |
- 3 files changed, 26 insertions(+), 8 deletions(-) |
731 |
- |
732 |
-diff --git a/daemons/cmirrord/functions.c b/daemons/cmirrord/functions.c |
733 |
-index e9d3c09..5b3cb38 100644 |
734 |
---- a/daemons/cmirrord/functions.c |
735 |
-+++ b/daemons/cmirrord/functions.c |
736 |
-@@ -20,6 +20,14 @@ |
737 |
- #include <time.h> |
738 |
- #include <unistd.h> |
739 |
- |
740 |
-+#ifdef __linux__ |
741 |
-+# include "kdev_t.h" |
742 |
-+#else |
743 |
-+# define MAJOR(x) major((x)) |
744 |
-+# define MINOR(x) minor((x)) |
745 |
-+# define MKDEV(x,y) makedev((x),(y)) |
746 |
-+#endif |
747 |
-+ |
748 |
- #define BYTE_SHIFT 3 |
749 |
- |
750 |
- /* |
751 |
-@@ -333,8 +341,8 @@ static int find_disk_path(char *major_minor_str, char *path_rtn, int *unlink_pat |
752 |
- continue; |
753 |
- } |
754 |
- if (S_ISBLK(statbuf.st_mode) && |
755 |
-- (major(statbuf.st_rdev) == major) && |
756 |
-- (minor(statbuf.st_rdev) == minor)) { |
757 |
-+ (MAJOR(statbuf.st_rdev) == major) && |
758 |
-+ (MINOR(statbuf.st_rdev) == minor)) { |
759 |
- LOG_DBG(" %s: YES", dep->d_name); |
760 |
- if (closedir(dp)) |
761 |
- LOG_DBG("Unable to closedir /dev/mapper %s", |
762 |
-@@ -1451,7 +1459,7 @@ static int disk_status_info(struct log_c *lc, struct dm_ulog_request *rq) |
763 |
- } |
764 |
- |
765 |
- r = sprintf(data, "3 clustered-disk %d:%d %c", |
766 |
-- major(statbuf.st_rdev), minor(statbuf.st_rdev), |
767 |
-+ MAJOR(statbuf.st_rdev), MINOR(statbuf.st_rdev), |
768 |
- (lc->log_dev_failed) ? 'D' : 'A'); |
769 |
- if (r < 0) |
770 |
- return r; |
771 |
-@@ -1514,7 +1522,7 @@ static int disk_status_table(struct log_c *lc, struct dm_ulog_request *rq) |
772 |
- } |
773 |
- |
774 |
- r = sprintf(data, "clustered-disk %d:%d %u %s%s ", |
775 |
-- major(statbuf.st_rdev), minor(statbuf.st_rdev), |
776 |
-+ MAJOR(statbuf.st_rdev), MINOR(statbuf.st_rdev), |
777 |
- lc->region_size, |
778 |
- (lc->sync == DEFAULTSYNC) ? "" : |
779 |
- (lc->sync == NOSYNC) ? "nosync " : "sync ", |
780 |
-diff --git a/daemons/dmeventd/plugins/snapshot/dmeventd_snapshot.c b/daemons/dmeventd/plugins/snapshot/dmeventd_snapshot.c |
781 |
-index 7b060ed..4098203 100644 |
782 |
---- a/daemons/dmeventd/plugins/snapshot/dmeventd_snapshot.c |
783 |
-+++ b/daemons/dmeventd/plugins/snapshot/dmeventd_snapshot.c |
784 |
-@@ -20,6 +20,14 @@ |
785 |
- #include <stdarg.h> |
786 |
- #include <pthread.h> |
787 |
- |
788 |
-+#ifdef __linux__ |
789 |
-+# include "kdev_t.h" |
790 |
-+#else |
791 |
-+# define MAJOR(x) major((x)) |
792 |
-+# define MINOR(x) minor((x)) |
793 |
-+# define MKDEV(x,y) makedev((x),(y)) |
794 |
-+#endif |
795 |
-+ |
796 |
- /* First warning when snapshot is 80% full. */ |
797 |
- #define WARNING_THRESH (DM_PERCENT_1 * 80) |
798 |
- /* Run a check every 5%. */ |
799 |
-@@ -148,8 +156,8 @@ static void _umount(const char *device, int major, int minor) |
800 |
- continue; /* can't stat, skip this one */ |
801 |
- |
802 |
- if (S_ISBLK(st.st_mode) && |
803 |
-- major(st.st_rdev) == major && |
804 |
-- minor(st.st_rdev) == minor) { |
805 |
-+ MAJOR(st.st_rdev) == major && |
806 |
-+ MINOR(st.st_rdev) == minor) { |
807 |
- log_error("Unmounting invalid snapshot %s from %s.", device, words[1]); |
808 |
- if (!_run(UMOUNT_COMMAND, "-fl", words[1], NULL)) |
809 |
- log_error("Failed to umount snapshot %s from %s: %s.", |
810 |
-diff --git a/lib/filters/filter-sysfs.c b/lib/filters/filter-sysfs.c |
811 |
-index 3115f86..5f76e8b 100644 |
812 |
---- a/lib/filters/filter-sysfs.c |
813 |
-+++ b/lib/filters/filter-sysfs.c |
814 |
-@@ -19,6 +19,8 @@ |
815 |
- |
816 |
- #include <dirent.h> |
817 |
- |
818 |
-+#include "kdev_t.h" |
819 |
-+ |
820 |
- static int _locate_sysfs_blocks(const char *sysfs_dir, char *path, size_t len, |
821 |
- unsigned *sysfs_depth) |
822 |
- { |
823 |
-@@ -120,7 +122,7 @@ static struct dev_set *_dev_set_create(struct dm_pool *mem, |
824 |
- |
825 |
- static unsigned _hash_dev(dev_t dev) |
826 |
- { |
827 |
-- return (major(dev) ^ minor(dev)) & (SET_BUCKETS - 1); |
828 |
-+ return (MAJOR(dev) ^ MINOR(dev)) & (SET_BUCKETS - 1); |
829 |
- } |
830 |
- |
831 |
- /* |
832 |
-@@ -171,7 +173,7 @@ static int _parse_dev(const char *file, FILE *fp, dev_t *result) |
833 |
- return 0; |
834 |
- } |
835 |
- |
836 |
-- *result = makedev(major, minor); |
837 |
-+ *result = MKDEV(major, minor); |
838 |
- return 1; |
839 |
- } |
840 |
- |
841 |
--- |
842 |
-2.7.4 |
843 |
- |
844 |
|
845 |
diff --git a/sys-fs/lvm2/lvm2-2.02.145-r2.ebuild b/sys-fs/lvm2/lvm2-2.02.145-r2.ebuild |
846 |
deleted file mode 100644 |
847 |
index 70a95fcb0f7..00000000000 |
848 |
--- a/sys-fs/lvm2/lvm2-2.02.145-r2.ebuild |
849 |
+++ /dev/null |
850 |
@@ -1,254 +0,0 @@ |
851 |
-# Copyright 1999-2019 Gentoo Authors |
852 |
-# Distributed under the terms of the GNU General Public License v2 |
853 |
- |
854 |
-EAPI=6 |
855 |
-inherit autotools eutils linux-info multilib systemd toolchain-funcs udev flag-o-matic |
856 |
- |
857 |
-DESCRIPTION="User-land utilities for LVM2 (device-mapper) software" |
858 |
-HOMEPAGE="https://sourceware.org/lvm2/" |
859 |
-SRC_URI="ftp://sourceware.org/pub/lvm2/${PN/lvm/LVM}.${PV}.tgz |
860 |
- ftp://sourceware.org/pub/lvm2/old/${PN/lvm/LVM}.${PV}.tgz" |
861 |
- |
862 |
-LICENSE="GPL-2" |
863 |
-SLOT="0" |
864 |
-KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 s390 ~sh sparc x86 ~amd64-linux ~x86-linux" |
865 |
-IUSE="readline static static-libs systemd lvm1 lvm2create_initrd selinux +udev +thin device-mapper-only" |
866 |
-REQUIRED_USE="device-mapper-only? ( !lvm1 !lvm2create_initrd !thin ) |
867 |
- systemd? ( udev )" |
868 |
- |
869 |
-DEPEND_COMMON=" |
870 |
- readline? ( sys-libs/readline:0= ) |
871 |
- systemd? ( >=sys-apps/systemd-205:0= ) |
872 |
- udev? ( >=virtual/libudev-208:=[static-libs(-)?] )" |
873 |
-# /run is now required for locking during early boot. /var cannot be assumed to |
874 |
-# be available -- thus, pull in recent enough baselayout for /run. |
875 |
-# This version of LVM is incompatible with cryptsetup <1.1.2. |
876 |
-RDEPEND="${DEPEND_COMMON} |
877 |
- >=sys-apps/baselayout-2.2 |
878 |
- !<sys-apps/openrc-0.11 |
879 |
- !<sys-fs/cryptsetup-1.1.2 |
880 |
- !!sys-fs/lvm-user |
881 |
- >=sys-apps/util-linux-2.16 |
882 |
- lvm2create_initrd? ( sys-apps/makedev ) |
883 |
- thin? ( >=sys-block/thin-provisioning-tools-0.3.0 )" |
884 |
-# note: thin- 0.3.0 is required to avoid --disable-thin_check_needs_check |
885 |
-# USE 'static' currently only works with eudev, bug 520450 |
886 |
-DEPEND="${DEPEND_COMMON} |
887 |
- virtual/pkgconfig |
888 |
- >=sys-devel/binutils-2.20.1-r1 |
889 |
- sys-devel/autoconf-archive |
890 |
- static? ( |
891 |
- selinux? ( sys-libs/libselinux[static-libs] ) |
892 |
- udev? ( >=sys-fs/eudev-3.1.2[static-libs] ) |
893 |
- >=sys-apps/util-linux-2.16[static-libs] |
894 |
- )" |
895 |
- |
896 |
-S=${WORKDIR}/${PN/lvm/LVM}.${PV} |
897 |
- |
898 |
-PATCHES=( |
899 |
- # Gentoo specific modification(s): |
900 |
- "${FILESDIR}"/${PN}-2.02.129-example.conf.in.patch |
901 |
- |
902 |
- # For upstream -- review and forward: |
903 |
- "${FILESDIR}"/${PN}-2.02.63-always-make-static-libdm.patch |
904 |
- "${FILESDIR}"/${PN}-2.02.56-lvm2create_initrd.patch |
905 |
- "${FILESDIR}"/${PN}-2.02.67-createinitrd.patch #301331 |
906 |
- "${FILESDIR}"/${PN}-2.02.99-locale-muck.patch #330373 |
907 |
- "${FILESDIR}"/${PN}-2.02.70-asneeded.patch # -Wl,--as-needed |
908 |
- "${FILESDIR}"/${PN}-2.02.139-dynamic-static-ldflags.patch #332905 |
909 |
- "${FILESDIR}"/${PN}-2.02.129-static-pkgconfig-libs.patch #370217, #439414 + blkid |
910 |
- "${FILESDIR}"/${PN}-2.02.130-pthread-pkgconfig.patch #492450 |
911 |
- "${FILESDIR}"/${PN}-2.02.145-mkdev.patch #580062 |
912 |
-) |
913 |
- |
914 |
-pkg_setup() { |
915 |
- local CONFIG_CHECK="~SYSVIPC" |
916 |
- |
917 |
- if use udev; then |
918 |
- local WARNING_SYSVIPC="CONFIG_SYSVIPC:\tis not set (required for udev sync)\n" |
919 |
- if linux_config_exists; then |
920 |
- local uevent_helper_path=$(linux_chkconfig_string UEVENT_HELPER_PATH) |
921 |
- if [ -n "${uevent_helper_path}" ] && [ "${uevent_helper_path}" != '""' ]; then |
922 |
- ewarn "It's recommended to set an empty value to the following kernel config option:" |
923 |
- ewarn "CONFIG_UEVENT_HELPER_PATH=${uevent_helper_path}" |
924 |
- fi |
925 |
- fi |
926 |
- fi |
927 |
- |
928 |
- check_extra_config |
929 |
- |
930 |
- # 1. Genkernel no longer copies /sbin/lvm blindly. |
931 |
- if use static; then |
932 |
- elog "Warning, we no longer overwrite /sbin/lvm and /sbin/dmsetup with" |
933 |
- elog "their static versions. If you need the static binaries," |
934 |
- elog "you must append .static to the filename!" |
935 |
- fi |
936 |
-} |
937 |
- |
938 |
-src_prepare() { |
939 |
- default |
940 |
- |
941 |
- sed -i \ |
942 |
- -e "1iAR = $(tc-getAR)" \ |
943 |
- -e "s:CC ?= @CC@:CC = $(tc-getCC):" \ |
944 |
- make.tmpl.in || die #444082 |
945 |
- |
946 |
- sed -i -e '/FLAG/s:-O2::' configure{.in,} || die #480212 |
947 |
- |
948 |
- if use udev && ! use device-mapper-only; then |
949 |
- sed -i -e '/use_lvmetad =/s:0:1:' conf/example.conf.in || die #514196 |
950 |
- elog "Notice that \"use_lvmetad\" setting is enabled with USE=\"udev\" in" |
951 |
- elog "/etc/lvm/lvm.conf, which will require restart of udev, lvm, and lvmetad" |
952 |
- elog "if it was previously disabled." |
953 |
- fi |
954 |
- |
955 |
- sed -i -e "s:/usr/bin/true:$(type -P true):" scripts/blk_availability_systemd_red_hat.service.in || die #517514 |
956 |
- |
957 |
- # Without thin-privision-tools, there is nothing to install for target install_man7: |
958 |
- use thin || { sed -i -e '/^install_lvm2/s:install_man7::' man/Makefile.in || die; } |
959 |
- |
960 |
- eautoreconf |
961 |
-} |
962 |
- |
963 |
-src_configure() { |
964 |
- filter-flags -flto |
965 |
- local myconf=() |
966 |
- local buildmode |
967 |
- |
968 |
- myconf+=( $(use_enable !device-mapper-only dmeventd) ) |
969 |
- myconf+=( $(use_enable !device-mapper-only cmdlib) ) |
970 |
- myconf+=( $(use_enable !device-mapper-only applib) ) |
971 |
- myconf+=( $(use_enable !device-mapper-only fsadm) ) |
972 |
- myconf+=( $(use_enable !device-mapper-only lvmetad) ) |
973 |
- use device-mapper-only && myconf+=( --disable-udev-systemd-background-jobs ) |
974 |
- |
975 |
- # Most of this package does weird stuff. |
976 |
- # The build options are tristate, and --without is NOT supported |
977 |
- # options: 'none', 'internal', 'shared' |
978 |
- if use static; then |
979 |
- buildmode="internal" |
980 |
- # This only causes the .static versions to become available |
981 |
- myconf+=( --enable-static_link ) |
982 |
- else |
983 |
- buildmode="shared" |
984 |
- fi |
985 |
- dmbuildmode=$(use !device-mapper-only && echo internal || echo none) |
986 |
- |
987 |
- # dmeventd requires mirrors to be internal, and snapshot available |
988 |
- # so we cannot disable them |
989 |
- myconf+=( --with-mirrors=${dmbuildmode} ) |
990 |
- myconf+=( --with-snapshots=${dmbuildmode} ) |
991 |
- if use thin; then |
992 |
- myconf+=( --with-thin=internal --with-cache=internal ) |
993 |
- local texec |
994 |
- for texec in check dump repair restore; do |
995 |
- myconf+=( --with-thin-${texec}="${EPREFIX}"/sbin/thin_${texec} ) |
996 |
- myconf+=( --with-cache-${texec}="${EPREFIX}"/sbin/cache_${texec} ) |
997 |
- done |
998 |
- else |
999 |
- myconf+=( --with-thin=none --with-cache=none ) |
1000 |
- fi |
1001 |
- |
1002 |
- if use lvm1; then |
1003 |
- myconf+=( --with-lvm1=${buildmode} ) |
1004 |
- else |
1005 |
- myconf+=( --with-lvm1=none ) |
1006 |
- fi |
1007 |
- |
1008 |
- # disable O_DIRECT support on hppa, breaks pv detection (#99532) |
1009 |
- use hppa && myconf+=( --disable-o_direct ) |
1010 |
- |
1011 |
- myconf+=( --with-clvmd=none --with-cluster=none ) |
1012 |
- |
1013 |
- econf \ |
1014 |
- $(use_enable readline) \ |
1015 |
- $(use_enable selinux) \ |
1016 |
- --enable-pkgconfig \ |
1017 |
- --with-confdir="${EPREFIX}"/etc \ |
1018 |
- --exec-prefix="${EPREFIX}" \ |
1019 |
- --sbindir="${EPREFIX}/sbin" \ |
1020 |
- --with-staticdir="${EPREFIX}"/sbin \ |
1021 |
- --libdir="${EPREFIX}/$(get_libdir)" \ |
1022 |
- --with-usrlibdir="${EPREFIX}/usr/$(get_libdir)" \ |
1023 |
- --with-default-dm-run-dir=/run \ |
1024 |
- --with-default-run-dir=/run/lvm \ |
1025 |
- --with-default-locking-dir=/run/lock/lvm \ |
1026 |
- --with-default-pid-dir=/run \ |
1027 |
- $(use_enable udev udev_rules) \ |
1028 |
- $(use_enable udev udev_sync) \ |
1029 |
- $(use_with udev udevdir "$(get_udevdir)"/rules.d) \ |
1030 |
- $(use_enable systemd udev-systemd-background-jobs) \ |
1031 |
- --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" \ |
1032 |
- ${myconf[@]} \ |
1033 |
- CLDFLAGS="${LDFLAGS}" |
1034 |
-} |
1035 |
- |
1036 |
-src_compile() { |
1037 |
- pushd include >/dev/null |
1038 |
- emake |
1039 |
- popd >/dev/null |
1040 |
- |
1041 |
- if use device-mapper-only ; then |
1042 |
- emake device-mapper |
1043 |
- else |
1044 |
- emake |
1045 |
- emake CC="$(tc-getCC)" -C scripts lvm2_activation_generator_systemd_red_hat |
1046 |
- fi |
1047 |
-} |
1048 |
- |
1049 |
-src_install() { |
1050 |
- local inst |
1051 |
- INSTALL_TARGETS="install install_tmpfiles_configuration" |
1052 |
- # install systemd related files only when requested, bug #522430 |
1053 |
- use systemd && INSTALL_TARGETS="${INSTALL_TARGETS} install_systemd_units install_systemd_generators" |
1054 |
- use device-mapper-only && INSTALL_TARGETS="install_device-mapper" |
1055 |
- for inst in ${INSTALL_TARGETS}; do |
1056 |
- emake DESTDIR="${D}" ${inst} |
1057 |
- done |
1058 |
- |
1059 |
- newinitd "${FILESDIR}"/device-mapper.rc-2.02.105-r2 device-mapper |
1060 |
- newconfd "${FILESDIR}"/device-mapper.conf-1.02.22-r3 device-mapper |
1061 |
- |
1062 |
- if use !device-mapper-only ; then |
1063 |
- newinitd "${FILESDIR}"/dmeventd.initd-2.02.67-r1 dmeventd |
1064 |
- newinitd "${FILESDIR}"/lvm.rc-2.02.116-r6 lvm |
1065 |
- newconfd "${FILESDIR}"/lvm.confd-2.02.28-r2 lvm |
1066 |
- |
1067 |
- newinitd "${FILESDIR}"/lvm-monitoring.initd-2.02.105-r2 lvm-monitoring |
1068 |
- newinitd "${FILESDIR}"/lvmetad.initd-2.02.116-r3 lvmetad |
1069 |
- fi |
1070 |
- |
1071 |
- if use static-libs; then |
1072 |
- dolib.a libdm/ioctl/libdevmapper.a |
1073 |
- if use !device-mapper-only ; then |
1074 |
- dolib.a libdaemon/client/libdaemonclient.a #462908 |
1075 |
- dolib.a daemons/dmeventd/libdevmapper-event.a |
1076 |
- fi |
1077 |
- else |
1078 |
- rm -f "${ED}"usr/$(get_libdir)/{libdevmapper-event,liblvm2cmd,liblvm2app,libdevmapper}.a |
1079 |
- fi |
1080 |
- |
1081 |
- if use lvm2create_initrd; then |
1082 |
- dosbin scripts/lvm2create_initrd/lvm2create_initrd |
1083 |
- doman scripts/lvm2create_initrd/lvm2create_initrd.8 |
1084 |
- newdoc scripts/lvm2create_initrd/README README.lvm2create_initrd |
1085 |
- fi |
1086 |
- |
1087 |
- insinto /etc |
1088 |
- doins "${FILESDIR}"/dmtab |
1089 |
- |
1090 |
- dodoc README VERSION* WHATS_NEW WHATS_NEW_DM doc/*.{c,txt} conf/*.conf |
1091 |
-} |
1092 |
- |
1093 |
-pkg_postinst() { |
1094 |
- ewarn "Make sure the \"lvm\" init script is in the runlevels:" |
1095 |
- ewarn "# rc-update add lvm boot" |
1096 |
- ewarn |
1097 |
- ewarn "Make sure to enable lvmetad in /etc/lvm/lvm.conf if you want" |
1098 |
- ewarn "to enable lvm autoactivation and metadata caching." |
1099 |
-} |
1100 |
- |
1101 |
-src_test() { |
1102 |
- einfo "Tests are disabled because of device-node mucking, if you want to" |
1103 |
- einfo "run tests, compile the package and see ${S}/tests" |
1104 |
-} |
1105 |
|
1106 |
diff --git a/sys-fs/lvm2/lvm2-2.02.183.ebuild b/sys-fs/lvm2/lvm2-2.02.183.ebuild |
1107 |
deleted file mode 100644 |
1108 |
index 24737eaf33f..00000000000 |
1109 |
--- a/sys-fs/lvm2/lvm2-2.02.183.ebuild |
1110 |
+++ /dev/null |
1111 |
@@ -1,259 +0,0 @@ |
1112 |
-# Copyright 1999-2019 Gentoo Authors |
1113 |
-# Distributed under the terms of the GNU General Public License v2 |
1114 |
- |
1115 |
-EAPI=6 |
1116 |
-inherit autotools linux-info multilib systemd toolchain-funcs udev flag-o-matic |
1117 |
- |
1118 |
-DESCRIPTION="User-land utilities for LVM2 (device-mapper) software" |
1119 |
-HOMEPAGE="https://sourceware.org/lvm2/" |
1120 |
-SRC_URI="ftp://sourceware.org/pub/lvm2/${PN/lvm/LVM}.${PV}.tgz |
1121 |
- ftp://sourceware.org/pub/lvm2/old/${PN/lvm/LVM}.${PV}.tgz" |
1122 |
- |
1123 |
-LICENSE="GPL-2" |
1124 |
-SLOT="0" |
1125 |
-KEYWORDS="alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 s390 ~sh ~sparc x86 ~amd64-linux ~x86-linux" |
1126 |
-IUSE="readline static static-libs systemd lvm2create_initrd sanlock selinux +udev +thin device-mapper-only" |
1127 |
-REQUIRED_USE="device-mapper-only? ( !lvm2create_initrd !sanlock !thin ) |
1128 |
- systemd? ( udev )" |
1129 |
- |
1130 |
-DEPEND_COMMON=" |
1131 |
- dev-libs/libaio[static-libs?] |
1132 |
- static? ( dev-libs/libaio[static-libs] ) |
1133 |
- !static? ( dev-libs/libaio[static-libs?] ) |
1134 |
- readline? ( sys-libs/readline:0= ) |
1135 |
- sanlock? ( sys-cluster/sanlock ) |
1136 |
- systemd? ( >=sys-apps/systemd-205:0= ) |
1137 |
- udev? ( >=virtual/libudev-208:=[static-libs(-)?] )" |
1138 |
-# /run is now required for locking during early boot. /var cannot be assumed to |
1139 |
-# be available -- thus, pull in recent enough baselayout for /run. |
1140 |
-# This version of LVM is incompatible with cryptsetup <1.1.2. |
1141 |
-RDEPEND="${DEPEND_COMMON} |
1142 |
- >=sys-apps/baselayout-2.2 |
1143 |
- !<sys-apps/openrc-0.11 |
1144 |
- !<sys-fs/cryptsetup-1.1.2 |
1145 |
- !!sys-fs/lvm-user |
1146 |
- >=sys-apps/util-linux-2.16 |
1147 |
- lvm2create_initrd? ( sys-apps/makedev ) |
1148 |
- thin? ( >=sys-block/thin-provisioning-tools-0.3.0 )" |
1149 |
-# note: thin- 0.3.0 is required to avoid --disable-thin_check_needs_check |
1150 |
-# USE 'static' currently only works with eudev, bug 520450 |
1151 |
-DEPEND="${DEPEND_COMMON} |
1152 |
- virtual/pkgconfig |
1153 |
- >=sys-devel/binutils-2.20.1-r1 |
1154 |
- sys-devel/autoconf-archive |
1155 |
- static? ( |
1156 |
- selinux? ( sys-libs/libselinux[static-libs] ) |
1157 |
- udev? ( >=sys-fs/eudev-3.1.2[static-libs] ) |
1158 |
- >=sys-apps/util-linux-2.16[static-libs] |
1159 |
- )" |
1160 |
- |
1161 |
-S=${WORKDIR}/${PN/lvm/LVM}.${PV} |
1162 |
- |
1163 |
-PATCHES=( |
1164 |
- # Gentoo specific modification(s): |
1165 |
- "${FILESDIR}"/${PN}-2.02.178-example.conf.in.patch |
1166 |
- |
1167 |
- # For upstream -- review and forward: |
1168 |
- "${FILESDIR}"/${PN}-2.02.63-always-make-static-libdm.patch |
1169 |
- "${FILESDIR}"/${PN}-2.02.56-lvm2create_initrd.patch |
1170 |
- "${FILESDIR}"/${PN}-2.02.67-createinitrd.patch #301331 |
1171 |
- "${FILESDIR}"/${PN}-2.02.99-locale-muck.patch #330373 |
1172 |
- "${FILESDIR}"/${PN}-2.02.178-asneeded.patch # -Wl,--as-needed |
1173 |
- "${FILESDIR}"/${PN}-2.02.178-dynamic-static-ldflags.patch #332905 |
1174 |
- "${FILESDIR}"/${PN}-2.02.178-static-pkgconfig-libs.patch #370217, #439414 + blkid |
1175 |
- "${FILESDIR}"/${PN}-2.02.176-pthread-pkgconfig.patch #492450 |
1176 |
- "${FILESDIR}"/${PN}-2.02.171-static-libm.patch #617756 |
1177 |
- "${FILESDIR}"/${PN}-2.02.166-HPPA-no-O_DIRECT.patch #657446 |
1178 |
- #"${FILESDIR}"/${PN}-2.02.145-mkdev.patch #580062 # Merged upstream |
1179 |
-) |
1180 |
- |
1181 |
-pkg_setup() { |
1182 |
- local CONFIG_CHECK="~SYSVIPC" |
1183 |
- |
1184 |
- if use udev; then |
1185 |
- local WARNING_SYSVIPC="CONFIG_SYSVIPC:\tis not set (required for udev sync)\n" |
1186 |
- if linux_config_exists; then |
1187 |
- local uevent_helper_path=$(linux_chkconfig_string UEVENT_HELPER_PATH) |
1188 |
- if [ -n "${uevent_helper_path}" ] && [ "${uevent_helper_path}" != '""' ]; then |
1189 |
- ewarn "It's recommended to set an empty value to the following kernel config option:" |
1190 |
- ewarn "CONFIG_UEVENT_HELPER_PATH=${uevent_helper_path}" |
1191 |
- fi |
1192 |
- fi |
1193 |
- fi |
1194 |
- |
1195 |
- check_extra_config |
1196 |
- |
1197 |
- # 1. Genkernel no longer copies /sbin/lvm blindly. |
1198 |
- if use static; then |
1199 |
- elog "Warning, we no longer overwrite /sbin/lvm and /sbin/dmsetup with" |
1200 |
- elog "their static versions. If you need the static binaries," |
1201 |
- elog "you must append .static to the filename!" |
1202 |
- fi |
1203 |
-} |
1204 |
- |
1205 |
-src_prepare() { |
1206 |
- default |
1207 |
- |
1208 |
- sed -i \ |
1209 |
- -e "1iAR = $(tc-getAR)" \ |
1210 |
- -e "s:CC ?= @CC@:CC = $(tc-getCC):" \ |
1211 |
- make.tmpl.in || die #444082 |
1212 |
- |
1213 |
- sed -i -e '/FLAG/s:-O2::' configure{.ac,} || die #480212 |
1214 |
- |
1215 |
- if use udev && ! use device-mapper-only; then |
1216 |
- sed -i -e '/use_lvmetad =/s:0:1:' conf/example.conf.in || die #514196 |
1217 |
- elog "Notice that \"use_lvmetad\" setting is enabled with USE=\"udev\" in" |
1218 |
- elog "/etc/lvm/lvm.conf, which will require restart of udev, lvm, and lvmetad" |
1219 |
- elog "if it was previously disabled." |
1220 |
- fi |
1221 |
- |
1222 |
- sed -i -e "s:/usr/bin/true:$(type -P true):" scripts/blk_availability_systemd_red_hat.service.in || die #517514 |
1223 |
- |
1224 |
- # Without thin-privision-tools, there is nothing to install for target install_man7: |
1225 |
- if ! use thin ; then |
1226 |
- sed -i -e '/^install_lvm2/s:install_man7::' man/Makefile.in || die |
1227 |
- fi |
1228 |
- |
1229 |
- eautoreconf |
1230 |
-} |
1231 |
- |
1232 |
-src_configure() { |
1233 |
- filter-flags -flto |
1234 |
- local myeconfargs=() |
1235 |
- |
1236 |
- # Most of this package does weird stuff. |
1237 |
- # The build options are tristate, and --without is NOT supported |
1238 |
- # options: 'none', 'internal', 'shared' |
1239 |
- myeconfargs+=( |
1240 |
- $(use_enable !device-mapper-only dmeventd) |
1241 |
- $(use_enable !device-mapper-only cmdlib) |
1242 |
- $(use_enable !device-mapper-only applib) |
1243 |
- $(use_enable !device-mapper-only fsadm) |
1244 |
- $(use_enable !device-mapper-only lvmetad) |
1245 |
- $(usex device-mapper-only --disable-udev-systemd-background-jobs '') |
1246 |
- |
1247 |
- # This only causes the .static versions to become available |
1248 |
- $(usex static --enable-static_link '') |
1249 |
- |
1250 |
- # dmeventd requires mirrors to be internal, and snapshot available |
1251 |
- # so we cannot disable them |
1252 |
- --with-mirrors="$(usex device-mapper-only none internal)" |
1253 |
- --with-snapshots="$(usex device-mapper-only none internal)" |
1254 |
- |
1255 |
- # disable O_DIRECT support on hppa, breaks pv detection (#99532) |
1256 |
- $(usex hppa --disable-o_direct '') |
1257 |
- ) |
1258 |
- |
1259 |
- if use thin; then |
1260 |
- myeconfargs+=( --with-thin=internal --with-cache=internal ) |
1261 |
- local texec |
1262 |
- for texec in check dump repair restore; do |
1263 |
- myeconfargs+=( --with-thin-${texec}="${EPREFIX}"/sbin/thin_${texec} ) |
1264 |
- myeconfargs+=( --with-cache-${texec}="${EPREFIX}"/sbin/cache_${texec} ) |
1265 |
- done |
1266 |
- else |
1267 |
- myeconfargs+=( --with-thin=none --with-cache=none ) |
1268 |
- fi |
1269 |
- |
1270 |
- myeconfargs+=( --with-clvmd=none --with-cluster=none ) |
1271 |
- |
1272 |
- myeconfargs+=( |
1273 |
- $(use_enable readline) |
1274 |
- $(use_enable selinux) |
1275 |
- --enable-pkgconfig |
1276 |
- --with-confdir="${EPREFIX}"/etc |
1277 |
- --exec-prefix="${EPREFIX}" |
1278 |
- --sbindir="${EPREFIX}/sbin" |
1279 |
- --with-staticdir="${EPREFIX}"/sbin |
1280 |
- --libdir="${EPREFIX}/$(get_libdir)" |
1281 |
- --with-usrlibdir="${EPREFIX}/usr/$(get_libdir)" |
1282 |
- --with-default-dm-run-dir=/run |
1283 |
- --with-default-run-dir=/run/lvm |
1284 |
- --with-default-locking-dir=/run/lock/lvm |
1285 |
- --with-default-pid-dir=/run |
1286 |
- $(use_enable udev udev_rules) |
1287 |
- $(use_enable udev udev_sync) |
1288 |
- $(use_with udev udevdir "$(get_udevdir)"/rules.d) |
1289 |
- $(use_enable sanlock lvmlockd-sanlock) |
1290 |
- $(use_enable systemd udev-systemd-background-jobs) |
1291 |
- --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" |
1292 |
- CLDFLAGS="${LDFLAGS}" |
1293 |
- ) |
1294 |
- # Hard-wire this to bash as some shells (dash) don't know |
1295 |
- # "-o pipefail" #682404 |
1296 |
- CONFIG_SHELL="/bin/bash" \ |
1297 |
- econf "${myeconfargs[@]}" |
1298 |
-} |
1299 |
- |
1300 |
-src_compile() { |
1301 |
- pushd include >/dev/null |
1302 |
- emake |
1303 |
- popd >/dev/null |
1304 |
- |
1305 |
- if use device-mapper-only ; then |
1306 |
- emake device-mapper |
1307 |
- else |
1308 |
- emake |
1309 |
- emake CC="$(tc-getCC)" -C scripts lvm2_activation_generator_systemd_red_hat |
1310 |
- fi |
1311 |
-} |
1312 |
- |
1313 |
-src_install() { |
1314 |
- local inst INSTALL_TARGETS |
1315 |
- INSTALL_TARGETS=( install install_tmpfiles_configuration ) |
1316 |
- # install systemd related files only when requested, bug #522430 |
1317 |
- use systemd && INSTALL_TARGETS+=( install_systemd_units install_systemd_generators ) |
1318 |
- use device-mapper-only && INSTALL_TARGETS=( install_device-mapper ) |
1319 |
- for inst in ${INSTALL_TARGETS[@]}; do |
1320 |
- emake DESTDIR="${D}" ${inst} |
1321 |
- done |
1322 |
- |
1323 |
- newinitd "${FILESDIR}"/device-mapper.rc-2.02.105-r2 device-mapper |
1324 |
- newconfd "${FILESDIR}"/device-mapper.conf-1.02.22-r3 device-mapper |
1325 |
- |
1326 |
- if use !device-mapper-only ; then |
1327 |
- newinitd "${FILESDIR}"/dmeventd.initd-2.02.67-r1 dmeventd |
1328 |
- newinitd "${FILESDIR}"/lvm.rc-2.02.172 lvm |
1329 |
- newconfd "${FILESDIR}"/lvm.confd-2.02.28-r2 lvm |
1330 |
- |
1331 |
- newinitd "${FILESDIR}"/lvm-monitoring.initd-2.02.105-r2 lvm-monitoring |
1332 |
- newinitd "${FILESDIR}"/lvmetad.initd-2.02.116-r3 lvmetad |
1333 |
- fi |
1334 |
- |
1335 |
- if use sanlock; then |
1336 |
- newinitd "${FILESDIR}"/lvmlockd.initd-2.02.166-r1 lvmlockd |
1337 |
- fi |
1338 |
- |
1339 |
- if use static-libs; then |
1340 |
- dolib.a libdm/ioctl/libdevmapper.a |
1341 |
- dolib.a libdaemon/client/libdaemonclient.a #462908 |
1342 |
- dolib.a daemons/dmeventd/libdevmapper-event.a |
1343 |
- else |
1344 |
- rm -f "${ED%/}"/usr/$(get_libdir)/{libdevmapper-event,liblvm2cmd,liblvm2app,libdevmapper}.a |
1345 |
- fi |
1346 |
- |
1347 |
- if use lvm2create_initrd; then |
1348 |
- dosbin scripts/lvm2create_initrd/lvm2create_initrd |
1349 |
- doman scripts/lvm2create_initrd/lvm2create_initrd.8 |
1350 |
- newdoc scripts/lvm2create_initrd/README README.lvm2create_initrd |
1351 |
- fi |
1352 |
- |
1353 |
- insinto /etc |
1354 |
- doins "${FILESDIR}"/dmtab |
1355 |
- |
1356 |
- dodoc README VERSION* WHATS_NEW WHATS_NEW_DM doc/*.{c,txt} conf/*.conf |
1357 |
-} |
1358 |
- |
1359 |
-pkg_postinst() { |
1360 |
- ewarn "Make sure the \"lvm\" init script is in the runlevels:" |
1361 |
- ewarn "# rc-update add lvm boot" |
1362 |
- ewarn |
1363 |
- ewarn "Make sure to enable lvmetad in /etc/lvm/lvm.conf if you want" |
1364 |
- ewarn "to enable lvm autoactivation and metadata caching." |
1365 |
-} |
1366 |
- |
1367 |
-src_test() { |
1368 |
- einfo "Tests are disabled because of device-node mucking, if you want to" |
1369 |
- einfo "run tests, compile the package and see ${S}/tests" |
1370 |
-} |
1371 |
|
1372 |
diff --git a/sys-fs/lvm2/lvm2-2.02.185-r1.ebuild b/sys-fs/lvm2/lvm2-2.02.185-r1.ebuild |
1373 |
deleted file mode 100644 |
1374 |
index ec678f7044b..00000000000 |
1375 |
--- a/sys-fs/lvm2/lvm2-2.02.185-r1.ebuild |
1376 |
+++ /dev/null |
1377 |
@@ -1,278 +0,0 @@ |
1378 |
-# Copyright 1999-2019 Gentoo Authors |
1379 |
-# Distributed under the terms of the GNU General Public License v2 |
1380 |
- |
1381 |
-EAPI=7 |
1382 |
-inherit autotools linux-info multilib systemd toolchain-funcs udev flag-o-matic |
1383 |
- |
1384 |
-DESCRIPTION="User-land utilities for LVM2 (device-mapper) software" |
1385 |
-HOMEPAGE="https://sourceware.org/lvm2/" |
1386 |
-SRC_URI="ftp://sourceware.org/pub/lvm2/${PN/lvm/LVM}.${PV}.tgz |
1387 |
- ftp://sourceware.org/pub/lvm2/old/${PN/lvm/LVM}.${PV}.tgz" |
1388 |
- |
1389 |
-LICENSE="GPL-2" |
1390 |
-SLOT="0" |
1391 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux" |
1392 |
-IUSE="readline static static-libs systemd lvm2create_initrd sanlock selinux +udev +thin device-mapper-only" |
1393 |
-REQUIRED_USE="device-mapper-only? ( !lvm2create_initrd !sanlock !thin ) |
1394 |
- systemd? ( udev )" |
1395 |
- |
1396 |
-DEPEND_COMMON=" |
1397 |
- dev-libs/libaio[static-libs?] |
1398 |
- static? ( dev-libs/libaio[static-libs] ) |
1399 |
- !static? ( dev-libs/libaio[static-libs?] ) |
1400 |
- readline? ( sys-libs/readline:0= ) |
1401 |
- sanlock? ( sys-cluster/sanlock ) |
1402 |
- systemd? ( >=sys-apps/systemd-205:0= ) |
1403 |
- udev? ( >=virtual/libudev-208:=[static-libs(-)?] )" |
1404 |
-# /run is now required for locking during early boot. /var cannot be assumed to |
1405 |
-# be available -- thus, pull in recent enough baselayout for /run. |
1406 |
-# This version of LVM is incompatible with cryptsetup <1.1.2. |
1407 |
-RDEPEND="${DEPEND_COMMON} |
1408 |
- >=sys-apps/baselayout-2.2 |
1409 |
- !<sys-apps/openrc-0.11 |
1410 |
- !<sys-fs/cryptsetup-1.1.2 |
1411 |
- !!sys-fs/lvm-user |
1412 |
- >=sys-apps/util-linux-2.16 |
1413 |
- lvm2create_initrd? ( sys-apps/makedev ) |
1414 |
- thin? ( >=sys-block/thin-provisioning-tools-0.3.0 )" |
1415 |
-# note: thin- 0.3.0 is required to avoid --disable-thin_check_needs_check |
1416 |
-# USE 'static' currently only works with eudev, bug 520450 |
1417 |
-DEPEND="${DEPEND_COMMON} |
1418 |
- >=sys-devel/binutils-2.20.1-r1 |
1419 |
- static? ( |
1420 |
- selinux? ( sys-libs/libselinux[static-libs] ) |
1421 |
- udev? ( >=sys-fs/eudev-3.1.2[static-libs] ) |
1422 |
- >=sys-apps/util-linux-2.16[static-libs] |
1423 |
- )" |
1424 |
-BDEPEND=" |
1425 |
- sys-devel/autoconf-archive |
1426 |
- virtual/pkgconfig |
1427 |
-" |
1428 |
- |
1429 |
-S="${WORKDIR}/${PN/lvm/LVM}.${PV}" |
1430 |
- |
1431 |
-PATCHES=( |
1432 |
- # Gentoo specific modification(s): |
1433 |
- "${FILESDIR}"/${PN}-2.02.178-example.conf.in.patch |
1434 |
- |
1435 |
- # For upstream -- review and forward: |
1436 |
- "${FILESDIR}"/${PN}-2.02.63-always-make-static-libdm.patch |
1437 |
- "${FILESDIR}"/${PN}-2.02.56-lvm2create_initrd.patch |
1438 |
- "${FILESDIR}"/${PN}-2.02.67-createinitrd.patch #301331 |
1439 |
- "${FILESDIR}"/${PN}-2.02.99-locale-muck.patch #330373 |
1440 |
- "${FILESDIR}"/${PN}-2.02.178-asneeded.patch # -Wl,--as-needed |
1441 |
- "${FILESDIR}"/${PN}-2.02.178-dynamic-static-ldflags.patch #332905 |
1442 |
- "${FILESDIR}"/${PN}-2.02.178-static-pkgconfig-libs.patch #370217, #439414 + blkid |
1443 |
- "${FILESDIR}"/${PN}-2.02.176-pthread-pkgconfig.patch #492450 |
1444 |
- "${FILESDIR}"/${PN}-2.02.171-static-libm.patch #617756 |
1445 |
- "${FILESDIR}"/${PN}-2.02.166-HPPA-no-O_DIRECT.patch #657446 |
1446 |
- #"${FILESDIR}"/${PN}-2.02.145-mkdev.patch #580062 # Merged upstream |
1447 |
- "${FILESDIR}"/${PN}-2.02.184-dmeventd-no-idle-exit.patch |
1448 |
- #"${FILESDIR}"/${PN}-2.02.184-allow-reading-metadata-with-invalid-creation_time.patch #682380 # merged upstream |
1449 |
- "${FILESDIR}"/${PN}-2.02.184-mksh_build.patch #686652 |
1450 |
-) |
1451 |
- |
1452 |
-pkg_setup() { |
1453 |
- local CONFIG_CHECK="~SYSVIPC" |
1454 |
- |
1455 |
- if use udev; then |
1456 |
- local WARNING_SYSVIPC="CONFIG_SYSVIPC:\tis not set (required for udev sync)\n" |
1457 |
- if linux_config_exists; then |
1458 |
- local uevent_helper_path=$(linux_chkconfig_string UEVENT_HELPER_PATH) |
1459 |
- if [[ -n "${uevent_helper_path}" ]] && [[ "${uevent_helper_path}" != '""' ]]; then |
1460 |
- ewarn "It's recommended to set an empty value to the following kernel config option:" |
1461 |
- ewarn "CONFIG_UEVENT_HELPER_PATH=${uevent_helper_path}" |
1462 |
- fi |
1463 |
- fi |
1464 |
- fi |
1465 |
- |
1466 |
- check_extra_config |
1467 |
- |
1468 |
- # 1. Genkernel no longer copies /sbin/lvm blindly. |
1469 |
- if use static; then |
1470 |
- elog "Warning, we no longer overwrite /sbin/lvm and /sbin/dmsetup with" |
1471 |
- elog "their static versions. If you need the static binaries," |
1472 |
- elog "you must append .static to the filename!" |
1473 |
- fi |
1474 |
-} |
1475 |
- |
1476 |
-src_prepare() { |
1477 |
- default |
1478 |
- |
1479 |
- sed -i \ |
1480 |
- -e "1iAR = $(tc-getAR)" \ |
1481 |
- -e "s:CC ?= @CC@:CC = $(tc-getCC):" \ |
1482 |
- make.tmpl.in || die #444082 |
1483 |
- |
1484 |
- sed -i -e '/FLAG/s:-O2::' configure{.ac,} || die #480212 |
1485 |
- |
1486 |
- if use udev && ! use device-mapper-only; then |
1487 |
- sed -i -e '/use_lvmetad =/s:0:1:' conf/example.conf.in || die #514196 |
1488 |
- elog "Notice that \"use_lvmetad\" setting is enabled with USE=\"udev\" in" |
1489 |
- elog "/etc/lvm/lvm.conf, which will require restart of udev, lvm, and lvmetad" |
1490 |
- elog "if it was previously disabled." |
1491 |
- fi |
1492 |
- |
1493 |
- sed -i -e "s:/usr/bin/true:$(type -P true):" scripts/blk_availability_systemd_red_hat.service.in || die #517514 |
1494 |
- |
1495 |
- # Don't install thin man page when not requested |
1496 |
- if ! use thin ; then |
1497 |
- sed -i -e 's/^\(MAN7+=.*\) $(LVMTHINMAN) \(.*\)$/\1 \2/' man/Makefile.in || die |
1498 |
- fi |
1499 |
- |
1500 |
- eautoreconf |
1501 |
-} |
1502 |
- |
1503 |
-src_configure() { |
1504 |
- filter-flags -flto |
1505 |
- local myeconfargs=() |
1506 |
- |
1507 |
- # Most of this package does weird stuff. |
1508 |
- # The build options are tristate, and --without is NOT supported |
1509 |
- # options: 'none', 'internal', 'shared' |
1510 |
- myeconfargs+=( |
1511 |
- $(use_enable !device-mapper-only dmfilemapd) |
1512 |
- $(use_enable !device-mapper-only dmeventd) |
1513 |
- $(use_enable !device-mapper-only cmdlib) |
1514 |
- $(use_enable !device-mapper-only applib) |
1515 |
- $(use_enable !device-mapper-only fsadm) |
1516 |
- $(use_enable !device-mapper-only lvmetad) |
1517 |
- $(use_enable !device-mapper-only lvmpolld) |
1518 |
- $(usex device-mapper-only --disable-udev-systemd-background-jobs '') |
1519 |
- |
1520 |
- # This only causes the .static versions to become available |
1521 |
- $(usex static --enable-static_link '') |
1522 |
- |
1523 |
- # dmeventd requires mirrors to be internal, and snapshot available |
1524 |
- # so we cannot disable them |
1525 |
- --with-mirrors="$(usex device-mapper-only none internal)" |
1526 |
- --with-snapshots="$(usex device-mapper-only none internal)" |
1527 |
- |
1528 |
- # disable O_DIRECT support on hppa, breaks pv detection (#99532) |
1529 |
- $(usex hppa --disable-o_direct '') |
1530 |
- ) |
1531 |
- |
1532 |
- if use thin; then |
1533 |
- myeconfargs+=( --with-thin=internal --with-cache=internal ) |
1534 |
- local texec |
1535 |
- for texec in check dump repair restore; do |
1536 |
- myeconfargs+=( --with-thin-${texec}="${EPREFIX}"/sbin/thin_${texec} ) |
1537 |
- myeconfargs+=( --with-cache-${texec}="${EPREFIX}"/sbin/cache_${texec} ) |
1538 |
- done |
1539 |
- else |
1540 |
- myeconfargs+=( --with-thin=none --with-cache=none ) |
1541 |
- fi |
1542 |
- |
1543 |
- myeconfargs+=( --with-clvmd=none --with-cluster=none ) |
1544 |
- |
1545 |
- myeconfargs+=( |
1546 |
- $(use_enable readline) |
1547 |
- $(use_enable selinux) |
1548 |
- --enable-pkgconfig |
1549 |
- --with-confdir="${EPREFIX}"/etc |
1550 |
- --exec-prefix="${EPREFIX}" |
1551 |
- --sbindir="${EPREFIX}/sbin" |
1552 |
- --with-staticdir="${EPREFIX}"/sbin |
1553 |
- --libdir="${EPREFIX}/$(get_libdir)" |
1554 |
- --with-usrlibdir="${EPREFIX}/usr/$(get_libdir)" |
1555 |
- --with-default-dm-run-dir=/run |
1556 |
- --with-default-run-dir=/run/lvm |
1557 |
- --with-default-locking-dir=/run/lock/lvm |
1558 |
- --with-default-pid-dir=/run |
1559 |
- $(use_enable udev udev_rules) |
1560 |
- $(use_enable udev udev_sync) |
1561 |
- $(use_with udev udevdir "$(get_udevdir)"/rules.d) |
1562 |
- $(use_enable sanlock lvmlockd-sanlock) |
1563 |
- $(use_enable systemd udev-systemd-background-jobs) |
1564 |
- $(use_enable systemd notify-dbus) |
1565 |
- --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" |
1566 |
- CLDFLAGS="${LDFLAGS}" |
1567 |
- ) |
1568 |
- # Hard-wire this to bash as some shells (dash) don't know |
1569 |
- # "-o pipefail" #682404 |
1570 |
- CONFIG_SHELL="/bin/bash" \ |
1571 |
- econf "${myeconfargs[@]}" |
1572 |
-} |
1573 |
- |
1574 |
-src_compile() { |
1575 |
- pushd include >/dev/null |
1576 |
- emake V=1 |
1577 |
- popd >/dev/null |
1578 |
- |
1579 |
- if use device-mapper-only ; then |
1580 |
- emake V=1 device-mapper |
1581 |
- else |
1582 |
- emake V=1 |
1583 |
- emake V=1 CC="$(tc-getCC)" -C scripts lvm2_activation_generator_systemd_red_hat |
1584 |
- fi |
1585 |
-} |
1586 |
- |
1587 |
-src_install() { |
1588 |
- local inst INSTALL_TARGETS |
1589 |
- INSTALL_TARGETS=( install install_tmpfiles_configuration ) |
1590 |
- # install systemd related files only when requested, bug #522430 |
1591 |
- use systemd && INSTALL_TARGETS+=( install_systemd_units install_systemd_generators ) |
1592 |
- use device-mapper-only && INSTALL_TARGETS=( install_device-mapper ) |
1593 |
- for inst in ${INSTALL_TARGETS[@]}; do |
1594 |
- emake V=1 DESTDIR="${D}" ${inst} |
1595 |
- done |
1596 |
- |
1597 |
- newinitd "${FILESDIR}"/device-mapper.rc-2.02.105-r2 device-mapper |
1598 |
- newconfd "${FILESDIR}"/device-mapper.conf-1.02.22-r3 device-mapper |
1599 |
- |
1600 |
- if use !device-mapper-only ; then |
1601 |
- newinitd "${FILESDIR}"/dmeventd.initd-2.02.184-r2 dmeventd |
1602 |
- newinitd "${FILESDIR}"/lvm.rc-2.02.184-r3 lvm |
1603 |
- newconfd "${FILESDIR}"/lvm.confd-2.02.184-r3 lvm |
1604 |
- if ! use udev ; then |
1605 |
- # We keep the variable but remove udev from it. |
1606 |
- sed -r -i \ |
1607 |
- -e '/^rc_need=/s/\<udev\>//g' \ |
1608 |
- "${ED}/etc/conf.d/lvm" || die "Could not drop udev from rc_need" |
1609 |
- fi |
1610 |
- |
1611 |
- newinitd "${FILESDIR}"/lvm-monitoring.initd-2.02.105-r2 lvm-monitoring |
1612 |
- newinitd "${FILESDIR}"/lvmetad.initd-2.02.116-r3 lvmetad |
1613 |
- newinitd "${FILESDIR}"/lvmpolld.initd-2.02.183 lvmpolld |
1614 |
- fi |
1615 |
- |
1616 |
- if use sanlock; then |
1617 |
- newinitd "${FILESDIR}"/lvmlockd.initd-2.02.166-r1 lvmlockd |
1618 |
- fi |
1619 |
- |
1620 |
- if use static-libs; then |
1621 |
- dolib.a libdm/ioctl/libdevmapper.a |
1622 |
- if use !device-mapper-only; then |
1623 |
- # depends on lvmetad |
1624 |
- dolib.a libdaemon/client/libdaemonclient.a #462908 |
1625 |
- # depends on dmeventd |
1626 |
- dolib.a daemons/dmeventd/libdevmapper-event.a |
1627 |
- fi |
1628 |
- else |
1629 |
- rm -f "${ED}"/usr/$(get_libdir)/{libdevmapper-event,liblvm2cmd,liblvm2app,libdevmapper}.a |
1630 |
- fi |
1631 |
- |
1632 |
- if use lvm2create_initrd; then |
1633 |
- dosbin scripts/lvm2create_initrd/lvm2create_initrd |
1634 |
- doman scripts/lvm2create_initrd/lvm2create_initrd.8 |
1635 |
- newdoc scripts/lvm2create_initrd/README README.lvm2create_initrd |
1636 |
- fi |
1637 |
- |
1638 |
- insinto /etc |
1639 |
- doins "${FILESDIR}"/dmtab |
1640 |
- |
1641 |
- dodoc README VERSION* WHATS_NEW WHATS_NEW_DM doc/*.{c,txt} conf/*.conf |
1642 |
-} |
1643 |
- |
1644 |
-pkg_postinst() { |
1645 |
- ewarn "Make sure the \"lvm\" init script is in the runlevels:" |
1646 |
- ewarn "# rc-update add lvm boot" |
1647 |
- ewarn |
1648 |
- ewarn "Make sure to enable lvmetad in /etc/lvm/lvm.conf if you want" |
1649 |
- ewarn "to enable lvm autoactivation and metadata caching." |
1650 |
-} |
1651 |
- |
1652 |
-src_test() { |
1653 |
- einfo "Tests are disabled because of device-node mucking, if you want to" |
1654 |
- einfo "run tests, compile the package and see ${S}/tests" |
1655 |
-} |