The ebuild attempts to modify version.pro in the incorrect location. This seems to be caused by ${S} resolving to $PORTAGE_TMPDIR/portage/media-tv/mythtv-0.21_p18314-r1/work/branches/release-0-21-fixes/mythtv instead of $PORTAGE_TMPDIR/portage/media-tv/mythtv-0.21_p18314-r1/work/mythtv-0.21_p18314 where version.pro is actually located. Reproducible: Always Steps to Reproduce: emerge mythtv Actual Results: build fails Expected Results: build succeeds # emerge --info Portage 2.1.6.13 (default/linux/x86/2008.0/desktop, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.29-gentoo-r5 i686) ================================================================= System uname: Linux-2.6.29-gentoo-r5-i686-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_5000+-with-glibc2.0 Timestamp of tree: Sat, 25 Jul 2009 22:15:01 +0000 ccache version 2.4 [disabled] app-shells/bash: 3.2_p39 dev-java/java-config: 2.1.8-r1 dev-lang/python: 2.5.4-r3 dev-util/ccache: 2.4-r7 dev-util/cmake: 2.6.4 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.63 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -fomit-frame-pointer -pipe -march=athlon64" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/init.d /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -fomit-frame-pointer -pipe -march=athlon64" DISTDIR="/var/portage/distfiles" FEATURES="buildpkg distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch userpriv" GENTOO_MIRRORS="http://gentoo.llarian.net/ http://gentoo.arcticnetwork.ca/source/ http://gentoo.mirrors.easynews.com/linux/gentoo/" LDFLAGS="-Wl,-O1" LINGUAS="en-US en vi zh zh_TW" MAKEOPTS="-j3" PKGDIR="/var/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/portage" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow X a52 aac acl acpi adns alsa ao arts audiofile avahi bash-completion berkdb bidi blas branding bzip2 cairo caps cddb cdparanoia cdr cjk cli cracklib crypt cscope cups curl dbus dga directfb dri dts dvd dvdr dvdread emboss encode evo exif expat fam fbcon ffmpeg firefox flac fontconfig foomaticdb fortran ftp gd gdbm ggi gif gimp ginac gmp gnutls gpm graphviz gstreamer gtk gtkhtml hal hdf5 iconv idn ieee1394 imagemagick imap imlib ipod isdnlog java jbig jikes joystick jpeg jpeg2k kde kdeenablefinal lame lcms ldap libnotify libsamplerate lm_sensors mad matroska midi mikmod mmap mmx mng mono mp3 mpeg mplayer mudflap musepack musicbrainz mysql ncurses nls nptl nptlonly nsplugin offensive ogg openal openexr opengl openmp pam pango pch pcre pdf perl plotutils png portaudio ppds pppd pulseaudio python qt3 qt3support qt4 quicktime readline reflection samba sasl sdl session slang slp sndfile snmp speex spell spl sse sse2 ssl startup-notification svg sysfs szip tcl tcpd theora threads tiff tk truetype unicode usb vcd vdpau vim-syntax vorbis win32codecs wmf wxwindows x264 x86 xcomposite xine xinerama xml xorg xosd xpm xprint xscreensaver xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 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" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en-US en vi zh zh_TW" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" USERLAND="GNU" VIDEO_CARDS="fbdev vesa nv nvidia" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 199188 [details] build log
Confirming this
Created attachment 199772 [details] patched ebuild The attached ebuild works for me on x86. I just had to add a line to redefine ${S} to the default: "${WORKDIR}/${P}" The problem stems from the mythtv eclass, which assumes that source will come from SVN. It sets ${S} accordingly, but this is incorrect for the current mythtv ebuilds that get source from a tarball. All of the 0.21 ebuilds use tarballs, and probably need the same 1-line patch. Redefining ${S} to the default in each ebuild isn't the cleanest fix though. To me, it seems like the current mythtv.eclass should be renamed to something like mythtv-svn, so the non-SVN mythtv.eclass used for tarballs can have the $SRC_URI and $S declarations removed.
This is not the problem with all 0.21 versions. At least version 0.21_p20877 compiles fine, but these don't: 0.21_p18314-r1 0.21_p18314-r2 0.21_p19961-r1 0.21_p19961-r2.
Please test/use media-tv/mythtv-0.21_p19961-r2 as this is the new stable candidate.
Brendan's proposed ebuild works. =media-tv/mythtv-0.21_p19961-r2 still displays the same error with version.pro
It doesn't appear that the proposed ebuid, media-tv/mythtv-0.21_p19961-r2 includes the bttv patch that p18314 had. Is the root cause for bttv cards resolved in this ebuild or does this patch need to be revisited? It appears from bug #259951 that there could be issues.
Created attachment 200109 [details] new build log, same error same error with the new ebuild
=media-tv/mythtv-0.21_p19961-r2 still fails
(In reply to comment #9) > =media-tv/mythtv-0.21_p19961-r2 still fails > =media-tv/mythtv-0.21_p20877 has the same problem. See bug 280516
just updated today. =media-tv/mythtv-0.21_p19961-r2 builds now