Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 670900

Summary: media-tv/kodi-17.6-r7 fails to start with x11-base/xorg-server[-suid]
Product: Gentoo Linux Reporter: Michael Mair-Keimberger (iamnr3) <mmk>
Component: Current packagesAssignee: Craig Andrews <candrews>
Status: RESOLVED OBSOLETE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Michael Mair-Keimberger (iamnr3) 2018-11-11 11:27:25 UTC
Since the change in [1] kodi wouldn't start anymore as long as xorg-server isn't build with the suid flag.

https://github.com/gentoo/gentoo/commit/92cc7c28132dd325318abd0f1150e96a9e631036#diff-ac6f57bc7d5a8dda8dc80262d76155a2


emerge --info
Portage 2.3.51 (python 3.6.6-final-0, default/linux/amd64/17.0, gcc-8.2.0, glibc-2.27-r6, 4.18.9-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.18.9-gentoo-x86_64-AMD_A4-5000_APU_with_Radeon-TM-_HD_Graphics-with-gentoo-2.6
KiB Mem:     7601064 total,    552616 free
KiB Swap:    4194300 total,   4194300 free
Timestamp of repository gentoo: Sun, 11 Nov 2018 00:00:01 +0000
Head commit of repository gentoo: 08b9b3d023660e8922e1cf3be788300c3aa22268
sh bash 4.4_p23
ld GNU ld (Gentoo 2.31.1 p3) 2.31.1
app-shells/bash:          4.4_p23::gentoo
dev-lang/perl:            5.26.2::gentoo
dev-lang/python:          2.7.15::gentoo, 3.6.6::gentoo
dev-util/cmake:           3.12.3::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.38.3::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.31.1-r1::gentoo
sys-devel/gcc:            8.2.0-r4::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.19::gentoo (virtual/os-headers)
sys-libs/glibc:           2.27-r6::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: --info=progress2,name0,del0
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24

ACCEPT_KEYWORDS="~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=btver2 -mcx16 -mpopcnt -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=btver2 -mcx16 -mpopcnt -pipe"
DISTDIR="/mnt/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=3 -g --usepkg-exclude "sys-kernel/gentoo-sources virtual/*"         --binpkg-changed-deps=y --binpkg-respect-use=y"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en"
MAKEOPTS="-j4"
PKGDIR="/mnt/packages"
PORTAGE_BINHOST="http://10.0.2.20:8080/s2"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--info=progress2,name0,del0"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="CPU_FLAGS_X86="aes aac acl alsa amd64 avx berkdb bzip2 cli crypt cxx dri egl flac fortran gdbm iconv ipv6 jpeg libtirpc mad mmx mmxext mp3 mp4 multilib ncurses nls nptl openal opengl openmp opus pam pcre png popcnt python readline sdl seccomp sse sse2 sse3 sse4_1 sse4_2 sse4a ssl ssse3" svg tcpd threads truetype udev unicode vaapi vdpau vim-syntax vorbis vpx webp x264 xattr xcb xml zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="libinput evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-1" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby23" USERLAND="GNU" VIDEO_CARDS="radeonsi amdgpu radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS

=================================================================
                        Package Settings
=================================================================

media-tv/kodi-17.6-r7::gentoo was built with the following:
USE="alsa bluetooth css dbus nfs opengl (system-ffmpeg) udev udisks upnp upower vaapi vdpau webserver xslt -airplay -bluray -caps -cec -debug -dvd -gles -java -lcms -libressl -libusb -lirc -mariadb -mysql -nonfree -pulseaudio -samba -sftp -systemd -test -zeroconf" ABI_X86="(64)" PYTHON_TARGETS="python2_7"
Comment 1 Craig Andrews gentoo-dev 2018-11-15 14:14:43 UTC
Can you please provide:
* What version of Kodi you're using (emerge -pv kodi)?
* What happens? What do you mean by "fails to start?"
* Logs showing the problem

Thanks!
Comment 2 Michael Mair-Keimberger (iamnr3) 2018-11-15 14:50:52 UTC
* What version of Kodi you're using (emerge -pv kodi)?
The package version is at the end of the emerge --info output ;) It's media-tv/kodi-17.6-r7. Sorry for not putting the version into the heading.
* What happens? What do you mean by "fails to start?"
I'll usually try to start it via:
/etc/init.d/kodi start
For a few seconds it's listed as "started", but then writes "crashed"
Kodi simple doesn't start. (there is no other X session, this is a dedicated box for kodi)
* Logs showing the problem
Unfortunaly i haven't found any logs showing the problem. There is no kodi crashlog nor Xorg.0.log. Anywere else i can look?

Luckily xorg-server now defaults to +suid. I already put the suid flag into my package.use and after a rebuild of xorg-server kodi works as expected.
Comment 3 Craig Andrews gentoo-dev 2018-11-15 15:12:41 UTC
/etc/init.d/kodi isn't something that's part of the Kodi package - can you provide that please?
Comment 4 Michael Mair-Keimberger (iamnr3) 2018-11-16 10:10:52 UTC
Oh, i didn't notice this isn't from the kodi package. Sorry about that. I've now remember where i got it from. The init script was provided on the wiki [1].
Like in the wiki, i've also configured a seperated User for kodi.

[1]https://wiki.gentoo.org/wiki/Kodi#Configuration
Comment 5 Craig Andrews gentoo-dev 2019-09-06 21:45:41 UTC
Kodi 17 is no longer in Gentoo; if this issue is reproducible using a version currently in Gentoo, please reopen.

Thanks!