22 |
22 |
MY_P="${P/_rc/-rc}"
|
23 |
23 |
SRC_URI="https://github.com/openzfs/${PN}/releases/download/${MY_P}/${MY_P}.tar.gz"
|
24 |
24 |
SRC_URI+=" verify-sig? ( https://github.com/openzfs/${PN}/releases/download/${MY_P}/${MY_P}.tar.gz.asc )"
|
25 |
|
S="${WORKDIR}/${P%_rc?}"
|
|
25 |
S="${WORKDIR}/${MY_P}"
|
26 |
26 |
|
27 |
27 |
if [[ ${PV} != *_rc* ]]; then
|
28 |
28 |
KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~sparc"
|
... | ... | |
37 |
37 |
IUSE="custom-cflags debug dist-kernel kernel-builtin minimal nls pam python +rootfs selinux test-suite"
|
38 |
38 |
|
39 |
39 |
DEPEND="
|
|
40 |
dev-libs/openssl:=
|
40 |
41 |
net-libs/libtirpc:=
|
41 |
42 |
sys-apps/util-linux
|
42 |
43 |
sys-libs/zlib
|
43 |
44 |
virtual/libudev:=
|
44 |
|
dev-libs/openssl:0=
|
45 |
45 |
!minimal? ( ${PYTHON_DEPS} )
|
46 |
46 |
pam? ( sys-libs/pam )
|
47 |
47 |
python? (
|
... | ... | |
49 |
49 |
)
|
50 |
50 |
"
|
51 |
51 |
|
52 |
|
BDEPEND="app-alternatives/awk
|
|
52 |
BDEPEND="
|
|
53 |
app-alternatives/awk
|
53 |
54 |
virtual/pkgconfig
|
54 |
55 |
nls? ( sys-devel/gettext )
|
55 |
56 |
python? (
|
... | ... | |
66 |
67 |
fi
|
67 |
68 |
|
68 |
69 |
# awk is used for some scripts, completions, and the Dracut module
|
69 |
|
RDEPEND="${DEPEND}
|
|
70 |
RDEPEND="
|
|
71 |
${DEPEND}
|
70 |
72 |
!kernel-builtin? ( ~sys-fs/zfs-kmod-${PV}:= )
|
71 |
73 |
!prefix? ( virtual/udev )
|
72 |
|
sys-fs/udev-init-scripts
|
73 |
74 |
app-alternatives/awk
|
|
75 |
sys-fs/udev-init-scripts
|
74 |
76 |
dist-kernel? ( virtual/dist-kernel:= )
|
75 |
77 |
rootfs? (
|
76 |
78 |
app-arch/cpio
|
... | ... | |
102 |
104 |
RESTRICT="test"
|
103 |
105 |
|
104 |
106 |
PATCHES=(
|
105 |
|
# bug #854333
|
106 |
|
"${FILESDIR}"/2.1.5-r2-dracut-non-root.patch
|
107 |
|
|
108 |
107 |
"${FILESDIR}"/2.1.5-dracut-zfs-missing.patch
|
109 |
108 |
)
|
110 |
109 |
|
... | ... | |
182 |
181 |
popd >/dev/null || die
|
183 |
182 |
fi
|
184 |
183 |
|
|
184 |
# Tries to use /etc/conf.d which we reserve for OpenRC
|
|
185 |
sed -i -e '/EnvironmentFile/d' etc/systemd/system/zfs*.in || die
|
|
186 |
|
185 |
187 |
# prevent errors showing up on zfs-mount stop, #647688
|
186 |
188 |
# openrc will unmount all filesystems anyway.
|
187 |
189 |
sed -i "/^ZFS_UNMOUNT=/ s/yes/no/" "etc/default/zfs.in" || die
|
... | ... | |
191 |
193 |
use custom-cflags || strip-flags
|
192 |
194 |
use minimal || python_setup
|
193 |
195 |
|
194 |
|
# All the same issue:
|
195 |
|
# Segfaults w/ GCC 12 and 'zfs send'
|
196 |
|
# bug #856373
|
197 |
|
# https://github.com/openzfs/zfs/issues/13620
|
198 |
|
# https://github.com/openzfs/zfs/issues/13605
|
199 |
|
append-flags -fno-tree-vectorize
|
200 |
|
|
201 |
196 |
local myconf=(
|
202 |
197 |
--bindir="${EPREFIX}/bin"
|
203 |
198 |
--enable-shared
|