Skip to content

Commit

Permalink
sys-fs/fuse: add 3.12.0, drop 3.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nvinson committed Sep 13, 2022
1 parent 93c4910 commit cff5733
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
2 changes: 1 addition & 1 deletion sys-fs/fuse/Manifest
Original file line number Diff line number Diff line change
@@ -1 +1 @@
DIST fuse-3.11.0.tar.xz 3515332 BLAKE2B 30d2dfee25a34b5f84f0a6b13523a6183fde7989b3ac908b68b8b9e4c327da51678453918c3009712ff1f3aaa79c4b0a29f22bcb712ee550563b23fd9ac64a09 SHA512 033324de7ea4c7e91fb21c453211c01e53771ec5805c2126e13ef2d4334119a51f5c783b6249e888e28888c753aa04b48ed33cefb6d486d8d526546565f6ae50
DIST fuse-3.12.0.tar.xz 3206368 BLAKE2B 9f7df324f5c28480e48264c53c23fd2afc372592aab586bebdee38a809881603c93d05d0ca20c9007ba4b77efdf391705a93a0a6a12b218c9bd5541aa6a5275d SHA512 b66232785fbe83ec32a9779542d085dc2c19f1fe0655e5f1e22e1a7add69795df40eb58da256a963537e64a9bf798ed8dfbc678f977fdd22567c5befa5b6ca04
22 changes: 9 additions & 13 deletions sys-fs/fuse/fuse-3.11.0.ebuild → sys-fs/fuse/fuse-3.12.0.ebuild
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7
EAPI=8

PYTHON_COMPAT=( python3_{8,9,10} )
PYTHON_COMPAT=( python3_{8..10} )
inherit flag-o-matic meson-multilib udev python-any-r1

DESCRIPTION="An interface for filesystems implemented in userspace"
Expand All @@ -14,7 +14,7 @@ LICENSE="GPL-2 LGPL-2.1"
SLOT="3"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
IUSE="+suid test"
RESTRICT="!test? ( test )"
RESTRICT="!test? ( test ) test? ( userpriv )"

BDEPEND="virtual/pkgconfig
test? (
Expand All @@ -26,11 +26,11 @@ RDEPEND=">=sys-fs/fuse-common-3.3.0-r1"
DOCS=( AUTHORS ChangeLog.rst README.md doc/README.NFS doc/kernel.txt )

python_check_deps() {
has_version -b "dev-python/pytest[${PYTHON_USEDEP}]"
python_has_version "dev-python/pytest[${PYTHON_USEDEP}]"
}

pkg_setup() {
use test && python_setup
use test && python-any-r1_pkg_setup
}

multilib_src_configure() {
Expand All @@ -45,25 +45,21 @@ multilib_src_configure() {
}

src_test() {
if [[ ${EUID} != 0 ]]; then
ewarn "Running as non-root user, skipping tests"
elif has sandbox ${FEATURES}; then
if has sandbox ${FEATURES}; then
ewarn "Sandbox enabled, skipping tests"
else
multilib-minimal_src_test
fi
}

multilib_src_test() {
${EPYTHON} -m pytest test || die
epytest
}

multilib_src_install_all() {
# installed via fuse-common
# Installed via fuse-common
rm -r "${ED}"{/etc,$(get_udevdir)} || die

# init script location is hard-coded in install_helper.sh
rm -rf "${D}"/etc || die
rm -rf "${ED}"/etc || die

# useroot=false prevents the build system from doing this.
use suid && fperms u+s /usr/bin/fusermount3
Expand Down

0 comments on commit cff5733

Please sign in to comment.