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: ChangeLog lvm2-2.02.28-r4.ebuild
Date: Thu, 29 Nov 2007 00:28:19
Message-Id: E1IxXGD-0006d0-P5@stork.gentoo.org
1 robbat2 07/11/29 00:28:09
2
3 Modified: ChangeLog
4 Added: lvm2-2.02.28-r4.ebuild
5 Log:
6 Bug #199860, snapshot support code was not being built properly when non-static LVM was in use.
7 (Portage version: 2.1.4_rc4)
8
9 Revision Changes Path
10 1.125 sys-fs/lvm2/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/lvm2/ChangeLog?rev=1.125&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/lvm2/ChangeLog?rev=1.125&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/lvm2/ChangeLog?r1=1.124&r2=1.125
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-fs/lvm2/ChangeLog,v
19 retrieving revision 1.124
20 retrieving revision 1.125
21 diff -u -r1.124 -r1.125
22 --- ChangeLog 28 Nov 2007 23:51:48 -0000 1.124
23 +++ ChangeLog 29 Nov 2007 00:28:09 -0000 1.125
24 @@ -1,6 +1,13 @@
25 # ChangeLog for sys-fs/lvm2
26 # Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/lvm2/ChangeLog,v 1.124 2007/11/28 23:51:48 robbat2 Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sys-fs/lvm2/ChangeLog,v 1.125 2007/11/29 00:28:09 robbat2 Exp $
29 +
30 +*lvm2-2.02.28-r4 (29 Nov 2007)
31 +
32 + 29 Nov 2007; Robin H. Johnson <robbat2@g.o>
33 + +lvm2-2.02.28-r4.ebuild:
34 + Bug #199860, snapshot support code was not being built properly when
35 + non-static LVM was in use.
36
37 28 Nov 2007; Robin H. Johnson <robbat2@g.o> -lvm2-2.02.10.ebuild,
38 -lvm2-2.02.17.ebuild, -lvm2-2.02.25.ebuild, -lvm2-2.02.27.ebuild:
39
40
41
42 1.1 sys-fs/lvm2/lvm2-2.02.28-r4.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/lvm2/lvm2-2.02.28-r4.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/lvm2/lvm2-2.02.28-r4.ebuild?rev=1.1&content-type=text/plain
46
47 Index: lvm2-2.02.28-r4.ebuild
48 ===================================================================
49 # Copyright 1999-2007 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.28-r4.ebuild,v 1.1 2007/11/29 00:28:09 robbat2 Exp $
52
53 inherit eutils multilib
54
55 DESCRIPTION="User-land utilities for LVM2 (device-mapper) software."
56 HOMEPAGE="http://sources.redhat.com/lvm2/"
57 SRC_URI="ftp://sources.redhat.com/pub/lvm2/${PN/lvm/LVM}.${PV}.tgz"
58
59 LICENSE="GPL-2"
60 SLOT="0"
61 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
62
63 IUSE="readline static clvm cman gulm lvm1 selinux"
64
65 DEPEND=">=sys-fs/device-mapper-1.02.22-r5
66 clvm? ( >=sys-cluster/dlm-1.01.00
67 cman? ( >=sys-cluster/cman-1.01.00 )
68 gulm? ( >=sys-cluster/gulm-1.00.00 ) )"
69
70 RDEPEND="${DEPEND}
71 !sys-fs/lvm-user
72 !sys-fs/clvm"
73
74 S="${WORKDIR}/${PN/lvm/LVM}.${PV}"
75
76 pkg_setup() {
77 use nolvmstatic && eerror "USE=nolvmstatic has changed to USE=static via package.use"
78 use nolvm1 && eerror "USE=nolvm1 has changed to USE=lvm1 via package.use"
79 }
80
81 src_unpack() {
82 unpack ${A}
83 epatch "${FILESDIR}"/lvm.conf-2.02.28-r3.patch
84 }
85
86 src_compile() {
87 # Static compile of lvm2 so that the install described in the handbook works
88 # http://www.gentoo.org/doc/en/lvm2.xml
89 # fixes http://bugs.gentoo.org/show_bug.cgi?id=84463
90 local myconf
91 local buildmode
92
93 # fsadm is broken, don't include it (2.02.28)
94 myconf="${myconf} --enable-dmeventd --enable-cmdlib"
95
96 # Most of this package does weird stuff.
97 # The build options are tristate, and --without is NOT supported
98 # options: 'none', 'internal', 'shared'
99 if use static ; then
100 einfo "Building static LVM, for usage inside genkernel"
101 myconf="${myconf} --enable-static_link"
102 buildmode="internal"
103 else
104 ewarn "Building shared LVM, it will not work inside genkernel!"
105 buildmode="shared"
106 fi
107
108 # dmeventd requires mirrors to be internal, and snapshot available
109 # so we cannot disable them
110 myconf="${myconf} --with-mirrors=internal"
111 myconf="${myconf} --with-snapshots=internal"
112
113 if use lvm1 ; then
114 myconf="${myconf} --with-lvm1=${buildmode}"
115 else
116 myconf="${myconf} --with-lvm1=none"
117 fi
118
119 # disable O_DIRECT support on hppa, breaks pv detection (#99532)
120 use hppa && myconf="${myconf} --disable-o_direct"
121
122 if use clvm; then
123 myconf="${myconf} --with-cluster=${buildmode}"
124 # 4-state!
125 local clvmd="none"
126 use cman && clvmd="cman"
127 use gulm && clvmd="${clvmd}gulm"
128 clvmd="${clvmd/cmangulm/all}"
129 myconf="${myconf} --with-clvmd=${clvmd}"
130 myconf="${myconf} --with-pool=${buildmode}"
131 else
132 myconf="${myconf} --with-clvmd=none --with-cluster=none"
133 fi
134
135 myconf="${myconf} --sbindir=/sbin --with-staticdir=/sbin"
136 econf $(use_enable readline) \
137 $(use_enable selinux) \
138 --libdir=/usr/$(get_libdir) \
139 ${myconf} || die
140 emake || die "compile problem"
141 }
142
143 src_install() {
144 emake DESTDIR="${D}" install
145 # TODO: At some point in the future, we need to stop installing the static
146 # as the /sbin/lvm name, and have both variants seperate.
147 if use static; then
148 cp -f "${D}"/sbin/lvm.static "${D}"/sbin/lvm \
149 || die "Failed to copy lvm.static"
150 fi
151
152 dodir /$(get_libdir)
153 # Put these in root so we can reach before /usr is up
154 for i in libdevmapper-event-lvm2mirror liblvm2{format1,snapshot} ; do
155 b="${D}"/usr/$(get_libdir)/${i}
156 if [ -f "${b}".so ]; then
157 mv -f "${b}".so* "${D}"/$(get_libdir) || die
158 fi
159 done
160
161 dodoc README VERSION WHATS_NEW doc/*.{conf,c,txt}
162 insinto /lib/rcscripts/addons
163 newins "${FILESDIR}"/lvm2-start.sh-2.02.28-r2 lvm-start.sh || die
164 newins "${FILESDIR}"/lvm2-stop.sh lvm-stop.sh || die
165 newinitd "${FILESDIR}"/lvm.rc-2.02.28-r2 lvm || die
166 newconfd "${FILESDIR}"/lvm.confd-2.02.28-r2 lvm || die
167 if use clvm; then
168 newinitd "${FILESDIR}"/clvmd.rc-2.02.28-r3 clvmd || die
169 fi
170
171 elog "use flag nocman is deprecated and replaced"
172 elog "with cman and gulm use flags."
173 elog ""
174 elog "use flags clvm,cman and gulm are masked"
175 elog "by default and need to be unmasked to use them"
176 elog ""
177 elog "Rebuild your genkernel initramfs if you are using lvm"
178 use nolvmstatic && \
179 elog "USE=nolvmstatic has changed to USE=static via package.use"
180 use nolvm1 && \
181 elog "USE=nolvm1 has changed to USE=lvm1 via package.use"
182 }
183
184 pkg_postinst() {
185 elog "lvm volumes are no longer automatically created for"
186 elog "baselayout-2 users. If you are using baselayout-2, be sure to"
187 elog "run: # rc-update add lvm boot"
188 }
189
190
191
192 --
193 gentoo-commits@g.o mailing list