1 |
commit: d768ce06b1623440c17233228f1897fb82f1098b |
2 |
Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Dec 11 21:45:47 2018 +0000 |
4 |
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 11 21:45:47 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d768ce06 |
7 |
|
8 |
sys-fs/lvm2: upstream has withdrawn 2.02.181, upgrade to .183 |
9 |
|
10 |
Package-Manager: Portage-2.3.52, Repoman-2.3.12 |
11 |
Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org> |
12 |
|
13 |
sys-fs/lvm2/Manifest | 1 - |
14 |
sys-fs/lvm2/lvm2-2.02.181.ebuild | 258 --------------------------------------- |
15 |
2 files changed, 259 deletions(-) |
16 |
|
17 |
diff --git a/sys-fs/lvm2/Manifest b/sys-fs/lvm2/Manifest |
18 |
index 32191c9b561..cc17619d9c9 100644 |
19 |
--- a/sys-fs/lvm2/Manifest |
20 |
+++ b/sys-fs/lvm2/Manifest |
21 |
@@ -1,4 +1,3 @@ |
22 |
DIST LVM2.2.02.116.tgz 1538340 BLAKE2B 718261b60626f2eca5ba13011646bf551523ed8e59aaceceb9097221c000268b7533ac43151ff1d9229911d87e764fbdb29ffa1d305f2aae99220a68e301559a SHA512 992541339637d597257850b4ff7f5348fb7cdcccf806ac8d986a3be1ad1edc5f6bfaedeed5128690c541d1a485cdc75742e90a766363c39867901003518fb84d |
23 |
DIST LVM2.2.02.145.tgz 1986370 BLAKE2B 0c9e5efae17f26ff86152cecbf0b11a74e85007b2fa9491f44dec03ac8c11375bacf6685213b4be19037c8fbf70e13549516716ecf8fa262919a44625e6aab34 SHA512 84e28b3efc940837ea9da70fce620744aea0945ba29383b76ad7bcd4b5259b897c714162a8e8b7cfe26ae736a3ad2eca633a3e0df4d6280a32b28bd4cf472d27 |
24 |
-DIST LVM2.2.02.181.tgz 2375093 BLAKE2B 4e4e7c65511af5902e765254a4316a9f887a6ec5c079333d78f19bff71ed3ed9d0e2e2367b0bb5e619ec6778adc9ddf944156921cec67af4d73aafc08196b73e SHA512 599d992823510e27f3ec3ceaf0d2332402b731afc0d2df88096ab55ed98dba8c3bdc5408d51b9f5b0ffbbb9ac3760ee37b878a0f36ab379449dc076c58e59511 |
25 |
DIST LVM2.2.02.183.tgz 2380574 BLAKE2B b1fe71b6cdb8ee20dd53d0ad3399c553487baafa12657ec81a794c84ad161988afdb8693ac247877a2645d693a0740c74c8b991047ed2ba4adc9ec75f1c261a9 SHA512 3947523c6b0862ada40677ed171ed0cf95e070119e377296fc5ccb153e9c4212d34c0b16a887dbd68ccf265525345dabfed2aa59fb3604555429a7e2ecfff4d7 |
26 |
|
27 |
diff --git a/sys-fs/lvm2/lvm2-2.02.181.ebuild b/sys-fs/lvm2/lvm2-2.02.181.ebuild |
28 |
deleted file mode 100644 |
29 |
index ea67d28a6d8..00000000000 |
30 |
--- a/sys-fs/lvm2/lvm2-2.02.181.ebuild |
31 |
+++ /dev/null |
32 |
@@ -1,258 +0,0 @@ |
33 |
-# Copyright 1999-2018 Gentoo Authors |
34 |
-# Distributed under the terms of the GNU General Public License v2 |
35 |
- |
36 |
-EAPI=6 |
37 |
-inherit autotools linux-info multilib systemd toolchain-funcs udev flag-o-matic |
38 |
- |
39 |
-DESCRIPTION="User-land utilities for LVM2 (device-mapper) software" |
40 |
-HOMEPAGE="https://sourceware.org/lvm2/" |
41 |
-SRC_URI="ftp://sourceware.org/pub/lvm2/${PN/lvm/LVM}.${PV}.tgz |
42 |
- ftp://sourceware.org/pub/lvm2/old/${PN/lvm/LVM}.${PV}.tgz" |
43 |
- |
44 |
-LICENSE="GPL-2" |
45 |
-SLOT="0" |
46 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux" |
47 |
-IUSE="readline static static-libs systemd lvm2create_initrd sanlock selinux +udev +thin device-mapper-only" |
48 |
-REQUIRED_USE="device-mapper-only? ( !lvm2create_initrd !sanlock !thin ) |
49 |
- systemd? ( udev )" |
50 |
- |
51 |
-DEPEND_COMMON=" |
52 |
- dev-libs/libaio[static-libs?] |
53 |
- static? ( dev-libs/libaio[static-libs] ) |
54 |
- !static? ( dev-libs/libaio[static-libs?] ) |
55 |
- readline? ( sys-libs/readline:0= ) |
56 |
- sanlock? ( sys-cluster/sanlock ) |
57 |
- systemd? ( >=sys-apps/systemd-205:0= ) |
58 |
- udev? ( >=virtual/libudev-208:=[static-libs?] )" |
59 |
-# /run is now required for locking during early boot. /var cannot be assumed to |
60 |
-# be available -- thus, pull in recent enough baselayout for /run. |
61 |
-# This version of LVM is incompatible with cryptsetup <1.1.2. |
62 |
-RDEPEND="${DEPEND_COMMON} |
63 |
- >=sys-apps/baselayout-2.2 |
64 |
- !<sys-apps/openrc-0.11 |
65 |
- !<sys-fs/cryptsetup-1.1.2 |
66 |
- !!sys-fs/lvm-user |
67 |
- >=sys-apps/util-linux-2.16 |
68 |
- lvm2create_initrd? ( sys-apps/makedev ) |
69 |
- thin? ( >=sys-block/thin-provisioning-tools-0.3.0 )" |
70 |
-# note: thin- 0.3.0 is required to avoid --disable-thin_check_needs_check |
71 |
-# USE 'static' currently only works with eudev, bug 520450 |
72 |
-DEPEND="${DEPEND_COMMON} |
73 |
- virtual/pkgconfig |
74 |
- >=sys-devel/binutils-2.20.1-r1 |
75 |
- sys-devel/autoconf-archive |
76 |
- static? ( |
77 |
- selinux? ( sys-libs/libselinux[static-libs] ) |
78 |
- udev? ( >=sys-fs/eudev-3.1.2[static-libs] ) |
79 |
- >=sys-apps/util-linux-2.16[static-libs] |
80 |
- )" |
81 |
- |
82 |
-S=${WORKDIR}/${PN/lvm/LVM}.${PV} |
83 |
- |
84 |
-PATCHES=( |
85 |
- # Gentoo specific modification(s): |
86 |
- "${FILESDIR}"/${PN}-2.02.178-example.conf.in.patch |
87 |
- |
88 |
- # For upstream -- review and forward: |
89 |
- "${FILESDIR}"/${PN}-2.02.63-always-make-static-libdm.patch |
90 |
- "${FILESDIR}"/${PN}-2.02.56-lvm2create_initrd.patch |
91 |
- "${FILESDIR}"/${PN}-2.02.67-createinitrd.patch #301331 |
92 |
- "${FILESDIR}"/${PN}-2.02.99-locale-muck.patch #330373 |
93 |
- "${FILESDIR}"/${PN}-2.02.178-asneeded.patch # -Wl,--as-needed |
94 |
- "${FILESDIR}"/${PN}-2.02.178-dynamic-static-ldflags.patch #332905 |
95 |
- "${FILESDIR}"/${PN}-2.02.178-static-pkgconfig-libs.patch #370217, #439414 + blkid |
96 |
- "${FILESDIR}"/${PN}-2.02.176-pthread-pkgconfig.patch #492450 |
97 |
- "${FILESDIR}"/${PN}-2.02.171-static-libm.patch #617756 |
98 |
- "${FILESDIR}"/${PN}-2.02.166-HPPA-no-O_DIRECT.patch #657446 |
99 |
- #"${FILESDIR}"/${PN}-2.02.145-mkdev.patch #580062 # Merged upstream |
100 |
-) |
101 |
- |
102 |
-pkg_setup() { |
103 |
- local CONFIG_CHECK="~SYSVIPC" |
104 |
- |
105 |
- if use udev; then |
106 |
- local WARNING_SYSVIPC="CONFIG_SYSVIPC:\tis not set (required for udev sync)\n" |
107 |
- if linux_config_exists; then |
108 |
- local uevent_helper_path=$(linux_chkconfig_string UEVENT_HELPER_PATH) |
109 |
- if [ -n "${uevent_helper_path}" ] && [ "${uevent_helper_path}" != '""' ]; then |
110 |
- ewarn "It's recommended to set an empty value to the following kernel config option:" |
111 |
- ewarn "CONFIG_UEVENT_HELPER_PATH=${uevent_helper_path}" |
112 |
- fi |
113 |
- fi |
114 |
- fi |
115 |
- |
116 |
- check_extra_config |
117 |
- |
118 |
- # 1. Genkernel no longer copies /sbin/lvm blindly. |
119 |
- if use static; then |
120 |
- elog "Warning, we no longer overwrite /sbin/lvm and /sbin/dmsetup with" |
121 |
- elog "their static versions. If you need the static binaries," |
122 |
- elog "you must append .static to the filename!" |
123 |
- fi |
124 |
-} |
125 |
- |
126 |
-src_prepare() { |
127 |
- default |
128 |
- |
129 |
- sed -i \ |
130 |
- -e "1iAR = $(tc-getAR)" \ |
131 |
- -e "s:CC ?= @CC@:CC = $(tc-getCC):" \ |
132 |
- make.tmpl.in || die #444082 |
133 |
- |
134 |
- sed -i -e '/FLAG/s:-O2::' configure{.ac,} || die #480212 |
135 |
- |
136 |
- if use udev && ! use device-mapper-only; then |
137 |
- sed -i -e '/use_lvmetad =/s:0:1:' conf/example.conf.in || die #514196 |
138 |
- elog "Notice that \"use_lvmetad\" setting is enabled with USE=\"udev\" in" |
139 |
- elog "/etc/lvm/lvm.conf, which will require restart of udev, lvm, and lvmetad" |
140 |
- elog "if it was previously disabled." |
141 |
- fi |
142 |
- |
143 |
- sed -i -e "s:/usr/bin/true:$(type -P true):" scripts/blk_availability_systemd_red_hat.service.in || die #517514 |
144 |
- |
145 |
- # Without thin-privision-tools, there is nothing to install for target install_man7: |
146 |
- if ! use thin ; then |
147 |
- sed -i -e '/^install_lvm2/s:install_man7::' man/Makefile.in || die |
148 |
- fi |
149 |
- |
150 |
- eautoreconf |
151 |
-} |
152 |
- |
153 |
-src_configure() { |
154 |
- filter-flags -flto |
155 |
- local myeconfargs=() |
156 |
- |
157 |
- # Most of this package does weird stuff. |
158 |
- # The build options are tristate, and --without is NOT supported |
159 |
- # options: 'none', 'internal', 'shared' |
160 |
- myeconfargs+=( |
161 |
- $(use_enable !device-mapper-only dmeventd) |
162 |
- $(use_enable !device-mapper-only cmdlib) |
163 |
- $(use_enable !device-mapper-only applib) |
164 |
- $(use_enable !device-mapper-only fsadm) |
165 |
- $(use_enable !device-mapper-only lvmetad) |
166 |
- $(usex device-mapper-only --disable-udev-systemd-background-jobs '') |
167 |
- |
168 |
- # This only causes the .static versions to become available |
169 |
- $(usex static --enable-static_link '') |
170 |
- |
171 |
- # dmeventd requires mirrors to be internal, and snapshot available |
172 |
- # so we cannot disable them |
173 |
- --with-mirrors="$(usex device-mapper-only none internal)" |
174 |
- --with-snapshots="$(usex device-mapper-only none internal)" |
175 |
- |
176 |
- # disable O_DIRECT support on hppa, breaks pv detection (#99532) |
177 |
- $(usex hppa --disable-o_direct '') |
178 |
- ) |
179 |
- |
180 |
- if use thin; then |
181 |
- myeconfargs+=( --with-thin=internal --with-cache=internal ) |
182 |
- local texec |
183 |
- for texec in check dump repair restore; do |
184 |
- myeconfargs+=( --with-thin-${texec}="${EPREFIX}"/sbin/thin_${texec} ) |
185 |
- myeconfargs+=( --with-cache-${texec}="${EPREFIX}"/sbin/cache_${texec} ) |
186 |
- done |
187 |
- else |
188 |
- myeconfargs+=( --with-thin=none --with-cache=none ) |
189 |
- fi |
190 |
- |
191 |
- myeconfargs+=( --with-clvmd=none --with-cluster=none ) |
192 |
- |
193 |
- myeconfargs+=( |
194 |
- $(use_enable readline) |
195 |
- $(use_enable selinux) |
196 |
- --enable-pkgconfig |
197 |
- --with-confdir="${EPREFIX}"/etc |
198 |
- --exec-prefix="${EPREFIX}" |
199 |
- --sbindir="${EPREFIX}/sbin" |
200 |
- --with-staticdir="${EPREFIX}"/sbin |
201 |
- --libdir="${EPREFIX}/$(get_libdir)" |
202 |
- --with-usrlibdir="${EPREFIX}/usr/$(get_libdir)" |
203 |
- --with-default-dm-run-dir=/run |
204 |
- --with-default-run-dir=/run/lvm |
205 |
- --with-default-locking-dir=/run/lock/lvm |
206 |
- --with-default-pid-dir=/run |
207 |
- $(use_enable udev udev_rules) |
208 |
- $(use_enable udev udev_sync) |
209 |
- $(use_with udev udevdir "$(get_udevdir)"/rules.d) |
210 |
- $(use_enable sanlock lvmlockd-sanlock) |
211 |
- $(use_enable systemd udev-systemd-background-jobs) |
212 |
- --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" |
213 |
- CLDFLAGS="${LDFLAGS}" |
214 |
- ) |
215 |
- econf "${myeconfargs[@]}" |
216 |
-} |
217 |
- |
218 |
-src_compile() { |
219 |
- pushd include >/dev/null |
220 |
- emake |
221 |
- popd >/dev/null |
222 |
- |
223 |
- if use device-mapper-only ; then |
224 |
- emake device-mapper |
225 |
- else |
226 |
- emake |
227 |
- emake CC="$(tc-getCC)" -C scripts lvm2_activation_generator_systemd_red_hat |
228 |
- fi |
229 |
-} |
230 |
- |
231 |
-src_install() { |
232 |
- local inst |
233 |
- INSTALL_TARGETS="install install_tmpfiles_configuration" |
234 |
- # install systemd related files only when requested, bug #522430 |
235 |
- use systemd && INSTALL_TARGETS="${INSTALL_TARGETS} install_systemd_units install_systemd_generators" |
236 |
- use device-mapper-only && INSTALL_TARGETS="install_device-mapper" |
237 |
- for inst in ${INSTALL_TARGETS}; do |
238 |
- emake DESTDIR="${D}" ${inst} |
239 |
- done |
240 |
- |
241 |
- newinitd "${FILESDIR}"/device-mapper.rc-2.02.105-r2 device-mapper |
242 |
- newconfd "${FILESDIR}"/device-mapper.conf-1.02.22-r3 device-mapper |
243 |
- |
244 |
- if use !device-mapper-only ; then |
245 |
- newinitd "${FILESDIR}"/dmeventd.initd-2.02.67-r1 dmeventd |
246 |
- newinitd "${FILESDIR}"/lvm.rc-2.02.172 lvm |
247 |
- newconfd "${FILESDIR}"/lvm.confd-2.02.28-r2 lvm |
248 |
- |
249 |
- newinitd "${FILESDIR}"/lvm-monitoring.initd-2.02.105-r2 lvm-monitoring |
250 |
- newinitd "${FILESDIR}"/lvmetad.initd-2.02.116-r3 lvmetad |
251 |
- fi |
252 |
- |
253 |
- if use sanlock; then |
254 |
- newinitd "${FILESDIR}"/lvmlockd.initd-2.02.166-r1 lvmlockd |
255 |
- fi |
256 |
- |
257 |
- if use static-libs; then |
258 |
- dolib.a libdm/ioctl/libdevmapper.a |
259 |
- dolib.a libdaemon/client/libdaemonclient.a #462908 |
260 |
- #gen_usr_ldscript libdevmapper.so |
261 |
- dolib.a daemons/dmeventd/libdevmapper-event.a |
262 |
- #gen_usr_ldscript libdevmapper-event.so |
263 |
- else |
264 |
- rm -f "${ED%/}"/usr/$(get_libdir)/{libdevmapper-event,liblvm2cmd,liblvm2app,libdevmapper}.a |
265 |
- fi |
266 |
- |
267 |
- if use lvm2create_initrd; then |
268 |
- dosbin scripts/lvm2create_initrd/lvm2create_initrd |
269 |
- doman scripts/lvm2create_initrd/lvm2create_initrd.8 |
270 |
- newdoc scripts/lvm2create_initrd/README README.lvm2create_initrd |
271 |
- fi |
272 |
- |
273 |
- insinto /etc |
274 |
- doins "${FILESDIR}"/dmtab |
275 |
- |
276 |
- dodoc README VERSION* WHATS_NEW WHATS_NEW_DM doc/*.{c,txt} conf/*.conf |
277 |
-} |
278 |
- |
279 |
-pkg_postinst() { |
280 |
- ewarn "Make sure the \"lvm\" init script is in the runlevels:" |
281 |
- ewarn "# rc-update add lvm boot" |
282 |
- ewarn |
283 |
- ewarn "Make sure to enable lvmetad in /etc/lvm/lvm.conf if you want" |
284 |
- ewarn "to enable lvm autoactivation and metadata caching." |
285 |
-} |
286 |
- |
287 |
-src_test() { |
288 |
- einfo "Tests are disabled because of device-node mucking, if you want to" |
289 |
- einfo "run tests, compile the package and see ${S}/tests" |
290 |
-} |