Gentoo Archives: gentoo-commits

From: "Richard Yao (ryao)" <ryao@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-kernel/spl: spl-0.6.2-r2.ebuild ChangeLog
Date: Thu, 21 Nov 2013 14:47:31
Message-Id: 20131121144728.895C72004B@flycatcher.gentoo.org
1 ryao 13/11/21 14:47:28
2
3 Modified: ChangeLog
4 Added: spl-0.6.2-r2.ebuild
5 Log:
6 Linux 3.12 support
7
8 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 0xBEE84C64)
9
10 Revision Changes Path
11 1.66 sys-kernel/spl/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-kernel/spl/ChangeLog?rev=1.66&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-kernel/spl/ChangeLog?rev=1.66&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-kernel/spl/ChangeLog?r1=1.65&r2=1.66
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-kernel/spl/ChangeLog,v
20 retrieving revision 1.65
21 retrieving revision 1.66
22 diff -u -r1.65 -r1.66
23 --- ChangeLog 14 Oct 2013 14:36:59 -0000 1.65
24 +++ ChangeLog 21 Nov 2013 14:47:28 -0000 1.66
25 @@ -1,6 +1,11 @@
26 # ChangeLog for sys-kernel/spl
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-kernel/spl/ChangeLog,v 1.65 2013/10/14 14:36:59 ryao Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-kernel/spl/ChangeLog,v 1.66 2013/11/21 14:47:28 ryao Exp $
30 +
31 +*spl-0.6.2-r2 (21 Nov 2013)
32 +
33 + 21 Nov 2013; Richard Yao <ryao@g.o> +spl-0.6.2-r2.ebuild:
34 + Linux 3.12 support
35
36 14 Oct 2013; Richard Yao <ryao@g.o> spl-0.6.2-r1.ebuild:
37 Reverse stabilization of sys-kernel/spl-0.6.2-r1 (to avoid confusing users
38
39
40
41 1.1 sys-kernel/spl/spl-0.6.2-r2.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-kernel/spl/spl-0.6.2-r2.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-kernel/spl/spl-0.6.2-r2.ebuild?rev=1.1&content-type=text/plain
45
46 Index: spl-0.6.2-r2.ebuild
47 ===================================================================
48 # Copyright 1999-2013 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/sys-kernel/spl/spl-0.6.2-r2.ebuild,v 1.1 2013/11/21 14:47:28 ryao Exp $
51
52 EAPI="4"
53 AUTOTOOLS_AUTORECONF="1"
54
55 inherit flag-o-matic linux-info linux-mod autotools-utils
56
57 if [[ ${PV} == "9999" ]] ; then
58 inherit git-2
59 EGIT_REPO_URI="git://github.com/zfsonlinux/${PN}.git"
60 else
61 inherit eutils versionator
62 MY_PV=$(replace_version_separator 3 '-')
63 SRC_URI="https://github.com/zfsonlinux/${PN}/archive/${PN}-${MY_PV}.tar.gz
64 http://dev.gentoo.org/~ryao/dist/${PN}-${MY_PV}-p1.tar.xz"
65 S="${WORKDIR}/${PN}-${PN}-${MY_PV}"
66 KEYWORDS="~amd64"
67 fi
68
69 DESCRIPTION="The Solaris Porting Layer is a Linux kernel module which provides many of the Solaris kernel APIs"
70 HOMEPAGE="http://zfsonlinux.org/"
71
72 LICENSE="GPL-2"
73 SLOT="0"
74 IUSE="custom-cflags debug debug-log"
75 RESTRICT="test"
76
77 COMMON_DEPEND="dev-lang/perl
78 virtual/awk"
79
80 DEPEND="${COMMON_DEPEND}"
81
82 RDEPEND="${COMMON_DEPEND}
83 !sys-devel/spl"
84
85 AT_M4DIR="config"
86 AUTOTOOLS_IN_SOURCE_BUILD="1"
87
88 pkg_setup() {
89 linux-info_pkg_setup
90 CONFIG_CHECK="
91 !DEBUG_LOCK_ALLOC
92 !GRKERNSEC_HIDESYM
93 MODULES
94 KALLSYMS
95 !PAX_KERNEXEC_PLUGIN_METHOD_OR
96 ZLIB_DEFLATE
97 ZLIB_INFLATE
98 "
99
100 kernel_is ge 2 6 26 || die "Linux 2.6.26 or newer required"
101
102 [ ${PV} != "9999" ] && \
103 { kernel_is le 3 12 || die "Linux 3.12 is the latest supported version."; }
104
105 check_extra_config
106 }
107
108 src_prepare() {
109 # Workaround for hard coded path
110 sed -i "s|/sbin/lsmod|/bin/lsmod|" scripts/check.sh || die
111
112 if [ ${PV} != "9999" ]
113 then
114 # Apply patch set
115 EPATCH_SUFFIX="patch" \
116 EPATCH_FORCE="yes" \
117 epatch "${WORKDIR}/${PN}-${MY_PV}-patches"
118 fi
119
120 # splat is unnecessary unless we are debugging
121 use debug || sed -e 's/^subdir-m += splat$//' -i "${S}/module/Makefile.in"
122
123 autotools-utils_src_prepare
124 }
125
126 src_configure() {
127 use custom-cflags || strip-flags
128 filter-ldflags -Wl,*
129
130 set_arch_to_kernel
131 local myeconfargs=(
132 --bindir="${EPREFIX}/bin"
133 --sbindir="${EPREFIX}/sbin"
134 --with-config=all
135 --with-linux="${KV_DIR}"
136 --with-linux-obj="${KV_OUT_DIR}"
137 $(use_enable debug)
138 $(use_enable debug-log)
139 )
140 autotools-utils_src_configure
141 }
142
143 src_install() {
144 autotools-utils_src_install
145 dodoc AUTHORS DISCLAIMER README.markdown
146 }
147
148 pkg_postinst() {
149 linux-mod_pkg_postinst
150
151 # Remove old modules
152 if [ -d "${EROOT}lib/modules/${KV_FULL}/addon/spl" ]
153 then
154 ewarn "${PN} now installs modules in ${EROOT}lib/modules/${KV_FULL}/extra/spl"
155 ewarn "Old modules were detected in ${EROOT}lib/modules/${KV_FULL}/addon/spl"
156 ewarn "Automatically removing old modules to avoid problems."
157 rm -r "${EROOT}lib/modules/${KV_FULL}/addon/spl" || die "Cannot remove modules"
158 rmdir --ignore-fail-on-non-empty "${EROOT}lib/modules/${KV_FULL}/addon"
159 fi
160 }