Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 737240 - media-tv/kodi-19.0_alpha1 does not stick to PYTHON_SINGLE_TARGET selection
Summary: media-tv/kodi-19.0_alpha1 does not stick to PYTHON_SINGLE_TARGET selection
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Craig Andrews
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-15 11:44 UTC by Jan-Matthias Braun
Modified: 2020-08-17 08:22 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan-Matthias Braun 2020-08-15 11:44:56 UTC
Seemingly, kodi is selecting a different python version than indicated by PYTHON_SINGLE_TARGET on its own, i.e., the cmake build system. Of course, the steps to discover this bug are obscure at best, i.e., I was cleaning up unused python versions while compiling kodi. But when uninstalling them later, I suspect the problem would still surface.
Long story short, in the end the kodi compile failed with:

ninja: error: '/usr/lib/libpython3.8.so', needed by 'kodi-x11', missing and no known rule to make it
 * ERROR: media-tv/kodi-19.0_alpha1::gentoo failed (compile phase):


After reinstalling python:3.8, the compile could be resumed and merged.


After installation, eix -e kodi showed:

[I] media-tv/kodi
     Available versions:  18.7^t (~)18.7.1^t (~)18.8^t (~)19.0_alpha1^t **19.9999*l^t **9999*l^t {+X airplay alsa bluetooth bluray caps cec +css dbus dvd gbm gles lcms libressl libusb lirc mariadb mysql nfs +opengl pulseaudio raspberry-pi samba +system-ffmpeg systemd test (+)udev udf udisks upnp upower vaapi vdpau wayland webserver +xslt zeroconf KERNEL="linux" PYTHON_SINGLE_TARGET="+python2_7 python3_6 python3_7 python3_8 python3_9"}
     Installed versions:  19.0_alpha1^t(12:19:28 08/15/20)(X airplay alsa bluetooth bluray caps cec css dbus dvd gles opengl samba system-ffmpeg udev udf udisks upnp upower vaapi vdpau webserver xslt zeroconf -gbm -lcms -libressl -libusb -lirc -mariadb -mysql -nfs -pulseaudio -raspberry-pi -systemd -test -wayland KERNEL="linux" PYTHON_SINGLE_TARGET="python3_7 -python3_6 -python3_8 -python3_9")
     Homepage:            https://kodi.tv/ https://kodi.wiki/
     Description:         A free and open source media-player and entertainment hub

I.e., it was supposedly built with python3_7 support.


During the configure stage, cmake detects:
 -- Found PythonLibs: /usr/lib64/libpython3.8.so (found suitable version "3.8.5", minimum required is "3.5")
-- Found Python: /usr/include/python3.8

although PYTHON_SINGLE_TARGET is set to python3_7. Installed are python versions 3.6, 3.7, 3.8 and 3.9.

I don't know what the best approach to fix this would be. Of course, PYTHON_INCLUDE_DIR and PYTHON_LIBRARY could be set in the ebuild's configure stage, but maybe there are already more potent helpers available?


Reproducible: Always
Comment 1 Craig Andrews gentoo-dev 2020-08-16 20:41:36 UTC
Reported upstream at https://github.com/xbmc/xbmc/issues/18296
Comment 2 Craig Andrews gentoo-dev 2020-08-16 20:41:58 UTC
Sorry, I updated the wrong bug :)
Comment 3 Larry the Git Cow gentoo-dev 2020-08-16 20:49:34 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c067131371d784a9ad3d42f59229f051d29de80c

commit c067131371d784a9ad3d42f59229f051d29de80c
Author:     Craig Andrews <candrews@gentoo.org>
AuthorDate: 2020-08-16 20:47:22 +0000
Commit:     Craig Andrews <candrews@gentoo.org>
CommitDate: 2020-08-16 20:49:28 +0000

    media-tv/kodi: follow PYTHON_SINGLE_TARGET selection
    
    Closes: https://bugs.gentoo.org/737240
    Package-Manager: Portage-3.0.2, Repoman-2.3.23
    Signed-off-by: Craig Andrews <candrews@gentoo.org>

 media-tv/kodi/kodi-19.0_alpha1-r1.ebuild | 324 +++++++++++++++++++++++++++++++
 media-tv/kodi/kodi-19.9999.ebuild        |   2 +
 media-tv/kodi/kodi-9999.ebuild           |   2 +
 3 files changed, 328 insertions(+)
Comment 4 Jan-Matthias Braun 2020-08-17 08:22:41 UTC
Great! Thanks for the ultra-fast response!