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>
LICENSE="GPL-2 LGPL-2.1"
SLOT="3"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
-IUSE="test"
+IUSE="+suid test"
RESTRICT="!test? ( test )"
BDEPEND="virtual/pkgconfig
}
multilib_src_configure() {
+ local emesonargs=(
+ -Duseroot=false
+ )
meson_src_configure
}
# installed via fuse-common
rm -r "${ED}"/{etc,$(get_udevdir)} || die
- # handled by the device manager
- rm -r "${D}"/dev || die
+ # useroot=false prevents the build system from doing this.
+ use suid && fperms u+s /usr/bin/fusermount3
# manually install man pages to respect compression
rm -r "${ED}"/usr/share/man || die