1 |
dev-zero 07/12/03 20:13:28 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: evms-2.5.5-r10.ebuild |
5 |
Log: |
6 |
Added fix for snapshots on kernel >=2.6.19 (bug #192036). Fixed tests and disabled them. |
7 |
(Portage version: 2.1.4_rc4) |
8 |
|
9 |
Revision Changes Path |
10 |
1.78 sys-fs/evms/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/evms/ChangeLog?rev=1.78&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/evms/ChangeLog?rev=1.78&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/evms/ChangeLog?r1=1.77&r2=1.78 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/sys-fs/evms/ChangeLog,v |
19 |
retrieving revision 1.77 |
20 |
retrieving revision 1.78 |
21 |
diff -u -r1.77 -r1.78 |
22 |
--- ChangeLog 22 Oct 2007 14:33:01 -0000 1.77 |
23 |
+++ ChangeLog 3 Dec 2007 20:13:28 -0000 1.78 |
24 |
@@ -1,6 +1,13 @@ |
25 |
# ChangeLog for sys-fs/evms |
26 |
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/evms/ChangeLog,v 1.77 2007/10/22 14:33:01 armin76 Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/evms/ChangeLog,v 1.78 2007/12/03 20:13:28 dev-zero Exp $ |
29 |
+ |
30 |
+*evms-2.5.5-r10 (03 Dec 2007) |
31 |
+ |
32 |
+ 03 Dec 2007; Tiziano Müller <dev-zero@g.o> |
33 |
+ +files/evms-2.5.5-snapshot.patch, +evms-2.5.5-r10.ebuild: |
34 |
+ Added fix for snapshots on kernel >=2.6.19 (bug #192036). Fixed tests and |
35 |
+ disabled them. |
36 |
|
37 |
22 Oct 2007; Raúl Porcel <armin76@g.o> evms-2.5.5-r9.ebuild: |
38 |
Re-add ~ia64 wrt #190828 |
39 |
|
40 |
|
41 |
|
42 |
1.1 sys-fs/evms/evms-2.5.5-r10.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/evms/evms-2.5.5-r10.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/evms/evms-2.5.5-r10.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: evms-2.5.5-r10.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/evms/evms-2.5.5-r10.ebuild,v 1.1 2007/12/03 20:13:28 dev-zero Exp $ |
52 |
|
53 |
WANT_AUTOMAKE="latest" |
54 |
WANT_AUTOCONF="latest" |
55 |
|
56 |
inherit eutils flag-o-matic multilib toolchain-funcs autotools linux-info |
57 |
|
58 |
DESCRIPTION="Utilities for the IBM Enterprise Volume Management System" |
59 |
HOMEPAGE="http://www.sourceforge.net/projects/evms" |
60 |
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" |
61 |
|
62 |
LICENSE="GPL-2" |
63 |
SLOT="0" |
64 |
KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
65 |
IUSE="debug gtk hb hb2 ncurses nls" |
66 |
|
67 |
#EVMS uses libuuid from e2fsprogs |
68 |
RDEPEND="virtual/libc |
69 |
sys-fs/e2fsprogs |
70 |
sys-fs/device-mapper |
71 |
>=sys-apps/baselayout-1.9.4-r6 |
72 |
gtk? ( =x11-libs/gtk+-1* |
73 |
=dev-libs/glib-1* ) |
74 |
hb? ( !hb2? ( =sys-cluster/heartbeat-1* ) ) |
75 |
hb2? ( >=sys-cluster/heartbeat-2 ) |
76 |
ncurses? ( sys-libs/ncurses |
77 |
>=dev-libs/glib-2.12.4-r1 )" |
78 |
DEPEND="${RDEPEND}" |
79 |
|
80 |
# While the test-concept holds, many of them fail due to unknown reasons. |
81 |
# Since upstream is almost dead, we have to ignore that for now. |
82 |
RESTRICT="test" |
83 |
|
84 |
pkg_setup() { |
85 |
if use hb && use hb2 ; then |
86 |
ewarn "It's not possible to have support for heartbeat version 1 and 2 at the same time." |
87 |
ewarn "Assuming that you want heartbeat-2, if not, please do not enable the hb2 use flag." |
88 |
fi |
89 |
|
90 |
get_running_version |
91 |
if [ ${KV_PATCH} -lt 19 ] || [ ${KV_MINOR} -eq 4 ] ; then |
92 |
ewarn "This revision of EVMS may not work correctly with kernels prior to 2.6.19 when" |
93 |
ewarn "using snapshots due to API changes. Please update your kernel or use EVMS 2.5.5-r9." |
94 |
ebeep 5 |
95 |
fi |
96 |
|
97 |
} |
98 |
|
99 |
src_unpack() { |
100 |
unpack ${A} |
101 |
cd "${S}" |
102 |
|
103 |
epatch \ |
104 |
"${FILESDIR}/${PV}/md_super_fix.patch" \ |
105 |
"${FILESDIR}/${PV}/ntfs_unmkfs.patch" \ |
106 |
"${FILESDIR}/${PV}/raid5_degrade_fix_v2.patch" \ |
107 |
"${FILESDIR}/${PV}/raid5_remove_spare_fix.patch" \ |
108 |
"${FILESDIR}/${PV}/raid5_remove_spare_fix_2.patch" \ |
109 |
"${FILESDIR}/${PV}/raid5_algorithm.patch" \ |
110 |
"${FILESDIR}/${PV}/cli_reload_options.patch" \ |
111 |
"${FILESDIR}/${PV}/cli_query_segfault.patch" \ |
112 |
"${FILESDIR}/${PV}/get_geometry.patch" \ |
113 |
"${FILESDIR}/${PV}/BaseName.patch" \ |
114 |
"${FILESDIR}/${PV}/disk_cache.patch" |
115 |
|
116 |
epatch \ |
117 |
"${FILESDIR}/${P}-as-needed.patch" \ |
118 |
"${FILESDIR}/${P}-glib_dep.patch" \ |
119 |
"${FILESDIR}/${P}-ocfs2.patch" \ |
120 |
"${FILESDIR}/${P}-use_disk_group.patch" \ |
121 |
"${FILESDIR}/${P}-pagesize.patch" \ |
122 |
"${FILESDIR}/${P}-snapshot.patch" |
123 |
|
124 |
eautoreconf |
125 |
} |
126 |
|
127 |
src_compile() { |
128 |
# Bug #54856 |
129 |
# filter-flags "-fstack-protector" |
130 |
replace-flags -O3 -O2 |
131 |
replace-flags -Os -O2 |
132 |
|
133 |
local excluded_interfaces="" |
134 |
use ncurses || excluded_interfaces="--disable-text-mode" |
135 |
use gtk || excluded_interfaces="${excluded_interfaces} --disable-gui" |
136 |
|
137 |
# hb2 should override hb |
138 |
local myconf="$(use_enable hb ha) --disable-hb2" |
139 |
use hb2 && myconf="--disable-ha --enable-hb2" |
140 |
|
141 |
# We have to link statically against glib because evmsn resides in /sbin |
142 |
econf \ |
143 |
--libdir=/$(get_libdir) \ |
144 |
--sbindir=/sbin \ |
145 |
--includedir=/usr/include \ |
146 |
--with-static-glib \ |
147 |
$(use_with debug) \ |
148 |
$(use_enable nls) \ |
149 |
${myconf} \ |
150 |
${excluded_interfaces} || die "Failed configure" |
151 |
emake || die "Failed emake" |
152 |
} |
153 |
|
154 |
src_install() { |
155 |
emake DESTDIR="${D}" install || die "Make install died" |
156 |
dodoc ChangeLog INSTALL* PLUGIN.IDS README TERMINOLOGY doc/linuxrc |
157 |
|
158 |
insinto /$(get_libdir)/rcscripts/addons |
159 |
newins "${FILESDIR}/evms2-start.sh" evms-start.sh || die "rcscript addon failed" |
160 |
|
161 |
# install the sample configuration into the doc dir |
162 |
dodoc "${D}/etc/evms.conf.sample" |
163 |
rm -f "${D}/etc/evms.conf.sample" |
164 |
|
165 |
# the kernel patches may come handy for people compiling their own kernel |
166 |
docinto kernel/2.4 |
167 |
dodoc kernel/2.4/* |
168 |
docinto kernel/2.6 |
169 |
dodoc kernel/2.6/* |
170 |
|
171 |
# move static libraries to /usr/lib |
172 |
dodir /usr/$(get_libdir) |
173 |
mv -f "${D}"/$(get_libdir)/*.a "${D}/usr/$(get_libdir)" |
174 |
|
175 |
# Create linker scripts for dynamic libs in /lib, else gcc |
176 |
# links to the static ones in /usr/lib first. Bug #4411. |
177 |
for x in "${D}/usr/$(get_libdir)"/*.a ; do |
178 |
if [ -f ${x} ] ; then |
179 |
local lib="${x##*/}" |
180 |
gen_usr_ldscript ${lib/\.a/\.so} |
181 |
fi |
182 |
done |
183 |
|
184 |
# the gtk+ frontend should live in /usr/sbin |
185 |
if use gtk ; then |
186 |
dodir /usr/sbin |
187 |
mv -f "${D}"/sbin/evmsgui "${D}"/usr/sbin |
188 |
fi |
189 |
|
190 |
# Needed for bug #51252 |
191 |
dosym libevms-2.5.so.0.0 /$(get_libdir)/libevms-2.5.so.0 |
192 |
|
193 |
newinitd "${FILESDIR}"/evms.initd-2.5.5-r9 evms || die |
194 |
newconfd "${FILESDIR}"/evms.conf-2.5.5-r9 evms || die |
195 |
} |
196 |
|
197 |
src_test() { |
198 |
if [[ -z ${EVMS_TEST_VOLUME} ]] ; then |
199 |
eerror "This is a volume manager and it therefore needs a volume" |
200 |
eerror "for testing. You have to define EVMS_TEST_VOLUME as" |
201 |
eerror "a volume evms can operate on." |
202 |
eerror "Example: export EVMS_TEST_VOLUME=sda" |
203 |
eerror "Note: The volume-name can not be a symlink." |
204 |
eerror "WARNING: EVMS WILL DESTROY EVERYTHING ON IT." |
205 |
einfo "If you don't have an empty disk, you can use the loopback-device:" |
206 |
einfo "- Create a large file using dd (this creates a 4GB file):" |
207 |
einfo " dd if=/dev/zero of=/tmp/evms_test_file bs=1M count=4096" |
208 |
einfo "- Activate a loop device on this file:" |
209 |
einfo " losetup /dev/loop0 /tmp/evms_test_file" |
210 |
einfo "- export EVMS_TEST_VOLUME=loop0" |
211 |
einfo "The disk has to be at least 4GB!" |
212 |
einfo "To deactivate the loop-device afterwards:" |
213 |
einfo "- losetup -d /dev/loop0" |
214 |
hasq userpriv ${FEATURES} && ewarn "These tests have to run as root. Disable userpriv!" |
215 |
die "need test-volume" |
216 |
fi |
217 |
|
218 |
if hasq userpriv ${FEATURES} ; then |
219 |
eerror "These tests need root privileges. Disable userpriv!" |
220 |
die "userpriv is not supported" |
221 |
fi |
222 |
|
223 |
einfo "Disabling sandbox for:" |
224 |
einfo " - /dev/${EVMS_TEST_VOLUME}" |
225 |
addwrite /dev/${EVMS_TEST_VOLUME} |
226 |
einfo " - /dev/evms" |
227 |
addwrite /dev/evms |
228 |
einfo " - /var/lock/evms-engine" |
229 |
addwrite /var/lock/evms-engine |
230 |
|
231 |
cd "${S}/tests/suite" |
232 |
PATH="${S}/ui/cli:${S}/tests:/sbin:${PATH}" ./run_tests ${EVMS_TEST_VOLUME} || die "tests failed" |
233 |
} |
234 |
|
235 |
|
236 |
|
237 |
-- |
238 |
gentoo-commits@g.o mailing list |