1 |
ryao 12/07/10 00:26:07 |
2 |
|
3 |
Modified: spl-9999.ebuild ChangeLog |
4 |
Added: spl-0.6.0_rc9-r2.ebuild |
5 |
Log: |
6 |
Make KM_SLEEP an alias of KM_PUSHPAGE like it is in FreeBSD |
7 |
|
8 |
(Portage version: 2.1.10.65/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.20 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.20&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-kernel/spl/spl-9999.ebuild?rev=1.20&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-kernel/spl/spl-9999.ebuild?r1=1.19&r2=1.20 |
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.19 |
21 |
retrieving revision 1.20 |
22 |
diff -u -r1.19 -r1.20 |
23 |
--- spl-9999.ebuild 25 Jun 2012 17:54:06 -0000 1.19 |
24 |
+++ spl-9999.ebuild 10 Jul 2012 00:26:07 -0000 1.20 |
25 |
@@ -1,6 +1,6 @@ |
26 |
# Copyright 1999-2012 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.19 2012/06/25 17:54:06 ryao Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/sys-kernel/spl/spl-9999.ebuild,v 1.20 2012/07/10 00:26:07 ryao Exp $ |
30 |
|
31 |
EAPI="4" |
32 |
AUTOTOOLS_AUTORECONF="1" |
33 |
@@ -53,6 +53,7 @@ |
34 |
then |
35 |
epatch "${FILESDIR}/${P}-detect-kernel-honors-gfp-flags.patch" |
36 |
epatch "${FILESDIR}/${P}-constify-free-functions.patch" |
37 |
+ epatch "${FILESDIR}/${P}-alias-km-sleep-with-km-pushpage.patch" |
38 |
fi |
39 |
|
40 |
autotools-utils_src_prepare |
41 |
|
42 |
|
43 |
|
44 |
1.22 sys-kernel/spl/ChangeLog |
45 |
|
46 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-kernel/spl/ChangeLog?rev=1.22&view=markup |
47 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-kernel/spl/ChangeLog?rev=1.22&content-type=text/plain |
48 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-kernel/spl/ChangeLog?r1=1.21&r2=1.22 |
49 |
|
50 |
Index: ChangeLog |
51 |
=================================================================== |
52 |
RCS file: /var/cvsroot/gentoo-x86/sys-kernel/spl/ChangeLog,v |
53 |
retrieving revision 1.21 |
54 |
retrieving revision 1.22 |
55 |
diff -u -r1.21 -r1.22 |
56 |
--- ChangeLog 25 Jun 2012 17:54:06 -0000 1.21 |
57 |
+++ ChangeLog 10 Jul 2012 00:26:07 -0000 1.22 |
58 |
@@ -1,6 +1,13 @@ |
59 |
# ChangeLog for sys-kernel/spl |
60 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
61 |
-# $Header: /var/cvsroot/gentoo-x86/sys-kernel/spl/ChangeLog,v 1.21 2012/06/25 17:54:06 ryao Exp $ |
62 |
+# $Header: /var/cvsroot/gentoo-x86/sys-kernel/spl/ChangeLog,v 1.22 2012/07/10 00:26:07 ryao Exp $ |
63 |
+ |
64 |
+*spl-0.6.0_rc9-r2 (10 Jul 2012) |
65 |
+ |
66 |
+ 10 Jul 2012; Richard Yao <ryao@g.o> |
67 |
+ +files/spl-0.6.0_rc9-alias-km-sleep-with-km-pushpage.patch, |
68 |
+ +spl-0.6.0_rc9-r2.ebuild, spl-9999.ebuild: |
69 |
+ Make KM_SLEEP an alias of KM_PUSHPAGE like it is in FreeBSD |
70 |
|
71 |
*spl-0.6.0_rc9-r1 (25 Jun 2012) |
72 |
|
73 |
|
74 |
|
75 |
|
76 |
1.1 sys-kernel/spl/spl-0.6.0_rc9-r2.ebuild |
77 |
|
78 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-kernel/spl/spl-0.6.0_rc9-r2.ebuild?rev=1.1&view=markup |
79 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-kernel/spl/spl-0.6.0_rc9-r2.ebuild?rev=1.1&content-type=text/plain |
80 |
|
81 |
Index: spl-0.6.0_rc9-r2.ebuild |
82 |
=================================================================== |
83 |
# Copyright 1999-2012 Gentoo Foundation |
84 |
# Distributed under the terms of the GNU General Public License v2 |
85 |
# $Header: /var/cvsroot/gentoo-x86/sys-kernel/spl/spl-0.6.0_rc9-r2.ebuild,v 1.1 2012/07/10 00:26:07 ryao Exp $ |
86 |
|
87 |
EAPI="4" |
88 |
AUTOTOOLS_AUTORECONF="1" |
89 |
|
90 |
inherit flag-o-matic linux-mod autotools-utils |
91 |
|
92 |
if [[ ${PV} == "9999" ]] ; then |
93 |
inherit git-2 |
94 |
EGIT_REPO_URI="git://github.com/zfsonlinux/${PN}.git" |
95 |
else |
96 |
inherit eutils versionator |
97 |
MY_PV=$(replace_version_separator 3 '-') |
98 |
SRC_URI="https://github.com/downloads/zfsonlinux/${PN}/${PN}-${MY_PV}.tar.gz" |
99 |
S="${WORKDIR}/${PN}-${MY_PV}" |
100 |
KEYWORDS="~amd64" |
101 |
fi |
102 |
|
103 |
DESCRIPTION="The Solaris Porting Layer is a Linux kernel module which provides many of the Solaris kernel APIs" |
104 |
HOMEPAGE="http://zfsonlinux.org/" |
105 |
|
106 |
LICENSE="|| ( GPL-2 GPL-3 )" |
107 |
SLOT="0" |
108 |
IUSE="custom-cflags debug" |
109 |
|
110 |
RDEPEND="!sys-devel/spl" |
111 |
|
112 |
AT_M4DIR="config" |
113 |
AUTOTOOLS_IN_SOURCE_BUILD="1" |
114 |
|
115 |
pkg_setup() { |
116 |
CONFIG_CHECK=" |
117 |
!DEBUG_LOCK_ALLOC |
118 |
!GRKERNSEC_HIDESYM |
119 |
!PREEMPT |
120 |
!PREEMPT_VOLUNTARY |
121 |
MODULES |
122 |
KALLSYMS |
123 |
ZLIB_DEFLATE |
124 |
ZLIB_INFLATE |
125 |
" |
126 |
kernel_is ge 2 6 26 || die "Linux 2.6.26 or newer required" |
127 |
check_extra_config |
128 |
} |
129 |
|
130 |
src_prepare() { |
131 |
# Workaround for hard coded path |
132 |
sed -i "s|/sbin/lsmod|/bin/lsmod|" scripts/check.sh || die |
133 |
|
134 |
if [ ${PV} != "9999" ] |
135 |
then |
136 |
epatch "${FILESDIR}/${P}-detect-kernel-honors-gfp-flags.patch" |
137 |
epatch "${FILESDIR}/${P}-constify-free-functions.patch" |
138 |
epatch "${FILESDIR}/${P}-alias-km-sleep-with-km-pushpage.patch" |
139 |
fi |
140 |
|
141 |
autotools-utils_src_prepare |
142 |
} |
143 |
|
144 |
src_configure() { |
145 |
use custom-cflags || strip-flags |
146 |
set_arch_to_kernel |
147 |
local myeconfargs=( |
148 |
--bindir="${EPREFIX}/bin" |
149 |
--sbindir="${EPREFIX}/sbin" |
150 |
--with-config=all |
151 |
--with-linux="${KV_DIR}" |
152 |
--with-linux-obj="${KV_OUT_DIR}" |
153 |
$(use_enable debug) |
154 |
) |
155 |
autotools-utils_src_configure |
156 |
} |
157 |
|
158 |
src_test() { |
159 |
if [[ ! -e /proc/modules ]] |
160 |
then |
161 |
die "Missing /proc/modules" |
162 |
elif [[ $UID -ne 0 ]] |
163 |
then |
164 |
ewarn "Cannot run make check tests with FEATURES=userpriv." |
165 |
ewarn "Skipping make check tests." |
166 |
elif grep -q '^spl ' /proc/modules |
167 |
then |
168 |
ewarn "Cannot run make check tests with module spl loaded." |
169 |
ewarn "Skipping make check tests." |
170 |
else |
171 |
autotools-utils_src_test |
172 |
fi |
173 |
} |