1 |
robbat2 09/08/27 00:34:27 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: lvm2-2.02.51.ebuild |
5 |
Log: |
6 |
Version bump. Change the pvmetadatacopies default back to 1 to cut down on pvresize issues per ongoing bug #252144. |
7 |
(Portage version: 2.2_rc38/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.170 sys-fs/lvm2/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/lvm2/ChangeLog?rev=1.170&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/lvm2/ChangeLog?rev=1.170&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/lvm2/ChangeLog?r1=1.169&r2=1.170 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/sys-fs/lvm2/ChangeLog,v |
19 |
retrieving revision 1.169 |
20 |
retrieving revision 1.170 |
21 |
diff -p -w -b -B -u -u -r1.169 -r1.170 |
22 |
--- ChangeLog 7 Aug 2009 23:01:31 -0000 1.169 |
23 |
+++ ChangeLog 27 Aug 2009 00:34:27 -0000 1.170 |
24 |
@@ -1,6 +1,15 @@ |
25 |
# ChangeLog for sys-fs/lvm2 |
26 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/lvm2/ChangeLog,v 1.169 2009/08/07 23:01:31 caster Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/lvm2/ChangeLog,v 1.170 2009/08/27 00:34:27 robbat2 Exp $ |
29 |
+ |
30 |
+*lvm2-2.02.51 (27 Aug 2009) |
31 |
+ |
32 |
+ 27 Aug 2009; Robin H. Johnson <robbat2@g.o> +lvm2-2.02.51.ebuild, |
33 |
+ +files/lvm2-2.02.51-as-needed.patch, |
34 |
+ +files/lvm2-2.02.51-device-mapper-export-format.patch, |
35 |
+ +files/lvm.conf-2.02.51.patch: |
36 |
+ Version bump. Change the pvmetadatacopies default back to 1 to cut down on |
37 |
+ pvresize issues per ongoing bug #252144. |
38 |
|
39 |
07 Aug 2009; Vlastimil Babka <caster@g.o> Manifest: |
40 |
Fix manifest. |
41 |
|
42 |
|
43 |
|
44 |
1.1 sys-fs/lvm2/lvm2-2.02.51.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/lvm2/lvm2-2.02.51.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/lvm2/lvm2-2.02.51.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: lvm2-2.02.51.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2009 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
# $Header: /var/cvsroot/gentoo-x86/sys-fs/lvm2/lvm2-2.02.51.ebuild,v 1.1 2009/08/27 00:34:27 robbat2 Exp $ |
54 |
|
55 |
EAPI=2 |
56 |
inherit eutils multilib toolchain-funcs autotools |
57 |
|
58 |
DESCRIPTION="User-land utilities for LVM2 (device-mapper) software." |
59 |
HOMEPAGE="http://sources.redhat.com/lvm2/" |
60 |
SRC_URI="ftp://sources.redhat.com/pub/lvm2/${PN/lvm/LVM}.${PV}.tgz |
61 |
ftp://sources.redhat.com/pub/lvm2/old/${PN/lvm/LVM}.${PV}.tgz" |
62 |
|
63 |
LICENSE="GPL-2" |
64 |
SLOT="0" |
65 |
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" |
66 |
|
67 |
IUSE="readline +static clvm cman +lvm1 selinux" |
68 |
|
69 |
DEPEND="!sys-fs/device-mapper |
70 |
clvm? ( =sys-cluster/dlm-2* |
71 |
cman? ( =sys-cluster/cman-2* ) )" |
72 |
|
73 |
RDEPEND="${DEPEND} |
74 |
!sys-fs/lvm-user |
75 |
!sys-fs/clvm |
76 |
>=sys-apps/util-linux-2.16" |
77 |
|
78 |
S="${WORKDIR}/${PN/lvm/LVM}.${PV}" |
79 |
|
80 |
pkg_setup() { |
81 |
# 1. Genkernel no longer copies /sbin/lvm blindly. |
82 |
# 2. There are no longer any linking deps in /usr. |
83 |
if use static; then |
84 |
elog "Warning, we no longer overwrite /sbin/lvm and /sbin/dmsetup with" |
85 |
elog "their static versions. If you need the static binaries," |
86 |
elog "you must append .static the filename!" |
87 |
fi |
88 |
} |
89 |
|
90 |
src_unpack() { |
91 |
unpack ${A} |
92 |
} |
93 |
|
94 |
src_prepare() { |
95 |
epatch "${FILESDIR}"/${PN}-2.02.45-dmeventd.patch |
96 |
epatch "${FILESDIR}"/lvm.conf-2.02.51.patch |
97 |
epatch "${FILESDIR}"/${PN}-2.02.51-device-mapper-export-format.patch |
98 |
epatch "${FILESDIR}"/${PN}-2.02.51-as-needed.patch |
99 |
epatch "${FILESDIR}"/${PN}-2.02.48-fix-pkgconfig.patch |
100 |
eautoreconf |
101 |
} |
102 |
|
103 |
src_configure() { |
104 |
local myconf |
105 |
local buildmode |
106 |
|
107 |
myconf="${myconf} --enable-dmeventd" |
108 |
myconf="${myconf} --enable-cmdlib" |
109 |
myconf="${myconf} --enable-applib" |
110 |
myconf="${myconf} --enable-fsadm" |
111 |
|
112 |
# Most of this package does weird stuff. |
113 |
# The build options are tristate, and --without is NOT supported |
114 |
# options: 'none', 'internal', 'shared' |
115 |
if use static ; then |
116 |
einfo "Building static LVM, for usage inside genkernel" |
117 |
buildmode="internal" |
118 |
# This only causes the .static versions to become available |
119 |
# For recent systems, there are no linkages against anything in /usr anyway. |
120 |
# We explicitly provide the .static versions so that they can be included in |
121 |
# initramfs environments. |
122 |
myconf="${myconf} --enable-static_link" |
123 |
else |
124 |
ewarn "Building shared LVM, it will not work inside genkernel!" |
125 |
buildmode="shared" |
126 |
fi |
127 |
|
128 |
# dmeventd requires mirrors to be internal, and snapshot available |
129 |
# so we cannot disable them |
130 |
myconf="${myconf} --with-mirrors=internal" |
131 |
myconf="${myconf} --with-snapshots=internal" |
132 |
|
133 |
if use lvm1 ; then |
134 |
myconf="${myconf} --with-lvm1=${buildmode}" |
135 |
else |
136 |
myconf="${myconf} --with-lvm1=none" |
137 |
fi |
138 |
|
139 |
# disable O_DIRECT support on hppa, breaks pv detection (#99532) |
140 |
use hppa && myconf="${myconf} --disable-o_direct" |
141 |
|
142 |
if use clvm; then |
143 |
myconf="${myconf} --with-cluster=${buildmode}" |
144 |
# 4-state! Make sure we get it right, per bug 210879 |
145 |
# Valid options are: none, cman, gulm, all |
146 |
# |
147 |
# 2009/02: |
148 |
# gulm is removed now, now dual-state: |
149 |
# cman, none |
150 |
# all still exists, but is not needed |
151 |
# |
152 |
# 2009/07: |
153 |
# TODO: add corosync and re-enable ALL |
154 |
local clvmd="" |
155 |
use cman && clvmd="cman" |
156 |
#clvmd="${clvmd/cmangulm/all}" |
157 |
[ -z "${clvmd}" ] && clvmd="none" |
158 |
myconf="${myconf} --with-clvmd=${clvmd}" |
159 |
myconf="${myconf} --with-pool=${buildmode}" |
160 |
else |
161 |
myconf="${myconf} --with-clvmd=none --with-cluster=none" |
162 |
fi |
163 |
|
164 |
myconf="${myconf} --sbindir=/sbin --with-staticdir=/sbin" |
165 |
econf $(use_enable readline) \ |
166 |
$(use_enable selinux) \ |
167 |
--enable-pkgconfig \ |
168 |
--libdir=/usr/$(get_libdir) \ |
169 |
${myconf} \ |
170 |
CLDFLAGS="${LDFLAGS}" || die |
171 |
} |
172 |
|
173 |
src_compile() { |
174 |
einfo "Doing symlinks" |
175 |
pushd include |
176 |
emake || die "Failed to prepare symlinks" |
177 |
popd |
178 |
|
179 |
einfo "Doing device-mapper" |
180 |
pushd libdm |
181 |
emake || die "failed to build libdm" |
182 |
#emake ioctl/libdevmapper.a || die "failed to build libdm/ioctl/libdevmapper.a" |
183 |
popd |
184 |
|
185 |
einfo "Doing lib" |
186 |
pushd lib |
187 |
emake || die "failed to build lib" |
188 |
popd |
189 |
|
190 |
einfo "Doing main build" |
191 |
emake || die "compile problem" |
192 |
} |
193 |
|
194 |
src_install() { |
195 |
emake DESTDIR="${D}" install |
196 |
|
197 |
dodir /$(get_libdir) |
198 |
# Put these in root so we can reach before /usr is up |
199 |
for i in \ |
200 |
libdevmapper-event{,-lvm2{mirror,snapshot}} \ |
201 |
libdevmapper \ |
202 |
liblvm2{format1,snapshot,cmd} \ |
203 |
; do |
204 |
b="${D}"/usr/$(get_libdir)/${i} |
205 |
if [ -f "${b}".so ]; then |
206 |
mv -f "${b}".so* "${D}"/$(get_libdir) || die |
207 |
gen_usr_ldscript ${i}.so || die |
208 |
fi |
209 |
done |
210 |
|
211 |
dodoc README VERSION WHATS_NEW doc/*.{conf,c,txt} |
212 |
insinto /$(get_libdir)/rcscripts/addons |
213 |
newins "${FILESDIR}"/lvm2-start.sh-2.02.49-r3 lvm-start.sh || die |
214 |
newins "${FILESDIR}"/lvm2-stop.sh-2.02.49-r3 lvm-stop.sh || die |
215 |
newinitd "${FILESDIR}"/lvm.rc-2.02.28-r2 lvm || die |
216 |
newconfd "${FILESDIR}"/lvm.confd-2.02.28-r2 lvm || die |
217 |
if use clvm; then |
218 |
newinitd "${FILESDIR}"/clvmd.rc-2.02.39 clvmd || die |
219 |
newconfd "${FILESDIR}"/clvmd.confd-2.02.39 clvmd || die |
220 |
fi |
221 |
|
222 |
# move shared libs to /lib(64) |
223 |
if use static; then |
224 |
dolib.a libdm/ioctl/libdevmapper.a || die "dolib.a libdevmapper.a" |
225 |
fi |
226 |
#gen_usr_ldscript libdevmapper.so |
227 |
|
228 |
insinto /etc |
229 |
doins "${FILESDIR}"/dmtab |
230 |
insinto /$(get_libdir)/rcscripts/addons |
231 |
doins "${FILESDIR}"/dm-start.sh |
232 |
|
233 |
# Device mapper stuff |
234 |
newinitd "${FILESDIR}"/device-mapper.rc-1.02.22-r3 device-mapper || die |
235 |
newconfd "${FILESDIR}"/device-mapper.conf-1.02.22-r3 device-mapper || die |
236 |
|
237 |
newinitd "${FILESDIR}"/1.02.22-dmeventd.initd dmeventd || die |
238 |
if use static; then |
239 |
dolib.a daemons/dmeventd/libdevmapper-event.a \ |
240 |
|| die "dolib.a libdevmapper-event.a" |
241 |
fi |
242 |
#gen_usr_ldscript libdevmapper-event.so |
243 |
|
244 |
insinto /etc/udev/rules.d/ |
245 |
newins "${FILESDIR}"/64-device-mapper.rules-1.02.49-r2 64-device-mapper.rules || die |
246 |
|
247 |
elog "USE flag nocman is deprecated and replaced" |
248 |
elog "with the cman USE flag." |
249 |
elog "" |
250 |
elog "USE flags clvm and cman are masked" |
251 |
elog "by default and need to be unmasked to use them" |
252 |
elog "" |
253 |
elog "Rebuild your genkernel initramfs if you are using lvm" |
254 |
} |
255 |
|
256 |
pkg_postinst() { |
257 |
elog "lvm volumes are no longer automatically created for" |
258 |
elog "baselayout-2 users. If you are using baselayout-2, be sure to" |
259 |
elog "run: # rc-update add lvm boot" |
260 |
elog "Do NOT add it if you are using baselayout-1 still." |
261 |
} |
262 |
|
263 |
src_test() { |
264 |
einfo "Testcases disabled because of device-node mucking" |
265 |
einfo "If you want them, compile the package and see ${S}/tests" |
266 |
} |