1 |
ryao 13/03/28 22:19:21 |
2 |
|
3 |
Modified: spl-9999.ebuild ChangeLog |
4 |
Added: spl-0.6.1.ebuild |
5 |
Log: |
6 |
Version bump to 0.6.1; Simplify hostid logic |
7 |
|
8 |
(Portage version: 2.2.0_alpha169/cvs/Linux x86_64, signed Manifest commit with key 0xBEE84C64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.34 sys-kernel/spl/spl-9999.ebuild |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-kernel/spl/spl-9999.ebuild?rev=1.34&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-kernel/spl/spl-9999.ebuild?rev=1.34&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-kernel/spl/spl-9999.ebuild?r1=1.33&r2=1.34 |
16 |
|
17 |
Index: spl-9999.ebuild |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sys-kernel/spl/spl-9999.ebuild,v |
20 |
retrieving revision 1.33 |
21 |
retrieving revision 1.34 |
22 |
diff -u -r1.33 -r1.34 |
23 |
--- spl-9999.ebuild 23 Mar 2013 23:48:08 -0000 1.33 |
24 |
+++ spl-9999.ebuild 28 Mar 2013 22:19:21 -0000 1.34 |
25 |
@@ -1,6 +1,6 @@ |
26 |
# Copyright 1999-2013 Gentoo Foundation |
27 |
# Distributed under the terms of the GNU General Public License v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/sys-kernel/spl/spl-9999.ebuild,v 1.33 2013/03/23 23:48:08 ryao Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/sys-kernel/spl/spl-9999.ebuild,v 1.34 2013/03/28 22:19:21 ryao Exp $ |
30 |
|
31 |
EAPI="4" |
32 |
AUTOTOOLS_AUTORECONF="1" |
33 |
@@ -62,17 +62,8 @@ |
34 |
|
35 |
if [ ${PV} != "9999" ] |
36 |
then |
37 |
- # Fix x86 build failures on Linux 3.4 and later, bug #450646 |
38 |
- epatch "${FILESDIR}/${P}-fix-atomic64-checks.patch" |
39 |
- |
40 |
- # Fix autotools check that fails on ~ppc64 |
41 |
- epatch "${FILESDIR}/${P}-fix-mutex-owner-check.patch" |
42 |
- |
43 |
- # Linux 3.9 Support |
44 |
- epatch "${FILESDIR}/${P}-linux-3.9-compat.patch" |
45 |
- |
46 |
- # Free memory under load quickly |
47 |
- epatch "${FILESDIR}/${P}-no-cond_resched.patch" |
48 |
+ # Be more like FreeBSD and Illumos when handling hostids |
49 |
+ epatch "${FILESDIR}/${PN}-0.6.0_rc14-simplify-hostid-logic.patch" |
50 |
fi |
51 |
|
52 |
# splat is unnecessary unless we are debugging |
53 |
@@ -106,19 +97,16 @@ |
54 |
dosym "$(basename $(echo "${ED}/usr/src/spl-"*))/${KV_FULL}" /usr/src/spl |
55 |
} |
56 |
|
57 |
-src_test() { |
58 |
- if [[ ! -e /proc/modules ]] |
59 |
- then |
60 |
- die "Missing /proc/modules" |
61 |
- elif [[ $UID -ne 0 ]] |
62 |
- then |
63 |
- ewarn "Cannot run make check tests with FEATURES=userpriv." |
64 |
- ewarn "Skipping make check tests." |
65 |
- elif grep -q '^spl ' /proc/modules |
66 |
+pkg_postinst() { |
67 |
+ linux-mod_pkg_postinst |
68 |
+ |
69 |
+ # Remove old modules |
70 |
+ if [ -d "${EROOT}lib/modules/${KV_FULL}/addon/spl" ] |
71 |
then |
72 |
- ewarn "Cannot run make check tests with module spl loaded." |
73 |
- ewarn "Skipping make check tests." |
74 |
- else |
75 |
- autotools-utils_src_test |
76 |
+ ewarn "${PN} now installs modules in ${EROOT}lib/modules/${KV_FULL}/extra/spl" |
77 |
+ ewarn "Old modules were detected in ${EROOT}lib/modules/${KV_FULL}/addon/spl" |
78 |
+ ewarn "Automatically removing old modules to avoid problems." |
79 |
+ rm -r "${EROOT}lib/modules/${KV_FULL}/addon/spl" || die "Cannot remove modules" |
80 |
+ rmdir --ignore-fail-on-non-empty "${EROOT}lib/modules/${KV_FULL}/addon" |
81 |
fi |
82 |
} |
83 |
|
84 |
|
85 |
|
86 |
1.51 sys-kernel/spl/ChangeLog |
87 |
|
88 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-kernel/spl/ChangeLog?rev=1.51&view=markup |
89 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-kernel/spl/ChangeLog?rev=1.51&content-type=text/plain |
90 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-kernel/spl/ChangeLog?r1=1.50&r2=1.51 |
91 |
|
92 |
Index: ChangeLog |
93 |
=================================================================== |
94 |
RCS file: /var/cvsroot/gentoo-x86/sys-kernel/spl/ChangeLog,v |
95 |
retrieving revision 1.50 |
96 |
retrieving revision 1.51 |
97 |
diff -u -r1.50 -r1.51 |
98 |
--- ChangeLog 23 Mar 2013 23:48:08 -0000 1.50 |
99 |
+++ ChangeLog 28 Mar 2013 22:19:21 -0000 1.51 |
100 |
@@ -1,6 +1,13 @@ |
101 |
# ChangeLog for sys-kernel/spl |
102 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
103 |
-# $Header: /var/cvsroot/gentoo-x86/sys-kernel/spl/ChangeLog,v 1.50 2013/03/23 23:48:08 ryao Exp $ |
104 |
+# $Header: /var/cvsroot/gentoo-x86/sys-kernel/spl/ChangeLog,v 1.51 2013/03/28 22:19:21 ryao Exp $ |
105 |
+ |
106 |
+*spl-0.6.1 (28 Mar 2013) |
107 |
+ |
108 |
+ 28 Mar 2013; Richard Yao <ryao@g.o> |
109 |
+ +files/spl-0.6.0_rc14-simplify-hostid-logic.patch, +spl-0.6.1.ebuild, |
110 |
+ spl-9999.ebuild: |
111 |
+ Version bump to 0.6.1; Simplify hostid logic |
112 |
|
113 |
*spl-0.6.0_rc14-r3 (23 Mar 2013) |
114 |
|
115 |
|
116 |
|
117 |
|
118 |
1.1 sys-kernel/spl/spl-0.6.1.ebuild |
119 |
|
120 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-kernel/spl/spl-0.6.1.ebuild?rev=1.1&view=markup |
121 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-kernel/spl/spl-0.6.1.ebuild?rev=1.1&content-type=text/plain |
122 |
|
123 |
Index: spl-0.6.1.ebuild |
124 |
=================================================================== |
125 |
# Copyright 1999-2013 Gentoo Foundation |
126 |
# Distributed under the terms of the GNU General Public License v2 |
127 |
# $Header: /var/cvsroot/gentoo-x86/sys-kernel/spl/spl-0.6.1.ebuild,v 1.1 2013/03/28 22:19:21 ryao Exp $ |
128 |
|
129 |
EAPI="4" |
130 |
AUTOTOOLS_AUTORECONF="1" |
131 |
|
132 |
inherit flag-o-matic linux-info linux-mod autotools-utils |
133 |
|
134 |
if [[ ${PV} == "9999" ]] ; then |
135 |
inherit git-2 |
136 |
EGIT_REPO_URI="git://github.com/zfsonlinux/${PN}.git" |
137 |
else |
138 |
inherit eutils versionator |
139 |
MY_PV=$(replace_version_separator 3 '-') |
140 |
SRC_URI="https://github.com/zfsonlinux/${PN}/archive/${PN}-${MY_PV}.tar.gz" |
141 |
S="${WORKDIR}/${PN}-${PN}-${MY_PV}" |
142 |
KEYWORDS="~amd64" |
143 |
fi |
144 |
|
145 |
DESCRIPTION="The Solaris Porting Layer is a Linux kernel module which provides many of the Solaris kernel APIs" |
146 |
HOMEPAGE="http://zfsonlinux.org/" |
147 |
|
148 |
LICENSE="GPL-2" |
149 |
SLOT="0" |
150 |
IUSE="custom-cflags debug debug-log" |
151 |
RESTRICT="test" |
152 |
|
153 |
COMMON_DEPEND="virtual/awk" |
154 |
|
155 |
DEPEND="${COMMON_DEPEND}" |
156 |
|
157 |
RDEPEND="${COMMON_DEPEND} |
158 |
!sys-devel/spl" |
159 |
|
160 |
AT_M4DIR="config" |
161 |
AUTOTOOLS_IN_SOURCE_BUILD="1" |
162 |
|
163 |
pkg_setup() { |
164 |
linux-info_pkg_setup |
165 |
CONFIG_CHECK=" |
166 |
!DEBUG_LOCK_ALLOC |
167 |
!GRKERNSEC_HIDESYM |
168 |
MODULES |
169 |
KALLSYMS |
170 |
!PAX_KERNEXEC_PLUGIN_METHOD_OR |
171 |
ZLIB_DEFLATE |
172 |
ZLIB_INFLATE |
173 |
" |
174 |
|
175 |
kernel_is ge 2 6 26 || die "Linux 2.6.26 or newer required" |
176 |
|
177 |
[ ${PV} != "9999" ] && \ |
178 |
{ kernel_is le 3 9 || die "Linux 3.9 is the latest supported version."; } |
179 |
|
180 |
check_extra_config |
181 |
} |
182 |
|
183 |
src_prepare() { |
184 |
# Workaround for hard coded path |
185 |
sed -i "s|/sbin/lsmod|/bin/lsmod|" scripts/check.sh || die |
186 |
|
187 |
if [ ${PV} != "9999" ] |
188 |
then |
189 |
# Be more like FreeBSD and Illumos when handling hostids |
190 |
epatch "${FILESDIR}/${PN}-0.6.0_rc14-simplify-hostid-logic.patch" |
191 |
fi |
192 |
|
193 |
# splat is unnecessary unless we are debugging |
194 |
use debug || sed -e 's/^subdir-m += splat$//' -i "${S}/module/Makefile.in" |
195 |
|
196 |
autotools-utils_src_prepare |
197 |
} |
198 |
|
199 |
src_configure() { |
200 |
use custom-cflags || strip-flags |
201 |
filter-ldflags -Wl,* |
202 |
|
203 |
set_arch_to_kernel |
204 |
local myeconfargs=( |
205 |
--bindir="${EPREFIX}/bin" |
206 |
--sbindir="${EPREFIX}/sbin" |
207 |
--with-config=all |
208 |
--with-linux="${KV_DIR}" |
209 |
--with-linux-obj="${KV_OUT_DIR}" |
210 |
$(use_enable debug) |
211 |
$(use_enable debug-log) |
212 |
) |
213 |
autotools-utils_src_configure |
214 |
} |
215 |
|
216 |
src_install() { |
217 |
autotools-utils_src_install |
218 |
dodoc AUTHORS DISCLAIMER README.markdown |
219 |
|
220 |
# Provide /usr/src/spl symlink for lustre |
221 |
dosym "$(basename $(echo "${ED}/usr/src/spl-"*))/${KV_FULL}" /usr/src/spl |
222 |
} |
223 |
|
224 |
pkg_postinst() { |
225 |
linux-mod_pkg_postinst |
226 |
|
227 |
# Remove old modules |
228 |
if [ -d "${EROOT}lib/modules/${KV_FULL}/addon/spl" ] |
229 |
then |
230 |
ewarn "${PN} now installs modules in ${EROOT}lib/modules/${KV_FULL}/extra/spl" |
231 |
ewarn "Old modules were detected in ${EROOT}lib/modules/${KV_FULL}/addon/spl" |
232 |
ewarn "Automatically removing old modules to avoid problems." |
233 |
rm -r "${EROOT}lib/modules/${KV_FULL}/addon/spl" || die "Cannot remove modules" |
234 |
rmdir --ignore-fail-on-non-empty "${EROOT}lib/modules/${KV_FULL}/addon" |
235 |
fi |
236 |
} |