[mythtv-users] gentoo and mythdvd

Hindrik Hettema h_hettema at gmx.net
Thu May 20 01:03:26 EDT 2004


On Tue, 18 May 2004 20:55:29 -0400
"Stephen L. Ulmer" <ulmer at ulmer.org> wrote:

> es. I think it just emerge'd for me... I did have a similar error
> when trying to emerge MythBrowser. I think I list added -lXinerama in
> the right place in the ebuild. I *do* remember that it took me several
> passes to get it in the correct place.
> 
> I have no idea why some myth builds require Xinerama, I can't find
> anything in the ebuild that looks like it could be used to turn it
> off.
> 
> FWIW, I am also using an Althlon.
> 
> -- 
> Stephen

The following ebuild does the job:

In "mythdvd-...ebuild" replace src_unpack by:

---------------------------------------------------------------------------------
    src_unpack() {
            unpack ${A} && cd "${S}"
     
            for i in `grep -lr "usr/local" "${S}"` ; do
                    sed -e "s:/usr/local:/usr:g" -i "${i}" || die "sed failed"
            done
  
            # patch for Xinerama
            cd "${S}" ; epatch ${FILESDIR}/xinerama.patch
    }
---------------------------------------------------------------------------------
 
and in the files-directory add the file "xinerama.patch":

---------------------------------------------------------------------------------
--- mtd/mtd.pro.old     2003-10-29 23:40:32.000000000 +0100
+++ mtd/mtd.pro 2004-03-14 13:14:04.000000000 +0100
@@ -11,7 +11,7 @@
 target.path = $${PREFIX}/bin
 INSTALLS += target
  
-LIBS += -lmyth-$$LIBVERSION $$EXTRA_LIBS
+LIBS += -lmyth-$$LIBVERSION -lXinerama $$EXTRA_LIBS
  
 HEADERS += ../mythdvd/config.h ../mythdvd/dbcheck.h
---------------------------------------------------------------------------------

Hope this helps.

Kind regards,

Hindrik



More information about the mythtv-users mailing list