Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 365475
Collapse All | Expand All

(-)a/sys-devel/spl/spl-9999.ebuild (-4 / +17 lines)
Lines 6-12 EAPI="2" Link Here
6
6
7
WANT_AUTOMAKE="1.11"
7
WANT_AUTOMAKE="1.11"
8
AT_M4DIR=./config  # for aclocal called by eautoreconf
8
AT_M4DIR=./config  # for aclocal called by eautoreconf
9
inherit git linux-info eutils autotools
9
inherit autotools eutils git linux-info linux-mod
10
10
11
DESCRIPTION="Solaris Porting Layer - a Linux kernel module providing some Solaris kernel APIs"
11
DESCRIPTION="Solaris Porting Layer - a Linux kernel module providing some Solaris kernel APIs"
12
HOMEPAGE="http://wiki.github.com/behlendorf/spl/"
12
HOMEPAGE="http://wiki.github.com/behlendorf/spl/"
Lines 18-28 SLOT="0" Link Here
18
KEYWORDS=""
18
KEYWORDS=""
19
IUSE=""
19
IUSE=""
20
20
21
DEPEND="
21
DEPEND=">=virtual/linux-sources-2.6"
22
		>=virtual/linux-sources-2.6.32
23
		"
24
RDEPEND=""
22
RDEPEND=""
25
23
24
pkg_setup() {
25
	linux-mod_pkg_setup
26
	kernel_is gt 2 6 32 || die "Your kernel is too old. ${CATEGORY}/${PN} need 2.6.32 or newer."
27
	linux_config_exists || die "Your kernel sources are unconfigured."
28
	if ! linux_chkconfig_present PREEMPT_NONE; then
29
		eerror "${CATEGORY}/${PN} doesn't currently work with PREEMPT kernel."
30
		eerror "Please look at bug https://github.com/behlendorf/zfs/issues/83 ."
31
		die "PREEMPT kernel"
32
	fi
33
}
34
26
src_prepare() {
35
src_prepare() {
27
	epatch "${FILESDIR}"/${PN}-0.6.0-includedir.patch
36
	epatch "${FILESDIR}"/${PN}-0.6.0-includedir.patch
28
	eautoreconf
37
	eautoreconf
Lines 37-43 src_configure() { Link Here
37
		--with-linux="${KERNEL_DIR}" \
46
		--with-linux="${KERNEL_DIR}" \
38
		--with-linux-obj="${KERNEL_DIR}"
47
		--with-linux-obj="${KERNEL_DIR}"
39
}
48
}
49
src_compile()	{
50
	emake || die 'emake install failed'
51
}
40
52
41
src_install() {
53
src_install() {
42
	emake DESTDIR="${D}" install || die 'emake install failed'
54
	emake DESTDIR="${D}" install || die 'emake install failed'
55
	find "${D}/usr/include/" -type f -exec chmod a-x "{}" +
43
}
56
}

Return to bug 365475