Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 312459 - media-video/miro-3.0 version bump request
Summary: media-video/miro-3.0 version bump request
Status: RESOLVED DUPLICATE of bug 342093
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement with 3 votes (vote)
Assignee: Mounir Lamouri (volkmar) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-31 18:15 UTC by 7v5w7go9ub0o
Modified: 2011-05-25 14:18 UTC (History)
19 users (show)

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


Attachments
miro-3.0.1.ebuild (miro-3.0.1.ebuild,3.38 KB, text/plain)
2010-04-20 03:40 UTC, Siuchung Cheung (Clement)
Details
"Widget wrapper no longer exists" fix from Ubuntu (miro-3.0.1-mozembed-realize.patch,766 bytes, patch)
2010-04-20 03:42 UTC, Siuchung Cheung (Clement)
Details | Diff
miro-3.0.1-xpcom-path.patch (miro-3.0.1-xpcom-path.patch,643 bytes, patch)
2010-04-20 03:46 UTC, Siuchung Cheung (Clement)
Details | Diff
miro-3.0.2.ebuild (miro-3.0.2.ebuild,2.82 KB, text/plain)
2010-06-12 23:52 UTC, Siuchung Cheung (Clement)
Details
miro-3.0.2-fix-debug.patch (miro-3.0.2-fix-debug.patch,430 bytes, patch)
2010-06-12 23:53 UTC, Siuchung Cheung (Clement)
Details | Diff
Simplified ebuild for miro-3.0.2 (miro-3.0.2.ebuild,2.39 KB, text/plain)
2010-07-18 18:02 UTC, Alex Domingo
Details
Updated ebuild for media-video/miro-3.0.3 (miro-3.0.3.ebuild,2.38 KB, text/plain)
2010-07-27 12:09 UTC, Alex Domingo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description 7v5w7go9ub0o 2010-03-31 18:15:03 UTC
www.getmiro.com  major update to 3.0

Reproducible: Always
Comment 1 Siuchung Cheung (Clement) 2010-04-20 03:40:14 UTC
Created attachment 228471 [details]
miro-3.0.1.ebuild

Changes:

removed: miro-2.5.3-disable-xine-hack.patch: Hack no longer exist. (actually the entire xine backend no longer seem to exist)
removed: miro-2.5.3-remove-pkg-config-list-all.patch: fix already included upstream
new: miro-3.0.1-xpcom-path.patch: xulrunner 1.9 doesn't have a libdir anymore. Porting the code used for gtkmozembed_lib to xpcom_lib.
new: miro-3.0.1-mozembed-realize.patch: Fix mozilla "wrapper no longer exist" error, courtesy of Ubuntu. See <https://bugs.launchpad.net/ubuntu/+source/miro/+bug/537050> Big fat warning from author of this patch:

"Here's a patch that works around the issue for me. It's definitely not a pretty solution, we just short-circuit the code that mozilla has to handle un-realize/re-realize. At the very least this is a memory leak, however it only leaks when the user deletes sites, which isn't going to happen very often. I'm also a little worried that the unrealize code is important for other reasons, however I haven't got xulrunner to crash in my testing."
Comment 2 Siuchung Cheung (Clement) 2010-04-20 03:42:14 UTC
Created attachment 228473 [details, diff]
"Widget wrapper no longer exists" fix from Ubuntu
Comment 3 Siuchung Cheung (Clement) 2010-04-20 03:46:44 UTC
Created attachment 228475 [details, diff]
miro-3.0.1-xpcom-path.patch

Fixes XPCOM path detection. This fixes the actual detection code instead of hardcoding the path like Ubuntu did. (Their approach obviously won't work for the Gentoo way of linking against any arbitrary version of xulrunner on user's system.)
Comment 4 Siuchung Cheung (Clement) 2010-04-20 04:04:32 UTC
Note that there are quite a few ugly crashes in this release.

But the crashes goes away once I upgraded QtCurve and deleted .miro/mozilla and .config/qtcurve.

Backtrace for QtCurve crash:
#0  0x00007f28a5671c9b in raise () from /lib/libpthread.so.0
#1  0x00007f2892f55993 in nsProfileLock::FatalSignalHandler(int) ()
   from /usr/lib64/xulrunner-1.9.2/libxul.so
#2  <signal handler called>
#3  0x00007f2886f746e9 in gtkDrawSlider ()
   from /usr/lib64/gtk-2.0/2.10.0/engines/libqtcurve.so
#4  0x00007f2886f7b652 in drawBox ()
   from /usr/lib64/gtk-2.0/2.10.0/engines/libqtcurve.so
#5  0x00007f2886f7db82 in gtkDrawBox ()
   from /usr/lib64/gtk-2.0/2.10.0/engines/libqtcurve.so
#6  0x00007f28936eae25 in moz_gtk_widget_paint ()
   from /usr/lib64/xulrunner-1.9.2/libxul.so
#7  0x00007f28937094bd in ThemeRenderer::NativeDraw(_GdkDrawable*, short, short, _GdkRectangle*, unsigned int) () from /usr/lib64/xulrunner-1.9.2/libxul.so
#8  0x00007f28937f2211 in NativeRendering(void*, _cairo_surface*, short, short, _GdkRectangle*, unsigned int) () from /usr/lib64/xulrunner-1.9.2/libxul.so


A quick search on Google reveals that this is triggered by the use of colored non-flat scrollbars in some versions of QtCurve. So try changing scrollbar settings if crashes persist.
<http://suse-art.org/content/show.php?content=40492&forumpage=94&PHPSESSID=rdwlhoks>
<http://arch-stuff.org/content/show.php?content=40492&forumpage=94&PHPSESSID=f4dec3d2f02cc2255f97fb24a7aef5b0>
Comment 5 7v5w7go9ub0o 2010-04-21 18:56:47 UTC
Thank you for tracking this stuff down! 

Is your ebuild good to go, or do I need to apply the xpcom-path patch first?

(What are your impressions? This new version of miro is getting rave reviews from a lot of windows guys.)

Comment 6 Alex Bennee 2010-04-21 21:52:21 UTC
(In reply to comment #3)
> Created an attachment (id=228475) [details]
> miro-3.0.1-xpcom-path.patch

I'm seeing a hang on start-up but it looks GStreamer related:


23:16 alex@danny/x86_64 [miro] >miro
location: /usr/lib64/xulrunner-1.9.2/libxpcom.so 
before 3
2010-04-22 00:07:02,931 INFO     Starting up Miro
2010-04-22 00:07:04,773 INFO     Version:    3.0.1
2010-04-22 00:07:04,780 INFO     OS:         Linux 2.6.33.1ajb x86_64
2010-04-22 00:07:04,780 INFO     Revision:   ssh://wguaraldi@pcf1.pculture.org/var/git/miro - 247af86e
2010-04-22 00:07:04,781 INFO     Builder:    root@danny
2010-04-22 00:07:04,781 INFO     Build Time: 1271888247.17
2010-04-22 00:07:04,781 INFO     Starting event loop thread
2010-04-22 00:07:04,783 INFO     Python version:    2.6.4 (r264:75706, Mar  7 2010, 19:30:53) 
[GCC 4.3.4]
2010-04-22 00:07:04,783 INFO     Gtk+ version:      (2, 18, 9)
2010-04-22 00:07:04,783 INFO     PyGObject version: (2, 20, 0)
2010-04-22 00:07:04,783 INFO     PyGtk version:     (2, 16, 0)
2010-04-22 00:07:04,783 INFO     Language:          [('LANGUAGE', 'en_GB.UTF-8'), ('LC_ALL', 'en_GB.UTF-8'), ('LANG', 'en_GB.UTF-8')]
2010-04-22 00:07:04,784 INFO     set_renderer: trying to add gstreamerrenderer
2010-04-22 00:07:06,233 INFO     Restoring database...
2010-04-22 00:07:06,233 INFO     GStreamer version: GStreamer 0.10.28
2010-04-22 00:07:06,233 INFO     Sqlite3 version:   3.6.22
2010-04-22 00:07:06,234 INFO     Pysqlite version:  2.6.0
2010-04-22 00:07:06,234 INFO     opening database /home/alex/.miro/sqlitedb
2010-04-22 00:07:06,355 INFO     GStreamer audiosink: gconfaudiosink
2010-04-22 00:07:06,358 INFO     GStreamer videosink: gconfvideosink
Traceback (most recent call last):
  File "/usr/bin/miro.real", line 266, in <module>
    startapp()
  File "/usr/bin/miro.real", line 223, in startapp
    startup(props_to_set)
  File "/usr/bin/miro.real", line 169, in startup
    application.run_application(props_to_set)
  File "/usr/lib64/python2.6/site-packages/miro/plat/frontends/widgets/application.py", line 96, in run_application
    GtkX11Application().run(props_to_set)
  File "/usr/lib64/python2.6/site-packages/miro/plat/frontends/widgets/application.py", line 115, in run
    renderers.init_renderer()
  File "/usr/lib64/python2.6/site-packages/miro/plat/renderers/__init__.py", line 77, in init_renderer
    set_renderer("%srenderer" % r)
  File "/usr/lib64/python2.6/site-packages/miro/plat/renderers/__init__.py", line 55, in set_renderer
    app.video_renderer = module.VideoRenderer()
  File "/usr/lib64/python2.6/site-packages/miro/plat/renderers/gstreamerrenderer.py", line 329, in __init__
    self.textsink = gst.element_factory_make("textoverlay", "textsink")
gst.ElementNotFoundError: textoverlay
Comment 7 Teng Wang 2010-04-21 22:34:54 UTC
Actually, I got the same results and even worse the frontend never shows up

(In reply to comment #6)
> (In reply to comment #3)
> > Created an attachment (id=228475) [details] [details]
> > miro-3.0.1-xpcom-path.patch
> 
> I'm seeing a hang on start-up but it looks GStreamer related:
> 
> 
> 23:16 alex@danny/x86_64 [miro] >miro
> location: /usr/lib64/xulrunner-1.9.2/libxpcom.so 
> before 3
> 2010-04-22 00:07:02,931 INFO     Starting up Miro
> 2010-04-22 00:07:04,773 INFO     Version:    3.0.1
> 2010-04-22 00:07:04,780 INFO     OS:         Linux 2.6.33.1ajb x86_64
> 2010-04-22 00:07:04,780 INFO     Revision:  
> ssh://wguaraldi@pcf1.pculture.org/var/git/miro - 247af86e
> 2010-04-22 00:07:04,781 INFO     Builder:    root@danny
> 2010-04-22 00:07:04,781 INFO     Build Time: 1271888247.17
> 2010-04-22 00:07:04,781 INFO     Starting event loop thread
> 2010-04-22 00:07:04,783 INFO     Python version:    2.6.4 (r264:75706, Mar  7
> 2010, 19:30:53) 
> [GCC 4.3.4]
> 2010-04-22 00:07:04,783 INFO     Gtk+ version:      (2, 18, 9)
> 2010-04-22 00:07:04,783 INFO     PyGObject version: (2, 20, 0)
> 2010-04-22 00:07:04,783 INFO     PyGtk version:     (2, 16, 0)
> 2010-04-22 00:07:04,783 INFO     Language:          [('LANGUAGE',
> 'en_GB.UTF-8'), ('LC_ALL', 'en_GB.UTF-8'), ('LANG', 'en_GB.UTF-8')]
> 2010-04-22 00:07:04,784 INFO     set_renderer: trying to add gstreamerrenderer
> 2010-04-22 00:07:06,233 INFO     Restoring database...
> 2010-04-22 00:07:06,233 INFO     GStreamer version: GStreamer 0.10.28
> 2010-04-22 00:07:06,233 INFO     Sqlite3 version:   3.6.22
> 2010-04-22 00:07:06,234 INFO     Pysqlite version:  2.6.0
> 2010-04-22 00:07:06,234 INFO     opening database /home/alex/.miro/sqlitedb
> 2010-04-22 00:07:06,355 INFO     GStreamer audiosink: gconfaudiosink
> 2010-04-22 00:07:06,358 INFO     GStreamer videosink: gconfvideosink
> Traceback (most recent call last):
>   File "/usr/bin/miro.real", line 266, in <module>
>     startapp()
>   File "/usr/bin/miro.real", line 223, in startapp
>     startup(props_to_set)
>   File "/usr/bin/miro.real", line 169, in startup
>     application.run_application(props_to_set)
>   File
> "/usr/lib64/python2.6/site-packages/miro/plat/frontends/widgets/application.py",
> line 96, in run_application
>     GtkX11Application().run(props_to_set)
>   File
> "/usr/lib64/python2.6/site-packages/miro/plat/frontends/widgets/application.py",
> line 115, in run
>     renderers.init_renderer()
>   File "/usr/lib64/python2.6/site-packages/miro/plat/renderers/__init__.py",
> line 77, in init_renderer
>     set_renderer("%srenderer" % r)
>   File "/usr/lib64/python2.6/site-packages/miro/plat/renderers/__init__.py",
> line 55, in set_renderer
>     app.video_renderer = module.VideoRenderer()
>   File
> "/usr/lib64/python2.6/site-packages/miro/plat/renderers/gstreamerrenderer.py",
> line 329, in __init__
>     self.textsink = gst.element_factory_make("textoverlay", "textsink")
> gst.ElementNotFoundError: textoverlay
> 

Comment 8 Siuchung Cheung (Clement) 2010-04-23 04:51:30 UTC
Alex Bennee: It says you don't have the textoverlay plugin. You need gst-plugins-pango. If you type "gst-inspect-0.10|grep textoverlay" in command prompt, you should see something. Reinstall if you don't see anything. Or just install all the plugins just to be safe.

Teng Wang: any error messages?

7v5w7go9ub0o:
> (What are your impressions? This new version of miro is getting rave reviews
> from a lot of windows guys.)
The one word summary would be "horrible". Maybe it's just me but I don't notice any difference at all except *LOTS* of bugs.

Now I lose keyboard intermittently in both miro guide and player. <http://bugzilla.pculture.org/show_bug.cgi?id=13122> And the XULRunner bug won't get addressed until 3.1. <http://bugzilla.pculture.org/show_bug.cgi?id=13169> <http://bugzilla.pculture.org/show_bug.cgi?id=13227>

They've made some very dangerous choices in this release IMHO. The worst is the removal of Xine in favor of gstreamer. Last time I tried switching Phonon to gstreamer, it totally b0rked my dragon player. No idea why recently people just keep diving into all these new frameworks that simply aren't ready. The plague of PulseAudio is also getting worse among many projects. Now my music playback always have a full second of delay at the beginning thanks to VirtualBox forcing me to use it. And I have no idea why Miro wants to manage three completely different backends instead of just using VLC on all three platforms.

Sorry for all the rant. But this is seriously two thumbs down for me. I'd personally recommend that people just wait it out until 3.1. This ebuild should be masked if it ever get to the portage tree.
Comment 9 Teng Wang 2010-04-24 01:48:32 UTC
(In reply to comment #8)
> Alex Bennee: It says you don't have the textoverlay plugin. You need
> gst-plugins-pango. If you type "gst-inspect-0.10|grep textoverlay" in command
> prompt, you should see something. Reinstall if you don't see anything. Or just
> install all the plugins just to be safe.
> 
> Teng Wang: any error messages?
Thank you. Actually I have only the same output as Alex and nothing more after that, miro never shows up.

But after installing gst-plugins-pango, miro shows up. So I think it does depend on this plugin. 

> 
> 7v5w7go9ub0o:
> > (What are your impressions? This new version of miro is getting rave reviews
> > from a lot of windows guys.)
> The one word summary would be "horrible". Maybe it's just me but I don't notice
> any difference at all except *LOTS* of bugs.
> 
> Now I lose keyboard intermittently in both miro guide and player.
> <http://bugzilla.pculture.org/show_bug.cgi?id=13122> And the XULRunner bug
> won't get addressed until 3.1.
> <http://bugzilla.pculture.org/show_bug.cgi?id=13169>
> <http://bugzilla.pculture.org/show_bug.cgi?id=13227>
> 
> They've made some very dangerous choices in this release IMHO. The worst is the
> removal of Xine in favor of gstreamer. Last time I tried switching Phonon to
> gstreamer, it totally b0rked my dragon player. No idea why recently people just
> keep diving into all these new frameworks that simply aren't ready. The plague
> of PulseAudio is also getting worse among many projects. Now my music playback
> always have a full second of delay at the beginning thanks to VirtualBox
> forcing me to use it. And I have no idea why Miro wants to manage three
> completely different backends instead of just using VLC on all three platforms.
> 
> Sorry for all the rant. But this is seriously two thumbs down for me. I'd
> personally recommend that people just wait it out until 3.1. This ebuild should
> be masked if it ever get to the portage tree.
> 

Comment 10 Alex Bennee 2010-04-24 05:50:08 UTC
(In reply to comment #9)
> (In reply to comment #8)
> > Alex Bennee: It says you don't have the textoverlay plugin. You need
> > gst-plugins-pango. If you type "gst-inspect-0.10|grep textoverlay" in command
> > prompt, you should see something. Reinstall if you don't see anything. Or just
> > install all the plugins just to be safe.
> > 
> > Teng Wang: any error messages?
> Thank you. Actually I have only the same output as Alex and nothing more after
> that, miro never shows up.
> 
> But after installing gst-plugins-pango, miro shows up. So I think it does
> depend on this plugin. 

Yep, problem solved with gst-plugins-pango. I suspect that means it should be added as a dependency (when gstreamer is detected?).
Comment 11 Alex Barbieri 2010-06-01 21:51:05 UTC
So they've released 3.0.2, and they've made quite a few changes to the linux version:
1) using webkit instead of xulrunner
2) fixed a lot of the gstreamer bugs people had found.

Blog post here: http://bluesock.org/~willg/blog/miro/miro_3.0.2_released.html

Any chance this will make things easier to use on Gentoo?
Comment 12 Siuchung Cheung (Clement) 2010-06-12 23:52:03 UTC
Created attachment 235133 [details]
miro-3.0.2.ebuild

Changes:
- Depends on webkit instead of xul
- Removed all XUL patches
- Removed all references to xine in ebuild; The option is not available in upstreams source anymore.
- Removed gstreamer USE flag; It's now compulsory in upstream sources
- Updated the "fix-debug" patch, which doesn't apply anymore
Comment 13 Siuchung Cheung (Clement) 2010-06-12 23:53:02 UTC
Created attachment 235135 [details, diff]
miro-3.0.2-fix-debug.patch

Minor update to the "fix-debug" patch
Comment 14 Siuchung Cheung (Clement) 2010-06-12 23:59:37 UTC
Wow. This time everything actually works out of the box. I'm impressed.

Oh forgot to mention that I also added the gst-plugins-pango to the deps as suggested. If it crashes on startup without it, it's no longer optional.

Please try the new ebuild. It really look ready for mass consumption this time.
Comment 15 Raphaël Vinot 2010-06-15 19:38:26 UTC
I couldn't watch any video until I install media-plugins/gst-plugins-faad. Is it possible to add it to the dep ? 

I have those flags on media-plugins/gst-plugins-meta : X a52 alsa dvd ffmpeg flac lame mad mpeg ogg pulseaudio taglib theora v4l2 vorbis xv

And those gst-plugins-* installed : 
media-libs/gst-plugins-bad
media-libs/gst-plugins-base
media-libs/gst-plugins-good
media-libs/gst-plugins-ugly
media-plugins/gst-plugins-meta
media-plugins/gst-plugins-a52dec
media-plugins/gst-plugins-alsa
media-plugins/gst-plugins-dvdread
media-plugins/gst-plugins-faad
media-plugins/gst-plugins-flac
media-plugins/gst-plugins-gconf
media-plugins/gst-plugins-jpeg
media-plugins/gst-plugins-lame
media-plugins/gst-plugins-mad
media-plugins/gst-plugins-mimic
media-plugins/gst-plugins-mpeg2dec
media-plugins/gst-plugins-ogg
media-plugins/gst-plugins-pango
media-plugins/gst-plugins-pulse
media-plugins/gst-plugins-resindvd
media-plugins/gst-plugins-speex
media-plugins/gst-plugins-taglib
media-plugins/gst-plugins-theora
media-plugins/gst-plugins-v4l
media-plugins/gst-plugins-v4l2
media-plugins/gst-plugins-vorbis
media-plugins/gst-plugins-x
media-plugins/gst-plugins-xvideo
media-plugins/gst-plugins-ffmpeg

Except this problem, miro works really good! Good work and thanks! 
Comment 16 Beetle B. 2010-06-18 06:07:57 UTC
I think more dependencies need to be added for gstreamer.

I had to install gst-plugins-good. That got me beyond one error, but led to another. So I just installed gst-plugins-meta. That hopefully has fixed it. I don't know, as Miro couldn't upgrade my database, so I told it to quit rather than continue.
Comment 17 Beetle B. 2010-07-02 04:53:15 UTC
The plugins in my previous comment were not sufficient. A lot of videos had no sound (particularly those downloaded from Youtube). I installed a bunch more gst plugins, and that did the trick. Don't know which one, though. Here are the additional ones I installed:

media-plugins/gst-plugins-faac-0.10.18
media-plugins/gst-plugins-faad-0.10.18
media-plugins/gst-plugins-flac-0.10.21
media-plugins/gst-plugins-lame-0.10.13
media-plugins/gst-plugins-musepack-0.10.18
media-plugins/gst-plugins-twolame-0.10.13
media-plugins/gst-plugins-wavpack-0.10.21
Comment 18 Trixtrax 2010-07-09 20:52:22 UTC
After adding the gst-plugins as recommended by Beetle B, Miro works as expected. I have been playing with it now for two days and have not seen any bugs nor have I experienced any crashes. Good work Miro team! It definitely does look ready for primetime. I'm hooked.
Comment 19 Janek Bevendorff 2010-07-10 21:13:26 UTC
Oh, wow! I've tinkered with my own ebuild which actually works but it's good to see that there's also one here.

You should remove dev-python/gtkmozembed-python from the dependencies list as it's not needed anymore.
Comment 20 Janek Bevendorff 2010-07-10 21:18:28 UTC
Oh, actually forget my last sentence, gtkmozembed-python is already removed. That was just a little Portage error here. No offense meant. ;)
Comment 21 Beetle B. 2010-07-10 21:47:18 UTC
<i>After adding the gst-plugins as recommended by Beetle B, Miro works as
expected.</i>

Yes, but it's quite possible that the plugins I listed have some extraneous ones that are not needed. Nor have I tested many video formats to ensure that some still aren't missing.

I'd suggest a bunch of people try them for a while.
Comment 22 Alex Domingo 2010-07-18 18:02:59 UTC
Created attachment 239283 [details]
Simplified ebuild for miro-3.0.2

I tried to simplify this ebuild and fix the issue with gst plugins. Please check and test it, I'm quite new to writing ebuilds and maybe I've made some errors :)

Changes with respect to previous ebuild:

- PYTHON_DEPEND="2:2.5" added to make miro depend at least on python-2.5 and not in python-3, as it's stated in miro docs.
- Explicit dependency with gtk+ and libX11 removed, they are implicit in pygtk.
- Dependency with pirex moved to cdepend because it's needed to compile miro.
- Dependency with pkgconfig removed because packages in "system" should not be explicitly included as a dependency in non-system ebuilds.

- gstreamer, gst-plugins-base and gst-plugins-good added as dependency. This packages include the main gstreamer plugins needed by miro to play the majority of video files in Internet. These include pango, playbin2 and open codecs.
- media-plugins/gst-plugins-meta added as a dependency with a warn for the user to check its USE flags for needed codecs.
- gst-plugins-faad and gst-plugins-xvid added as a dependency through respective USE flags because they are neither base nor good nor in the meta gst plugin.

- Additionally I removed the patches that remove the unittest option because that bug was rejected upstream and I think that it's better to allow the user to test and report bugs on miro.

- Message included informing the user that embedded players on MiroGuide will not work because support of adobe flash is disabled.

I hope it will be useful :)
Comment 23 Raphaël Vinot 2010-07-24 16:07:11 UTC
(In reply to comment #22)

I'm using your ebuild since a couple of days, it works well!

Thanks! 
Comment 24 Rajat Vig 2010-07-24 19:00:53 UTC
I've also used it on x86_64 and it's working well so far.

(In reply to comment #23)
> (In reply to comment #22)
> 
> I'm using your ebuild since a couple of days, it works well!
> 
> Thanks! 
> 
Comment 25 waynedpj 2010-07-25 17:38:22 UTC
(In reply to comment #22)
> Created an attachment (id=239283) [details]
> Simplified ebuild for miro-3.0.2
> 
> I tried to simplify this ebuild and fix the issue with gst plugins. Please
> check and test it, I'm quite new to writing ebuilds and maybe I've made some
> errors :)
> 
> Changes with respect to previous ebuild:
> 
> - PYTHON_DEPEND="2:2.5" added to make miro depend at least on python-2.5 and
> not in python-3, as it's stated in miro docs.
> - Explicit dependency with gtk+ and libX11 removed, they are implicit in pygtk.
> - Dependency with pirex moved to cdepend because it's needed to compile miro.
> - Dependency with pkgconfig removed because packages in "system" should not be
> explicitly included as a dependency in non-system ebuilds.
> 
> - gstreamer, gst-plugins-base and gst-plugins-good added as dependency. This
> packages include the main gstreamer plugins needed by miro to play the majority
> of video files in Internet. These include pango, playbin2 and open codecs.
> - media-plugins/gst-plugins-meta added as a dependency with a warn for the user
> to check its USE flags for needed codecs.
> - gst-plugins-faad and gst-plugins-xvid added as a dependency through
> respective USE flags because they are neither base nor good nor in the meta gst
> plugin.
> 
> - Additionally I removed the patches that remove the unittest option because
> that bug was rejected upstream and I think that it's better to allow the user
> to test and report bugs on miro.
> 
> - Message included informing the user that embedded players on MiroGuide will
> not work because support of adobe flash is disabled.
> 
> I hope it will be useful :)
> 

thanks for the ebuild.  for the record, this is the first time i have tried to use an ebuild file that i downloaded and installed locally outside of layman, so please bear with me.

  i installed the ebuild file in /usr/local/portage/media-video/miro , then generated a manifest, and was able to emerge the 3.0.2 version.  however, after installing all the dependencies, i get the following error:

>>> Emerging (1 of 1) media-video/miro-3.0.2 from unknown repo
 * miro-3.0.2.tar.gz RMD160 SHA1 SHA256 size ;-) ...                                                                                                                        [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                                        [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                                       [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                                      [ ok ]
 * CPV:  media-video/miro-3.0.2
 * REPO: 
 * USE:  aac amd64 elibc_glibc kernel_linux libnotify multilib userland_GNU xvid
>>> Unpacking source...
>>> Unpacking miro-3.0.2.tar.gz to /var/tmp/portage/media-video/miro-3.0.2/work
>>> Source unpacked in /var/tmp/portage/media-video/miro-3.0.2/work
>>> Preparing source in /var/tmp/portage/media-video/miro-3.0.2/work/miro-3.0.2/platform/gtk-x11 ...

 * Cannot find $EPATCH_SOURCE!  Value for $EPATCH_SOURCE is:
 * 
 *   /usr/local/portage/media-video/miro/files/miro-3.0.2-fix-debug.patch
 *   ( miro-3.0.2-fix-debug.patch )

 * ERROR: media-video/miro-3.0.2 failed:
 *   Cannot find $EPATCH_SOURCE!
 * 
 * Call stack:
 *     ebuild.sh, line   54:  Called src_prepare
 *   environment, line 5027:  Called epatch '/usr/local/portage/media-video/miro/files/miro-3.0.2-fix-debug.patch'
 *   environment, line 2029:  Called die
 * The specific snippet of code:
 *               die "Cannot find \$EPATCH_SOURCE!";
 * 
 * If you need support, post the output of 'emerge --info =media-video/miro-3.0.2',
 * the complete build log and the output of 'emerge -pqv =media-video/miro-3.0.2'.
 * This ebuild is from an overlay: '/usr/local/portage/'
 * The complete build log is located at '/var/log/portage/media-video:miro-3.0.2:20100725-173646.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-video/miro-3.0.2/temp/environment'.
 * S: '/var/tmp/portage/media-video/miro-3.0.2/work/miro-3.0.2/platform/gtk-x11'


again, i am very very new to ebuild files and syntax, but it seems i am missing some patch file.  i downloaded the file "miro-3.0.2-fix-debug.patch" and put it in the same directory as the ebuild, but still no luck.  if anyone has a suggestion, please let me know.

thanks again.

peace
Comment 26 Alex Domingo 2010-07-25 18:02:24 UTC
(In reply to comment #25)

I think that the problem is that the patch files should be placed in a folder called 'files' where the miro ebuild is. Something like this:

/usr/local/portage/media-video/miro/files/miro-3.0.2-fix-debug.patch


Thanks for the feedback :)
Comment 27 waynedpj 2010-07-25 18:10:51 UTC
(In reply to comment #26)
> (In reply to comment #25)
> 
> I think that the problem is that the patch files should be placed in a folder
> called 'files' where the miro ebuild is. Something like this:
> 
> /usr/local/portage/media-video/miro/files/miro-3.0.2-fix-debug.patch
> 
> 
> Thanks for the feedback :)
> 

thanks for the quick reply and sorry for the amateur hour mistake ;)  with that change and then rebuilding the manifest file, it compiles, installs, and so far runs great.  thanks for the ebuild again.

  any chance it can get into the main portage tree or an overlay?  do we need to vote for it or something?

peace, w
Comment 28 Beetle B. 2010-07-25 18:34:33 UTC
(In reply to comment #22)
> Created an attachment (id=239283) [details]
> Simplified ebuild for miro-3.0.2
> 
> I tried to simplify this ebuild and fix the issue with gst plugins. Please
> check and test it, I'm quite new to writing ebuilds and maybe I've made some
> errors :)

For those using this latest ebuild (Alex Domingo's), can you verify that it plays the sound of Youtube videos that were downloaded by Miro itself? It would be nice if you could try both high quality/def videos, and "regular" videos. 

Many people use Miro to subscribe to Youtube channels. So we should ensure that this works prior to letting it into the Portage tree. 
Comment 29 Alex Domingo 2010-07-25 19:20:25 UTC
(In reply to comment #28)

Currently all interaction between Miro and YouTube got broken during this week because YouTube changed the API. That's been reported and a release 3.0.3 of Miro with a fix should be released soon. We'd rather wait for it.

http://bugzilla.pculture.org/show_bug.cgi?id=13987
Comment 30 Raphaël Vinot 2010-07-26 21:45:05 UTC
I just found an other dep: media-plugins/gst-plugins-pango

Without it, miro is unable to start any (?) video (tested with the TED Talks and ZDF Nachrichten) and if miro is started in the console, it says : gst.ElementNotFoundError: textoverlay
Comment 31 Alex Domingo 2010-07-27 11:52:12 UTC
(In reply to comment #30)
> I just found an other dep: media-plugins/gst-plugins-pango
> 
> Without it, miro is unable to start any (?) video (tested with the TED Talks
> and ZDF Nachrichten) and if miro is started in the console, it says :
> gst.ElementNotFoundError: textoverlay
> 

Yes, you're right. I thought that pango plugin would be pulled by gst-plugins-base as the pango plugin belongs to it. Since this is not the case we can set the gstreamer dependencies of miro just in gst-plugins-meta and add explicitly the extra needed gst plugins (like pango).

Thanks
Comment 32 Alex Domingo 2010-07-27 12:09:37 UTC
Created attachment 240315 [details]
Updated ebuild for media-video/miro-3.0.3

Now Miro works again with Youtube videos :)

Additionaly, following the advice of Raphaël Vinot, I've been able to reduce the number of dependencies with gstreamer to just media-plugins/gst-plugins-meta, media-plugins/gst-plugins-pango and 3 codecs not included in the meta package by means of respective USE flags.

The removed dependencies media-libs/gstreamer, media-libs/gst-plugins-base and media-libs/gst-plugins-good will be pulled if necessary by gst-plugins-meta.

I've tested this a little and Miro 3.0.3 downloads youtube videos and they play and sound right. :)

Thanks
Comment 33 Christopher Smith 2010-08-05 15:02:22 UTC
3.0.3 doesn't work for me.  It starts up but crashes before I can do anything.  If I start it from the console, the last message I get before the crash is "Starting movie data update".
Comment 34 Christopher Smith 2010-08-06 22:23:01 UTC
My mistake.  It was an issue with my python installation.  Everything works as intended now.
Comment 35 A. Person 2010-09-14 19:08:27 UTC
Bittorrent downloads don't work in miro-3.0.3 if I have rb_libtorrent-0.15.1 installed.  It works great with rb_libtorrent-0.14.9-r1.
Comment 36 7v5w7go9ub0o 2010-10-22 00:26:57 UTC
New release: miro-3.5.tar.gz   

http://ftp.osuosl.org/pub/pculture.org/miro/src/
Comment 37 Beetle B. 2010-10-22 00:39:30 UTC
(In reply to comment #36)
> New release: miro-3.5.tar.gz   
> 
> http://ftp.osuosl.org/pub/pculture.org/miro/src/
> 

Thanks - a new bug has been submitted (342093). 
Comment 38 Tomáš Chvátal (RETIRED) gentoo-dev 2011-05-25 14:18:50 UTC

*** This bug has been marked as a duplicate of bug 342093 ***