- straight copypaste from the bug (I don't have zfs to test on).
Closes: https://bugs.gentoo.org/723208
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Makefile || die
sed -i 's#lib$#lib/lxd#' "${GOPATH}"/deps/libco/Makefile || die
- sed -i 's#zfs version | cut -f 2#< /sys/module/zfs/version cut -f 1#' "${GOPATH}"/deps/raft/configure.ac || die
+ sed -i 's#zfs version 2>/dev/null | cut -f 2 -d - | head -1#< /sys/module/zfs/version cut -f 1#' "${GOPATH}"/deps/raft/configure.ac || die
common_op eautoreconf
}