Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mythtv ebuild problems
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
sybille
Tux's lil' helper
Tux's lil' helper


Joined: 15 Apr 2005
Posts: 111
Location: France

PostPosted: Mon Jan 29, 2007 10:49 am    Post subject: mythtv ebuild problems Reply with quote

Hi,

I've searched the forums and bugzilla and haven't found that anyone else has reported the issues I'm having when trying to merge mythtv: neither the stable nor the unstable versions will emerge due to sandbox violations.

Here's what the log looks like:
Code:
cat /var/log/sandbox/sandbox-media-tv_-_mythtv-0.20_p12376-27722.log
mkdir:     /include
open_wr:   /lib/libmythavcodec-0.20.so.0.20.0
symlink:   /lib/libmythavcodec-0.20.so
symlink:   /lib/libmythavcodec-0.20.so.0
symlink:   /lib/libmythavcodec-0.20.so.0.20
mkdir:     /include
open_wr:   /lib/libmythavformat-0.20.so.0.20.0
symlink:   /lib/libmythavformat-0.20.so
symlink:   /lib/libmythavformat-0.20.so.0
symlink:   /lib/libmythavformat-0.20.so.0.20
mkdir:     /include
mkdir:     /include
mkdir:     /include
open_wr:   /lib/libmythdvdnav-0.20.a
mkdir:     /include
open_wr:   /lib/libmythlivemedia-0.20.so.0.20.0
symlink:   /lib/libmythlivemedia-0.20.so
symlink:   /lib/libmythlivemedia-0.20.so.0
symlink:   /lib/libmythlivemedia-0.20.so.0.20
open_wr:   /lib/libmythfreemheg-0.20.so.0.20.0
symlink:   /lib/libmythfreemheg-0.20.so
symlink:   /lib/libmythfreemheg-0.20.so.0
symlink:   /lib/libmythfreemheg-0.20.so.0.20
open_wr:   /lib/libmythui-0.20.so.0.20.0
symlink:   /lib/libmythui-0.20.so
symlink:   /lib/libmythui-0.20.so.0
symlink:   /lib/libmythui-0.20.so.0.20
mkdir:     /include
open_wr:   /lib/libmyth-0.20.so.0.20.0
symlink:   /lib/libmyth-0.20.so
symlink:   /lib/libmyth-0.20.so.0
symlink:   /lib/libmyth-0.20.so.0.20
mkdir:     /include
open_wr:   /lib/libmythtv-0.20.so.0.20.0
symlink:   /lib/libmythtv-0.20.so
symlink:   /lib/libmythtv-0.20.so.0
symlink:   /lib/libmythtv-0.20.so.0.20
mkdir:     /include
open_wr:   /lib/libmythupnp-0.20.so.0.20.0
symlink:   /lib/libmythupnp-0.20.so
symlink:   /lib/libmythupnp-0.20.so.0
symlink:   /lib/libmythupnp-0.20.so.0.20
mkdir:     /share
mkdir:     /lib/mythtv
mkdir:     /lib/mythtv
mkdir:     /lib/mythtv
mkdir:     /lib/mythtv
mkdir:     /lib/mythtv
mkdir:     /lib/mythtv
mkdir:     /lib/mythtv
mkdir:     /lib/mythtv
mkdir:     /lib/mythtv
mkdir:     /lib/mythtv
mkdir:     /lib/mythtv
mkdir:     /lib/mythtv
mkdir:     /lib/mythtv
open_wr:   /bin/mythtv
open_wr:   /bin/mythfrontend
mkdir:     /share
open_wr:   /bin/mythcommflag
open_wr:   /bin/mythtvosd
open_wr:   /bin/mythjobqueue
open_wr:   /bin/mythlcdserver
open_wr:   /bin/mythwelcome
mkdir:     /share
open_wr:   /bin/mythshutdown
open_wr:   /bin/mythreplex
open_wr:   /bin/mythbackend
open_wr:   /bin/mythfilldatabase
open_wr:   /bin/mythtv-setup
mkdir:     /share
open_wr:   /bin/mythtranscode
mkdir:     /share
mkdir:     /share
So, the ebuild wants to install to /lib, /include, /share, rather than /usr/lib, /usr/include, /usr/share. And indeed, that's just what it does if installed with FEATURES="-sandbox", which I did just to see (and then had to clean everything up manually since emerge --unmerge did not remove any of the files in those locations).

I'm quite sure this is not intended behavior, if only because the init script, /etc/init.d/mythbackend, looks for the mythbackend binary under the /usr prefix.

In an earlier attempt, the emerge process also complained that there was no user "mythtv." I did add such a user, following the instructions from the gentoo-wiki: http://gentoo-wiki.com/HOWTO_Setup_Kernel/System_for_MythTV#Adding_the_MythTV_user.

Mythtv-themes do not install at all. The ebuild dies stating that "./configure" needs to be run, as if it's not finding that in the portage work directory?

Again, I'm surprised not to have found any other reports of this, even though it occurs with the stable ebuild as well as the unstable one. Is there something I need to try changing before I open a bug to report the problem? Thanks!
Code:
emerge --info
Portage 2.1.1-r2 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.4-r4, 2.6.19-gentoo-r4 i686)
=================================================================
System uname: 2.6.19-gentoo-r4 i686 AMD Sempron(tm) Processor 2800+
Gentoo Base System release 1.12.9
Last Sync: Mon, 29 Jan 2007 01:50:01 +0000
ccache version 2.4 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.31
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=k8 -msse3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib/X11/xkb /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=k8 -msse3 -pipe -fomit-frame-pointer"
DISTDIR="/mnt/portage/distfiles"
FEATURES="autoconfig buildpkg ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict userfetch userpriv"
GENTOO_MIRRORS="http://gentoo.modulix.net/gentoo/ http://pandemonium.tiscali.de/pub/gentoo/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="en"
MAKEOPTS="-j2"
PKGDIR="/mnt/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/usr/portage/tmp"
PORTDIR="/usr/portage/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X aac acpi alsa alsa_cards_intel8x0 alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol bash-completion beagle berkdb bitmap-fonts bzip2 cairo cdr cli cracklib crypt cups dbus dlloader dri dvd dvdr elibc_glibc emboss encode fam fbcon ffmpeg firefox flac fortran gdbm gif glibc-omitfp glitz gnome gpm gstreamer gtk hal iconv input_devices_keyboard input_devices_mouse isdnlog java jpeg kernel_linux lcd_devices_bayrad lcd_devices_cfontz lcd_devices_cfontz633 lcd_devices_glk lcd_devices_hd44780 lcd_devices_lb216 lcd_devices_lcdm001 lcd_devices_mtxorb lcd_devices_ncurses lcd_devices_text lcms libg++ linguas_en live mad matroska mikmod mmx mmxext mp3 mpeg ncurses nptl nptlonly nsplugin ogg opengl oss pam pcre pdf perl pic png ppds pppd python readline reflection rtc scanner sdl session spell spl sse sse2 ssl svg tcpd theora threads tiff truetype truetype-fonts type1-fonts udev unicode userland_GNU video_cards_radeon video_cards_vesa vorbis x264 xml xorg xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_RSYNC_EXTRA_OPTS
Code:
emerge -pv mythtv

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] media-tv/mythtv-0.20_p12376  USE="alsa dvd freebox mmx opengl perl vorbis (-altivec) -autostart -backendonly -crciprec -dbox2 -debug -dts -dvb -frontendonly -hdhomerun -ieee1394 -ivtv -jack -joystick -lcd -lirc -xvmc" VIDEO_CARDS="-i810 -nvidia -via" 0 kB
[ebuild  N    ] x11-themes/mythtv-themes-0.20  0 kB
Back to top
View user's profile Send private message
Hobbes-X
l33t
l33t


Joined: 04 Feb 2004
Posts: 823
Location: Seattle, WA

PostPosted: Thu Feb 01, 2007 4:40 pm    Post subject: Re: mythtv ebuild problems Reply with quote

sybille wrote:
Hi,

I've searched the forums and bugzilla and haven't found that anyone else has reported the issues I'm having when trying to merge mythtv: neither the stable nor the unstable versions will emerge due to sandbox violations.


Still having problems? I'm perhaps not the best person to help out, but seeing as you have no relplies so far....

Quote:
So, the ebuild wants to install to /lib, /include, /share, rather than /usr/lib, /usr/include, /usr/share. And indeed, that's just what it does if installed with FEATURES="-sandbox", which I did just to see (and then had to clean everything up manually since emerge --unmerge did not remove any of the files in those locations).

Perhaps the sandbox log does not take the configure prefix into account? The ebuild does have /usr specified:
Code:

src_compile() {
        local myconf="--prefix=/usr


Quote:
In an earlier attempt, the emerge process also complained that there was no user "mythtv." I did add such a user, following the instructions from the gentoo-wiki: http://gentoo-wiki.com/HOWTO_Setup_Kernel/System_for_MythTV#Adding_the_MythTV_user.


In p12376, the error should be: 'Problem adding mythtv user'. The wiki does not mention it, but the ebuilds now add that user themselves. Previous versions did not. The wiki doesn't mention adding the home directory, so perhaps that is part of the error you were seeing? I can't remember if useradd creates the home directory by default or not...

Quote:
Mythtv-themes do not install at all. The ebuild dies stating that "./configure" needs to be run, as if it's not finding that in the portage work directory?

IIRC, a compatible version of the mythlibs need to be installed before you can install plugins, once you've got myth successfully installed this should clear up.

Quote:
Again, I'm surprised not to have found any other reports of this, even though it occurs with the stable ebuild as well as the unstable one. Is there something I need to try changing before I open a bug to report the problem? Thanks!

I never had problems with the stock ebuilds personally. You say there's sandbox errors, but I'm not clear on exactly where things are going wrong. What's your error output when you try to run emerge mythtv?
Back to top
View user's profile Send private message
sybille
Tux's lil' helper
Tux's lil' helper


Joined: 15 Apr 2005
Posts: 111
Location: France

PostPosted: Fri Feb 02, 2007 7:59 am    Post subject: Reply with quote

Hi, and thanks for responding. :)

The error I've been experiencing is that mythtv does not emerge. The merge stops after everything is compiled, at the point when it is attempting to install the new files into my root file system. The console output is a list of access violations.

These access violations are recorded in the sandbox log that I posted, too - it's exactly the same as what is printed to the CLI when the merge fails. So really, that's all the information I have at this point.

It doesn't make any sense to me, because I too see that the ebuild is designed to install under /usr. I haven't changed anything at all in the ebuild. I've tried re-syncing portage. I'm able to merge other things with no problems. I don't have any unsupported overlays installed, just a few ebuilds in my own local overlay. Revdep-rebuild has nothing to do and no config files need to be updated. Thus, I'm thinking that my Gentoo install is healthy enough.

In other words, I'm stumped.

Here's the bug I opened (no responses yet).
Back to top
View user's profile Send private message
slycordinator
Advocate
Advocate


Joined: 31 Jan 2004
Posts: 3065
Location: Korea

PostPosted: Fri Feb 02, 2007 8:21 am    Post subject: Reply with quote

https://bugs.gentoo.org/show_bug.cgi?id=106528

Although it's an older version, it never got fixed because the package itself wasn't broken... qmake is the offender.
Back to top
View user's profile Send private message
sybille
Tux's lil' helper
Tux's lil' helper


Joined: 15 Apr 2005
Posts: 111
Location: France

PostPosted: Fri Feb 02, 2007 9:27 am    Post subject: Reply with quote

Thanks, slycordinator, that was it.

As Cardoe points out in the bug you linked, the problem occurs whenever a custom PORTAGE_TMPDIR is set in /etc/make.conf. I changed my PORTAGE_TMPDIR back to the default and mythtv installed with no problems.

I didn't find the bug on bugzilla because I was looking only for open bugs and that one was closed as "RESOLVED CANTFIX". So now I know to look for that status when searching in the future. Thanks again, slycordinator!

I'm thinking it might be useful if the mythtv ebuild could explain why it was failing...I don't know if ELOG gets called early enough in the process to include something like that or if another kind of "die" message would be better and possible? I'll try to look into that, but if any one has any ideas I think it would be nice to include a possible fix when I respond to my bug.

Also, does anyone happen to know if there is a way to set things up so that portage will use the default PORTAGE_TMPDIR only when compiling mythtv? I installed qt just for mythtv (I'm planning to try using it with a GNOME frontend, gshowtv) and I prefer to have all my portage stuff happen on my portage partition if possible, which is why I use a custom PORTAGE_TMPDIR. I don't know if it's possible to tell portage to change the variable depending on the package, and I've never had a reason to try something like that before.
Back to top
View user's profile Send private message
slycordinator
Advocate
Advocate


Joined: 31 Jan 2004
Posts: 3065
Location: Korea

PostPosted: Fri Feb 02, 2007 9:33 am    Post subject: Reply with quote

Add ALL to the beginning of your search and it'll search for resolved/closed bugs as well.
Back to top
View user's profile Send private message
sybille
Tux's lil' helper
Tux's lil' helper


Joined: 15 Apr 2005
Posts: 111
Location: France

PostPosted: Fri Feb 02, 2007 9:42 am    Post subject: Reply with quote

Quote:
Add ALL to the beginning of your search and it'll search for resolved/closed bugs as well.

Yes, live and learn.
All the same, it's nice that I've been able to use Gentoo for a year without ever needing to learn that one before now! :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum