[Buildroot] [PATCH] package/kodi: needs .py modules

Peter Korsgaard peter at korsgaard.com
Sat Oct 15 17:48:48 UTC 2016


>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni at free-electrons.com> writes:

 > From: "Yann E. MORIN" <yann.morin.1998 at free.fr>
 > Kodi segfaults as soon as it tries to load a python module:

 >     Could not find platform independent libraries <prefix>
 >     Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
 >     ImportError: No module named site
 >     Segmentation fault

 > Turns out that keeping .py modules (with or without .pyc) fixes the
 > issue.

 > Currently, Kodi selects python, but since the format of modules is a
 > choice, we can not select it.

 > Fix that by inverting the dependency on python from Kodi:
 >   - turn it into a depends rather than a select,
 >   - add the dependency to ! pyc-only
 >   - update the comment accordingly.

 > In addition, the !MMU and !static dependencies are updated since they
 > are no longer needed for Python (we now depend on it rather than
 > selecting it), but for other packages. The !MMU dependency is moved to
 > the _ARCH_SUPPORTS symbol as well.

 > Also, we can no longer "select BR2_PACKAGE_SAMBA4", because samba4
 > selects python, and we can no longer select python. Therefore, we switch
 > to a "depends on" dependency for samba4, which is fine as a user willing
 > to use Kodi with Samba will certainly realize that Samba should be
 > enabled.

 > Fixes bug #9221.

 > Signed-off-by: "Yann E. MORIN" <yann.morin.1998 at free.fr>
 > [Thomas:
 >  - update on latest master
 >  - take care of the !MMU/!static dependencies.
 >  - take care of the samba4 problem.]
 > Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>

Committed, thanks.

-- 
Bye, Peter Korsgaard



More information about the buildroot mailing list