Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 316409 - media-video/totem-2.28.5-r* youtube use flag needs --enable-python
Summary: media-video/totem-2.28.5-r* youtube use flag needs --enable-python
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL: https://bugzilla.gnome.org/show_bug.c...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-20 18:52 UTC by .silent
Modified: 2011-06-05 12:55 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description .silent 2010-04-20 18:52:57 UTC
totem-2.28.5-r2 youtube plugin (youtube use flag) is not working without python use flag enabled

Reproducible: Always

Steps to Reproduce:
1. Compile totem-2.28.5-r2 with use flag youtube but without python
2. Run totem
3. Try to turn on youtube plugin

Actual Results:  
Can't load YouTube plugin
Comment 1 Pacho Ramos gentoo-dev 2010-04-20 19:33:11 UTC
And, what error do you get when running totem on a terminal and getting the failure?
Comment 2 .silent 2010-04-20 20:25:15 UTC
I forgot about it, sorry

/usr/lib/totem/plugins/youtube/libyoutube.so: undefined symbol: totem_cell_renderer_video_new
Comment 3 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-04-21 08:14:27 UTC
would be interesting to see where is this symbol defined. The youtube plugin has been reimplemented in full C in 2.28 so I doubt it really depends on python use flag.
Comment 4 Pacho Ramos gentoo-dev 2010-04-23 07:18:20 UTC
$ grep -r totem_cell_renderer_video_new *
bindings/python/totem.defs:(define-function totem_cell_renderer_video_new
bindings/python/totem.defs:  (c-name "totem_cell_renderer_video_new")
src/totem-cell-renderer-video.c: * totem_cell_renderer_video_new:
src/totem-cell-renderer-video.c:totem_cell_renderer_video_new (gboolean use_placeholder)
src/totem-cell-renderer-video.h:TotemCellRendererVideo *totem_cell_renderer_video_new (gboolean use_placeholder);
src/plugins/youtube/totem-youtube.c:	renderer = GTK_CELL_RENDERER (totem_cell_renderer_video_new (TRUE));
src/plugins/tracker/totem-tracker-widget.c:	renderer = totem_cell_renderer_video_new (TRUE);
src/plugins/mythtv/totem-mythtv.c:	renderer = totem_cell_renderer_video_new (TRUE);


Seems that it needs "--enable-python" to be passed :-/
Comment 5 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-04-23 08:45:09 UTC
> src/totem-cell-renderer-video.c: * totem_cell_renderer_video_new:
> src/totem-cell-renderer-video.c:totem_cell_renderer_video_new (gboolean use_placeholder)

it rather looks like an underlinking issue or something like that.
Comment 6 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-04-29 22:29:44 UTC
After checking the code, the problem is that the build system uses an intermediate library that is not installed. It's form is a static archive and the problem is that when USE="-python", there is nothing pulling the totem_cell_* symbols into the main binary and as such the code gets removed by gcc.

The result is that the code is not available to plugins anymore. It's a classic but I can't put my hands on how to fix this right now. Something about forcing the export of a list of symbols, ...

Making the intermediate library is real lib should also work since shared objects export all of their symbols.
Comment 7 Pacho Ramos gentoo-dev 2010-05-02 13:55:53 UTC
This is workarounded for now to allow Gnome 2.28 stabilization, once a fix is found, I will be happy to commit it
Comment 8 Pacho Ramos gentoo-dev 2011-03-06 11:31:15 UTC
As can be seen in upstream report, this will probably take a lot of time to be fixed... maybe we should simply force "--enable-python" until then with "youtube" USE flag, what do you think?
Comment 9 Pacho Ramos gentoo-dev 2011-04-14 18:17:39 UTC
(In reply to comment #8)
> As can be seen in upstream report, this will probably take a lot of time to be
> fixed... maybe we should simply force "--enable-python" until then with
> "youtube" USE flag, what do you think?

Will do this if nobody disagrees as upstream bug won't be solved in the near future (I think)
Comment 10 Pacho Ramos gentoo-dev 2011-06-05 12:55:02 UTC
+*totem-2.32.0-r2 (05 Jun 2011)
+
+  05 Jun 2011; Pacho Ramos <pacho@gentoo.org> +totem-2.32.0-r2.ebuild:
+  Try to handle a bit better bug #316409: youtube plugin needs --enable-python
+  to be passed due upstream bug #572713, we was workarounding this defaulting
+  to USE=+python, after this change, people will be able to set USE=-python to
+  skip python based plugins but python RDEPEND will still be pulled in by
+  'youtube' USE flag as it still needs it. Also add some comments about vala
+  plugins that will probably be enabled in totem-3.
+