From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B7700158090 for ; Sun, 18 Feb 2024 20:37:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0610CE2AAF; Sun, 18 Feb 2024 20:37:34 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id DA634E2AAF for ; Sun, 18 Feb 2024 20:37:33 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id BE1E5343106 for ; Sun, 18 Feb 2024 20:37:32 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2896A118C for ; Sun, 18 Feb 2024 20:37:31 +0000 (UTC) From: "Julien Roy" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Julien Roy" Message-ID: <1708282951.849ec8f7d6ccfbf42640f4b47a69103b0eb0f323.julien@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: app-containers/waydroid/ X-VCS-Repository: repo/proj/guru X-VCS-Files: app-containers/waydroid/Manifest app-containers/waydroid/waydroid-1.4.2.ebuild X-VCS-Directories: app-containers/waydroid/ X-VCS-Committer: julien X-VCS-Committer-Name: Julien Roy X-VCS-Revision: 849ec8f7d6ccfbf42640f4b47a69103b0eb0f323 X-VCS-Branch: master Date: Sun, 18 Feb 2024 20:37:31 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 018f236d-015f-484a-a6ef-895620e518c0 X-Archives-Hash: 10021d2f176a77c097ea7656c3c81231 Message-ID: <20240218203731.INdRkl0CpK6CYZJGlF1lVqnUf5sfRKH5r6iKhmt2qXs@z> commit: 849ec8f7d6ccfbf42640f4b47a69103b0eb0f323 Author: Julien Roy jroy ca> AuthorDate: Sun Feb 18 19:02:31 2024 +0000 Commit: Julien Roy jroy ca> CommitDate: Sun Feb 18 19:02:31 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=849ec8f7 app-containers/waydroid: add 1.4.2 Signed-off-by: Julien Roy jroy.ca> app-containers/waydroid/Manifest | 1 + app-containers/waydroid/waydroid-1.4.2.ebuild | 89 +++++++++++++++++++++++++++ 2 files changed, 90 insertions(+) diff --git a/app-containers/waydroid/Manifest b/app-containers/waydroid/Manifest index 249078cee4..59ad458dab 100644 --- a/app-containers/waydroid/Manifest +++ b/app-containers/waydroid/Manifest @@ -1 +1,2 @@ DIST waydroid-1.4.0.tar.gz 237562 BLAKE2B 28f711bf0fe8b5254739d1a6769f466bcc593f3c61df1bef9e2a3fab80a97fe44b9509907c100e3178e343fd264955894b38ee1be5b6ce0c6ea5d473b6958a7f SHA512 2f1e4c112dbe68ad15d69441a37ba631d148c95810f0ca1e6e1c45461089d5f5e0990a58c2324449b69199b6b24d32c110063c4dfaf89b537779915ec3f3b69d +DIST waydroid-1.4.2.tar.gz 242536 BLAKE2B 77a6ba3a00bc2c95f767bec9ec93d1e4dcd3e20cf39d8c3ce0dea00f6c1c2a1eb6399f2ef0d8017958584205d067646d0e50d0f865c954284b7384f4a492a084 SHA512 0d3eba799895c853545b7087e3c07160d593d4a3166822039973669bc0ee93a8a6b9c394a7d982e57cfbbfbd8df1ba7991dd33b1b1517d79fcbe191d8a86890a diff --git a/app-containers/waydroid/waydroid-1.4.2.ebuild b/app-containers/waydroid/waydroid-1.4.2.ebuild new file mode 100644 index 0000000000..25f3025a5d --- /dev/null +++ b/app-containers/waydroid/waydroid-1.4.2.ebuild @@ -0,0 +1,89 @@ +# Copyright 2022-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..11} ) +inherit linux-info xdg-utils python-single-r1 + +DESCRIPTION="Container-based approach to boot a full Android system on Linux systems" +HOMEPAGE="https://waydro.id" +SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" +IUSE="systemd apparmor" + +DEPEND="|| ( virtual/linux-sources virtual/dist-kernel )" +RDEPEND=" + systemd? ( sys-apps/systemd ) + app-containers/lxc[systemd?,apparmor?,seccomp] + $(python_gen_cond_dep ' + dev-python/pygobject[${PYTHON_USEDEP}] + >=dev-python/gbinder-1.1.1[${PYTHON_USEDEP}] + >=dev-python/pyclip-0.7.0[wayland,${PYTHON_USEDEP}] + dev-python/dbus-python[${PYTHON_USEDEP}] + ') + net-firewall/nftables + net-dns/dnsmasq + >=dev-libs/libglibutil-1.0.67 + >=dev-libs/gbinder-1.1.21 + ${PYTHON_DEPS} +" + +CONFIG_CHECK=" + ~ANDROID_BINDER_IPC + ~ANDROID_BINDERFS + ~MEMFD_CREATE +" +ERROR_ANDROID_BINDERFS="CONFIG_ANDROID_BINDERFS: need for creating Android-specific binder IPC channels" +ERROR_ANDROID_BINDER_IPC="CONFIG_ANDROID_BINDER_IPC: need for creating Android-specific binder IPC channels" +ERROR_MEMFD_CREATE="CONFIG_MEMFD_CREATE: it completely replaced deprecated ISHMEM drivers, + therefore it's vital for android-specific memory management" + +src_compile(){ + :; +} + +src_install() { + python_fix_shebang waydroid.py + emake install DESTDIR="${D}" USE_NFTABLES=1 USE_SYSTEMD=$(usex systemd 1 0) + if ! use systemd; then + elog "Installing waydroid OpenRC daemon" + doinitd "${FILESDIR}"/waydroid + fi +} + +pkg_postinst() { + xdg_desktop_database_update + xdg_mimeinfo_database_update + + if ! use apparmor; then + ewarn "If you use app-containers/lxc without apparmor, make sure you deleted or commented out in waydroid LXC config" + ewarn "(generated after waydroid init) in /var/lib/waydroid/lxc/waydroid/config the following string:" + ewarn "lxc.apparmor.profile = unconfined" + ewarn "or waydroid experiences crash during launch" + ewarn "See also https://github.com/waydroid/waydroid/issues/652" + else + ewarn "Apparmor support has not been tested by package maintainer yet" + fi + ewarn "Make sure you have NFTABLES up and running in your kernel. See" + ewarn "https://wiki.gentoo.org/wiki/Nftables for how-to details" + einfo "After package installation run ether 'emerge --config app-containers/waydroid'" + einfo "or 'waydroid init' from root shell to install android container runtime" + einfo "To run waydroid, 1. Start container: 'rc-service waydroid start'" + einfo "2. start wayland channel (from user shell) 'waydroid session start'" + einfo "Contact https://docs.waydro.id/usage/install-on-desktops for how-to guides" + einfo "(does not cover Gentoo-specific things sadly)" +} + +pkg_postrm() { + xdg_desktop_database_update + xdg_mimeinfo_database_update +} + +pkg_config() { + "${ROOT}"/usr/bin/waydroid init +}