Summary: | sys-fs/fuse-3.8.0 - mknod: /var/tmp/portage/sys-fs/fuse-3.8.0/image/dev/fuse: Operation not permitted | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Ben Kohler <bkohler> |
Component: | Current packages | Assignee: | Aaron Bauman (RETIRED) <bman> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | base-system, bkohler, floppym |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | build log |
Description
Ben Kohler
![]() --- a/sys-fs/fuse/fuse-3.8.0.ebuild +++ b/sys-fs/fuse/fuse-3.8.0.ebuild @@ -56,6 +56,9 @@ multilib_src_test() { } multilib_src_install() { + # prevent build system from trying to mknod + mkdir -p "${D}"/dev && touch "${D}"/dev/fuse + DESTDIR="${D}" eninja install } > One easy workaround would be to 'mkdir -p "${D}"/dev && touch "${D}/dev/fuse' at the beginning of src_install.
You would also need to remove "${D}/dev" after ninja install, or the ebuild will install an empty file. This would also trigger failures on prefix systems, since /dev would be outside ${EPREFIX}.
Passing -Duseroot=false to meson and fixing up the permissions with fperms seems like a much nicer solution to me.
The removal already happens in multilib_src_install_all() later in the ebuild. But the -Duseroot fix seems fine to me, anyway. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=18dc49f2ebbef778ce5032e2622edeb4afd39c95 commit 18dc49f2ebbef778ce5032e2622edeb4afd39c95 Author: Mike Gilbert <floppym@gentoo.org> AuthorDate: 2019-11-20 16:22:50 +0000 Commit: Mike Gilbert <floppym@gentoo.org> CommitDate: 2019-11-20 16:25:02 +0000 sys-fs/fuse: pass -Duseroot=false to meson configure This prevents the /dev/fuse device node from being created by the build system. It also prevents the suid bit from being set on fusermount3, so handle that using fperms in the ebuild, and make it optional via a USE flag. Closes: https://bugs.gentoo.org/700764 Package-Manager: Portage-2.3.79_p3, Repoman-2.3.18_p2 Signed-off-by: Mike Gilbert <floppym@gentoo.org> sys-fs/fuse/fuse-3.8.0.ebuild | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) |