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.3-r1.ebuild ChangeLog
Date: Mon, 01 Dec 2014 06:57:39
Message-Id: 20141201065733.925FEB44B@oystercatcher.gentoo.org
1 ryao 14/12/01 06:57:33
2
3 Modified: ChangeLog
4 Added: spl-0.6.3-r1.ebuild
5 Log:
6 Numerous backports from HEAD, including: Linux 3.17 support, Gentoo Prefix support, a Linux 3.12 kernel shrinker regression fix and others
7
8 (Portage version: 2.2.8-r2/cvs/Linux x86_64, signed Manifest commit with key 0xBEE84C64)
9
10 Revision Changes Path
11 1.79 sys-kernel/spl/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-kernel/spl/ChangeLog?rev=1.79&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-kernel/spl/ChangeLog?rev=1.79&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-kernel/spl/ChangeLog?r1=1.78&r2=1.79
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-kernel/spl/ChangeLog,v
20 retrieving revision 1.78
21 retrieving revision 1.79
22 diff -u -r1.78 -r1.79
23 --- ChangeLog 1 Dec 2014 05:45:21 -0000 1.78
24 +++ ChangeLog 1 Dec 2014 06:57:33 -0000 1.79
25 @@ -1,6 +1,12 @@
26 # ChangeLog for sys-kernel/spl
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-kernel/spl/ChangeLog,v 1.78 2014/12/01 05:45:21 ryao Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-kernel/spl/ChangeLog,v 1.79 2014/12/01 06:57:33 ryao Exp $
30 +
31 +*spl-0.6.3-r1 (01 Dec 2014)
32 +
33 + 01 Dec 2014; Richard Yao <ryao@g.o> +spl-0.6.3-r1.ebuild:
34 + Numerous backports from HEAD, including: Linux 3.17 support, Gentoo Prefix
35 + support, a Linux 3.12 kernel shrinker regression fix and others
36
37 01 Dec 2014; Richard Yao <ryao@g.o> spl-0.6.3.ebuild, spl-9999.ebuild:
38 Do not permit builds against PAX_RANDKSTACK until a panic issue is fixed,
39
40
41
42 1.1 sys-kernel/spl/spl-0.6.3-r1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-kernel/spl/spl-0.6.3-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-kernel/spl/spl-0.6.3-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: spl-0.6.3-r1.ebuild
48 ===================================================================
49 # Copyright 1999-2014 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/sys-kernel/spl/spl-0.6.3-r1.ebuild,v 1.1 2014/12/01 06:57:33 ryao Exp $
52
53 EAPI="4"
54 AUTOTOOLS_AUTORECONF="1"
55
56 inherit flag-o-matic linux-info linux-mod autotools-utils
57
58 if [[ ${PV} == "9999" ]] ; then
59 inherit git-2
60 EGIT_REPO_URI="https://github.com/zfsonlinux/${PN}.git"
61 else
62 inherit eutils versionator
63 SRC_URI="https://github.com/zfsonlinux/${PN}/archive/${P}.tar.gz
64 http://dev.gentoo.org/~ryao/dist/${P}-patches-${PR}.tar.xz"
65 S="${WORKDIR}/${PN}-${P}"
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="debug? ( strip ) 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 !PAX_RANDKSTACK
97 ZLIB_DEFLATE
98 ZLIB_INFLATE
99 "
100
101 use debug && CONFIG_CHECK="${CONFIG_CHECK}
102 FRAME_POINTER
103 DEBUG_INFO
104 !DEBUG_INFO_REDUCED
105 "
106
107 kernel_is ge 2 6 26 || die "Linux 2.6.26 or newer required"
108
109 [ ${PV} != "9999" ] && \
110 { kernel_is le 3 17 || die "Linux 3.17 is the latest supported version."; }
111
112 check_extra_config
113 }
114
115 src_prepare() {
116 # Workaround for hard coded path
117 sed -i "s|/sbin/lsmod|/bin/lsmod|" "${S}/scripts/check.sh" || \
118 die "Cannot patch check.sh"
119
120 if [ ${PV} != "9999" ]
121 then
122 # Apply patch set
123 EPATCH_SUFFIX="patch" \
124 EPATCH_FORCE="yes" \
125 epatch "${WORKDIR}/${P}-patches"
126 fi
127
128 # splat is unnecessary unless we are debugging
129 use debug || sed -e 's/^subdir-m += splat$//' -i "${S}/module/Makefile.in"
130
131 # Set module revision number
132 [ ${PV} != "9999" ] && \
133 { sed -i "s/\(Release:\)\(.*\)1/\1\2${PR}-gentoo/" "${S}/META" || die "Could not set Gentoo release"; }
134
135 autotools-utils_src_prepare
136 }
137
138 src_configure() {
139 use custom-cflags || strip-flags
140 filter-ldflags -Wl,*
141
142 set_arch_to_kernel
143 local myeconfargs=(
144 --bindir="${EPREFIX}/bin"
145 --sbindir="${EPREFIX}/sbin"
146 --with-config=all
147 --with-linux="${KV_DIR}"
148 --with-linux-obj="${KV_OUT_DIR}"
149 $(use_enable debug)
150 $(use_enable debug-log)
151 )
152 autotools-utils_src_configure
153 }
154
155 src_install() {
156 autotools-utils_src_install INSTALL_MOD_PATH="${INSTALL_MOD_PATH:-$EROOT}"
157 dodoc AUTHORS DISCLAIMER README.markdown
158 }
159
160 pkg_postinst() {
161 linux-mod_pkg_postinst
162
163 # Remove old modules
164 if [ -d "${EROOT}lib/modules/${KV_FULL}/addon/spl" ]
165 then
166 ewarn "${PN} now installs modules in ${EROOT}lib/modules/${KV_FULL}/extra/spl"
167 ewarn "Old modules were detected in ${EROOT}lib/modules/${KV_FULL}/addon/spl"
168 ewarn "Automatically removing old modules to avoid problems."
169 rm -r "${EROOT}lib/modules/${KV_FULL}/addon/spl" || die "Cannot remove modules"
170 rmdir --ignore-fail-on-non-empty "${EROOT}lib/modules/${KV_FULL}/addon"
171 fi
172 }