1 |
commit: 7bd492f4c319c0255d56f45c122a5ce9e6398d8e |
2 |
Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Aug 14 06:00:37 2019 +0000 |
4 |
Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Aug 14 06:00:37 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7bd492f4 |
7 |
|
8 |
sys-fs/zfs-kmod: drop 0.7.9999 |
9 |
|
10 |
Package-Manager: Portage-2.3.71, Repoman-2.3.17 |
11 |
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org> |
12 |
|
13 |
sys-fs/zfs-kmod/zfs-kmod-0.7.9999.ebuild | 147 ------------------------------- |
14 |
1 file changed, 147 deletions(-) |
15 |
|
16 |
diff --git a/sys-fs/zfs-kmod/zfs-kmod-0.7.9999.ebuild b/sys-fs/zfs-kmod/zfs-kmod-0.7.9999.ebuild |
17 |
deleted file mode 100644 |
18 |
index 7b5b4a5f685..00000000000 |
19 |
--- a/sys-fs/zfs-kmod/zfs-kmod-0.7.9999.ebuild |
20 |
+++ /dev/null |
21 |
@@ -1,147 +0,0 @@ |
22 |
-# Copyright 1999-2019 Gentoo Authors |
23 |
-# Distributed under the terms of the GNU General Public License v2 |
24 |
- |
25 |
-EAPI="5" |
26 |
- |
27 |
-if [[ ${PV} == *"9999" ]] ; then |
28 |
- AUTOTOOLS_AUTORECONF="1" |
29 |
- EGIT_REPO_URI="https://github.com/zfsonlinux/zfs.git" |
30 |
- EGIT_BRANCH="zfs-0.7-release" |
31 |
- inherit git-r3 |
32 |
-else |
33 |
- SRC_URI="https://github.com/zfsonlinux/zfs/releases/download/zfs-${PV}/zfs-${PV}.tar.gz" |
34 |
- S="${WORKDIR}/zfs-${PV}" |
35 |
- KEYWORDS="~amd64 ~arm ~ppc ~ppc64" |
36 |
-fi |
37 |
- |
38 |
-inherit flag-o-matic linux-info linux-mod toolchain-funcs autotools-utils |
39 |
- |
40 |
-DESCRIPTION="Linux ZFS kernel module for sys-fs/zfs" |
41 |
-HOMEPAGE="https://zfsonlinux.org/" |
42 |
- |
43 |
-LICENSE="CDDL debug? ( GPL-2+ )" |
44 |
-SLOT="0" |
45 |
-IUSE="custom-cflags debug +rootfs" |
46 |
-RESTRICT="debug? ( strip ) test" |
47 |
- |
48 |
-DEPEND=" |
49 |
- =sys-kernel/spl-${PV}* |
50 |
- dev-lang/perl |
51 |
- virtual/awk |
52 |
-" |
53 |
- |
54 |
-RDEPEND="${DEPEND} |
55 |
- !sys-fs/zfs-fuse |
56 |
-" |
57 |
- |
58 |
-AT_M4DIR="config" |
59 |
-AUTOTOOLS_IN_SOURCE_BUILD="1" |
60 |
- |
61 |
-DOCS=( AUTHORS COPYRIGHT DISCLAIMER README.markdown ) |
62 |
- |
63 |
-pkg_setup() { |
64 |
- linux-info_pkg_setup |
65 |
- CONFIG_CHECK=" |
66 |
- !DEBUG_LOCK_ALLOC |
67 |
- EFI_PARTITION |
68 |
- IOSCHED_NOOP |
69 |
- MODULES |
70 |
- !PAX_KERNEXEC_PLUGIN_METHOD_OR |
71 |
- !TRIM_UNUSED_KSYMS |
72 |
- ZLIB_DEFLATE |
73 |
- ZLIB_INFLATE |
74 |
- " |
75 |
- |
76 |
- use debug && CONFIG_CHECK="${CONFIG_CHECK} |
77 |
- FRAME_POINTER |
78 |
- DEBUG_INFO |
79 |
- !DEBUG_INFO_REDUCED |
80 |
- " |
81 |
- |
82 |
- use rootfs && \ |
83 |
- CONFIG_CHECK="${CONFIG_CHECK} |
84 |
- BLK_DEV_INITRD |
85 |
- DEVTMPFS |
86 |
- " |
87 |
- |
88 |
- kernel_is ge 2 6 32 || die "Linux 2.6.32 or newer required" |
89 |
- |
90 |
- [[ ${PV} != *"9999" ]] && \ |
91 |
- { kernel_is le 4 17 || die "Linux 4.17 is the latest supported version."; } |
92 |
- |
93 |
- check_extra_config |
94 |
-} |
95 |
- |
96 |
-src_prepare() { |
97 |
- # Remove GPLv2-licensed ZPIOS unless we are debugging |
98 |
- use debug || sed -e 's/^subdir-m += zpios$//' -i "${S}/module/Makefile.in" |
99 |
- |
100 |
- # Set module revision number |
101 |
- [[ ${PV} != *"9999" ]] && \ |
102 |
- { sed -i "s/\(Release:\)\(.*\)1/\1\2${PR}-gentoo/" "${S}/META" || die "Could not set Gentoo release"; } |
103 |
- |
104 |
- autotools-utils_src_prepare |
105 |
-} |
106 |
- |
107 |
-src_configure() { |
108 |
- local SPL_PATH="$(basename $(echo "${EROOT}usr/src/spl-"*))" |
109 |
- use custom-cflags || strip-flags |
110 |
- filter-ldflags -Wl,* |
111 |
- |
112 |
- set_arch_to_kernel |
113 |
- local myeconfargs=(${myeconfargs} |
114 |
- --bindir="${EPREFIX}/bin" |
115 |
- --sbindir="${EPREFIX}/sbin" |
116 |
- --with-config=kernel |
117 |
- --with-linux="${KV_DIR}" |
118 |
- --with-linux-obj="${KV_OUT_DIR}" |
119 |
- --with-spl="${EROOT}usr/src/${SPL_PATH}" |
120 |
- --with-spl-obj="${EROOT}usr/src/${SPL_PATH}/${KV_FULL}" |
121 |
- $(use_enable debug) |
122 |
- ) |
123 |
- |
124 |
- autotools-utils_src_configure |
125 |
-} |
126 |
- |
127 |
-src_install() { |
128 |
- autotools-utils_src_install INSTALL_MOD_PATH="${INSTALL_MOD_PATH:-$EROOT}" |
129 |
-} |
130 |
- |
131 |
-pkg_postinst() { |
132 |
- linux-mod_pkg_postinst |
133 |
- |
134 |
- # Remove old modules |
135 |
- if [ -d "${EROOT}lib/modules/${KV_FULL}/addon/zfs" ] |
136 |
- then |
137 |
- ewarn "${PN} now installs modules in ${EROOT}lib/modules/${KV_FULL}/extra/zfs" |
138 |
- ewarn "Old modules were detected in ${EROOT}lib/modules/${KV_FULL}/addon/zfs" |
139 |
- ewarn "Automatically removing old modules to avoid problems." |
140 |
- rm -r "${EROOT}lib/modules/${KV_FULL}/addon/zfs" || die "Cannot remove modules" |
141 |
- rmdir --ignore-fail-on-non-empty "${EROOT}lib/modules/${KV_FULL}/addon" |
142 |
- fi |
143 |
- |
144 |
- if use x86 || use arm |
145 |
- then |
146 |
- ewarn "32-bit kernels will likely require increasing vmalloc to" |
147 |
- ewarn "at least 256M and decreasing zfs_arc_max to some value less than that." |
148 |
- fi |
149 |
- |
150 |
- ewarn "This version of ZFSOnLinux includes support for new feature flags" |
151 |
- ewarn "that are incompatible with previous versions. GRUB2 support for" |
152 |
- ewarn "/boot with the new feature flags is not yet available." |
153 |
- ewarn "Do *NOT* upgrade root pools to use the new feature flags." |
154 |
- ewarn "Any new pools will be created with the new feature flags by default" |
155 |
- ewarn "and will not be compatible with older versions of ZFSOnLinux. To" |
156 |
- ewarn "create a newpool that is backward compatible wih GRUB2, use " |
157 |
- ewarn |
158 |
- ewarn "zpool create -d -o feature@async_destroy=enabled " |
159 |
- ewarn " -o feature@empty_bpobj=enabled -o feature@lz4_compress=enabled" |
160 |
- ewarn " -o feature@spacemap_histogram=enabled" |
161 |
- ewarn " -o feature@enabled_txg=enabled " |
162 |
- ewarn " -o feature@extensible_dataset=enabled -o feature@bookmarks=enabled" |
163 |
- ewarn " ..." |
164 |
- ewarn |
165 |
- ewarn "GRUB2 support will be updated as soon as either the GRUB2" |
166 |
- ewarn "developers do a tag or the Gentoo developers find time to backport" |
167 |
- ewarn "support from GRUB2 HEAD." |
168 |
-} |