1 |
robbat2 14/02/02 05:52:00 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: lvm2-2.02.105.ebuild |
5 |
Log: |
6 |
Bump per bug #499972. LVM1 support is deprecated upstream and no longer built by default. lvmetad init added. Bug #485082: init ordering adjusted. Bug #492450: pthread fix for static builds. Bug #437714: fix startup/shutdown with multiple VGs. |
7 |
|
8 |
(Portage version: 2.2.7/cvs/Linux x86_64, unsigned Manifest commit) |
9 |
|
10 |
Revision Changes Path |
11 |
1.335 sys-fs/lvm2/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/lvm2/ChangeLog?rev=1.335&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/lvm2/ChangeLog?rev=1.335&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/lvm2/ChangeLog?r1=1.334&r2=1.335 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sys-fs/lvm2/ChangeLog,v |
20 |
retrieving revision 1.334 |
21 |
retrieving revision 1.335 |
22 |
diff -p -w -b -B -u -u -r1.334 -r1.335 |
23 |
--- ChangeLog 19 Jan 2014 10:56:10 -0000 1.334 |
24 |
+++ ChangeLog 2 Feb 2014 05:52:00 -0000 1.335 |
25 |
@@ -1,6 +1,17 @@ |
26 |
# ChangeLog for sys-fs/lvm2 |
27 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/lvm2/ChangeLog,v 1.334 2014/01/19 10:56:10 ago Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/lvm2/ChangeLog,v 1.335 2014/02/02 05:52:00 robbat2 Exp $ |
30 |
+ |
31 |
+*lvm2-2.02.105 (02 Feb 2014) |
32 |
+ |
33 |
+ 02 Feb 2014; Robin H. Johnson <robbat2@g.o> +files/lvm.rc-2.02.105, |
34 |
+ +files/lvm2-2.02.105-pthread-pkgconfig.patch, |
35 |
+ +files/lvm2-2.02.105-static-pkgconfig-libs.patch, |
36 |
+ +files/lvmetad.initd-2.02.105, +lvm2-2.02.105.ebuild: |
37 |
+ Bump per bug #499972. LVM1 support is deprecated upstream and no longer built |
38 |
+ by default. lvmetad init added. Bug #485082: init ordering adjusted. Bug |
39 |
+ #492450: pthread fix for static builds. Bug #437714: fix startup/shutdown with |
40 |
+ multiple VGs. |
41 |
|
42 |
19 Jan 2014; Agostino Sarubbo <ago@g.o> lvm2-2.02.103.ebuild: |
43 |
Stable for ppc64, wrt bug #486278 |
44 |
|
45 |
|
46 |
|
47 |
1.1 sys-fs/lvm2/lvm2-2.02.105.ebuild |
48 |
|
49 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/lvm2/lvm2-2.02.105.ebuild?rev=1.1&view=markup |
50 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/lvm2/lvm2-2.02.105.ebuild?rev=1.1&content-type=text/plain |
51 |
|
52 |
Index: lvm2-2.02.105.ebuild |
53 |
=================================================================== |
54 |
# Copyright 1999-2014 Gentoo Foundation |
55 |
# Distributed under the terms of the GNU General Public License v2 |
56 |
# $Header: /var/cvsroot/gentoo-x86/sys-fs/lvm2/lvm2-2.02.105.ebuild,v 1.1 2014/02/02 05:52:00 robbat2 Exp $ |
57 |
|
58 |
EAPI=5 |
59 |
inherit autotools eutils linux-info multilib systemd toolchain-funcs udev flag-o-matic |
60 |
|
61 |
DESCRIPTION="User-land utilities for LVM2 (device-mapper) software." |
62 |
HOMEPAGE="http://sources.redhat.com/lvm2/" |
63 |
SRC_URI="ftp://sources.redhat.com/pub/lvm2/${PN/lvm/LVM}.${PV}.tgz |
64 |
ftp://sources.redhat.com/pub/lvm2/old/${PN/lvm/LVM}.${PV}.tgz" |
65 |
|
66 |
LICENSE="GPL-2" |
67 |
SLOT="0" |
68 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux" |
69 |
IUSE="readline static static-libs clvm cman lvm1 lvm2create_initrd selinux +udev +thin" |
70 |
|
71 |
DEPEND_COMMON="clvm? ( cman? ( =sys-cluster/cman-3* ) =sys-cluster/libdlm-3* ) |
72 |
readline? ( sys-libs/readline ) |
73 |
udev? ( >=virtual/udev-200[static-libs?] )" |
74 |
# /run is now required for locking during early boot. /var cannot be assumed to |
75 |
# be available -- thus, pull in recent enough baselayout for /run. |
76 |
# This version of LVM is incompatible with cryptsetup <1.1.2. |
77 |
RDEPEND="${DEPEND_COMMON} |
78 |
>=sys-apps/baselayout-2.2 |
79 |
!<sys-apps/openrc-0.11 |
80 |
!<sys-fs/cryptsetup-1.1.2 |
81 |
!!sys-fs/clvm |
82 |
!!sys-fs/lvm-user |
83 |
>=sys-apps/util-linux-2.16 |
84 |
lvm2create_initrd? ( sys-apps/makedev ) |
85 |
thin? ( >=sys-block/thin-provisioning-tools-0.2.8-r1 )" |
86 |
DEPEND="${DEPEND_COMMON} |
87 |
virtual/pkgconfig |
88 |
>=sys-devel/binutils-2.20.1-r1 |
89 |
static? ( |
90 |
selinux? ( sys-libs/libselinux[static-libs] ) |
91 |
udev? ( virtual/udev[static-libs] ) |
92 |
)" |
93 |
|
94 |
S=${WORKDIR}/${PN/lvm/LVM}.${PV} |
95 |
|
96 |
pkg_setup() { |
97 |
local CONFIG_CHECK="~SYSVIPC" |
98 |
|
99 |
if use udev; then |
100 |
local WARNING_SYSVIPC="CONFIG_SYSVIPC:\tis not set (required for udev sync)\n" |
101 |
if linux_config_exists; then |
102 |
local uevent_helper_path=$(linux_chkconfig_string UEVENT_HELPER_PATH) |
103 |
if [ -n "${uevent_helper_path}" ] && [ "${uevent_helper_path}" != '""' ]; then |
104 |
ewarn "It's recommended to set an empty value to the following kernel config option:" |
105 |
ewarn "CONFIG_UEVENT_HELPER_PATH=${uevent_helper_path}" |
106 |
fi |
107 |
fi |
108 |
fi |
109 |
|
110 |
check_extra_config |
111 |
|
112 |
# 1. Genkernel no longer copies /sbin/lvm blindly. |
113 |
if use static; then |
114 |
elog "Warning, we no longer overwrite /sbin/lvm and /sbin/dmsetup with" |
115 |
elog "their static versions. If you need the static binaries," |
116 |
elog "you must append .static to the filename!" |
117 |
fi |
118 |
} |
119 |
|
120 |
src_prepare() { |
121 |
# Gentoo specific modification(s): |
122 |
epatch "${FILESDIR}"/${PN}-2.02.99-example.conf.in.patch |
123 |
|
124 |
sed -i \ |
125 |
-e "1iAR = $(tc-getAR)" \ |
126 |
-e "s:CC ?= @CC@:CC = $(tc-getCC):" \ |
127 |
make.tmpl.in || die #444082 |
128 |
|
129 |
sed -i -e '/FLAG/s:-O2::' configure{,.in} || die #480212 |
130 |
|
131 |
# For upstream -- review and forward: |
132 |
epatch "${FILESDIR}"/${PN}-2.02.63-always-make-static-libdm.patch |
133 |
epatch "${FILESDIR}"/${PN}-2.02.56-lvm2create_initrd.patch |
134 |
epatch "${FILESDIR}"/${PN}-2.02.67-createinitrd.patch #301331 |
135 |
epatch "${FILESDIR}"/${PN}-2.02.99-locale-muck.patch #330373 |
136 |
epatch "${FILESDIR}"/${PN}-2.02.70-asneeded.patch # -Wl,--as-needed |
137 |
epatch "${FILESDIR}"/${PN}-2.02.92-dynamic-static-ldflags.patch #332905 |
138 |
#epatch "${FILESDIR}"/${PN}-2.02.100-selinux_and_udev_static.patch #370217, #439414 |
139 |
epatch "${FILESDIR}"/${PN}-2.02.105-static-pkgconfig-libs.patch #370217, #439414 + blkid |
140 |
epatch "${FILESDIR}"/${PN}-2.02.105-pthread-pkgconfig.patch #492450 |
141 |
|
142 |
eautoreconf |
143 |
} |
144 |
|
145 |
src_configure() { |
146 |
filter-flags -flto |
147 |
local myconf |
148 |
local buildmode |
149 |
|
150 |
myconf="${myconf} --enable-dmeventd" |
151 |
myconf="${myconf} --enable-cmdlib" |
152 |
myconf="${myconf} --enable-applib" |
153 |
myconf="${myconf} --enable-fsadm" |
154 |
myconf="${myconf} --enable-lvmetad" |
155 |
|
156 |
# Most of this package does weird stuff. |
157 |
# The build options are tristate, and --without is NOT supported |
158 |
# options: 'none', 'internal', 'shared' |
159 |
if use static; then |
160 |
buildmode="internal" |
161 |
# This only causes the .static versions to become available |
162 |
myconf="${myconf} --enable-static_link" |
163 |
else |
164 |
buildmode="shared" |
165 |
fi |
166 |
|
167 |
# dmeventd requires mirrors to be internal, and snapshot available |
168 |
# so we cannot disable them |
169 |
myconf="${myconf} --with-mirrors=internal" |
170 |
myconf="${myconf} --with-snapshots=internal" |
171 |
use thin \ |
172 |
&& myconf="${myconf} --with-thin=internal" \ |
173 |
|| myconf="${myconf} --with-thin=none" |
174 |
|
175 |
if use lvm1; then |
176 |
myconf="${myconf} --with-lvm1=${buildmode}" |
177 |
else |
178 |
myconf="${myconf} --with-lvm1=none" |
179 |
fi |
180 |
|
181 |
# disable O_DIRECT support on hppa, breaks pv detection (#99532) |
182 |
use hppa && myconf="${myconf} --disable-o_direct" |
183 |
|
184 |
if use clvm; then |
185 |
myconf="${myconf} --with-cluster=${buildmode}" |
186 |
# 4-state! Make sure we get it right, per bug 210879 |
187 |
# Valid options are: none, cman, gulm, all |
188 |
# |
189 |
# 2009/02: |
190 |
# gulm is removed now, now dual-state: |
191 |
# cman, none |
192 |
# all still exists, but is not needed |
193 |
# |
194 |
# 2009/07: |
195 |
# TODO: add corosync and re-enable ALL |
196 |
local clvmd="" |
197 |
use cman && clvmd="cman" |
198 |
#clvmd="${clvmd/cmangulm/all}" |
199 |
[ -z "${clvmd}" ] && clvmd="none" |
200 |
myconf="${myconf} --with-clvmd=${clvmd}" |
201 |
myconf="${myconf} --with-pool=${buildmode}" |
202 |
else |
203 |
myconf="${myconf} --with-clvmd=none --with-cluster=none" |
204 |
fi |
205 |
|
206 |
econf \ |
207 |
$(use_enable readline) \ |
208 |
$(use_enable selinux) \ |
209 |
--enable-pkgconfig \ |
210 |
--with-confdir="${EPREFIX}"/etc \ |
211 |
--exec-prefix="${EPREFIX}" \ |
212 |
--sbindir="${EPREFIX}/sbin" \ |
213 |
--with-staticdir="${EPREFIX}"/sbin \ |
214 |
--libdir="${EPREFIX}/$(get_libdir)" \ |
215 |
--with-usrlibdir="${EPREFIX}/usr/$(get_libdir)" \ |
216 |
--with-default-dm-run-dir=/run \ |
217 |
--with-default-run-dir=/run/lvm \ |
218 |
--with-default-locking-dir=/run/lock/lvm \ |
219 |
--with-default-pid-dir=/run \ |
220 |
$(use_enable udev udev_rules) \ |
221 |
$(use_enable udev udev_sync) \ |
222 |
$(use_with udev udevdir "$(get_udevdir)"/rules.d) \ |
223 |
"$(systemd_with_unitdir)" \ |
224 |
${myconf} \ |
225 |
CLDFLAGS="${LDFLAGS}" |
226 |
} |
227 |
|
228 |
src_compile() { |
229 |
pushd include >/dev/null |
230 |
emake |
231 |
popd >/dev/null |
232 |
|
233 |
emake |
234 |
emake CC="$(tc-getCC)" -C scripts lvm2_activation_generator_systemd_red_hat |
235 |
} |
236 |
|
237 |
src_install() { |
238 |
local inst |
239 |
for inst in install install_systemd_units install_systemd_generators install_tmpfiles_configuration; do |
240 |
emake DESTDIR="${D}" ${inst} |
241 |
done |
242 |
|
243 |
newinitd "${FILESDIR}"/lvm.rc-2.02.105 lvm |
244 |
newconfd "${FILESDIR}"/lvm.confd-2.02.28-r2 lvm |
245 |
|
246 |
newinitd "${FILESDIR}"/lvm-monitoring.initd-2.02.67-r2 lvm-monitoring |
247 |
newinitd "${FILESDIR}"/lvmetad.initd-2.02.105 lvmetad |
248 |
|
249 |
newinitd "${FILESDIR}"/device-mapper.rc-2.02.95-r2 device-mapper |
250 |
newconfd "${FILESDIR}"/device-mapper.conf-1.02.22-r3 device-mapper |
251 |
|
252 |
newinitd "${FILESDIR}"/dmeventd.initd-2.02.67-r1 dmeventd |
253 |
|
254 |
if use clvm; then |
255 |
newinitd "${FILESDIR}"/clvmd.rc-2.02.39 clvmd |
256 |
newconfd "${FILESDIR}"/clvmd.confd-2.02.39 clvmd |
257 |
fi |
258 |
|
259 |
if use static-libs; then |
260 |
dolib.a libdm/ioctl/libdevmapper.a |
261 |
dolib.a libdaemon/client/libdaemonclient.a #462908 |
262 |
#gen_usr_ldscript libdevmapper.so |
263 |
dolib.a daemons/dmeventd/libdevmapper-event.a |
264 |
#gen_usr_ldscript libdevmapper-event.so |
265 |
else |
266 |
rm -f "${ED}"usr/$(get_libdir)/{libdevmapper-event,liblvm2cmd,liblvm2app,libdevmapper}.a |
267 |
fi |
268 |
|
269 |
if use lvm2create_initrd; then |
270 |
dosbin scripts/lvm2create_initrd/lvm2create_initrd |
271 |
doman scripts/lvm2create_initrd/lvm2create_initrd.8 |
272 |
newdoc scripts/lvm2create_initrd/README README.lvm2create_initrd |
273 |
fi |
274 |
|
275 |
insinto /etc |
276 |
doins "${FILESDIR}"/dmtab |
277 |
|
278 |
dodoc README VERSION* WHATS_NEW WHATS_NEW_DM doc/*.{c,txt} conf/*.conf |
279 |
} |
280 |
|
281 |
pkg_postinst() { |
282 |
ewarn "Make sure the \"lvm\" init script is in the runlevels:" |
283 |
ewarn "# rc-update add lvm boot" |
284 |
ewarn |
285 |
ewarn "Make sure to enable lvmetad in /etc/lvm/lvm.conf if you want" |
286 |
ewarn "to enable lvm autoactivation and metadata caching." |
287 |
} |
288 |
|
289 |
src_test() { |
290 |
einfo "Tests are disabled because of device-node mucking, if you want to" |
291 |
einfo "run tests, compile the package and see ${S}/tests" |
292 |
} |