Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 56426 - Can't emerge mythtv when using directFB
Summary: Can't emerge mythtv when using directFB
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Television related Applications in Gentoo's Portage
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-08 01:56 UTC by Stephane Bonnell
Modified: 2004-07-13 09:11 UTC (History)
2 users (show)

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


Attachments
patch to mythtv-0.15.1-r1.ebuild (mythtv.diff,981 bytes, patch)
2004-07-11 15:43 UTC, Neil Katin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stephane Bonnell 2004-07-08 01:56:12 UTC
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:
Comment 1 Rutger Hendriks 2004-07-10 06:59:59 UTC
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

Comment 2 Rutger Hendriks 2004-07-10 09:32:36 UTC
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
Comment 3 Neil Katin 2004-07-11 15:43:07 UTC
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.

Comment 4 Neil Katin 2004-07-11 15:43:51 UTC
Created attachment 35212 [details, diff]
patch to mythtv-0.15.1-r1.ebuild
Comment 5 André Terpstra 2004-07-12 11:42:12 UTC
Neil's patch worked for me.
Comment 6 Daniel Ahlberg (RETIRED) gentoo-dev 2004-07-13 09:11:48 UTC
In CVS, thanks!