1 |
commit: 2caa8c41c00a6ad66c91f40e217d6a35756fa3d0 |
2 |
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Apr 16 20:55:47 2019 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Apr 16 20:55:47 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=2caa8c41 |
7 |
|
8 |
sys-fs/lvm2: remove 2.02.145-r2 and unused patches |
9 |
|
10 |
Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org> |
11 |
Package-Manager: Portage-2.3.62, Repoman-2.3.11 |
12 |
|
13 |
sys-fs/lvm2/Manifest | 1 - |
14 |
sys-fs/lvm2/files/lvm.rc-2.02.105-r2 | 96 -------- |
15 |
sys-fs/lvm2/files/lvm.rc-2.02.116-r6 | 132 ----------- |
16 |
.../files/lvm2-2.02.106-pthread-pkgconfig.patch | 32 --- |
17 |
.../lvm2/files/lvm2-2.02.108-example.conf.in.patch | 50 ---- |
18 |
.../lvm2-2.02.108-static-pkgconfig-libs.patch | 104 --------- |
19 |
.../lvm2-2.02.129-dynamic-static-ldflags.patch | 59 ----- |
20 |
.../lvm2/files/lvm2-2.02.129-example.conf.in.patch | 52 ----- |
21 |
.../lvm2-2.02.129-static-pkgconfig-libs.patch | 102 -------- |
22 |
.../files/lvm2-2.02.130-pthread-pkgconfig.patch | 32 --- |
23 |
.../lvm2/files/lvm2-2.02.136-fix-stdio-usage.patch | 112 --------- |
24 |
sys-fs/lvm2/files/lvm2-2.02.136-portability.patch | 44 ---- |
25 |
.../lvm2-2.02.139-dynamic-static-ldflags.patch | 63 ----- |
26 |
sys-fs/lvm2/files/lvm2-2.02.70-asneeded.patch | 15 -- |
27 |
.../lvm2-2.02.92-dynamic-static-ldflags.patch | 63 ----- |
28 |
sys-fs/lvm2/files/lvmetad.initd-2.02.105-r2 | 12 - |
29 |
sys-fs/lvm2/lvm2-2.02.145-r2.ebuild | 260 --------------------- |
30 |
sys-fs/lvm2/metadata.xml | 1 - |
31 |
18 files changed, 1230 deletions(-) |
32 |
|
33 |
diff --git a/sys-fs/lvm2/Manifest b/sys-fs/lvm2/Manifest |
34 |
index bad5158..789b3eb 100644 |
35 |
--- a/sys-fs/lvm2/Manifest |
36 |
+++ b/sys-fs/lvm2/Manifest |
37 |
@@ -1,3 +1,2 @@ |
38 |
-DIST LVM2.2.02.145.tgz 1986370 BLAKE2B 0c9e5efae17f26ff86152cecbf0b11a74e85007b2fa9491f44dec03ac8c11375bacf6685213b4be19037c8fbf70e13549516716ecf8fa262919a44625e6aab34 SHA512 84e28b3efc940837ea9da70fce620744aea0945ba29383b76ad7bcd4b5259b897c714162a8e8b7cfe26ae736a3ad2eca633a3e0df4d6280a32b28bd4cf472d27 |
39 |
DIST LVM2.2.02.183.tgz 2380574 BLAKE2B b1fe71b6cdb8ee20dd53d0ad3399c553487baafa12657ec81a794c84ad161988afdb8693ac247877a2645d693a0740c74c8b991047ed2ba4adc9ec75f1c261a9 SHA512 3947523c6b0862ada40677ed171ed0cf95e070119e377296fc5ccb153e9c4212d34c0b16a887dbd68ccf265525345dabfed2aa59fb3604555429a7e2ecfff4d7 |
40 |
DIST LVM2.2.02.184.tgz 2383698 BLAKE2B b6e308d76d541b9461dfcc6e82db256a175ccdabfae9c9d57d84eabd0d5ea50e3e09954b34741903e027412c2c26f72a5005fe934261576337a810738139deb8 SHA512 9db74f675e7c58f663a39afb79b6f33a33ad2cfbda63e9783ef5027f33977b4a1262a2e6754aa67c586eed083ee119a2e837c32a7746dcc53f13877c9d65c390 |
41 |
|
42 |
diff --git a/sys-fs/lvm2/files/lvm.rc-2.02.105-r2 b/sys-fs/lvm2/files/lvm.rc-2.02.105-r2 |
43 |
deleted file mode 100644 |
44 |
index c59f9c3..0000000 |
45 |
--- a/sys-fs/lvm2/files/lvm.rc-2.02.105-r2 |
46 |
+++ /dev/null |
47 |
@@ -1,96 +0,0 @@ |
48 |
-#!/sbin/openrc-run |
49 |
-# Copyright 1999-2016 Gentoo Foundation |
50 |
-# Distributed under the terms of the GNU General Public License v2 |
51 |
- |
52 |
-depend() { |
53 |
- before checkfs fsck |
54 |
- after modules device-mapper |
55 |
- need lvmetad sysfs |
56 |
-} |
57 |
- |
58 |
-config='global { locking_dir = "/run/lock/lvm" }' |
59 |
- |
60 |
-dm_in_proc() { |
61 |
- local retval=0 |
62 |
- for x in devices misc ; do |
63 |
- grep -qs 'device-mapper' /proc/${x} |
64 |
- retval=$((${retval} + $?)) |
65 |
- done |
66 |
- return ${retval} |
67 |
-} |
68 |
- |
69 |
-start() { |
70 |
- # LVM support for /usr, /home, /opt .... |
71 |
- # This should be done *before* checking local |
72 |
- # volumes, or they never get checked. |
73 |
- |
74 |
- # NOTE: Add needed modules for LVM or RAID, etc |
75 |
- # to /etc/modules.autoload if needed |
76 |
- for lvm_path in /bin/lvm /sbin/lvm ; do |
77 |
- [ -x "$lvm_path" ] && break |
78 |
- done |
79 |
- if [ ! -x "$lvm_path" ]; then |
80 |
- eerror "Cannot find lvm binary in /sbin or /bin!" |
81 |
- return 1 |
82 |
- fi |
83 |
- if [ -z "${CDBOOT}" ] ; then |
84 |
- if [ -e /proc/modules ] && ! dm_in_proc ; then |
85 |
- modprobe dm-mod 2>/dev/null |
86 |
- fi |
87 |
- if [ -d /proc/lvm ] || dm_in_proc ; then |
88 |
- ebegin "Setting up the Logical Volume Manager" |
89 |
- #still echo stderr for debugging |
90 |
- lvm_commands="#! ${lvm_path} --config '${config}'\n" |
91 |
- # Extra PV find pass because some devices might not have been available until very recently |
92 |
- lvm_commands="${lvm_commands}pvscan\n" |
93 |
- # Now make the nodes |
94 |
- lvm_commands="${lvm_commands}vgscan --mknodes\n" |
95 |
- # And turn them on! |
96 |
- lvm_commands="${lvm_commands}vgchange --sysinit -a ly\n" |
97 |
- # Order of this is important, have to work around dash and LVM readline |
98 |
- printf "%b\n" "${lvm_commands}" | $lvm_path /proc/self/fd/0 --config "${config}" >/dev/null |
99 |
- eend $? "Failed to setup the LVM" |
100 |
- fi |
101 |
- fi |
102 |
-} |
103 |
- |
104 |
-stop() { |
105 |
- for lvm_path in /bin/lvm /sbin/lvm ; do |
106 |
- [ -x "$lvm_path" ] && break |
107 |
- done |
108 |
- if [ ! -x "$lvm_path" ]; then |
109 |
- eerror "Cannot find lvm binary in /sbin or /bin!" |
110 |
- return 1 |
111 |
- fi |
112 |
-# Stop LVM2 |
113 |
-if [ -x /sbin/vgs ] && \ |
114 |
- [ -x /sbin/vgchange ] && \ |
115 |
- [ -x /sbin/lvchange ] && \ |
116 |
- [ -f /etc/lvmtab -o -d /etc/lvm ] && \ |
117 |
- [ -d /proc/lvm -o "`grep device-mapper /proc/misc 2>/dev/null`" ] |
118 |
-then |
119 |
- einfo "Shutting down the Logical Volume Manager" |
120 |
- |
121 |
- |
122 |
- VGS=$($lvm_path vgs --config "${config}" -o vg_name --noheadings --nosuffix --rows 2> /dev/null) |
123 |
- |
124 |
- if [ "$VGS" ] |
125 |
- then |
126 |
- ebegin " Shutting Down LVs & VGs" |
127 |
- #still echo stderr for debugging |
128 |
- lvm_commands="#! ${lvm_path} --config '${config}'\n" |
129 |
- # Extra PV find pass because some devices might not have been available until very recently |
130 |
- lvm_commands="${lvm_commands}lvchange --sysinit -a ln ${VGS}\n" |
131 |
- # Now make the nodes |
132 |
- lvm_commands="${lvm_commands}vgchange --sysinit -a ln ${VGS}\n" |
133 |
- # Order of this is important, have to work around dash and LVM readline |
134 |
- printf "%b\n" "${lvm_commands}" | $lvm_path /proc/self/fd/0 --config "${config}" >/dev/null |
135 |
- eend $? "Failed (possibly some LVs still needed for /usr or root)" |
136 |
- fi |
137 |
- |
138 |
- einfo "Finished shutting down the Logical Volume Manager" |
139 |
- return 0 |
140 |
-fi |
141 |
-} |
142 |
- |
143 |
-# vim:ts=4 |
144 |
|
145 |
diff --git a/sys-fs/lvm2/files/lvm.rc-2.02.116-r6 b/sys-fs/lvm2/files/lvm.rc-2.02.116-r6 |
146 |
deleted file mode 100644 |
147 |
index 1bf075f..0000000 |
148 |
--- a/sys-fs/lvm2/files/lvm.rc-2.02.116-r6 |
149 |
+++ /dev/null |
150 |
@@ -1,132 +0,0 @@ |
151 |
-#!/sbin/openrc-run |
152 |
-# Copyright 1999-2016 Gentoo Foundation |
153 |
-# Distributed under the terms of the GNU General Public License v2 |
154 |
- |
155 |
-_get_lvm_path() { |
156 |
- local lvm_path= |
157 |
- for lvm_path in /bin/lvm /sbin/lvm ; do |
158 |
- [ -x "$lvm_path" ] && break |
159 |
- done |
160 |
- echo "${lvm_path}" |
161 |
-} |
162 |
- |
163 |
-_need_lvmetad() |
164 |
-{ |
165 |
- local lvm_path="$(_get_lvm_path)" |
166 |
- [ ! -x "${lvm_path}" ] && return 1 |
167 |
- ${lvm_path} dumpconfig global 2>/dev/null | grep -q 'use_lvmetad=1' |
168 |
-} |
169 |
- |
170 |
-depend() { |
171 |
- before checkfs fsck |
172 |
- after modules device-mapper |
173 |
- # We may use lvmetad based on the configuration. If we added lvmetad |
174 |
- # support while lvm2 is running then we aren't dependent on it. For the |
175 |
- # more common case, if its disabled in the config we aren't dependent |
176 |
- # on it. |
177 |
- config /etc/lvm/lvm.conf |
178 |
- local _need= |
179 |
- if service_started; then |
180 |
- _need=$(service_get_value need) |
181 |
- else |
182 |
- if _need_lvmetad; then |
183 |
- _need="${_need} lvmetad" |
184 |
- fi |
185 |
- fi |
186 |
- need sysfs ${_need} |
187 |
-} |
188 |
- |
189 |
-config='global { locking_dir = "/run/lock/lvm" }' |
190 |
- |
191 |
-dm_in_proc() { |
192 |
- local retval=0 |
193 |
- for x in devices misc ; do |
194 |
- grep -qs 'device-mapper' /proc/${x} |
195 |
- retval=$((${retval} + $?)) |
196 |
- done |
197 |
- return ${retval} |
198 |
-} |
199 |
- |
200 |
-start() { |
201 |
- # LVM support for /usr, /home, /opt .... |
202 |
- # This should be done *before* checking local |
203 |
- # volumes, or they never get checked. |
204 |
- |
205 |
- # NOTE: Add needed modules for LVM or RAID, etc |
206 |
- # to /etc/modules.autoload if needed |
207 |
- lvm_path="$(_get_lvm_path)" |
208 |
- for lvm_path in /bin/lvm /sbin/lvm ; do |
209 |
- [ -x "$lvm_path" ] && break |
210 |
- done |
211 |
- if [ ! -x "$lvm_path" ]; then |
212 |
- eerror "Cannot find lvm binary in /sbin or /bin!" |
213 |
- return 1 |
214 |
- fi |
215 |
- if [ -z "${CDBOOT}" ] ; then |
216 |
- if [ -e /proc/modules ] && ! dm_in_proc ; then |
217 |
- modprobe dm-mod 2>/dev/null |
218 |
- fi |
219 |
- if [ -d /proc/lvm ] || dm_in_proc ; then |
220 |
- ebegin "Setting up the Logical Volume Manager" |
221 |
- #still echo stderr for debugging |
222 |
- lvm_commands="#! ${lvm_path} --config '${config}'\n" |
223 |
- # Extra PV find pass because some devices might not have been available until very recently |
224 |
- lvm_commands="${lvm_commands}pvscan\n" |
225 |
- # Now make the nodes |
226 |
- lvm_commands="${lvm_commands}vgscan --mknodes\n" |
227 |
- # And turn them on! |
228 |
- lvm_commands="${lvm_commands}vgchange --sysinit -a ly\n" |
229 |
- # Order of this is important, have to work around dash and LVM readline |
230 |
- printf "%b\n" "${lvm_commands}" | $lvm_path /proc/self/fd/0 --config "${config}" >/dev/null |
231 |
- eend $? "Failed to setup the LVM" |
232 |
- fi |
233 |
- fi |
234 |
-} |
235 |
- |
236 |
-start_post() |
237 |
-{ |
238 |
- # Save if we needed lvmetad |
239 |
- if _need_lvmetad; then |
240 |
- service_set_value need lvmetad |
241 |
- fi |
242 |
-} |
243 |
- |
244 |
-stop() { |
245 |
- for lvm_path in /bin/lvm /sbin/lvm ; do |
246 |
- [ -x "$lvm_path" ] && break |
247 |
- done |
248 |
- if [ ! -x "$lvm_path" ]; then |
249 |
- eerror "Cannot find lvm binary in /sbin or /bin!" |
250 |
- return 1 |
251 |
- fi |
252 |
-# Stop LVM2 |
253 |
-if [ -x /sbin/vgs ] && \ |
254 |
- [ -x /sbin/vgchange ] && \ |
255 |
- [ -x /sbin/lvchange ] && \ |
256 |
- [ -f /etc/lvmtab -o -d /etc/lvm ] && \ |
257 |
- [ -d /proc/lvm -o "`grep device-mapper /proc/misc 2>/dev/null`" ] |
258 |
-then |
259 |
- einfo "Shutting down the Logical Volume Manager" |
260 |
- |
261 |
- VGS=$($lvm_path vgs --config "${config}" -o vg_name --noheadings --nosuffix --rows 2> /dev/null) |
262 |
- |
263 |
- if [ "$VGS" ] |
264 |
- then |
265 |
- ebegin " Shutting Down LVs & VGs" |
266 |
- #still echo stderr for debugging |
267 |
- lvm_commands="#! ${lvm_path} --config '${config}'\n" |
268 |
- # Extra PV find pass because some devices might not have been available until very recently |
269 |
- lvm_commands="${lvm_commands}lvchange --sysinit -a ln ${VGS}\n" |
270 |
- # Now make the nodes |
271 |
- lvm_commands="${lvm_commands}vgchange --sysinit -a ln ${VGS}\n" |
272 |
- # Order of this is important, have to work around dash and LVM readline |
273 |
- printf "%b\n" "${lvm_commands}" | $lvm_path /proc/self/fd/0 --config "${config}" >/dev/null |
274 |
- eend $? "Failed (possibly some LVs still needed for /usr or root)" |
275 |
- fi |
276 |
- |
277 |
- einfo "Finished shutting down the Logical Volume Manager" |
278 |
- return 0 |
279 |
-fi |
280 |
-} |
281 |
- |
282 |
-# vim:ts=4 |
283 |
|
284 |
diff --git a/sys-fs/lvm2/files/lvm2-2.02.106-pthread-pkgconfig.patch b/sys-fs/lvm2/files/lvm2-2.02.106-pthread-pkgconfig.patch |
285 |
deleted file mode 100644 |
286 |
index 594d606..0000000 |
287 |
--- a/sys-fs/lvm2/files/lvm2-2.02.106-pthread-pkgconfig.patch |
288 |
+++ /dev/null |
289 |
@@ -1,32 +0,0 @@ |
290 |
-Make sure that libdm usage always brings in pthread libraries, both in |
291 |
-pkgconfig and during manual build. |
292 |
- |
293 |
---- tools/Makefile.in |
294 |
-+++ tools/Makefile.in |
295 |
-@@ -87,6 +87,7 @@ |
296 |
- INSTALL_LVM_TARGETS += install_tools_static |
297 |
- INSTALL_DMSETUP_TARGETS += install_dmsetup_static |
298 |
- INSTALL_CMDLIB_TARGETS += install_cmdlib_static |
299 |
-+ STATIC_LIBS += @PTHREAD_LIBS@ |
300 |
- endif |
301 |
- |
302 |
- LVMLIBS = $(LVMINTERNAL_LIBS) |
303 |
-@@ -118,6 +119,10 @@ |
304 |
- |
305 |
- include $(top_builddir)/make.tmpl |
306 |
- |
307 |
-+ifeq ("@STATIC_LINK@", "yes") |
308 |
-+ STATIC_LIBS += @PTHREAD_LIBS@ |
309 |
-+endif |
310 |
-+ |
311 |
- device-mapper: $(TARGETS_DM) |
312 |
- |
313 |
- CFLAGS_dmsetup.o += $(UDEV_CFLAGS) $(EXTRA_EXEC_CFLAGS) |
314 |
---- libdm/libdevmapper.pc.in |
315 |
-+++ libdm/libdevmapper.pc.in |
316 |
-@@ -8,4 +8,5 @@ |
317 |
- Version: @DM_LIB_PATCHLEVEL@ |
318 |
- Cflags: -I${includedir} |
319 |
- Libs: -L${libdir} -ldevmapper |
320 |
-+Libs.private: -L${libdir} @PTHREAD_LIBS@ |
321 |
- Requires.private: @SELINUX_PC@ @UDEV_PC@ |
322 |
|
323 |
diff --git a/sys-fs/lvm2/files/lvm2-2.02.108-example.conf.in.patch b/sys-fs/lvm2/files/lvm2-2.02.108-example.conf.in.patch |
324 |
deleted file mode 100644 |
325 |
index af5a5af..0000000 |
326 |
--- a/sys-fs/lvm2/files/lvm2-2.02.108-example.conf.in.patch |
327 |
+++ /dev/null |
328 |
@@ -1,50 +0,0 @@ |
329 |
-Maintainer note: Forward ported without editing from lvm2-2.02.99-example.conf.in.patch to apply cleanly. |
330 |
- |
331 |
---- conf/example.conf.in |
332 |
-+++ conf/example.conf.in |
333 |
-@@ -105,6 +105,10 @@ |
334 |
- # By default we accept every block device: |
335 |
- # filter = [ "a/.*/" ] |
336 |
- |
337 |
-+ # Gentoo: we exclude /dev/nbd by default, because it makes a lot of kernel |
338 |
-+ # noise when you probed while not available. |
339 |
-+ filter = [ "r|/dev/nbd.*|", "a/.*/" ] |
340 |
-+ |
341 |
- # Exclude the cdrom drive |
342 |
- # filter = [ "r|/dev/cdrom|" ] |
343 |
- |
344 |
-@@ -522,7 +526,8 @@ |
345 |
- # e.g. vgscan.lvm1 and they will stop working after you start using |
346 |
- # the new lvm2 on-disk metadata format. |
347 |
- # The default value is set when the tools are built. |
348 |
-- # fallback_to_lvm1 = 0 |
349 |
-+ # Gentoo: the LVM tools are a seperate package. |
350 |
-+ fallback_to_lvm1 = 0 |
351 |
- |
352 |
- # The default metadata format that commands should use - "lvm1" or "lvm2". |
353 |
- # The command line override is -M1 or -M2. |
354 |
-@@ -1182,12 +1187,13 @@ |
355 |
- |
356 |
- # Metadata settings |
357 |
- # |
358 |
--# metadata { |
359 |
-+metadata { |
360 |
- # Default number of copies of metadata to hold on each PV. 0, 1 or 2. |
361 |
- # You might want to override it from the command line with 0 |
362 |
- # when running pvcreate on new PVs which are to be added to large VGs. |
363 |
- |
364 |
-- # pvmetadatacopies = 1 |
365 |
-+ # Gentoo: enable for data safety, but PV resize is then disabled. |
366 |
-+ # pvmetadatacopies = 2 |
367 |
- |
368 |
- # Default number of copies of metadata to maintain for each VG. |
369 |
- # If set to a non-zero value, LVM automatically chooses which of |
370 |
-@@ -1222,7 +1228,7 @@ |
371 |
- # the supplied toolset to make changes (e.g. vgcfgrestore). |
372 |
- |
373 |
- # dirs = [ "/etc/lvm/metadata", "/mnt/disk2/lvm/metadata2" ] |
374 |
--#} |
375 |
-+} |
376 |
- |
377 |
- # Event daemon |
378 |
- # |
379 |
|
380 |
diff --git a/sys-fs/lvm2/files/lvm2-2.02.108-static-pkgconfig-libs.patch b/sys-fs/lvm2/files/lvm2-2.02.108-static-pkgconfig-libs.patch |
381 |
deleted file mode 100644 |
382 |
index 3ab6998..0000000 |
383 |
--- a/sys-fs/lvm2/files/lvm2-2.02.108-static-pkgconfig-libs.patch |
384 |
+++ /dev/null |
385 |
@@ -1,104 +0,0 @@ |
386 |
-Maintainer note: Forward ported without editing from lvm2-2.02.107-static-pkgconfig-libs.patch to apply cleanly. |
387 |
- |
388 |
---- configure.in |
389 |
-+++ configure.in |
390 |
-@@ -1067,6 +1067,7 @@ |
391 |
- fi]) |
392 |
- if test "$BLKID_WIPING" = yes; then |
393 |
- BLKID_PC="blkid" |
394 |
-+ BLKID_STATIC_LIBS=`$PKG_CONFIG --static --libs $BLKID_PC` |
395 |
- AC_DEFINE([BLKID_WIPING_SUPPORT], 1, [Define to 1 to use libblkid detection of signatures when wiping.]) |
396 |
- fi |
397 |
- fi |
398 |
-@@ -1092,6 +1093,7 @@ |
399 |
- if test "$UDEV_SYNC" = yes; then |
400 |
- pkg_config_init |
401 |
- PKG_CHECK_MODULES(UDEV, libudev >= 143, [UDEV_PC="libudev"]) |
402 |
-+ UDEV_STATIC_LIBS=`$PKG_CONFIG --static --libs libudev` |
403 |
- AC_DEFINE([UDEV_SYNC_SUPPORT], 1, [Define to 1 to enable synchronisation with udev processing.]) |
404 |
- fi |
405 |
- |
406 |
-@@ -1312,19 +1314,32 @@ |
407 |
- if test "$SELINUX" = yes; then |
408 |
- AC_CHECK_LIB([sepol], [sepol_check_context], [ |
409 |
- AC_DEFINE([HAVE_SEPOL], 1, [Define to 1 if sepol_check_context is available.]) |
410 |
-- SELINUX_LIBS="-lsepol"]) |
411 |
-+ SEPOL_LIBS="-lsepol"]) |
412 |
-+ |
413 |
-+ dnl -- init pkgconfig if required |
414 |
-+ if test x$PKGCONFIG_INIT != x1; then |
415 |
-+ pkg_config_init |
416 |
-+ fi |
417 |
-+ PKG_CHECK_MODULES(SELINUX, libselinux, [ |
418 |
-+ SELINUX_PC="libselinux" |
419 |
-+ SELINUX_STATIC_LIBS=`$PKG_CONFIG --static --libs libselinux` |
420 |
-+ SELINUX_LIBS="$SELINUX_LIBS $SEPOL_LIBS" |
421 |
-+ AC_DEFINE([HAVE_SELINUX], 1, [Define to 1 to include support for selinux.]) |
422 |
-+ ],[ |
423 |
-+ dnl -- old non-pkgconfig method, is buggy with static builds |
424 |
- |
425 |
- AC_CHECK_LIB([selinux], [is_selinux_enabled], [ |
426 |
- AC_CHECK_HEADERS([selinux/selinux.h],, hard_bailout) |
427 |
- AC_CHECK_HEADERS([selinux/label.h]) |
428 |
- AC_DEFINE([HAVE_SELINUX], 1, [Define to 1 to include support for selinux.]) |
429 |
-- SELINUX_LIBS="-lselinux $SELINUX_LIBS" |
430 |
-+ SELINUX_LIBS="-lselinux $SEPOL_LIBS" |
431 |
- SELINUX_PC="libselinux" |
432 |
- HAVE_SELINUX=yes ], [ |
433 |
- AC_MSG_WARN(Disabling selinux) |
434 |
- SELINUX_LIBS= |
435 |
- SELINUX_PC= |
436 |
- HAVE_SELINUX=no ]) |
437 |
-+ ]) |
438 |
- fi |
439 |
- |
440 |
- ################################################################################ |
441 |
-@@ -1626,6 +1641,7 @@ |
442 |
- ################################################################################ |
443 |
- AC_SUBST(APPLIB) |
444 |
- AC_SUBST(AWK) |
445 |
-+AC_SUBST(BLKID_STATIC_LIBS) |
446 |
- AC_SUBST(BLKID_PC) |
447 |
- AC_SUBST(BLKID_WIPING) |
448 |
- AC_SUBST(BUILD_CMIRRORD) |
449 |
-@@ -1721,6 +1737,7 @@ |
450 |
- AC_SUBST(SALCK_CFLAGS) |
451 |
- AC_SUBST(SALCK_LIBS) |
452 |
- AC_SUBST(SELINUX_LIBS) |
453 |
-+AC_SUBST(SELINUX_STATIC_LIBS) |
454 |
- AC_SUBST(SELINUX_PC) |
455 |
- AC_SUBST(SNAPSHOTS) |
456 |
- AC_SUBST(STATICDIR) |
457 |
-@@ -1735,6 +1752,7 @@ |
458 |
- AC_SUBST(CACHE_DUMP_CMD) |
459 |
- AC_SUBST(CACHE_REPAIR_CMD) |
460 |
- AC_SUBST(CACHE_RESTORE_CMD) |
461 |
-+AC_SUBST(UDEV_STATIC_LIBS) |
462 |
- AC_SUBST(UDEV_PC) |
463 |
- AC_SUBST(UDEV_RULES) |
464 |
- AC_SUBST(UDEV_SYNC) |
465 |
---- make.tmpl.in |
466 |
-+++ make.tmpl.in |
467 |
-@@ -43,7 +43,7 @@ |
468 |
- |
469 |
- LIBS = @LIBS@ |
470 |
- # Extra libraries always linked with static binaries |
471 |
--STATIC_LIBS = $(SELINUX_LIBS) $(UDEV_LIBS) $(BLKID_LIBS) |
472 |
-+STATIC_LIBS = $(SELINUX_STATIC_LIBS) $(UDEV_STATIC_LIBS) $(BLKID_STATIC_LIBS) |
473 |
- DEFS += @DEFS@ |
474 |
- # FIXME set this only where it's needed, not globally? |
475 |
- CFLAGS += @CFLAGS@ |
476 |
-@@ -57,10 +57,13 @@ |
477 |
- PTHREAD_LIBS = @PTHREAD_LIBS@ |
478 |
- READLINE_LIBS = @READLINE_LIBS@ |
479 |
- SELINUX_LIBS = @SELINUX_LIBS@ |
480 |
-+SELINUX_STATIC_LIBS = @SELINUX_STATIC_LIBS@ |
481 |
- UDEV_CFLAGS = @UDEV_CFLAGS@ |
482 |
- UDEV_LIBS = @UDEV_LIBS@ |
483 |
-+UDEV_STATIC_LIBS = @UDEV_STATIC_LIBS@ |
484 |
- BLKID_CFLAGS = @BLKID_CFLAGS@ |
485 |
- BLKID_LIBS = @BLKID_LIBS@ |
486 |
-+BLKID_STATIC_LIBS = @BLKID_STATIC_LIBS@ |
487 |
- TESTING = @TESTING@ |
488 |
- |
489 |
- # Setup directory variables |
490 |
|
491 |
diff --git a/sys-fs/lvm2/files/lvm2-2.02.129-dynamic-static-ldflags.patch b/sys-fs/lvm2/files/lvm2-2.02.129-dynamic-static-ldflags.patch |
492 |
deleted file mode 100644 |
493 |
index efdfb81..0000000 |
494 |
--- a/sys-fs/lvm2/files/lvm2-2.02.129-dynamic-static-ldflags.patch |
495 |
+++ /dev/null |
496 |
@@ -1,59 +0,0 @@ |
497 |
---- LVM2.2.02.129/configure.in |
498 |
-+++ LVM2.2.02.129/configure.in |
499 |
-@@ -31,6 +31,7 @@ |
500 |
- linux*) |
501 |
- CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym" |
502 |
- ELDFLAGS="-Wl,--export-dynamic" |
503 |
-+ STATIC_LDFLAGS="-Wl,--no-export-dynamic" |
504 |
- # FIXME Generate list and use --dynamic-list=.dlopen.sym |
505 |
- CLDWHOLEARCHIVE="-Wl,-whole-archive" |
506 |
- CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive" |
507 |
-@@ -2008,6 +2009,7 @@ |
508 |
- AC_SUBST(SELINUX_PC) |
509 |
- AC_SUBST(SNAPSHOTS) |
510 |
- AC_SUBST(STATICDIR) |
511 |
-+AC_SUBST(STATIC_LDFLAGS) |
512 |
- AC_SUBST(STATIC_LINK) |
513 |
- AC_SUBST(TESTING) |
514 |
- AC_SUBST(TESTSUITE_DATA) |
515 |
---- LVM2.2.02.129/daemons/dmeventd/Makefile.in |
516 |
-+++ LVM2.2.02.129/daemons/dmeventd/Makefile.in |
517 |
-@@ -66,7 +66,7 @@ |
518 |
- $(DL_LIBS) $(LVMLIBS) $(LIBS) -rdynamic |
519 |
- |
520 |
- dmeventd.static: $(LIB_STATIC) dmeventd.o $(interfacebuilddir)/libdevmapper.a |
521 |
-- $(CC) $(CFLAGS) $(LDFLAGS) $(ELDFLAGS) -static -L. -L$(interfacebuilddir) -o $@ \ |
522 |
-+ $(CC) $(CFLAGS) $(LDFLAGS) $(ELDFLAGS) $(STATIC_LDFLAGS) -static -L. -L$(interfacebuilddir) -o $@ \ |
523 |
- dmeventd.o $(DL_LIBS) $(LVMLIBS) $(LIBS) $(STATIC_LIBS) |
524 |
- |
525 |
- ifeq ("@PKGCONFIG@", "yes") |
526 |
---- LVM2.2.02.129/make.tmpl.in |
527 |
-+++ LVM2.2.02.129/make.tmpl.in |
528 |
-@@ -48,6 +48,7 @@ |
529 |
- # FIXME set this only where it's needed, not globally? |
530 |
- CFLAGS ?= @COPTIMISE_FLAG@ @CFLAGS@ |
531 |
- LDFLAGS ?= @COPTIMISE_FLAG@ @LDFLAGS@ |
532 |
-+STATIC_LDFLAGS += @STATIC_LDFLAGS@ |
533 |
- CLDFLAGS += @CLDFLAGS@ |
534 |
- ELDFLAGS += @ELDFLAGS@ |
535 |
- LDDEPS += @LDDEPS@ |
536 |
---- LVM2.2.02.129/tools/Makefile.in |
537 |
-+++ LVM2.2.02.129/tools/Makefile.in |
538 |
-@@ -129,7 +129,7 @@ |
539 |
- -o $@ dmsetup.o -ldevmapper $(LIBS) |
540 |
- |
541 |
- dmsetup.static: dmsetup.o $(interfacebuilddir)/libdevmapper.a |
542 |
-- $(CC) $(CFLAGS) $(LDFLAGS) -static -L$(interfacebuilddir) \ |
543 |
-+ $(CC) $(CFLAGS) $(LDFLAGS) $(STATIC_LDFLAGS) -static -L$(interfacebuilddir) \ |
544 |
- -o $@ dmsetup.o -ldevmapper $(STATIC_LIBS) $(LIBS) |
545 |
- |
546 |
- all: device-mapper |
547 |
-@@ -146,7 +146,7 @@ |
548 |
- endif |
549 |
- |
550 |
- lvm.static: $(OBJECTS) lvm-static.o $(top_builddir)/lib/liblvm-internal.a $(interfacebuilddir)/libdevmapper.a |
551 |
-- $(CC) $(CFLAGS) $(LDFLAGS) -static -L$(interfacebuilddir) -o $@ \ |
552 |
-+ $(CC) $(CFLAGS) $(LDFLAGS) $(STATIC_LDFLAGS) -static -L$(interfacebuilddir) -o $@ \ |
553 |
- $(OBJECTS) lvm-static.o $(LVMLIBS) $(STATIC_LIBS) $(LIBS) |
554 |
- |
555 |
- liblvm2cmd.a: $(top_builddir)/lib/liblvm-internal.a $(OBJECTS) lvmcmdlib.o lvm2cmd.o |
556 |
|
557 |
diff --git a/sys-fs/lvm2/files/lvm2-2.02.129-example.conf.in.patch b/sys-fs/lvm2/files/lvm2-2.02.129-example.conf.in.patch |
558 |
deleted file mode 100644 |
559 |
index 076e060..0000000 |
560 |
--- a/sys-fs/lvm2/files/lvm2-2.02.129-example.conf.in.patch |
561 |
+++ /dev/null |
562 |
@@ -1,52 +0,0 @@ |
563 |
-Maintainer note: Forward ported without editing from lvm2-2.02.108-example.conf.in.patch to apply cleanly. |
564 |
- |
565 |
---- LVM2.2.02.129/conf/example.conf.in |
566 |
-+++ LVM2.2.02.129/conf/example.conf.in |
567 |
-@@ -128,6 +128,9 @@ |
568 |
- # Example |
569 |
- # Accept every block device: |
570 |
- # filter = [ "a|.*/|" ] |
571 |
-+ # Gentoo: we exclude /dev/nbd by default, because it makes a lot of kernel |
572 |
-+ # noise when you probed while not available. |
573 |
-+ filter = [ "r|/dev/nbd.*|", "a/.*/" ] |
574 |
- # Reject the cdrom drive: |
575 |
- # filter = [ "r|/dev/cdrom|" ] |
576 |
- # Work with just loopback devices, e.g. for testing: |
577 |
-@@ -620,7 +623,8 @@ |
578 |
- # tools need to be installed with .lvm1 suffices, e.g. vgscan.lvm1. |
579 |
- # They will stop working once the lvm2 on-disk metadata format is used. |
580 |
- # This configuration option has an automatic default value. |
581 |
-- # fallback_to_lvm1 = @DEFAULT_FALLBACK_TO_LVM1@ |
582 |
-+ # Gentoo: the LVM tools are a seperate package. |
583 |
-+ fallback_to_lvm1 = 0 |
584 |
- |
585 |
- # Configuration option global/format. |
586 |
- # The default metadata format that commands should use. |
587 |
-@@ -1413,7 +1417,7 @@ |
588 |
- |
589 |
- # Configuration section metadata. |
590 |
- # This configuration section has an automatic default value. |
591 |
--# metadata { |
592 |
-+metadata { |
593 |
- |
594 |
- # Configuration option metadata/pvmetadatacopies. |
595 |
- # Number of copies of metadata to store on each PV. |
596 |
-@@ -1431,7 +1435,8 @@ |
597 |
- # |
598 |
- # This configuration option is advanced. |
599 |
- # This configuration option has an automatic default value. |
600 |
-- # pvmetadatacopies = 1 |
601 |
-+ # Gentoo: enable for data safety, but PV resize is then disabled. |
602 |
-+ # pvmetadatacopies = 2 |
603 |
- |
604 |
- # Configuration option metadata/vgmetadatacopies. |
605 |
- # Number of copies of metadata to maintain for each VG. |
606 |
-@@ -1486,7 +1491,7 @@ |
607 |
- # |
608 |
- # This configuration option is advanced. |
609 |
- # This configuration option does not have a default value defined. |
610 |
--# } |
611 |
-+} |
612 |
- |
613 |
- # Configuration section report. |
614 |
- # LVM report command output formatting. |
615 |
|
616 |
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 |
617 |
deleted file mode 100644 |
618 |
index 2396945..0000000 |
619 |
--- a/sys-fs/lvm2/files/lvm2-2.02.129-static-pkgconfig-libs.patch |
620 |
+++ /dev/null |
621 |
@@ -1,102 +0,0 @@ |
622 |
---- LVM2.2.02.129/configure.in |
623 |
-+++ LVM2.2.02.129/configure.in |
624 |
-@@ -1287,6 +1287,7 @@ |
625 |
- fi]) |
626 |
- if test "$BLKID_WIPING" = yes; then |
627 |
- BLKID_PC="blkid" |
628 |
-+ BLKID_STATIC_LIBS=`$PKG_CONFIG --static --libs $BLKID_PC` |
629 |
- DEFAULT_USE_BLKID_WIPING=1 |
630 |
- AC_DEFINE([BLKID_WIPING_SUPPORT], 1, [Define to 1 to use libblkid detection of signatures when wiping.]) |
631 |
- else |
632 |
-@@ -1332,6 +1333,7 @@ |
633 |
- if test "$UDEV_SYNC" = yes; then |
634 |
- pkg_config_init |
635 |
- PKG_CHECK_MODULES(UDEV, libudev >= 143, [UDEV_PC="libudev"]) |
636 |
-+ UDEV_STATIC_LIBS=`$PKG_CONFIG --static --libs libudev` |
637 |
- AC_DEFINE([UDEV_SYNC_SUPPORT], 1, [Define to 1 to enable synchronisation with udev processing.]) |
638 |
- fi |
639 |
- |
640 |
-@@ -1558,19 +1560,32 @@ |
641 |
- if test "$SELINUX" = yes; then |
642 |
- AC_CHECK_LIB([sepol], [sepol_check_context], [ |
643 |
- AC_DEFINE([HAVE_SEPOL], 1, [Define to 1 if sepol_check_context is available.]) |
644 |
-- SELINUX_LIBS="-lsepol"]) |
645 |
-+ SEPOL_LIBS="-lsepol"]) |
646 |
-+ |
647 |
-+ dnl -- init pkgconfig if required |
648 |
-+ if test x$PKGCONFIG_INIT != x1; then |
649 |
-+ pkg_config_init |
650 |
-+ fi |
651 |
-+ PKG_CHECK_MODULES(SELINUX, libselinux, [ |
652 |
-+ SELINUX_PC="libselinux" |
653 |
-+ SELINUX_STATIC_LIBS=`$PKG_CONFIG --static --libs libselinux` |
654 |
-+ SELINUX_LIBS="$SELINUX_LIBS $SEPOL_LIBS" |
655 |
-+ AC_DEFINE([HAVE_SELINUX], 1, [Define to 1 to include support for selinux.]) |
656 |
-+ ],[ |
657 |
-+ dnl -- old non-pkgconfig method, is buggy with static builds |
658 |
- |
659 |
- AC_CHECK_LIB([selinux], [is_selinux_enabled], [ |
660 |
- AC_CHECK_HEADERS([selinux/selinux.h],, hard_bailout) |
661 |
- AC_CHECK_HEADERS([selinux/label.h]) |
662 |
- AC_DEFINE([HAVE_SELINUX], 1, [Define to 1 to include support for selinux.]) |
663 |
-- SELINUX_LIBS="-lselinux $SELINUX_LIBS" |
664 |
-+ SELINUX_LIBS="-lselinux $SEPOL_LIBS" |
665 |
- SELINUX_PC="libselinux" |
666 |
- HAVE_SELINUX=yes ], [ |
667 |
- AC_MSG_WARN(Disabling selinux) |
668 |
- SELINUX_LIBS= |
669 |
- SELINUX_PC= |
670 |
- HAVE_SELINUX=no ]) |
671 |
-+ ]) |
672 |
- fi |
673 |
- |
674 |
- ################################################################################ |
675 |
-@@ -1902,6 +1917,7 @@ |
676 |
- ################################################################################ |
677 |
- AC_SUBST(APPLIB) |
678 |
- AC_SUBST(AWK) |
679 |
-+AC_SUBST(BLKID_STATIC_LIBS) |
680 |
- AC_SUBST(BLKID_PC) |
681 |
- AC_SUBST(BUILD_CMIRRORD) |
682 |
- AC_SUBST(BUILD_DMEVENTD) |
683 |
-@@ -2005,6 +2021,7 @@ |
684 |
- AC_SUBST(SALCK_CFLAGS) |
685 |
- AC_SUBST(SALCK_LIBS) |
686 |
- AC_SUBST(SELINUX_LIBS) |
687 |
-+AC_SUBST(SELINUX_STATIC_LIBS) |
688 |
- AC_SUBST(SELINUX_PC) |
689 |
- AC_SUBST(SNAPSHOTS) |
690 |
- AC_SUBST(STATICDIR) |
691 |
-@@ -2020,6 +2037,7 @@ |
692 |
- AC_SUBST(CACHE_DUMP_CMD) |
693 |
- AC_SUBST(CACHE_REPAIR_CMD) |
694 |
- AC_SUBST(CACHE_RESTORE_CMD) |
695 |
-+AC_SUBST(UDEV_STATIC_LIBS) |
696 |
- AC_SUBST(UDEV_PC) |
697 |
- AC_SUBST(UDEV_RULES) |
698 |
- AC_SUBST(UDEV_SYNC) |
699 |
---- LVM2.2.02.129/make.tmpl.in |
700 |
-+++ LVM2.2.02.129/make.tmpl.in |
701 |
-@@ -43,7 +43,7 @@ |
702 |
- |
703 |
- LIBS = @LIBS@ |
704 |
- # Extra libraries always linked with static binaries |
705 |
--STATIC_LIBS = $(SELINUX_LIBS) $(UDEV_LIBS) $(BLKID_LIBS) |
706 |
-+STATIC_LIBS = $(SELINUX_STATIC_LIBS) $(UDEV_STATIC_LIBS) $(BLKID_STATIC_LIBS) |
707 |
- DEFS += @DEFS@ |
708 |
- # FIXME set this only where it's needed, not globally? |
709 |
- CFLAGS ?= @COPTIMISE_FLAG@ @CFLAGS@ |
710 |
-@@ -58,10 +58,13 @@ |
711 |
- PTHREAD_LIBS = @PTHREAD_LIBS@ |
712 |
- READLINE_LIBS = @READLINE_LIBS@ |
713 |
- SELINUX_LIBS = @SELINUX_LIBS@ |
714 |
-+SELINUX_STATIC_LIBS = @SELINUX_STATIC_LIBS@ |
715 |
- UDEV_CFLAGS = @UDEV_CFLAGS@ |
716 |
- UDEV_LIBS = @UDEV_LIBS@ |
717 |
-+UDEV_STATIC_LIBS = @UDEV_STATIC_LIBS@ |
718 |
- BLKID_CFLAGS = @BLKID_CFLAGS@ |
719 |
- BLKID_LIBS = @BLKID_LIBS@ |
720 |
-+BLKID_STATIC_LIBS = @BLKID_STATIC_LIBS@ |
721 |
- VALGRIND_CFLAGS = @VALGRIND_CFLAGS@ |
722 |
- TESTING = @TESTING@ |
723 |
- |
724 |
|
725 |
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 |
726 |
deleted file mode 100644 |
727 |
index 11db632..0000000 |
728 |
--- a/sys-fs/lvm2/files/lvm2-2.02.130-pthread-pkgconfig.patch |
729 |
+++ /dev/null |
730 |
@@ -1,32 +0,0 @@ |
731 |
-Make sure that libdm usage always brings in pthread libraries, both in |
732 |
-pkgconfig and during manual build. |
733 |
- |
734 |
---- LVM2.2.02.130/libdm/libdevmapper.pc.in |
735 |
-+++ LVM2.2.02.130/libdm/libdevmapper.pc.in |
736 |
-@@ -9,4 +9,4 @@ |
737 |
- Cflags: -I${includedir} |
738 |
- Libs: -L${libdir} -ldevmapper |
739 |
- Requires.private: @SELINUX_PC@ @UDEV_PC@ |
740 |
--Libs.private: -lm @RT_LIB@ |
741 |
-+Libs.private: -lm @RT_LIB@ @PTHREAD_LIBS@ |
742 |
---- LVM2.2.02.130/tools/Makefile.in |
743 |
-+++ LVM2.2.02.130/tools/Makefile.in |
744 |
-@@ -90,6 +90,7 @@ |
745 |
- INSTALL_LVM_TARGETS += install_tools_static |
746 |
- INSTALL_DMSETUP_TARGETS += install_dmsetup_static |
747 |
- INSTALL_CMDLIB_TARGETS += install_cmdlib_static |
748 |
-+ STATIC_LIBS += @PTHREAD_LIBS@ |
749 |
- endif |
750 |
- |
751 |
- LVMLIBS = $(LVMINTERNAL_LIBS) |
752 |
-@@ -120,6 +121,10 @@ |
753 |
- |
754 |
- include $(top_builddir)/make.tmpl |
755 |
- |
756 |
-+ifeq ("@STATIC_LINK@", "yes") |
757 |
-+ STATIC_LIBS += @PTHREAD_LIBS@ |
758 |
-+endif |
759 |
-+ |
760 |
- device-mapper: $(TARGETS_DM) |
761 |
- |
762 |
- CFLAGS_dmsetup.o += $(UDEV_CFLAGS) $(EXTRA_EXEC_CFLAGS) |
763 |
|
764 |
diff --git a/sys-fs/lvm2/files/lvm2-2.02.136-fix-stdio-usage.patch b/sys-fs/lvm2/files/lvm2-2.02.136-fix-stdio-usage.patch |
765 |
deleted file mode 100644 |
766 |
index 6492ec0..0000000 |
767 |
--- a/sys-fs/lvm2/files/lvm2-2.02.136-fix-stdio-usage.patch |
768 |
+++ /dev/null |
769 |
@@ -1,112 +0,0 @@ |
770 |
-diff -Naurw LVM2.2.02.136.orig/lib/commands/toolcontext.c LVM2.2.02.136/lib/commands/toolcontext.c |
771 |
---- LVM2.2.02.136.orig/lib/commands/toolcontext.c 2015-11-27 17:29:19.000000000 -0800 |
772 |
-+++ LVM2.2.02.136/lib/commands/toolcontext.c 2015-12-03 09:12:38.501331770 -0800 |
773 |
-@@ -1637,7 +1637,9 @@ |
774 |
- /* |
775 |
- * Close and reopen stream on file descriptor fd. |
776 |
- */ |
777 |
--static int _reopen_stream(FILE *stream, int fd, const char *mode, const char *name, FILE **new_stream) |
778 |
-+#if defined(__GLIBC__) |
779 |
-+#define _reopen_stream(stream, fd, mode, name) __reopen_stream(stream, fd, mode, name, &stream) |
780 |
-+static int __reopen_stream(FILE *stream, int fd, const char *mode, const char *name, FILE **new_stream) |
781 |
- { |
782 |
- int fd_copy, new_fd; |
783 |
- |
784 |
-@@ -1664,6 +1666,9 @@ |
785 |
- |
786 |
- return 1; |
787 |
- } |
788 |
-+#else |
789 |
-+#define _reopen_stream(stream, fd, mode, name) (freopen(NULL, mode, stream) != NULL) |
790 |
-+#endif |
791 |
- |
792 |
- static int _init_lvmetad(struct cmd_context *cmd) |
793 |
- { |
794 |
-@@ -1741,7 +1746,6 @@ |
795 |
- unsigned set_filters) |
796 |
- { |
797 |
- struct cmd_context *cmd; |
798 |
-- FILE *new_stream; |
799 |
- int flags; |
800 |
- |
801 |
- #ifdef M_MMAP_MAX |
802 |
-@@ -1791,9 +1795,8 @@ |
803 |
- if (is_valid_fd(STDIN_FILENO) && |
804 |
- ((flags = fcntl(STDIN_FILENO, F_GETFL)) > 0) && |
805 |
- (flags & O_ACCMODE) != O_WRONLY) { |
806 |
-- if (!_reopen_stream(stdin, STDIN_FILENO, "r", "stdin", &new_stream)) |
807 |
-+ if (!_reopen_stream(stdin, STDIN_FILENO, "r", "stdin")) |
808 |
- goto_out; |
809 |
-- stdin = new_stream; |
810 |
- if (setvbuf(stdin, cmd->linebuffer, _IOLBF, linebuffer_size)) { |
811 |
- log_sys_error("setvbuf", ""); |
812 |
- goto out; |
813 |
-@@ -1803,9 +1806,8 @@ |
814 |
- if (is_valid_fd(STDOUT_FILENO) && |
815 |
- ((flags = fcntl(STDOUT_FILENO, F_GETFL)) > 0) && |
816 |
- (flags & O_ACCMODE) != O_RDONLY) { |
817 |
-- if (!_reopen_stream(stdout, STDOUT_FILENO, "w", "stdout", &new_stream)) |
818 |
-+ if (!_reopen_stream(stdout, STDOUT_FILENO, "w", "stdout")) |
819 |
- goto_out; |
820 |
-- stdout = new_stream; |
821 |
- if (setvbuf(stdout, cmd->linebuffer + linebuffer_size, |
822 |
- _IOLBF, linebuffer_size)) { |
823 |
- log_sys_error("setvbuf", ""); |
824 |
-@@ -2131,7 +2133,6 @@ |
825 |
- void destroy_toolcontext(struct cmd_context *cmd) |
826 |
- { |
827 |
- struct dm_config_tree *cft_cmdline; |
828 |
-- FILE *new_stream; |
829 |
- int flags; |
830 |
- |
831 |
- if (cmd->dump_filter && cmd->filter && cmd->filter->dump && |
832 |
-@@ -2167,8 +2168,7 @@ |
833 |
- if (is_valid_fd(STDIN_FILENO) && |
834 |
- ((flags = fcntl(STDIN_FILENO, F_GETFL)) > 0) && |
835 |
- (flags & O_ACCMODE) != O_WRONLY) { |
836 |
-- if (_reopen_stream(stdin, STDIN_FILENO, "r", "stdin", &new_stream)) { |
837 |
-- stdin = new_stream; |
838 |
-+ if (_reopen_stream(stdin, STDIN_FILENO, "r", "stdin")) { |
839 |
- setlinebuf(stdin); |
840 |
- } else |
841 |
- cmd->linebuffer = NULL; /* Leave buffer in place (deliberate leak) */ |
842 |
-@@ -2177,8 +2177,7 @@ |
843 |
- if (is_valid_fd(STDOUT_FILENO) && |
844 |
- ((flags = fcntl(STDOUT_FILENO, F_GETFL)) > 0) && |
845 |
- (flags & O_ACCMODE) != O_RDONLY) { |
846 |
-- if (_reopen_stream(stdout, STDOUT_FILENO, "w", "stdout", &new_stream)) { |
847 |
-- stdout = new_stream; |
848 |
-+ if (_reopen_stream(stdout, STDOUT_FILENO, "w", "stdout")) { |
849 |
- setlinebuf(stdout); |
850 |
- } else |
851 |
- cmd->linebuffer = NULL; /* Leave buffer in place (deliberate leak) */ |
852 |
-diff -Naurw LVM2.2.02.136.orig/tools/lvmcmdline.c LVM2.2.02.136/tools/lvmcmdline.c |
853 |
---- LVM2.2.02.136.orig/tools/lvmcmdline.c 2015-11-27 17:29:22.000000000 -0800 |
854 |
-+++ LVM2.2.02.136/tools/lvmcmdline.c 2015-12-03 09:14:19.984668128 -0800 |
855 |
-@@ -1744,7 +1744,7 @@ |
856 |
- int err = is_valid_fd(STDERR_FILENO); |
857 |
- |
858 |
- if (!is_valid_fd(STDIN_FILENO) && |
859 |
-- !(stdin = fopen(_PATH_DEVNULL, "r"))) { |
860 |
-+ !freopen(_PATH_DEVNULL, "r", stdin)) { |
861 |
- if (err) |
862 |
- perror("stdin stream open"); |
863 |
- else |
864 |
-@@ -1754,7 +1754,7 @@ |
865 |
- } |
866 |
- |
867 |
- if (!is_valid_fd(STDOUT_FILENO) && |
868 |
-- !(stdout = fopen(_PATH_DEVNULL, "w"))) { |
869 |
-+ !freopen(_PATH_DEVNULL, "w", stdout)) { |
870 |
- if (err) |
871 |
- perror("stdout stream open"); |
872 |
- /* else no stdout */ |
873 |
-@@ -1762,7 +1762,7 @@ |
874 |
- } |
875 |
- |
876 |
- if (!is_valid_fd(STDERR_FILENO) && |
877 |
-- !(stderr = fopen(_PATH_DEVNULL, "w"))) { |
878 |
-+ !freopen(_PATH_DEVNULL, "w", stderr)) { |
879 |
- printf("stderr stream open: %s\n", |
880 |
- strerror(errno)); |
881 |
- return 0; |
882 |
|
883 |
diff --git a/sys-fs/lvm2/files/lvm2-2.02.136-portability.patch b/sys-fs/lvm2/files/lvm2-2.02.136-portability.patch |
884 |
deleted file mode 100644 |
885 |
index 4d3f8ab..0000000 |
886 |
--- a/sys-fs/lvm2/files/lvm2-2.02.136-portability.patch |
887 |
+++ /dev/null |
888 |
@@ -1,44 +0,0 @@ |
889 |
-diff -Naurw LVM2.2.02.136.orig/daemons/lvmetad/lvmetad-core.c LVM2.2.02.136/daemons/lvmetad/lvmetad-core.c |
890 |
---- LVM2.2.02.136.orig/daemons/lvmetad/lvmetad-core.c 2015-11-27 17:29:18.000000000 -0800 |
891 |
-+++ LVM2.2.02.136/daemons/lvmetad/lvmetad-core.c 2015-12-03 09:06:48.387988004 -0800 |
892 |
-@@ -300,7 +300,7 @@ |
893 |
- if (!(vg = dm_hash_lookup(s->lock.vg, id))) { |
894 |
- if (!(vg = malloc(sizeof(pthread_mutex_t))) || |
895 |
- pthread_mutexattr_init(&rec) || |
896 |
-- pthread_mutexattr_settype(&rec, PTHREAD_MUTEX_RECURSIVE_NP) || |
897 |
-+ pthread_mutexattr_settype(&rec, PTHREAD_MUTEX_RECURSIVE) || |
898 |
- pthread_mutex_init(vg, &rec)) |
899 |
- goto bad; |
900 |
- if (!dm_hash_insert(s->lock.vg, id, vg)) { |
901 |
-@@ -2890,7 +2890,7 @@ |
902 |
- ls->log = s->log; |
903 |
- |
904 |
- pthread_mutexattr_init(&rec); |
905 |
-- pthread_mutexattr_settype(&rec, PTHREAD_MUTEX_RECURSIVE_NP); |
906 |
-+ pthread_mutexattr_settype(&rec, PTHREAD_MUTEX_RECURSIVE); |
907 |
- pthread_mutex_init(&ls->lock.pvid_to_pvmeta, &rec); |
908 |
- pthread_mutex_init(&ls->lock.vgid_to_metadata, &rec); |
909 |
- pthread_mutex_init(&ls->lock.pvid_to_vgid, NULL); |
910 |
-diff -Naurw LVM2.2.02.136.orig/lib/mm/memlock.c LVM2.2.02.136/lib/mm/memlock.c |
911 |
---- LVM2.2.02.136.orig/lib/mm/memlock.c 2015-11-27 17:29:19.000000000 -0800 |
912 |
-+++ LVM2.2.02.136/lib/mm/memlock.c 2015-12-03 09:06:20.917987185 -0800 |
913 |
-@@ -145,7 +145,7 @@ |
914 |
- |
915 |
- static void _allocate_memory(void) |
916 |
- { |
917 |
--#ifndef VALGRIND_POOL |
918 |
-+#if !defined(VALGRIND_POOL) && defined(__GLIBC__) |
919 |
- void *stack_mem; |
920 |
- struct rlimit limit; |
921 |
- int i, area = 0, missing = _size_malloc_tmp, max_areas = 32, hblks; |
922 |
-diff -Naurw LVM2.2.02.136.orig/libdaemon/server/daemon-server.c LVM2.2.02.136/libdaemon/server/daemon-server.c |
923 |
---- LVM2.2.02.136.orig/libdaemon/server/daemon-server.c 2015-11-27 17:29:20.000000000 -0800 |
924 |
-+++ LVM2.2.02.136/libdaemon/server/daemon-server.c 2015-12-03 09:07:09.767988641 -0800 |
925 |
-@@ -18,6 +18,7 @@ |
926 |
- #include "daemon-server.h" |
927 |
- #include "daemon-log.h" |
928 |
- |
929 |
-+#include <fcntl.h> |
930 |
- #include <dlfcn.h> |
931 |
- #include <errno.h> |
932 |
- #include <pthread.h> |
933 |
|
934 |
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 |
935 |
deleted file mode 100644 |
936 |
index 312e546..0000000 |
937 |
--- a/sys-fs/lvm2/files/lvm2-2.02.139-dynamic-static-ldflags.patch |
938 |
+++ /dev/null |
939 |
@@ -1,63 +0,0 @@ |
940 |
-diff -ur LVM2.2.02.139_O/configure.in LVM2.2.02.139/configure.in |
941 |
---- LVM2.2.02.139_O/configure.in 2016-01-19 12:54:33.155187005 +0000 |
942 |
-+++ LVM2.2.02.139/configure.in 2016-01-19 12:56:39.487181372 +0000 |
943 |
-@@ -31,6 +31,7 @@ |
944 |
- linux*) |
945 |
- CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym" |
946 |
- ELDFLAGS="-Wl,--export-dynamic" |
947 |
-+ STATIC_LDFLAGS="-Wl,--no-export-dynamic" |
948 |
- # FIXME Generate list and use --dynamic-list=.dlopen.sym |
949 |
- CLDWHOLEARCHIVE="-Wl,-whole-archive" |
950 |
- CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive" |
951 |
-@@ -2009,6 +2010,7 @@ |
952 |
- AC_SUBST(SELINUX_PC) |
953 |
- AC_SUBST(SNAPSHOTS) |
954 |
- AC_SUBST(STATICDIR) |
955 |
-+AC_SUBST(STATIC_LDFLAGS) |
956 |
- AC_SUBST(STATIC_LINK) |
957 |
- AC_SUBST(TESTING) |
958 |
- AC_SUBST(TESTSUITE_DATA) |
959 |
-diff -ur LVM2.2.02.139_O/daemons/dmeventd/Makefile.in LVM2.2.02.139/daemons/dmeventd/Makefile.in |
960 |
---- LVM2.2.02.139_O/daemons/dmeventd/Makefile.in 2016-01-19 12:54:33.278186999 +0000 |
961 |
-+++ LVM2.2.02.139/daemons/dmeventd/Makefile.in 2016-01-19 12:57:44.277178484 +0000 |
962 |
-@@ -67,7 +67,7 @@ |
963 |
- $(DL_LIBS) $(LVMLIBS) $(LIBS) -rdynamic |
964 |
- |
965 |
- dmeventd.static: $(LIB_STATIC) dmeventd.o $(interfacebuilddir)/libdevmapper.a |
966 |
-- $(CC) $(CFLAGS) $(LDFLAGS) $(ELDFLAGS) -static -L. -L$(interfacebuilddir) -o $@ \ |
967 |
-+ $(CC) $(CFLAGS) $(LDFLAGS) $(ELDFLAGS) $(STATIC_LDFLAGS) -static -L. -L$(interfacebuilddir) -o $@ \ |
968 |
- dmeventd.o $(DL_LIBS) $(LVMLIBS) $(LIBS) $(STATIC_LIBS) |
969 |
- |
970 |
- ifeq ("@PKGCONFIG@", "yes") |
971 |
-diff -ur LVM2.2.02.139_O/make.tmpl.in LVM2.2.02.139/make.tmpl.in |
972 |
---- LVM2.2.02.139_O/make.tmpl.in 2016-01-19 12:54:33.529186988 +0000 |
973 |
-+++ LVM2.2.02.139/make.tmpl.in 2016-01-19 12:58:31.514176378 +0000 |
974 |
-@@ -49,6 +49,7 @@ |
975 |
- # FIXME set this only where it's needed, not globally? |
976 |
- CFLAGS ?= @COPTIMISE_FLAG@ @CFLAGS@ |
977 |
- LDFLAGS ?= @COPTIMISE_FLAG@ @LDFLAGS@ |
978 |
-+STATIC_LDFLAGS += @STATIC_LDFLAGS@ |
979 |
- CLDFLAGS += @CLDFLAGS@ |
980 |
- ELDFLAGS += @ELDFLAGS@ |
981 |
- LDDEPS += @LDDEPS@ |
982 |
-diff -ur LVM2.2.02.139_O/tools/Makefile.in LVM2.2.02.139/tools/Makefile.in |
983 |
---- LVM2.2.02.139_O/tools/Makefile.in 2016-01-08 18:51:21.000000000 +0000 |
984 |
-+++ LVM2.2.02.139/tools/Makefile.in 2016-01-19 13:00:08.349172060 +0000 |
985 |
-@@ -129,7 +129,7 @@ |
986 |
- -o $@ dmsetup.o -ldevmapper $(LIBS) |
987 |
- |
988 |
- dmsetup.static: dmsetup.o $(interfacebuilddir)/libdevmapper.a |
989 |
-- $(CC) $(CFLAGS) $(LDFLAGS) -static -L$(interfacebuilddir) \ |
990 |
-+ $(CC) $(CFLAGS) $(LDFLAGS) $(STATIC_LDFLAGS) -static -L$(interfacebuilddir) \ |
991 |
- -o $@ dmsetup.o -ldevmapper $(M_LIBS) $(PTHREAD_LIBS) $(STATIC_LIBS) $(LIBS) |
992 |
- |
993 |
- all: device-mapper |
994 |
-@@ -146,7 +146,7 @@ |
995 |
- endif |
996 |
- |
997 |
- lvm.static: $(OBJECTS) lvm-static.o $(top_builddir)/lib/liblvm-internal.a $(interfacebuilddir)/libdevmapper.a |
998 |
-- $(CC) $(CFLAGS) $(LDFLAGS) -static -L$(interfacebuilddir) -o $@ \ |
999 |
-+ $(CC) $(CFLAGS) $(LDFLAGS) $(STATIC_LDFLAGS) -static -L$(interfacebuilddir) -o $@ \ |
1000 |
- $(OBJECTS) lvm-static.o $(LVMLIBS) $(STATIC_LIBS) $(LIBS) |
1001 |
- |
1002 |
- liblvm2cmd.a: $(top_builddir)/lib/liblvm-internal.a $(OBJECTS) lvmcmdlib.o lvm2cmd.o |
1003 |
|
1004 |
diff --git a/sys-fs/lvm2/files/lvm2-2.02.70-asneeded.patch b/sys-fs/lvm2/files/lvm2-2.02.70-asneeded.patch |
1005 |
deleted file mode 100644 |
1006 |
index 1bae0db..0000000 |
1007 |
--- a/sys-fs/lvm2/files/lvm2-2.02.70-asneeded.patch |
1008 |
+++ /dev/null |
1009 |
@@ -1,15 +0,0 @@ |
1010 |
-http://bugs.gentoo.org/330255 |
1011 |
- |
1012 |
-liblvm2app.so: undefined reference to `floor' |
1013 |
- |
1014 |
---- LVM2/liblvm/Makefile.in |
1015 |
-+++ LVM2/liblvm/Makefile.in |
1016 |
-@@ -39,7 +39,7 @@ |
1017 |
- |
1018 |
- include $(top_builddir)/make.tmpl |
1019 |
- |
1020 |
--LIBS += $(LVMINTERNAL_LIBS) -ldevmapper |
1021 |
-+LIBS += $(LVMINTERNAL_LIBS) -ldevmapper -lm |
1022 |
- |
1023 |
- ifeq ("@DMEVENTD@", "yes") |
1024 |
- LIBS += -ldevmapper-event |
1025 |
|
1026 |
diff --git a/sys-fs/lvm2/files/lvm2-2.02.92-dynamic-static-ldflags.patch b/sys-fs/lvm2/files/lvm2-2.02.92-dynamic-static-ldflags.patch |
1027 |
deleted file mode 100644 |
1028 |
index de2b294..0000000 |
1029 |
--- a/sys-fs/lvm2/files/lvm2-2.02.92-dynamic-static-ldflags.patch |
1030 |
+++ /dev/null |
1031 |
@@ -1,63 +0,0 @@ |
1032 |
-diff -Nuar --exclude '*.rej' --exclude '*.orig' LVM2.2.02.92.orig/configure.in LVM2.2.02.92/configure.in |
1033 |
---- LVM2.2.02.92.orig/configure.in 2012-02-20 11:36:27.000000000 -0800 |
1034 |
-+++ LVM2.2.02.92/configure.in 2012-02-20 15:53:40.700124222 -0800 |
1035 |
-@@ -32,6 +32,7 @@ |
1036 |
- COPTIMISE_FLAG="-O2" |
1037 |
- CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym" |
1038 |
- ELDFLAGS="-Wl,--export-dynamic" |
1039 |
-+ STATIC_LDFLAGS="-Wl,--no-export-dynamic" |
1040 |
- # FIXME Generate list and use --dynamic-list=.dlopen.sym |
1041 |
- CLDWHOLEARCHIVE="-Wl,-whole-archive" |
1042 |
- CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive" |
1043 |
-@@ -1458,6 +1459,7 @@ |
1044 |
- AC_SUBST(SELINUX_PC) |
1045 |
- AC_SUBST(SNAPSHOTS) |
1046 |
- AC_SUBST(STATICDIR) |
1047 |
-+AC_SUBST(STATIC_LDFLAGS) |
1048 |
- AC_SUBST(STATIC_LINK) |
1049 |
- AC_SUBST(TESTING) |
1050 |
- AC_SUBST(THIN) |
1051 |
-diff -Nuar --exclude '*.rej' --exclude '*.orig' LVM2.2.02.92.orig/daemons/dmeventd/Makefile.in LVM2.2.02.92/daemons/dmeventd/Makefile.in |
1052 |
---- LVM2.2.02.92.orig/daemons/dmeventd/Makefile.in 2012-02-20 15:48:04.861683196 -0800 |
1053 |
-+++ LVM2.2.02.92/daemons/dmeventd/Makefile.in 2012-02-20 15:52:50.732314588 -0800 |
1054 |
-@@ -65,7 +65,7 @@ |
1055 |
- $(DL_LIBS) $(LVMLIBS) $(LIBS) -rdynamic |
1056 |
- |
1057 |
- dmeventd.static: $(LIB_STATIC) dmeventd.o $(interfacebuilddir)/libdevmapper.a |
1058 |
-- $(CC) $(CFLAGS) $(LDFLAGS) $(ELDFLAGS) -static -L. -L$(interfacebuilddir) -o $@ \ |
1059 |
-+ $(CC) $(CFLAGS) $(LDFLAGS) $(ELDFLAGS) $(STATIC_LDFLAGS) -static -L. -L$(interfacebuilddir) -o $@ \ |
1060 |
- dmeventd.o $(DL_LIBS) $(LVMLIBS) $(LIBS) $(STATIC_LIBS) |
1061 |
- |
1062 |
- ifeq ("@PKGCONFIG@", "yes") |
1063 |
-diff -Nuar --exclude '*.rej' --exclude '*.orig' LVM2.2.02.92.orig/make.tmpl.in LVM2.2.02.92/make.tmpl.in |
1064 |
---- LVM2.2.02.92.orig/make.tmpl.in 2012-02-20 15:48:05.034685963 -0800 |
1065 |
-+++ LVM2.2.02.92/make.tmpl.in 2012-02-20 15:48:58.622550855 -0800 |
1066 |
-@@ -38,6 +38,7 @@ |
1067 |
- ELDFLAGS += @ELDFLAGS@ |
1068 |
- LDDEPS += @LDDEPS@ |
1069 |
- LDFLAGS += @LDFLAGS@ |
1070 |
-+STATIC_LDFLAGS += @STATIC_LDFLAGS@ |
1071 |
- LIB_SUFFIX = @LIB_SUFFIX@ |
1072 |
- LVMINTERNAL_LIBS = -llvm-internal $(UDEV_LIBS) $(DL_LIBS) |
1073 |
- DL_LIBS = @DL_LIBS@ |
1074 |
-diff -Nuar --exclude '*.rej' --exclude '*.orig' LVM2.2.02.92.orig/tools/Makefile.in LVM2.2.02.92/tools/Makefile.in |
1075 |
---- LVM2.2.02.92.orig/tools/Makefile.in 2011-11-14 13:30:36.000000000 -0800 |
1076 |
-+++ LVM2.2.02.92/tools/Makefile.in 2012-02-20 15:52:25.242901501 -0800 |
1077 |
-@@ -126,7 +126,7 @@ |
1078 |
- -o $@ dmsetup.o -ldevmapper $(LIBS) |
1079 |
- |
1080 |
- dmsetup.static: dmsetup.o $(interfacebuilddir)/libdevmapper.a |
1081 |
-- $(CC) $(CFLAGS) $(LDFLAGS) -static -L$(interfacebuilddir) \ |
1082 |
-+ $(CC) $(CFLAGS) $(LDFLAGS) $(STATIC_LDFLAGS) -static -L$(interfacebuilddir) \ |
1083 |
- -o $@ dmsetup.o -ldevmapper $(STATIC_LIBS) $(LIBS) |
1084 |
- |
1085 |
- all: device-mapper |
1086 |
-@@ -136,7 +136,7 @@ |
1087 |
- $(LVMLIBS) $(READLINE_LIBS) $(LIBS) -rdynamic |
1088 |
- |
1089 |
- lvm.static: $(OBJECTS) lvm-static.o $(top_builddir)/lib/liblvm-internal.a $(interfacebuilddir)/libdevmapper.a |
1090 |
-- $(CC) $(CFLAGS) $(LDFLAGS) -static -L$(interfacebuilddir) -o $@ \ |
1091 |
-+ $(CC) $(CFLAGS) $(LDFLAGS) $(STATIC_LDFLAGS) -static -L$(interfacebuilddir) -o $@ \ |
1092 |
- $(OBJECTS) lvm-static.o $(LVMLIBS) $(STATIC_LIBS) $(LIBS) |
1093 |
- |
1094 |
- liblvm2cmd.a: $(top_builddir)/lib/liblvm-internal.a $(OBJECTS) lvmcmdlib.o lvm2cmd.o |
1095 |
|
1096 |
diff --git a/sys-fs/lvm2/files/lvmetad.initd-2.02.105-r2 b/sys-fs/lvm2/files/lvmetad.initd-2.02.105-r2 |
1097 |
deleted file mode 100644 |
1098 |
index c95a47d..0000000 |
1099 |
--- a/sys-fs/lvm2/files/lvmetad.initd-2.02.105-r2 |
1100 |
+++ /dev/null |
1101 |
@@ -1,12 +0,0 @@ |
1102 |
-#!/sbin/openrc-run |
1103 |
-# Copyright 1999-2016 Gentoo Foundation |
1104 |
-# Distributed under the terms of the GNU General Public License v2 |
1105 |
- |
1106 |
-pidfile="/run/lvmetad.pid" |
1107 |
-command="/sbin/lvmetad" |
1108 |
-command_args="${LVMETAD_OPTS:=-p ${pidfile}}" |
1109 |
-start_stop_daemon_args="--pidfile ${pidfile}" |
1110 |
- |
1111 |
-depend() { |
1112 |
- : |
1113 |
-} |
1114 |
|
1115 |
diff --git a/sys-fs/lvm2/lvm2-2.02.145-r2.ebuild b/sys-fs/lvm2/lvm2-2.02.145-r2.ebuild |
1116 |
deleted file mode 100644 |
1117 |
index 80210ff..0000000 |
1118 |
--- a/sys-fs/lvm2/lvm2-2.02.145-r2.ebuild |
1119 |
+++ /dev/null |
1120 |
@@ -1,260 +0,0 @@ |
1121 |
-# Copyright 1999-2018 Gentoo Authors |
1122 |
-# Distributed under the terms of the GNU General Public License v2 |
1123 |
- |
1124 |
-EAPI=6 |
1125 |
-inherit autotools eutils linux-info multilib systemd toolchain-funcs udev flag-o-matic |
1126 |
- |
1127 |
-DESCRIPTION="User-land utilities for LVM2 (device-mapper) software" |
1128 |
-HOMEPAGE="https://sourceware.org/lvm2/" |
1129 |
-SRC_URI="ftp://sourceware.org/pub/lvm2/${PN/lvm/LVM}.${PV}.tgz |
1130 |
- ftp://sourceware.org/pub/lvm2/old/${PN/lvm/LVM}.${PV}.tgz" |
1131 |
- |
1132 |
-LICENSE="GPL-2" |
1133 |
-SLOT="0" |
1134 |
-KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 s390 ~sh sparc x86 ~amd64-linux ~x86-linux" |
1135 |
-IUSE="readline static static-libs systemd lvm1 lvm2create_initrd selinux +udev +thin device-mapper-only" |
1136 |
-REQUIRED_USE="device-mapper-only? ( !lvm1 !lvm2create_initrd !thin ) |
1137 |
- systemd? ( udev )" |
1138 |
- |
1139 |
-DEPEND_COMMON=" |
1140 |
- readline? ( sys-libs/readline:0= ) |
1141 |
- systemd? ( >=sys-apps/systemd-205:0= ) |
1142 |
- udev? ( >=virtual/libudev-208:=[static-libs?] )" |
1143 |
-# /run is now required for locking during early boot. /var cannot be assumed to |
1144 |
-# be available -- thus, pull in recent enough baselayout for /run. |
1145 |
-# This version of LVM is incompatible with cryptsetup <1.1.2. |
1146 |
-RDEPEND="${DEPEND_COMMON} |
1147 |
- >=sys-apps/baselayout-2.2 |
1148 |
- !<sys-apps/openrc-0.11 |
1149 |
- !<sys-fs/cryptsetup-1.1.2 |
1150 |
- !!sys-fs/lvm-user |
1151 |
- >=sys-apps/util-linux-2.16 |
1152 |
- lvm2create_initrd? ( sys-apps/makedev ) |
1153 |
- thin? ( >=sys-block/thin-provisioning-tools-0.3.0 )" |
1154 |
-# note: thin- 0.3.0 is required to avoid --disable-thin_check_needs_check |
1155 |
-# USE 'static' currently only works with eudev, bug 520450 |
1156 |
-DEPEND="${DEPEND_COMMON} |
1157 |
- virtual/pkgconfig |
1158 |
- >=sys-devel/binutils-2.20.1-r1 |
1159 |
- sys-devel/autoconf-archive |
1160 |
- static? ( |
1161 |
- selinux? ( sys-libs/libselinux[static-libs] ) |
1162 |
- udev? ( >=sys-fs/eudev-3.1.2[static-libs] ) |
1163 |
- >=sys-apps/util-linux-2.16[static-libs] |
1164 |
- )" |
1165 |
- |
1166 |
-S=${WORKDIR}/${PN/lvm/LVM}.${PV} |
1167 |
- |
1168 |
-PATCHES=( |
1169 |
- # Gentoo specific modification(s): |
1170 |
- "${FILESDIR}"/${PN}-2.02.129-example.conf.in.patch |
1171 |
- |
1172 |
- # Musl fixes |
1173 |
- "${FILESDIR}"/${PN}-2.02.136-fix-stdio-usage.patch |
1174 |
- "${FILESDIR}"/${PN}-2.02.136-portability.patch |
1175 |
- |
1176 |
- # For upstream -- review and forward: |
1177 |
- "${FILESDIR}"/${PN}-2.02.63-always-make-static-libdm.patch |
1178 |
- "${FILESDIR}"/${PN}-2.02.56-lvm2create_initrd.patch |
1179 |
- "${FILESDIR}"/${PN}-2.02.67-createinitrd.patch #301331 |
1180 |
- "${FILESDIR}"/${PN}-2.02.99-locale-muck.patch #330373 |
1181 |
- "${FILESDIR}"/${PN}-2.02.70-asneeded.patch # -Wl,--as-needed |
1182 |
- "${FILESDIR}"/${PN}-2.02.139-dynamic-static-ldflags.patch #332905 |
1183 |
- "${FILESDIR}"/${PN}-2.02.129-static-pkgconfig-libs.patch #370217, #439414 + blkid |
1184 |
- "${FILESDIR}"/${PN}-2.02.130-pthread-pkgconfig.patch #492450 |
1185 |
- "${FILESDIR}"/${PN}-2.02.145-mkdev.patch #580062 |
1186 |
-) |
1187 |
- |
1188 |
-pkg_setup() { |
1189 |
- local CONFIG_CHECK="~SYSVIPC" |
1190 |
- |
1191 |
- if use udev; then |
1192 |
- local WARNING_SYSVIPC="CONFIG_SYSVIPC:\tis not set (required for udev sync)\n" |
1193 |
- if linux_config_exists; then |
1194 |
- local uevent_helper_path=$(linux_chkconfig_string UEVENT_HELPER_PATH) |
1195 |
- if [ -n "${uevent_helper_path}" ] && [ "${uevent_helper_path}" != '""' ]; then |
1196 |
- ewarn "It's recommended to set an empty value to the following kernel config option:" |
1197 |
- ewarn "CONFIG_UEVENT_HELPER_PATH=${uevent_helper_path}" |
1198 |
- fi |
1199 |
- fi |
1200 |
- fi |
1201 |
- |
1202 |
- check_extra_config |
1203 |
- |
1204 |
- # 1. Genkernel no longer copies /sbin/lvm blindly. |
1205 |
- if use static; then |
1206 |
- elog "Warning, we no longer overwrite /sbin/lvm and /sbin/dmsetup with" |
1207 |
- elog "their static versions. If you need the static binaries," |
1208 |
- elog "you must append .static to the filename!" |
1209 |
- fi |
1210 |
-} |
1211 |
- |
1212 |
-src_prepare() { |
1213 |
- default |
1214 |
- |
1215 |
- sed -i \ |
1216 |
- -e "1iAR = $(tc-getAR)" \ |
1217 |
- -e "s:CC ?= @CC@:CC = $(tc-getCC):" \ |
1218 |
- make.tmpl.in || die #444082 |
1219 |
- |
1220 |
- sed -i -e '/FLAG/s:-O2::' configure{.in,} || die #480212 |
1221 |
- |
1222 |
- if use udev && ! use device-mapper-only; then |
1223 |
- sed -i -e '/use_lvmetad =/s:0:1:' conf/example.conf.in || die #514196 |
1224 |
- elog "Notice that \"use_lvmetad\" setting is enabled with USE=\"udev\" in" |
1225 |
- elog "/etc/lvm/lvm.conf, which will require restart of udev, lvm, and lvmetad" |
1226 |
- elog "if it was previously disabled." |
1227 |
- fi |
1228 |
- |
1229 |
- sed -i -e "s:/usr/bin/true:$(type -P true):" scripts/blk_availability_systemd_red_hat.service.in || die #517514 |
1230 |
- |
1231 |
- # Without thin-privision-tools, there is nothing to install for target install_man7: |
1232 |
- use thin || { sed -i -e '/^install_lvm2/s:install_man7::' man/Makefile.in || die; } |
1233 |
- |
1234 |
- eautoreconf |
1235 |
-} |
1236 |
- |
1237 |
-src_configure() { |
1238 |
- filter-flags -flto |
1239 |
- local myconf=() |
1240 |
- local buildmode |
1241 |
- |
1242 |
- myconf+=( $(use_enable !device-mapper-only dmeventd) ) |
1243 |
- myconf+=( $(use_enable !device-mapper-only cmdlib) ) |
1244 |
- myconf+=( $(use_enable !device-mapper-only applib) ) |
1245 |
- myconf+=( $(use_enable !device-mapper-only fsadm) ) |
1246 |
- myconf+=( $(use_enable !device-mapper-only lvmetad) ) |
1247 |
- use device-mapper-only && myconf+=( --disable-udev-systemd-background-jobs ) |
1248 |
- |
1249 |
- # Most of this package does weird stuff. |
1250 |
- # The build options are tristate, and --without is NOT supported |
1251 |
- # options: 'none', 'internal', 'shared' |
1252 |
- if use static; then |
1253 |
- buildmode="internal" |
1254 |
- # This only causes the .static versions to become available |
1255 |
- myconf+=( --enable-static_link ) |
1256 |
- else |
1257 |
- buildmode="shared" |
1258 |
- fi |
1259 |
- dmbuildmode=$(use !device-mapper-only && echo internal || echo none) |
1260 |
- |
1261 |
- # dmeventd requires mirrors to be internal, and snapshot available |
1262 |
- # so we cannot disable them |
1263 |
- myconf+=( --with-mirrors=${dmbuildmode} ) |
1264 |
- myconf+=( --with-snapshots=${dmbuildmode} ) |
1265 |
- if use thin; then |
1266 |
- myconf+=( --with-thin=internal --with-cache=internal ) |
1267 |
- local texec |
1268 |
- for texec in check dump repair restore; do |
1269 |
- myconf+=( --with-thin-${texec}="${EPREFIX}"/sbin/thin_${texec} ) |
1270 |
- myconf+=( --with-cache-${texec}="${EPREFIX}"/sbin/cache_${texec} ) |
1271 |
- done |
1272 |
- else |
1273 |
- myconf+=( --with-thin=none --with-cache=none ) |
1274 |
- fi |
1275 |
- |
1276 |
- if use lvm1; then |
1277 |
- myconf+=( --with-lvm1=${buildmode} ) |
1278 |
- else |
1279 |
- myconf+=( --with-lvm1=none ) |
1280 |
- fi |
1281 |
- |
1282 |
- # disable O_DIRECT support on hppa, breaks pv detection (#99532) |
1283 |
- use hppa && myconf+=( --disable-o_direct ) |
1284 |
- |
1285 |
- myconf+=( --with-clvmd=none --with-cluster=none ) |
1286 |
- |
1287 |
- econf \ |
1288 |
- $(use_enable readline) \ |
1289 |
- $(use_enable selinux) \ |
1290 |
- --enable-pkgconfig \ |
1291 |
- --with-confdir="${EPREFIX}"/etc \ |
1292 |
- --exec-prefix="${EPREFIX}" \ |
1293 |
- --sbindir="${EPREFIX}/sbin" \ |
1294 |
- --with-staticdir="${EPREFIX}"/sbin \ |
1295 |
- --libdir="${EPREFIX}/$(get_libdir)" \ |
1296 |
- --with-usrlibdir="${EPREFIX}/usr/$(get_libdir)" \ |
1297 |
- --with-default-dm-run-dir=/run \ |
1298 |
- --with-default-run-dir=/run/lvm \ |
1299 |
- --with-default-locking-dir=/run/lock/lvm \ |
1300 |
- --with-default-pid-dir=/run \ |
1301 |
- $(use_enable udev udev_rules) \ |
1302 |
- $(use_enable udev udev_sync) \ |
1303 |
- $(use_with udev udevdir "$(get_udevdir)"/rules.d) \ |
1304 |
- $(use_enable systemd udev-systemd-background-jobs) \ |
1305 |
- --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" \ |
1306 |
- ${myconf[@]} \ |
1307 |
- CLDFLAGS="${LDFLAGS}" |
1308 |
-} |
1309 |
- |
1310 |
-src_compile() { |
1311 |
- pushd include >/dev/null |
1312 |
- emake |
1313 |
- popd >/dev/null |
1314 |
- |
1315 |
- if use device-mapper-only ; then |
1316 |
- emake device-mapper |
1317 |
- else |
1318 |
- emake |
1319 |
- emake CC="$(tc-getCC)" -C scripts lvm2_activation_generator_systemd_red_hat |
1320 |
- fi |
1321 |
-} |
1322 |
- |
1323 |
-src_install() { |
1324 |
- local inst |
1325 |
- INSTALL_TARGETS="install install_tmpfiles_configuration" |
1326 |
- # install systemd related files only when requested, bug #522430 |
1327 |
- use systemd && INSTALL_TARGETS="${INSTALL_TARGETS} install_systemd_units install_systemd_generators" |
1328 |
- use device-mapper-only && INSTALL_TARGETS="install_device-mapper" |
1329 |
- for inst in ${INSTALL_TARGETS}; do |
1330 |
- emake DESTDIR="${D}" ${inst} |
1331 |
- done |
1332 |
- |
1333 |
- newinitd "${FILESDIR}"/device-mapper.rc-2.02.105-r2 device-mapper |
1334 |
- newconfd "${FILESDIR}"/device-mapper.conf-1.02.22-r3 device-mapper |
1335 |
- |
1336 |
- if use !device-mapper-only ; then |
1337 |
- newinitd "${FILESDIR}"/dmeventd.initd-2.02.67-r1 dmeventd |
1338 |
- newinitd "${FILESDIR}"/lvm.rc-2.02.116-r6 lvm |
1339 |
- newconfd "${FILESDIR}"/lvm.confd-2.02.28-r2 lvm |
1340 |
- |
1341 |
- newinitd "${FILESDIR}"/lvm-monitoring.initd-2.02.105-r2 lvm-monitoring |
1342 |
- newinitd "${FILESDIR}"/lvmetad.initd-2.02.116-r3 lvmetad |
1343 |
- fi |
1344 |
- |
1345 |
- if use static-libs; then |
1346 |
- dolib.a libdm/ioctl/libdevmapper.a |
1347 |
- if use !device-mapper-only ; then |
1348 |
- dolib.a libdaemon/client/libdaemonclient.a #462908 |
1349 |
- #gen_usr_ldscript libdevmapper.so |
1350 |
- dolib.a daemons/dmeventd/libdevmapper-event.a |
1351 |
- #gen_usr_ldscript libdevmapper-event.so |
1352 |
- fi |
1353 |
- else |
1354 |
- rm -f "${ED}"usr/$(get_libdir)/{libdevmapper-event,liblvm2cmd,liblvm2app,libdevmapper}.a |
1355 |
- fi |
1356 |
- |
1357 |
- if use lvm2create_initrd; then |
1358 |
- dosbin scripts/lvm2create_initrd/lvm2create_initrd |
1359 |
- doman scripts/lvm2create_initrd/lvm2create_initrd.8 |
1360 |
- newdoc scripts/lvm2create_initrd/README README.lvm2create_initrd |
1361 |
- fi |
1362 |
- |
1363 |
- insinto /etc |
1364 |
- doins "${FILESDIR}"/dmtab |
1365 |
- |
1366 |
- dodoc README VERSION* WHATS_NEW WHATS_NEW_DM doc/*.{c,txt} conf/*.conf |
1367 |
-} |
1368 |
- |
1369 |
-pkg_postinst() { |
1370 |
- ewarn "Make sure the \"lvm\" init script is in the runlevels:" |
1371 |
- ewarn "# rc-update add lvm boot" |
1372 |
- ewarn |
1373 |
- ewarn "Make sure to enable lvmetad in /etc/lvm/lvm.conf if you want" |
1374 |
- ewarn "to enable lvm autoactivation and metadata caching." |
1375 |
-} |
1376 |
- |
1377 |
-src_test() { |
1378 |
- einfo "Tests are disabled because of device-node mucking, if you want to" |
1379 |
- einfo "run tests, compile the package and see ${S}/tests" |
1380 |
-} |
1381 |
|
1382 |
diff --git a/sys-fs/lvm2/metadata.xml b/sys-fs/lvm2/metadata.xml |
1383 |
index c1a65d7..8eb6a41 100644 |
1384 |
--- a/sys-fs/lvm2/metadata.xml |
1385 |
+++ b/sys-fs/lvm2/metadata.xml |
1386 |
@@ -16,7 +16,6 @@ |
1387 |
<description>Backup to Robin. Please CC on bugs.</description> |
1388 |
</maintainer> |
1389 |
<use> |
1390 |
- <flag name="lvm1">Allow users to build lvm2 with lvm1 support</flag> |
1391 |
<flag name="lvm2create_initrd">Install lvm2create_initrd script and pull in <pkg>sys-apps/makedev</pkg> for the /sbin/MAKEDEV command</flag> |
1392 |
<flag name="thin">Support for thin volumes</flag> |
1393 |
<flag name="device-mapper-only">Build only device-mapper and not the rest of LVM2 (UNSUPPORTED)</flag> |