From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yann E. MORIN Date: Sat, 5 Dec 2015 21:38:37 +0100 Subject: [Buildroot] [PATCHv2] package/kodi: needs .py modules In-Reply-To: <1442178783-27567-1-git-send-email-yann.morin.1998@free.fr> References: <1442178783-27567-1-git-send-email-yann.morin.1998@free.fr> Message-ID: <20151205203837.GD3666@free.fr> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net All, On 2015-09-13 23:13 +0200, Yann E. MORIN spake thusly: > Kodi segfaults as soon as it tries to load a python module: > > Could not find platform independent libraries > Consider setting $PYTHONHOME to [:] > 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. This is wrong and causes reursive dependencies: package/kodi/Config.in:33:error: recursive dependency detected! package/kodi/Config.in:33: symbol BR2_PACKAGE_KODI depends on BR2_PACKAGE_PYTHON package/python/Config.in:5: symbol BR2_PACKAGE_PYTHON is selected by BR2_PACKAGE_SAMBA4 package/samba4/Config.in:7: symbol BR2_PACKAGE_SAMBA4 is selected by BR2_PACKAGE_KODI_LIBSMBCLIENT package/kodi/Config.in:216: symbol BR2_PACKAGE_KODI_LIBSMBCLIENT depends on BR2_PACKAGE_KODI Marking as "rejected". I'll try to find a better solution. Regards, Yann E. MORIN. > Signed-off-by: "Yann E. MORIN" > > --- > changes v1 -> v2: > - fix spurious 'i' (vim insert) > --- > package/kodi/Config.in | 8 +++++--- > 1 file changed, 5 insertions(+), 3 deletions(-) > > diff --git a/package/kodi/Config.in b/package/kodi/Config.in > index 797f59d..6d6c47b 100644 > --- a/package/kodi/Config.in > +++ b/package/kodi/Config.in > @@ -2,10 +2,11 @@ config BR2_PACKAGE_KODI_ARCH_SUPPORTS > bool > default y if (BR2_arm || (BR2_mipsel && BR2_TOOLCHAIN_USES_GLIBC) || BR2_i386 || BR2_x86_64) && BR2_PACKAGE_BOOST_ARCH_SUPPORTS > > -comment "kodi needs a toolchain w/ C++, threads, wchar, dynamic library" > +comment "kodi needs python and .py modiules, and a toolchain w/ C++, threads, wchar, dynamic library" > depends on BR2_PACKAGE_KODI_ARCH_SUPPORTS > depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS \ > - || !BR2_USE_WCHAR || BR2_STATIC_LIBS > + || !BR2_USE_WCHAR || BR2_STATIC_LIBS \ > + || !BR2_PACKAGE_PYTHON || BR2_PACKAGE_PYTHON_PYC_ONLY > depends on BR2_USE_MMU > > config BR2_PACKAGE_KODI_EGL_GLES > @@ -65,7 +66,6 @@ menuconfig BR2_PACKAGE_KODI > select BR2_PACKAGE_OPENSSL > select BR2_PACKAGE_PCRE > select BR2_PACKAGE_PCRE_UCP > - select BR2_PACKAGE_PYTHON > select BR2_PACKAGE_PYTHON_BSDDB > select BR2_PACKAGE_PYTHON_BZIP2 > select BR2_PACKAGE_PYTHON_CURSES > @@ -94,6 +94,8 @@ menuconfig BR2_PACKAGE_KODI > depends on BR2_USE_WCHAR > depends on !BR2_STATIC_LIBS # python > depends on BR2_PACKAGE_KODI_ARCH_SUPPORTS > + depends on BR2_PACKAGE_PYTHON > + depends on !BR2_PACKAGE_PYTHON_PYC_ONLY > help > Kodi is an award-winning free and open source (GPL) software > media player and entertainment hub for digital media. > -- > 1.9.1 > -- .-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'