Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 298004 Details for
Bug 327211
RFE: Totem should build both the xine and gstreamer backends
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Adds the required 'alternatives' commands (revised)
totem-2.23.0-alternatives.patch (text/plain), 3.13 KB, created by
Stewart Adam
on 2008-03-14 01:52:09 UTC
(
hide
)
Description:
Adds the required 'alternatives' commands (revised)
Filename:
MIME Type:
Creator:
Stewart Adam
Created:
2008-03-14 01:52:09 UTC
Size:
3.13 KB
patch
obsolete
>Index: totem-bin-backend-ondemand.sh >=================================================================== >RCS file: /cvs/extras/rpms/totem/devel/totem-bin-backend-ondemand.sh,v >retrieving revision 1.2 >diff -u -r1.2 totem-bin-backend-ondemand.sh >--- totem-bin-backend-ondemand.sh 5 Mar 2008 00:00:03 -0000 1.2 >+++ totem-bin-backend-ondemand.sh 14 Mar 2008 01:49:18 -0000 >@@ -28,9 +28,19 @@ > echo "*** Invalid backend name ***" > usage > fi >- >- # FIXME if someone can explain update-alternatives to me >- >+ _LIBDIR="$(rpm --eval '%{_libdir}')" >+ if [ -f $_LIBDIR/libbaconvideowidget-gstreamer.so.0.0.0 ];then >+ if [ -f $_LIBDIR/libbaconvideowidget-xine.so.0.0.0 ];then >+ # only if both files exist >+ /usr/sbin/alternatives --set totem-backend $_LIBDIR/libbaconvideowidget-$TOTEM_BACKEND.so.0.0.0 >+ else >+ echo -e 'Error: The xine backend was not found! Please check your totem installation.' >+ exit 1 >+ fi >+ else >+ echo -e 'Error: The gstreamer backend was not found! Please check your totem installation.' >+ exit 1 >+ fi > exit 0 > } > # end functions >@@ -64,4 +74,3 @@ > shift 3 > LD_PRELOAD=libgdk-x11-2.0.so.0:libbaconvideowidget-$TOTEM_BACKEND.so.0.0.0 exec $BIN "$@" > fi >- >Index: totem.spec >=================================================================== >RCS file: /cvs/extras/rpms/totem/devel/totem.spec,v >retrieving revision 1.179 >diff -u -r1.179 totem.spec >--- totem.spec 11 Mar 2008 19:07:06 -0000 1.179 >+++ totem.spec 14 Mar 2008 01:49:18 -0000 >@@ -259,9 +259,6 @@ > popd > %endif > >-# Restore the default backend >-ln -sf %{_libdir}/libbaconvideowidget-gstreamer.so.0.0.0 $RPM_BUILD_ROOT/%{_libdir}/libbaconvideowidget.so.0.0.0 >- > rm -f $RPM_BUILD_ROOT%{_libdir}/totem/plugins/*/*.{a,la} \ > $RPM_BUILD_ROOT%{_libdir}/mozilla/plugins/*.{a,la} \ > $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-2.0/*.{a,la} \ >@@ -288,9 +285,13 @@ > /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor > fi > >-%post gstreamer -p /sbin/ldconfig >+%post gstreamer >+/usr/sbin/alternatives --install %{_libdir}/libbaconvideowidget.so.0.0.0 totem-backend %{_libdir}/libbaconvideowidget-gstreamer.so.0.0.0 2 >+/sbin/ldconfig > >-%post xine -p /sbin/ldconfig >+%post xine >+/usr/sbin/alternatives --install %{_libdir}/libbaconvideowidget.so.0.0.0 totem-backend %{_libdir}/libbaconvideowidget-xine.so.0.0.0 1 >+/sbin/ldconfig > > %pre > if [ "$1" -gt 1 ]; then >@@ -313,7 +314,6 @@ > fi > > %postun >-/sbin/ldconfig > scrollkeeper-update -q > update-desktop-database -q > touch %{_datadir}/icons/hicolor >@@ -321,9 +321,14 @@ > /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor > fi > >-%postun gstreamer -p /sbin/ldconfig >+%postun gstreamer >+/usr/sbin/alternatives --remove totem-backend %{_libdir}/libbaconvideowidget-gstreamer.so.0.0.0 >+/sbin/ldconfig >+ >+%postun xine >+/usr/sbin/alternatives --remove totem-backend %{_libdir}/libbaconvideowidget-xine.so.0.0.0 >+/sbin/ldconfig > >-%postun xine -p /sbin/ldconfig > > %post mythtv > export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` >@@ -417,7 +422,6 @@ > %{_libdir}/totem/plugins/publish > > %files gstreamer >-%{_libdir}/libbaconvideowidget.so.0.0.0 > %{_libdir}/libbaconvideowidget-gstreamer.so.0.0.0 > > %if %{with_xine}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 327211
:
223871
|
223881
|
223891
|
226231
|
226241
|
226251
|
226281
|
233441
|
247201
|
247211
|
296650
|
296651
|
296652
|
296663
|
296927
|
297066
|
297070
|
297102
| 298004 |
298705