Page 1 of 1

Transcode installed from source, unsatisfied transcode

PostPosted: Jan 29th, '12, 21:03
by mark9117
Okay, for months I've been waiting for a transcode rpm for my MythTV box. Looks like it's not a happening thing in Mageia 1. Okay, finally sat down and wrestled gcc into submission. Transcode installled:

Code: Select all
# which transcode
/usr/local/bin/transcode


Great! now I can install those packages that depend on transcode.

Or maybe not.

Code: Select all
Some requested packages cannot be installed:
mythtv-plugin-archive-0.24.1-20111019.0.1.mga1.tainted.i586 (due to unsatisfied transcode)
mythtv-plugin-video-0.24.1-20111019.0.1.mga1.tainted.i586 (due to unsatisfied transcode)


I don't compile from source much and I'm not sure I've ever dealt with this. Is urpmi looking for transcode in a different place? Do I need to create a link to the executable? What's up with this and how can I fix it?

Thanks.

Mark

Re: Transcode installed from source, unsatisfied transcode

PostPosted: Jan 29th, '12, 21:40
by mark9117
I'm considering just switching off dependency checking and running updates. That should install the packages in question (mythtv-plugin-archive-0.24.1-20111019.0.1.mga1.tainted.i586 and mythtv-plugin-video-0.24.1-20111019.0.1.mga1.tainted.i586), but would that screw something up and would it allow the packages to work?

Opinions?

Mark

Re: Transcode installed from source, unsatisfied transcode

PostPosted: Jan 29th, '12, 23:40
by martinw
To answer your first question, urpmi (or more accurately the underlying rpm tool it calls) maintains a database of which packages have been installed on your machine. Because you have built transcode from source and installed it manually, rpm doesn't know it's there.

My guess is that if you forced the installation of the mythtv packages, then all will be well - the mythtv binaries don't know or care about the rpm database, they'll just search in standard places for the programs/libraries they need. The only problem will be if the place you've installed transcode is not one of the places they search - but that can be easily fixed if it proves to be the case.

More importantly, this is clearly a packaging bug - no package in the Mageia repositories should depend on a non-existent package. I've just checked this on my system (which is 64-bit, not 32-bit) and see the same problem. I suggest you report this in Bugzilla.

Re: Transcode installed from source, unsatisfied transcode

PostPosted: Jan 29th, '12, 23:54
by doktor5000
mark9117 wrote:
Code: Select all
Some requested packages cannot be installed:
mythtv-plugin-archive-0.24.1-20111019.0.1.mga1.tainted.i586 (due to unsatisfied transcode)
mythtv-plugin-video-0.24.1-20111019.0.1.mga1.tainted.i586 (due to unsatisfied transcode)


I don't compile from source much and I'm not sure I've ever dealt with this. Is urpmi looking for transcode in a different place? Do I need to create a link to the executable? What's up with this and how can I fix it?

Create an empty RPM package which provides the facility "transcode". urpmi does not look for files here,
it looks for a package which provides the facility "transcode", as there is none, it errors out.

Your best bet would have been to rebuild an existing transcode source package (src.rpm)
like the one we already have in cauldron. For a short explanation how to do this, look here:
viewtopic.php?p=13277#p13277
But you want to download the transcode src.rpm instead:
ftp://ftp.mandrivauser.de/mirrors/Mageia/distrib/cauldron/SRPMS/tainted/release/transcode-1.1.5-12.mga2.tainted.src.rpm

Re: Transcode installed from source, unsatisfied transcode

PostPosted: Jan 30th, '12, 00:08
by djennings
Mark, There was already a bug report for transcode
https://bugs.mageia.org/show_bug.cgi?id=2111
Since the devs seem reluctant to backport it for Mageia 1 the easiest way to get it is to rebuild the srpm from cauldron. You can pick up the srpm here
ftp://distrib-coffee.ipsl.jussieu.fr/pu ... ed/release

If you have already built transcode from source then you should already have the correct dependencies installed. All you need to do is learn how to rebuild a srpm.
The instructions are here
https://wiki.mageia.org/en/Packagers_RPM_tutorial

Re: Transcode installed from source, unsatisfied transcode

PostPosted: Jan 30th, '12, 00:23
by doktor5000
djennings wrote:If you have already built transcode from source then you should already have the correct dependencies installed. All you need to do is learn how to rebuild a srpm.
The instructions are here
https://wiki.mageia.org/en/Packagers_RPM_tutorial


I've already pointed that out by linking to another thread. Also that tutorial is quite a bit too much,
and does not really explain how to rebuild a package (in the sense of rebuilding, not installing and then
building it) also some steps are not really needed for that.

Re: Transcode installed from source, unsatisfied transcode

PostPosted: Jan 30th, '12, 01:01
by mark9117
Too late. I just switched off deps and installed the packages I needed. So far, everything seems fine.

Thanks!

Mark