Gentoo Archives: gentoo-commits

From: Georgy Yakovlev <gyakovlev@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-kernel/spl/
Date: Sun, 31 Mar 2019 03:54:04
Message-Id: 1554004424.028ed6a12eda03445a263dfef2383f05bf8b9254.gyakovlev@gentoo
1 commit: 028ed6a12eda03445a263dfef2383f05bf8b9254
2 Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
3 AuthorDate: Sat Mar 23 06:31:31 2019 +0000
4 Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
5 CommitDate: Sun Mar 31 03:53:44 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=028ed6a1
7
8 sys-kernel/spl: drop live ebuild
9
10 Closes: https://github.com/gentoo/gentoo/pull/11101
11 Package-Manager: Portage-2.3.62, Repoman-2.3.12
12 Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>
13
14 sys-kernel/spl/spl-9999.ebuild | 113 -----------------------------------------
15 1 file changed, 113 deletions(-)
16
17 diff --git a/sys-kernel/spl/spl-9999.ebuild b/sys-kernel/spl/spl-9999.ebuild
18 deleted file mode 100644
19 index f27d3e44bdc..00000000000
20 --- a/sys-kernel/spl/spl-9999.ebuild
21 +++ /dev/null
22 @@ -1,113 +0,0 @@
23 -# Copyright 1999-2019 Gentoo Authors
24 -# Distributed under the terms of the GNU General Public License v2
25 -
26 -EAPI="5"
27 -
28 -if [[ ${PV} == "9999" ]] ; then
29 - AUTOTOOLS_AUTORECONF="1"
30 - EGIT_REPO_URI="https://github.com/zfsonlinux/${PN}.git"
31 - inherit git-r3
32 -else
33 - SRC_URI="https://github.com/zfsonlinux/zfs/releases/download/zfs-${PV}/${P}.tar.gz"
34 - KEYWORDS="~amd64 ~arm ~ppc ~ppc64"
35 -fi
36 -
37 -inherit flag-o-matic linux-info linux-mod autotools-utils
38 -
39 -DESCRIPTION="The Solaris Porting Layer provides many of the Solaris kernel APIs"
40 -HOMEPAGE="https://zfsonlinux.org/"
41 -
42 -LICENSE="GPL-2"
43 -SLOT="0"
44 -IUSE="custom-cflags debug"
45 -RESTRICT="debug? ( strip ) test"
46 -
47 -COMMON_DEPEND="
48 - dev-lang/perl
49 - virtual/awk"
50 -
51 -DEPEND="${COMMON_DEPEND}"
52 -
53 -RDEPEND="${COMMON_DEPEND}
54 - !sys-devel/spl"
55 -
56 -AT_M4DIR="config"
57 -AUTOTOOLS_IN_SOURCE_BUILD="1"
58 -DOCS=( AUTHORS DISCLAIMER README.markdown )
59 -
60 -pkg_setup() {
61 - linux-info_pkg_setup
62 - CONFIG_CHECK="
63 - !DEBUG_LOCK_ALLOC
64 - !CONFIG_REISER4_FS
65 - !GRKERNSEC_RANDSTRUCT
66 - KALLSYMS
67 - MODULES
68 - !PAX_KERNEXEC_PLUGIN_METHOD_OR
69 - !TRIM_UNUSED_KSYMS
70 - ZLIB_DEFLATE
71 - ZLIB_INFLATE
72 - "
73 -
74 - use debug && CONFIG_CHECK="${CONFIG_CHECK}
75 - FRAME_POINTER
76 - DEBUG_INFO
77 - !DEBUG_INFO_REDUCED
78 - "
79 -
80 - kernel_is ge 2 6 32 || die "Linux 2.6.32 or newer required"
81 -
82 - [ ${PV} != "9999" ] && \
83 - { kernel_is le 4 17 || die "Linux 4.17 is the latest supported version."; }
84 -
85 - check_extra_config
86 -}
87 -
88 -src_prepare() {
89 - # Workaround for hard coded path
90 - sed -i "s|/sbin/lsmod|/bin/lsmod|" "${S}/scripts/check.sh" || \
91 - die "Cannot patch check.sh"
92 -
93 - # splat is unnecessary unless we are debugging
94 - use debug || { sed -e 's/^subdir-m += splat$//' -i "${S}/module/Makefile.in" || die ; }
95 -
96 - # Set module revision number
97 - [ ${PV} != "9999" ] && \
98 - { sed -i "s/\(Release:\)\(.*\)1/\1\2${PR}-gentoo/" "${S}/META" || die "Could not set Gentoo release"; }
99 -
100 - autotools-utils_src_prepare
101 -}
102 -
103 -src_configure() {
104 - use custom-cflags || strip-flags
105 - filter-ldflags -Wl,*
106 -
107 - set_arch_to_kernel
108 - local myeconfargs=(
109 - --bindir="${EPREFIX}/bin"
110 - --sbindir="${EPREFIX}/sbin"
111 - --with-config=all
112 - --with-linux="${KV_DIR}"
113 - --with-linux-obj="${KV_OUT_DIR}"
114 - $(use_enable debug)
115 - )
116 - autotools-utils_src_configure
117 -}
118 -
119 -src_install() {
120 - autotools-utils_src_install INSTALL_MOD_PATH="${INSTALL_MOD_PATH:-$EROOT}"
121 -}
122 -
123 -pkg_postinst() {
124 - linux-mod_pkg_postinst
125 -
126 - # Remove old modules
127 - if [ -d "${EROOT}lib/modules/${KV_FULL}/addon/spl" ]
128 - then
129 - ewarn "${PN} now installs modules in ${EROOT}lib/modules/${KV_FULL}/extra/spl"
130 - ewarn "Old modules were detected in ${EROOT}lib/modules/${KV_FULL}/addon/spl"
131 - ewarn "Automatically removing old modules to avoid problems."
132 - rm -r "${EROOT}lib/modules/${KV_FULL}/addon/spl" || die "Cannot remove modules"
133 - rmdir --ignore-fail-on-non-empty "${EROOT}lib/modules/${KV_FULL}/addon"
134 - fi
135 -}