From 2f6524d6b9e9521c190fd8b14bafd2514c904d20 Mon Sep 17 00:00:00 2001 From: Alfred Wingate Date: Thu, 31 Dec 2020 02:16:50 +0200 Subject: [PATCH] app-emulation/anbox: Tweak dependencies, CONFIG_CHECK and init script Package-Manager: Portage-3.0.9, Repoman-3.0.2 --- app-emulation/anbox/anbox-0_pre20201129.ebuild | 3 ++- app-emulation/anbox/anbox-9999.ebuild | 3 ++- app-emulation/anbox/files/anbox-container-manager.initd | 5 +++++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/app-emulation/anbox/anbox-0_pre20201129.ebuild b/app-emulation/anbox/anbox-0_pre20201129.ebuild index c6a7e90..fb2f600 100644 --- a/app-emulation/anbox/anbox-0_pre20201129.ebuild +++ b/app-emulation/anbox/anbox-0_pre20201129.ebuild @@ -40,6 +40,7 @@ DEPEND=" media-libs/mesa[egl,gles2] media-libs/sdl2-image sys-apps/dbus + sys-fs/fuse:3 sys-libs/libcap || ( sys-apps/systemd sys-auth/elogind ) " @@ -51,7 +52,7 @@ CONFIG_CHECK=" ~ANDROID_BINDER_IPC ~ASHMEM ~BLK_DEV_LOOP - ~FUSE + ~FUSE_FS ~SQUASHFS ~SQUASHFS_XZ ~SQUASHFS_XATTR diff --git a/app-emulation/anbox/anbox-9999.ebuild b/app-emulation/anbox/anbox-9999.ebuild index c6a7e90..fb2f600 100644 --- a/app-emulation/anbox/anbox-9999.ebuild +++ b/app-emulation/anbox/anbox-9999.ebuild @@ -40,6 +40,7 @@ DEPEND=" media-libs/mesa[egl,gles2] media-libs/sdl2-image sys-apps/dbus + sys-fs/fuse:3 sys-libs/libcap || ( sys-apps/systemd sys-auth/elogind ) " @@ -51,7 +52,7 @@ CONFIG_CHECK=" ~ANDROID_BINDER_IPC ~ASHMEM ~BLK_DEV_LOOP - ~FUSE + ~FUSE_FS ~SQUASHFS ~SQUASHFS_XZ ~SQUASHFS_XATTR diff --git a/app-emulation/anbox/files/anbox-container-manager.initd b/app-emulation/anbox/files/anbox-container-manager.initd index d692e05..993ec8b 100644 --- a/app-emulation/anbox/files/anbox-container-manager.initd +++ b/app-emulation/anbox/files/anbox-container-manager.initd @@ -20,6 +20,11 @@ start_pre() { modprobe loop modprobe tun + if ! [[ -d /dev/binderfs ]]; then + mkdir /dev/binderfs + mount -t binder binder /dev/binderfs + fi + if ip link show anbox0 >/dev/null 2>&1; then ewarn "anbox0 network interface already exists" else