When I try to emerge mythtv with directfb enabled I get the following error: >>> emerge (1 of 1) media-tv/mythtv-0.15.1-r1 to / >>> md5 src_uri ;-) mythtv-0.15.1.tar.bz2 X opengl >>> Unpacking source... >>> Unpacking mythtv-0.15.1.tar.bz2 to /var/tmp/portage/mythtv-0.15.1-r1/work directfb * Applying mythtv-0.15-directfb.patch... [ ok ] /usr/sbin/ebuild.sh: line 1: gcc-major-version: command not found /usr/sbin/ebuild.sh: line 1: gcc-minor-version: command not found /usr/sbin/ebuild.sh: line 67: [: : integer expression expected >>> Source unpacked. alsa arts directfb lirc opengl X xv Could not find mkspecs for your QMAKESPEC after trying: /usr/qt/3/mkspecs /usr/qt/3/mkspecs /usr/qt/3/mkspecs /usr/qt/3 /usr/qt/3 Error processing project file: /var/tmp/portage/mythtv-0.15.1-r1/work/mythtv-0.15.1/mythtv.pro Please note that these settings only deal with libavcodec, not MythTV. CPU x86 Big Endian no MMX enabled yes Vector Builtins yes Creating config.mak and config.h sed: can't read programs/mythfilldatabase/Makefile: No such file or directory make: *** No targets specified and no makefile found. Stop. !!! ERROR: media-tv/mythtv-0.15.1-r1 failed. !!! Function src_compile, Line 158, Exitcode 2 !!! compile problem Reproducible: Always Steps to Reproduce:
I get the same thing on AMD64 I've already added a comment about the gcc-major-version thing in bug 52819 # emerge -av mythtv These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild U ] media-tv/mythtv-0.15.1-r1 [0.15.1] +X +alsa +arts -cle266 +directfb -dvb +lcd +lirc -nvidia +opengl 0 kB Total size of downloads: 0 kB Do you want me to merge these packages? [Yes/No] y >>> emerge (1 of 1) media-tv/mythtv-0.15.1-r1 to / >>> md5 src_uri ;-) mythtv-0.15.1.tar.bz2 X opengl >>> Unpacking source... >>> Unpacking mythtv-0.15.1.tar.bz2 to /var/tmp/portage/mythtv-0.15.1-r1/work directfb * Applying mythtv-0.15-directfb.patch... [ ok ] /usr/sbin/ebuild.sh: line 1: gcc-major-version: command not found /usr/sbin/ebuild.sh: line 1: gcc-minor-version: command not found /usr/sbin/ebuild.sh: line 67: [: : integer expression expected >>> Source unpacked. alsa arts directfb lcd lirc opengl X xv Could not find mkspecs for your QMAKESPEC after trying: /usr/qt/3/mkspecs /usr/qt/3/mkspecs /usr/qt/3/mkspecs /usr/qt/3 /usr/qt/3 Error processing project file: /var/tmp/portage/mythtv-0.15.1-r1/work/mythtv-0.15.1/mythtv.pro Please note that these settings only deal with libavcodec, not MythTV. CPU unknown Big Endian no Creating config.mak and config.h sed: can't read programs/mythfilldatabase/Makefile: No such file or directory make: *** No targets specified and no makefile found. Stop. !!! ERROR: media-tv/mythtv-0.15.1-r1 failed. !!! Function src_compile, Line 158, Exitcode 2 !!! compile problem
I fixed the gcc-major-version errors by including gcc to inherit (thanks to Herbie in bug 52819 ) The mkspecs error can be solved by adding export QMAKESPEC="linux-g++" right in front of qmake -o "Makefile" "${PN}.pro" in the ebuild now I don't know what I did, but it worked :) Someone with brains can probably fix it decently and universally:) Cheers
I have the same problem when not using directfb; I suggest the submitter update the Summary to "Can't emerge mythtv-0.15.1-r1" since it dies whether or not you have USE=directfb. I can confirm that the patch suggested by loial@home.nl in comment #2 worked for me. I also will attach a diff of the two ebuilds.
Created attachment 35212 [details, diff] patch to mythtv-0.15.1-r1.ebuild
Neil's patch worked for me.
In CVS, thanks!