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