<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>56426</bug_id>
          
          <creation_ts>2004-07-08 01:56 0000</creation_ts>
          <short_desc>Can&apos;t emerge mythtv when using directFB</short_desc>
          <delta_ts>2004-07-13 09:11:48 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>gentoo.steph@e-bonnell.net</reporter>
          <assigned_to>media-tv@gentoo.org</assigned_to>
          <cc>listen@wolfgarten.com</cc>
    
    <cc>neil+gentoo@askneil.com</cc>

      

      
          <long_desc isprivate="0">
            <who>gentoo.steph@e-bonnell.net</who>
            <bug_when>2004-07-08 01:56:12 0000</bug_when>
            <thetext>When I try to emerge mythtv with directfb enabled I get the following error:

&gt;&gt;&gt; emerge (1 of 1) media-tv/mythtv-0.15.1-r1 to /
&gt;&gt;&gt; md5 src_uri ;-) mythtv-0.15.1.tar.bz2
X
opengl
&gt;&gt;&gt; Unpacking source...
&gt;&gt;&gt; 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
&gt;&gt;&gt; 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&apos;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:</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>loial@home.nl</who>
            <bug_when>2004-07-10 06:59:59 0000</bug_when>
            <thetext>I get the same thing on AMD64

I&apos;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
&gt;&gt;&gt; emerge (1 of 1) media-tv/mythtv-0.15.1-r1 to /
&gt;&gt;&gt; md5 src_uri ;-) mythtv-0.15.1.tar.bz2
X
opengl
&gt;&gt;&gt; Unpacking source...
&gt;&gt;&gt; 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
&gt;&gt;&gt; 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&apos;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

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>loial@home.nl</who>
            <bug_when>2004-07-10 09:32:36 0000</bug_when>
            <thetext>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=&quot;linux-g++&quot;
right in front of
qmake -o &quot;Makefile&quot; &quot;${PN}.pro&quot;
in the ebuild

now I don&apos;t know what I did, but it worked :)
Someone with brains can probably fix it decently and universally:)
Cheers
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>neil+gentoo@askneil.com</who>
            <bug_when>2004-07-11 15:43:07 0000</bug_when>
            <thetext>
I have the same problem when not using directfb; I suggest the
submitter update the Summary to &quot;Can&apos;t emerge mythtv-0.15.1-r1&quot;
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.

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>neil+gentoo@askneil.com</who>
            <bug_when>2004-07-11 15:43:51 0000</bug_when>
            <thetext>Created an attachment (id=35212)
patch to mythtv-0.15.1-r1.ebuild
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>andre@terpstra.nu</who>
            <bug_when>2004-07-12 11:42:12 0000</bug_when>
            <thetext>Neil&apos;s patch worked for me.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>aliz@gentoo.org</who>
            <bug_when>2004-07-13 09:11:48 0000</bug_when>
            <thetext>In CVS, thanks!</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>35212</attachid>
            <date>2004-07-11 15:43 0000</date>
            <desc>patch to mythtv-0.15.1-r1.ebuild</desc>
            <filename>mythtv.diff</filename>
            <type>text/plain</type>
            <data encoding="base64">KioqIG15dGh0di0wLjE1LjEtcjEuZWJ1aWxkCVN1biBKdWwgMTEgMTU6MzY6MzMgMjAwNAotLS0g
bXl0aHR2LTAuMTUuMS1yMS5lYnVpbGQub3JpZwlTdW4gSnVsIDExIDE1OjM3OjUxIDIwMDQKKioq
KioqKioqKioqKioqCioqKiAxNDYsMTU3ICoqKioKICAJCS1pICdzZXR0aW5ncy5wcm8nIHx8IGRp
ZSAiZGlzYWJsZSB4diBmYWlsZWQiCiAgCWZpCiAgCiAgCXNlZCAtaSAtZSAiczotTzM6OmciIC1l
ICJzOi1mb21pdC1mcmFtZS1wb2ludGVyOjpnIiBzZXR0aW5ncy5wcm8KICAKISAJZXhwb3J0IFFN
QUtFU1BFQz0ibGludXgtZysrIgohIAlxbWFrZSAtbyAiTWFrZWZpbGUiICIke1BOfS5wcm8iIHx8
IGRpZSAicW1ha2UgZmFpbGVkIgogIAogIAllY29uZiB8fCBkaWUgImVjb25mIGZhaWxlZCIKICAJ
c2VkIC1pIC1lICJzOk9QVEZMQUdTPS4qOk9QVEZMQUdTPSR7Q0ZMQUdTfTpnIiBjb25maWcubWFr
CiAgCSMgZW5hYmxlIGV4Y2VwdGlvbnMgaWYgdGhleSBhcmUgZGlzYWJsZWQgKHF0LWUpLgogIAkj
IHRoaXMgbWlnaHQgbm90IHdvcmsuLiBpZiBzbywgcmVidWlsZCBxdC1lIHdpdGggcnR0aSBhbmQg
ZXhjZXB0aW9ucwotLS0gMTQ2LDE1NiAtLS0tCiAgCQktaSAnc2V0dGluZ3MucHJvJyB8fCBkaWUg
ImRpc2F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