Mailing List Archive

Help to make MythTV 'ebuild' for Gentoo Linux
Hi Isaac et all,
I'm finishing a MythTV 'ebuild' for Gentoo Linux.
ebuilds are Gentoo's style of packages.
I've just seen that I probably should move the configurable settings
from /usr/share/mythtv to /etc/mythtv or something like that. Since /etc
contents are usually protected between updates, in Gentoo that is.

Other than that, I really couldn't make it work on my system yet.
I have mysql 3.23.53 installed, and did also install the database as for
the documents. Yet when running and MythTV app I get:


QSqlDatabase warning: QMYSQL3 driver not loaded
QSqlDatabase: available drivers:
Couldn't open database
QSqlQuery::exec: database not open
QSqlQuery::exec: database not open


I am an abolute newbie in db like sql, hence I have no idea what to look
for.

Last but not least, anyone from Spain which is aware of Spanish TV
programming's provider in xmltv format?

Oh, if you are interested in the Gentoo ebuilds, check:
http://bugs.gentoo.org/show_bug.cgi?id=10533
http://bugs.gentoo.org/show_bug.cgi?id=10534
http://bugs.gentoo.org/show_bug.cgi?id=10536
which are MythTV, updated expat library and xmltv's ebuilds
respectively.

PS Congratulations for the fantastic piece of work you've done so far
with mythtv, specially at the pace you release new versions :)


--
Javier Marcet <jmarcet@pobox.com>
Re: Help to make MythTV 'ebuild' for Gentoo Linux [ In reply to ]
I ran into the same problem. I think that you need to have QT built
with support for MySQL, which is done by emerging QT _after_ you emerge
MySQL. In other words, MySQL needs to be installed first. (I'm not
sure about the USE flags.) I think I had a problem with the
qt-3.1.0_pre package, but I'm running okay with qt-3.0.5-r2.ebuild.

It would also be interesting to see what can be done with the
app-admin/livecd package. (Homepage:
http://cdimages.telemetrybox.org/gentoo/ Description: Generate a
bootable Gentoo live CD. With ability to deploy Gentoo easily. Includes
lilo boot time pengiun animation.)


Javier Marcet wrote:

> Hi Isaac et all,
> I'm finishing a MythTV 'ebuild' for Gentoo Linux. ebuilds are Gentoo's
> style of packages.
> I've just seen that I probably should move the configurable settings
> from /usr/share/mythtv to /etc/mythtv or something like that. Since /etc
> contents are usually protected between updates, in Gentoo that is.
>
> Other than that, I really couldn't make it work on my system yet.
> I have mysql 3.23.53 installed, and did also install the database as for
> the documents. Yet when running and MythTV app I get:
>
>
> QSqlDatabase warning: QMYSQL3 driver not loaded
> QSqlDatabase: available drivers:
> Couldn't open database
> QSqlQuery::exec: database not open
> QSqlQuery::exec: database not open
>
>
> I am an abolute newbie in db like sql, hence I have no idea what to look
> for.
>
> Last but not least, anyone from Spain which is aware of Spanish TV
> programming's provider in xmltv format?
>
> Oh, if you are interested in the Gentoo ebuilds, check:
> http://bugs.gentoo.org/show_bug.cgi?id=10533
> http://bugs.gentoo.org/show_bug.cgi?id=10534
> http://bugs.gentoo.org/show_bug.cgi?id=10536
> which are MythTV, updated expat library and xmltv's ebuilds
> respectively.
>
> PS Congratulations for the fantastic piece of work you've done so far
> with mythtv, specially at the pace you release new versions :)
>
>
RE: Help to make MythTV 'ebuild' for Gentoo Linux [ In reply to ]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Not sure if Gentoo does the same thing as Mandrake 9.0, but check if
you have files in /usr/lib/qt3/plugins

If they're there, then that means that you forgot to set a QTDIR to
/usr/lib/qt3, which is why the MYSQL plugins aren't being found (even
though they exist)

This is addressed in the README.mandrake9.0.txt file for Mandrake
(section 3), so if Gentoo does something different / has a different
place for its files then please let me know and I can include it in
the next version of the Howto that I'm putting together.

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>

iQA/AwUBPc70iPc1NpCTlP0JEQKglACgym8fD4EWzkRPanvuP/FYhzCoiBIAnjks
ZaS2aMm4txT3C1HicjNph47Z
=Lnlz
-----END PGP SIGNATURE-----
Re: Help to make MythTV 'ebuild' for Gentoo Linux [ In reply to ]
On Sun, 2002-11-10 at 20:02, rob wrote:
> I ran into the same problem. I think that you need to have QT built
> with support for MySQL, which is done by emerging QT _after_ you emerge
> MySQL. In other words, MySQL needs to be installed first. (I'm not
> sure about the USE flags.) I think I had a problem with the
> qt-3.1.0_pre package, but I'm running okay with qt-3.0.5-r2.ebuild.
>

I too have a problem with qt-3.1.0 - no way I can get it to load the
qsql drivers, even though the plugin library is compiled.

However the above approach with the mysql USE flag did solve my problem
with qt-3.0.x


// blinx
Re: Help to make MythTV 'ebuild' for Gentoo Linux [ In reply to ]
* Robert Kulagowski <rkulagowski@thrupoint.net> [021111 01:11]:

>Not sure if Gentoo does the same thing as Mandrake 9.0, but check if
>you have files in /usr/lib/qt3/plugins

>If they're there, then that means that you forgot to set a QTDIR to
>/usr/lib/qt3, which is why the MYSQL plugins aren't being found (even
>though they exist)

>This is addressed in the README.mandrake9.0.txt file for Mandrake
>(section 3), so if Gentoo does something different / has a different
>place for its files then please let me know and I can include it in
>the next version of the Howto that I'm putting together.

I have QT compiled with mysql support, and I do have the QT sql plugin,
it resides on /usr/qt/3/plugins/sqldrivers/libqsqlmysql.so
QTDIR is set to /usr/qt/3
Those are default Gentoo paths. I am using qt-copy from KDE cvs, if
that's of any importance.
Other than that, if I finish the ebuild completely, there should be no
need for any addition in the HowTo, since the ebuild should do whatever
is needed to get a working setup.

I'll see in a few minutes why MythTV does not find the sql plugin.
I know what to look for now :)


--
Javier Marcet <jmarcet@pobox.com>
RE: Help to make MythTV 'ebuild' for Gentoo Linux [ In reply to ]
Make sure you have mysql in your USE flag and then rebuild qt.

-----Original Message-----
From: mythtv-dev-admin@snowman.net [mailto:mythtv-dev-admin@snowman.net]
On Behalf Of rob
Sent: November 10, 2002 12:03 PM
To: mythtv-dev@snowman.net
Subject: Re: [mythtv] Help to make MythTV 'ebuild' for Gentoo Linux

I ran into the same problem. I think that you need to have QT built
with support for MySQL, which is done by emerging QT _after_ you emerge
MySQL. In other words, MySQL needs to be installed first. (I'm not
sure about the USE flags.) I think I had a problem with the
qt-3.1.0_pre package, but I'm running okay with qt-3.0.5-r2.ebuild.

It would also be interesting to see what can be done with the
app-admin/livecd package. (Homepage:
http://cdimages.telemetrybox.org/gentoo/ Description: Generate a
bootable Gentoo live CD. With ability to deploy Gentoo easily. Includes
lilo boot time pengiun animation.)


Javier Marcet wrote:

> Hi Isaac et all,
> I'm finishing a MythTV 'ebuild' for Gentoo Linux. ebuilds are Gentoo's

> style of packages.
> I've just seen that I probably should move the configurable settings
> from /usr/share/mythtv to /etc/mythtv or something like that. Since
/etc
> contents are usually protected between updates, in Gentoo that is.
>
> Other than that, I really couldn't make it work on my system yet.
> I have mysql 3.23.53 installed, and did also install the database as
for
> the documents. Yet when running and MythTV app I get:
>
>
> QSqlDatabase warning: QMYSQL3 driver not loaded
> QSqlDatabase: available drivers:
> Couldn't open database
> QSqlQuery::exec: database not open
> QSqlQuery::exec: database not open
>
>
> I am an abolute newbie in db like sql, hence I have no idea what to
look
> for.
>
> Last but not least, anyone from Spain which is aware of Spanish TV
> programming's provider in xmltv format?
>
> Oh, if you are interested in the Gentoo ebuilds, check:
> http://bugs.gentoo.org/show_bug.cgi?id=10533
> http://bugs.gentoo.org/show_bug.cgi?id=10534
> http://bugs.gentoo.org/show_bug.cgi?id=10536
> which are MythTV, updated expat library and xmltv's ebuilds
> respectively.
>
> PS Congratulations for the fantastic piece of work you've done so far
> with mythtv, specially at the pace you release new versions :)
>
>

_______________________________________________
mythtv-dev mailing list
mythtv-dev@snowman.net
http://www.snowman.net/mailman/listinfo/mythtv-dev
RE: Help to make MythTV 'ebuild' for Gentoo Linux [ In reply to ]
I ran into this problem and had a simple fix, at least with the ditrib I'm
running (rh8.0). Hidden away with the RPMs was a file called
qt-MySQL-3.0.5-17.i386.rpm. I installed it and voila. It's a similar
problem when installing PHP and MySQL. If you look on your distrib CDs you
may find a similar file.

> Make sure you have mysql in your USE flag and then rebuild qt.
>
> -----Original Message-----
> From: mythtv-dev-admin@snowman.net [mailto:mythtv-dev-admin@snowman.net]
> On Behalf Of rob
> Sent: November 10, 2002 12:03 PM
> To: mythtv-dev@snowman.net
> Subject: Re: [mythtv] Help to make MythTV 'ebuild' for Gentoo Linux
>
> I ran into the same problem. I think that you need to have QT built
> with support for MySQL, which is done by emerging QT _after_ you emerge
> MySQL. In other words, MySQL needs to be installed first. (I'm not
> sure about the USE flags.) I think I had a problem with the
> qt-3.1.0_pre package, but I'm running okay with qt-3.0.5-r2.ebuild.
>
> It would also be interesting to see what can be done with the
> app-admin/livecd package. (Homepage:
> http://cdimages.telemetrybox.org/gentoo/ Description: Generate a
> bootable Gentoo live CD. With ability to deploy Gentoo easily. Includes
> lilo boot time pengiun animation.)
>
>
> Javier Marcet wrote:
>
>> Hi Isaac et all,
>> I'm finishing a MythTV 'ebuild' for Gentoo Linux. ebuilds are Gentoo's
>
>> style of packages.
>> I've just seen that I probably should move the configurable settings
>> from /usr/share/mythtv to /etc/mythtv or something like that. Since
> /etc
>> contents are usually protected between updates, in Gentoo that is.
>>
>> Other than that, I really couldn't make it work on my system yet. I
>> have mysql 3.23.53 installed, and did also install the database as
> for
>> the documents. Yet when running and MythTV app I get:
>>
>>
>> QSqlDatabase warning: QMYSQL3 driver not loaded
>> QSqlDatabase: available drivers:
>> Couldn't open database
>> QSqlQuery::exec: database not open
>> QSqlQuery::exec: database not open
>>
>>
>> I am an abolute newbie in db like sql, hence I have no idea what to
> look
>> for.
>>
>> Last but not least, anyone from Spain which is aware of Spanish TV
>> programming's provider in xmltv format?
>>
>> Oh, if you are interested in the Gentoo ebuilds, check:
>> http://bugs.gentoo.org/show_bug.cgi?id=10533
>> http://bugs.gentoo.org/show_bug.cgi?id=10534
>> http://bugs.gentoo.org/show_bug.cgi?id=10536
>> which are MythTV, updated expat library and xmltv's ebuilds
>> respectively.
>>
>> PS Congratulations for the fantastic piece of work you've done so far
>> with mythtv, specially at the pace you release new versions :)
>>
>>
>
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev@snowman.net
> http://www.snowman.net/mailman/listinfo/mythtv-dev
>
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev@snowman.net
> http://www.snowman.net/mailman/listinfo/mythtv-dev