Date: Mon, 23 Nov 2020 23:40:39 +0300 From: Rozhuk Ivan <rozhuk.im@gmail.com> To: Mateusz Piotrowski <0mp@FreeBSD.org> Cc: freebsd-ports@freebsd.org Subject: Re: Need help with python based port (home assistant) Message-ID: <20201123234039.0209c402@rimwks.local> In-Reply-To: <30b5e1d7-7701-faca-c17d-4a297686329f@FreeBSD.org> References: <20201123062821.6874db11@rimwks.local> <30b5e1d7-7701-faca-c17d-4a297686329f@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 23 Nov 2020 19:26:49 +0100 Mateusz Piotrowski <0mp@FreeBSD.org> wrote: > > Questions: > > > > 1. Is it ok that I use hack to change required deps versions? > > Or how to deal with it? > It is OK to change the required deps as long as the program keeps > working. Sometimes, however, we just add new ports for the specific > desired versions of the dependencies (e.g., > py37-sphinxcontrib-websupport11 and py37-sphinxcontrib-websupport). Ok. > > 2. Is it ok that HA download all deps that required into HA > > work dir? > > Should I add all these deps in port to prevent this? > If I understand correctly, HA is missing some runtime dependencies. > Each runtime dependency should be specified (e.g., via RUN_DEPENDS). HA deps to run - already in makefile. But HA have many plugins, every plugin have its own dep list. HA requires at least some of plugins to run "core" with GUI. There is a very big deps list: https://github.com/home-assistant/core/blob/dev/requirements_all.txt HA on startup download and install plugins deps into HA work dir (path may be set via command line). HA has 960+ plugins. It is to many for hands job. I can write some shell script to do most work. Makefile will require to much time to process all options, like nginx but longer. To prevent autoinstall: - run with: --skip-pip Skips pip install of required packages on startup - patch all required versions to versions => vers in ports tree - add all deps to port Makefile - some plugins requires other plugins On other side, Kodi downloads python plugins into its own work dir, some of them - same things that in ports tree. There is 2 ways: 1. Allow HA download and install all deps that required for plugins. All or almost all things will work, like on other HA platforms. 2. Allow user to chose plugins to install, istall all deps from ports tree, do not allow HA auto install anything. Only some of plugins will available and work. 5-30% from start.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20201123234039.0209c402>