You need to be logged in to post in the forums. If you do not have an account, please sign up first.

Go to last post

6. May 2010, 19:11:40

Martux

Posts: 213

(Linux/KDE4) - I don't want Gstreamer

I noticed that everything after 10.10 pulls in lot of gstreamer dependencies.
I don't care about html5 video support too much and don't want to have half of gnome (gstreamer) installed on my kde4/qt ONLY system. Is there any way to disable support for it or will phonon be supported or what???
I think that this should be users choice. I mean most Linux people are computer-minded enough to do it theirselves!
What do you think about this issue?
Discuss.

Are you happy with the forced gstreamer usage in 10.50?

Option Results Votes
yes result bar - $percentage % 38% 5
no result bar - $percentage % 0% 0
don't care result bar - $percentage % 23% 3
backend should be users choice result bar - $percentage % 38% 5
Total number of votes: 13

6. May 2010, 19:37:44

Frenzie

Posts: 15541

If half of Gnome is pulled in with Gstreamer then the dependencies of your distro should be fixed. See here and here.

But anyway, just download the tar.bz2 or the tar.gz to avoid the dependency issue?
The DnD Sanctuary — a safety net for My Opera's demise.

6. May 2010, 19:55:07

Martux

Posts: 213

Well, it's not "half of gnome" but only the gstreamer stuff:

[ebuild  N    ] media-libs/libdvdnav-4.1.3_p1168  109 kB
[ebuild  N    ] dev-libs/check-0.9.8  546 kB
[ebuild  N    ] media-libs/glitz-0.5.6  449 kB
[ebuild  N    ] media-libs/gstreamer-0.10.28  USE="nls -test" 3,092 kB
[ebuild  N    ] dev-libs/liboil-0.3.17  USE="examples -doc -test" 892 kB
[ebuild  N    ] media-libs/gst-plugins-base-0.10.28  USE="nls -debug" 2,289 kB
[ebuild  N    ] media-plugins/gst-plugins-mad-0.10.13  994 kB
[ebuild  N    ] media-libs/gst-plugins-good-0.10.21  USE="-debug" 2,614 kB
[ebuild  N    ] media-libs/gst-plugins-ugly-0.10.13  USE="-debug" 0 kB
[ebuild  N    ] media-plugins/gst-plugins-xvideo-0.10.28  0 kB
[ebuild  N    ] media-plugins/gst-plugins-theora-0.10.28  0 kB
[ebuild  N    ] media-plugins/gst-plugins-lame-0.10.13  0 kB
[ebuild  N    ] media-plugins/gst-plugins-a52dec-0.10.13  0 kB
[ebuild  N    ] media-plugins/gst-plugins-x-0.10.28  0 kB
[ebuild  N    ] media-plugins/gst-plugins-ogg-0.10.28  0 kB
[ebuild  N    ] media-plugins/gst-plugins-alsa-0.10.28  0 kB
[ebuild  N    ] media-plugins/gst-plugins-mpeg2dec-0.10.13  0 kB
[ebuild  N    ] media-plugins/gst-plugins-dvdread-0.10.13  0 kB
[ebuild  N    ] media-plugins/gst-plugins-vorbis-0.10.28  0 kB
[ebuild  N    ] media-plugins/gst-plugins-ffmpeg-0.10.9  3,233 kB
[ebuild  N    ] media-plugins/gst-plugins-flac-0.10.21  0 kB
[ebuild  N    ] media-plugins/gst-plugins-resindvd-0.10.18  2,958 kB
[ebuild  N    ] media-plugins/gst-plugins-meta-0.10-r4

I am on gentoo here and don't want to bypass the packet manager by installing opera myself.
It would be lovely to just being able to disable this.
Thanks for the link to ruarios blog. Founf interesting answerrs there. I find it a bit saddening that the questions for other backends are plaily answered "no" instead of being explained...

7. May 2010, 07:25:12

Hades32

What I use:

Posts: 1917

There isn't much to explain. Supporting different backends is simply for too much work.
It's as easy as this.

But maybe you can convince someone to build you a non-video Opera package. But I don't know if Opera will start without those dependencies...
Using Windows 7 64Bit SP1 and of course Opera
(If nothing else stated the most current weekly) on a nice Dell Studio XPS 16!

7. May 2010, 09:01:52

Moderator

sgunhouse

Volunteer

Posts: 66755

Oh, Opera will start fine. But even so, it's silly for your system to automatically install all the optional stuff for gstreamer. Opera certainly has no use for the DVD-related plugins.

7. May 2010, 10:46:16

Martux

Posts: 213

Originally posted by sgunhouse:

Oh, Opera will start fine. But even so, it's silly for your system to automatically install all the optional stuff for gstreamer. Opera certainly has no use for the DVD-related plugins.



Ah yeah, thanks. I think this is regulated via gentoos Use-Flags within this package:
 media-plugins/gst-plugins-meta-0.10-r4  USE="X a52 alsa dvd ffmpeg flac lame mad mpeg ogg theora vorbis xv -dvb -esd -mythtv -oss -pulseaudio -taglib"

Which should I use for Opera?

7. May 2010, 12:34:59

Frenzie

Posts: 15541

I imagine ogg, theora, vorbis and whichever output framework you use should probably suffice?
The DnD Sanctuary — a safety net for My Opera's demise.

8. May 2010, 07:31:51

arghwashier

Posts: 1333

Originally posted by Martux:

I noticed that everything after 10.10 pulls in lot of gstreamer dependencies.
I don't care about html5 video support too much and don't want to have half of gnome (gstreamer) installed on my kde4/qt ONLY system. Is there any way to disable support for it or will phonon be supported or what???
I think that this should be users choice. I mean most Linux people are computer-minded enough to do it theirselves!
What do you think about this issue?
Discuss.



Gstreamer will be a required dependency for KDE4.5 anyway (xine backend for phonon will no longer be supported in favor for gstreamer backend)



8. May 2010, 12:11:39

Cyker

Posts: 69

Hello fellow Gentoo user! bigsmile

Opera doesn't *need* gstreamer; It is just because of the way the Gentoo ebuild has been made. They may change that once the ebuild goes stable (At the moment it's in the ~unstable branch).
If you don't like it, the best thing to do is file a bug at bugs.gentoo.org with a request to make the gstreamer stuff an optional dependency.

Alternatively, you could set up an overlay on your system. Basic steps would be:
1) mkdir -p /usr/local/portage/www-client/opera && cd /usr/local/portage/www-client/opera
2) cp -R /usr/portage/www-client/opera .
3) Copy the attached file into the above local (/usr/local/portage) folder and overwrite the existing one (Do NOT overwrite the one in /usr/portage!!)
4) ebuild opera-10.53_pre6330.ebuild digest
5) echo "PORTDIR_OVERLAY=\"/usr/local/portage\" >> /etc/make.conf
6) Now, when you "emerge -av opera", it should* pick up the new ebuild and install opera without pulling in everything and the kitchen sink! bigsmile


*Assuming I didn't forget a step...


Edit: Bah, can't seem to attach the file... nevermind then, here it is:
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-client/opera/opera-10.53_pre6330.ebuild,v 1.1 2010/04/30 16:35:42 jer Exp $

EAPI="2"

OPREFIX="/usr/lib"

inherit eutils

DESCRIPTION="A standards-compliant graphical Web browser"
HOMEPAGE="http://www.opera.com/"

SLOT="0"
LICENSE="OPERA-10.53 LGPL-2 LGPL-3"
KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd"

RESTRICT="mirror test"

QA_DT_HASH="${OPREFIX}/${PN}/.*"
QA_PRESTRIPPED="${OPREFIX}/${PN}/.*"
IUSE="elibc_FreeBSD"

MY_LINGUAS="
        be bg cs da de el en-GB es-ES es-LA et fi fr fr-CA fy hi hr hu id it ja ka
        ko lt mk nb nl nn pl pt pt-BR ro ru sk sr sv ta te tr uk vi zh-CN zh-HK
        zh-TW
"

for MY_LINGUA in ${MY_LINGUAS}; do
        IUSE="${IUSE} linguas_${MY_LINGUA/-/_}"
done

O_U="http://snapshot.opera.com/unix/snapshot-${PV/*_pre}/"
O_P="${P/_pre/-}"

SRC_URI="
        amd64? ( ${O_U}${O_P}.x86_64.linux.tar.bz2 )
        ppc? ( ${O_U}${O_P}.ppc.linux.tar.bz2 )
        x86? ( ${O_U}${O_P}.i386.linux.tar.bz2 )
        x86-fbsd? ( ${O_U}${O_P}.i386.freebsd.tar.bz2 )
"


DEPEND=">=sys-apps/sed-4"

RDEPEND="
        =x11-libs/gtk+-2*
        dev-libs/atk
        dev-libs/expat
        dev-libs/glib
        media-libs/fontconfig
        media-libs/freetype
        media-libs/libpng
        sys-apps/util-linux
        sys-libs/zlib
        x11-libs/libICE
        x11-libs/libSM
        x11-libs/libX11
        x11-libs/libXcursor
        x11-libs/libXext
        x11-libs/libXi
        x11-libs/libXmu
        x11-libs/libXrandr
        x11-libs/libXt
        "
#CUTCUTCUT don't need this crap! Old Opera didn't!
#       media-libs/glitz
#       media-plugins/gst-plugins-meta
#       virtual/opengl
#       x11-libs/cairo
#       x11-libs/libXau
#       x11-libs/libXcomposite
#       x11-libs/libXdamage
#       x11-libs/libXdmcp
#       x11-libs/libXfixes
#       x11-libs/libXrender
#       x11-libs/libxcb
#       x11-libs/pango
#       x11-libs/pixman
#       x11-libs/xcb-util

opera_linguas() {
        # Remove unwanted LINGUAS:
        local LINGUA
        local LNGDIR="${D}usr/share/${PN}/locale"
        einfo "Keeping these locales: ${LINGUAS}."
        for LINGUA in ${MY_LINGUAS}; do
                if ! use linguas_${LINGUA/-/_}; then
                        LINGUA=$(find "${LNGDIR}" -maxdepth 1 -type d -iname ${LINGUA/_/-})
                        rm -r "${LINGUA}"
                fi
        done
}

pkg_setup() {
        echo -e \
                " ${GOOD}****************************************************${NORMAL}"
        elog "If you seek support, please file a bug report at"
        elog "https://bugs.gentoo.org and post the output of"
        elog " \`emerge --info =${CATEGORY}/${P}'"
        echo -e \
                " ${GOOD}****************************************************${NORMAL}"
}

src_unpack() {
        unpack ${A}
        if [[ ! -d ${S} ]]; then
                cd "${WORKDIR}"/${PN}* || die "failed to enter work directory"
                S="$(pwd)"
                einfo "Setting WORKDIR to ${S}"
        fi
}

src_install() {
        # Remove "license directory" (bug #315473)
        rm -rf "share/doc/opera"

        # We install into usr instead of opt as Opera does not support the latter
        dodir /usr
        mv lib/ share/ "${D}"/usr/ || die "mv lib/ share/ failed"

        # Unzip the man pages before sedding
        gunzip "${D}"/usr/share/man/man1/* || die "gunzip failed"

        # Replace PREFIX and SUFFIX in various files
        sed -i \
                -e "s:@@{PREFIX}:/usr:g" \
                -e "s:@@{SUFFIX}::g" \
                -e "s:@@{_SUFFIX}::g" \
                -e "s:@@{USUFFIX}::g" \
                "${D}"/usr/share/mime/packages/opera-widget.xml \
                "${D}"/usr/share/man/man1/* \
                "${D}"/usr/share/applications/opera-browser.desktop \
                "${D}"/usr/share/applications/opera-widget-manager.desktop || die "sed failed"

        # Install startup script
        dobin ${PN}-widget-manager "${FILESDIR}"/opera || die "dobin failed"

        # Stop revdep-rebuild from checking opera binaries
        dodir /etc/revdep-rebuild
        echo "SEARCH_DIRS_MASK=\"${OPREFIX}/${PN}\"" > "${D}"/etc/revdep-rebuild/90opera

        # Change libz.so.3 to libz.so.1 for gentoo/freebsd
        if use elibc_FreeBSD; then
                scanelf -qR -N libz.so.3 -F "#N" "${D}"${OPREFIX}/${PN}/ | \
                while read i; do
                        if [[ $(strings "$i" | fgrep -c libz.so.3) -ne 1 ]];
                        then
                                export SANITY_CHECK_LIBZ_FAILED=1
                                break
                        fi
                        sed -i -e 's/libz\.so\.3/libz.so.1/g' "$i"
                done
                [[ "$SANITY_CHECK_LIBZ_FAILED" = "1" ]] && die "failed to change libz.so.3 to libz.so.1"
        fi

        [[ -z MY_LINGUAS ]] || opera_linguas
}

pkg_postinst() {
        elog "To change the UI language, choose [Tools] -> [Preferences], open the"
        elog "[General] tab, click on [Details...] then [Choose...] and point the"
        elog "file chooser at /usr/share/opera/locale/, then enter the"
        elog "directory for the language you want and [Open] the .lng file."

        if use elibc_FreeBSD; then
                elog
                elog "To improve shared memory usage please set:"
                elog "$ sysctl kern.ipc.shm_allow_removed=1"
        fi
}

8. May 2010, 14:44:10

Martux

Posts: 213

Hey!
Thanks for all the infos.
It is very interesting that gstreamer will be in KDE-4.5!
Cyker, thanks for your effort, but as gstreamer will be part of kde, it is quite useful to get used to it.
I will emerge latest beta *with* gstreamer now and play around a little bit.
Maybe I will get rid of xinelib then smile

8. May 2010, 15:51:13

Martux

Posts: 213

Hi folks!

I must admit, I was very, very wrong :clown:
Just installed the recent opera-10.53_pre6330 and must say I absolutely LOVE 'IT!
It's fast, beautiful an everything.
It's now time for my system to switch to the gstreamer audio output altogether.
Thanks a lot, y'all!

8. May 2010, 16:19:06

ph030

Banned user

This is one of the reasons I finally ditched Opera. For now I'm using Chromium, not that I like it, but at least it uses the already installed ffmpeg. Opera works without gstreamer, it whines a little at startup and of course HTML5-stuff does not work, but for me there's no way to make me install gstreamer in the forseeable future.

8. May 2010, 16:24:59

Martux

Posts: 213

Hi!
Half the gentoo forum is here smile
For me there is no way I gonna ditch Opera. I am using it for 13 years or so and find it too convinient to drop.
I also use it for my E-Mail and have highly customised search engines.
Well, gstreamer seems to work fine with phonon/amarok too, so I see no problem in using it instead of xine-lib.

8. May 2010, 17:22:32

ph030

Banned user

Half the gentoo forum is here

Jep, of course.

Well, gstreamer seems to work fine with phonon/amarok too, so I see no problem in using it instead of xine-lib.

Glad it's ok for you, for me it's not sad

8. May 2010, 20:23:09

Cyker

Posts: 69

Well it's all a matter of taste.
But IMHO the more different browsers the healthier the web smile

I'll still be friends as long as you're not using IE bigsmile


....



(Go Gentoo!! bigsmile yes )

Forums » Opera for Windows/Mac/Linux » Beta testing (including snapshots and previews)