Summary: | app-emulation/lxd-4.0.1 - build-error - permission denied checking /dev/zfs on configure | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Hoess <hoess> |
Component: | Current packages | Assignee: | Gentoo Linux bug wranglers <bug-wranglers> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d2b71f562ab76e38974cb928567b3acd12d795c commit 5d2b71f562ab76e38974cb928567b3acd12d795c Author: Joonas Niilola <juippis@gentoo.org> AuthorDate: 2020-05-15 08:30:19 +0000 Commit: Joonas Niilola <juippis@gentoo.org> CommitDate: 2020-05-15 08:30:42 +0000 app-emulation/lxd: copy zfs fix from 3.16 ebuild to 4 LTS Closes: https://bugs.gentoo.org/723208 Signed-off-by: Joonas Niilola <juippis@gentoo.org> app-emulation/lxd/lxd-4.0.1.ebuild | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) I think the sed needs to be update like this for 4.0.1 --- sed -i 's#zfs version 2>/dev/null | cut -f 2 -d - | head -1#< /sys/module/zfs/version cut -f 1#' configure.ac || die "Can't sed configure.ac for raft" -- just got a clean compile using this line, version. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bd9a21c94f79536ee7feb436db238b234b197ff7 commit bd9a21c94f79536ee7feb436db238b234b197ff7 Author: Joonas Niilola <juippis@gentoo.org> AuthorDate: 2020-05-15 08:57:06 +0000 Commit: Joonas Niilola <juippis@gentoo.org> CommitDate: 2020-05-15 08:57:06 +0000 app-emulation/lxd: update zfs fix line per feedback on bug 723208 - 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> app-emulation/lxd/lxd-4.0.1.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Thanks, I knew this was going to be a work-in-progress because I cleaned the ebuild a bit, and don't have zfs to test with. Hopefully it's fine now. I just re-emerged lxd with your latest changes on my ZFS-machine to re-verify. Also checked if it is really using -DRAFT_HAVE_ZFS_WITH_DIRECT_IO=1 during compile, as it should do so on my machine). Everything worked, so all fine now :-) |
On trying to emerge lxd-4.0.1 I get the following error during the configure run: ---- [...] checking for zfs... yes * ACCESS DENIED: open_wr: /dev/zfs [...] * --------------------------- ACCESS VIOLATION SUMMARY * LOG FILE: "/var/tmp/portage/app-emulation/lxd-4.0.1/temp/sandbox.log" * VERSION 1.0 FORMAT: F - Function called FORMAT: S - Access Status FORMAT: P - Path as passed to function FORMAT: A - Absolute Path (not canonical) FORMAT: R - Canonical Path FORMAT: C - Command Line F: open_wr S: deny P: /dev/zfs A: /dev/zfs R: /dev/zfs C: zfs version * --------------------------------------------------- >>> Failed to emerge app-emulation/lxd-4.0.1 --- While investigating I found in the lxd-3.16-ebuild was a workaround in src_prepare. ---- [...] # Workaround for " * ACCESS DENIED: open_wr: /dev/zfs" sed -i 's#zfs version | cut -f 2#< /sys/module/zfs/version cut -f 1#' configure.ac || die "Can't sed configure.ac for raft" [...] --- This workaround is no longer in 4.0.1. Perhaps this is the cause.