Gentoo Archives: gentoo-commits

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