Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Opera - static or shared?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Chewi
Developer
Developer


Joined: 01 Sep 2003
Posts: 886
Location: Edinburgh, Scotland

PostPosted: Thu Feb 05, 2004 12:59 am    Post subject: Opera - static or shared? Reply with quote

I find that Opera isn't as fast as I think it should be and I've been wondering about why this is. And then I recalled that they offer it in both static and shared forms. So I checked this out and us Gentoo peeps are using the static version. According to the ebuild this is for simplicity. Going to Help -> About tells me that it's using Qt 3.0.5. We're on Qt 3.2.3 now and this will have been compiled optimally. Is it likely that using the shared version will make a signifcant speed difference? I know this may raise issues for some people. Some people may not want to install Qt. There is a USE flag for Qt so perhaps this could be used to decide between the static and shared versions.

Discuss.
Back to top
View user's profile Send private message
Nu-Bee_4VR
Apprentice
Apprentice


Joined: 12 Dec 2003
Posts: 245

PostPosted: Thu Feb 05, 2004 1:05 am    Post subject: Re: Opera - static or shared? Reply with quote

Chewi wrote:
I find that Opera isn't as fast as I think it should be and I've been wondering about why this is. And then I recalled that they offer it in both static and shared forms. So I checked this out and us Gentoo peeps are using the static version. According to the ebuild this is for simplicity. Going to Help -> About tells me that it's using Qt 3.0.5. We're on Qt 3.2.3 now and this will have been compiled optimally. Is it likely that using the shared version will make a signifcant speed difference? I know this may raise issues for some people. Some people may not want to install Qt. There is a USE flag for Qt so perhaps this could be used to decide between the static and shared versions.

Discuss.


Code:
# USE="-static" emerge opera


...should do it I believe.
_________________
-Joseph-

In the majority of any Democrat/Republican or Liberal/Conservative Debates on TV, pay close attention to how much MORE often the Liberal/Democrat butts in and rudely talks 'over' the Conservative/Republican.

Think about it...
Back to top
View user's profile Send private message
Bonkie
Guru
Guru


Joined: 28 Oct 2002
Posts: 501
Location: Antwerpen, Belgium

PostPosted: Thu Feb 05, 2004 1:21 am    Post subject: Reply with quote

Really ? static isn't listed as a USE var when doing emerge -pv.

I tend to just edit the ebuild and change version to install to shared-gcc-3.3 or whatever it should be. And oh yeah, shared is faster :)
_________________
"I would say we have a 50% chance of survival, but I consider myself an optimist so I'll give us 50,5% ..."
~ Arthur C. Clarke [Physics PHD,SF Writer], when asked about the chances of the human race's survival
Back to top
View user's profile Send private message
EugeneTSWong
n00b
n00b


Joined: 18 Sep 2003
Posts: 45

PostPosted: Thu Feb 05, 2004 3:12 am    Post subject: Reply with quote

Bonkie wrote:
Really ? static isn't listed as a USE var when doing emerge -pv.

I tend to just edit the ebuild and change version to install to shared-gcc-3.3 or whatever it should be. And oh yeah, shared is faster :)

How do you install to shared-gcc-3.3 or whatever?
_________________
Sincerely, & with thanks,
Eugene T.S. Wong
Back to top
View user's profile Send private message
Chewi
Developer
Developer


Joined: 01 Sep 2003
Posts: 886
Location: Edinburgh, Scotland

PostPosted: Thu Feb 05, 2004 10:41 am    Post subject: Reply with quote

I don't have static turned on and Bonkie is right. I guess static may be a better USE flag to decide it with. Anymore opinions? Perhaps I'll modify the ebuild later, submit it to bugzilla and see what they think.
Back to top
View user's profile Send private message
()
l33t
l33t


Joined: 25 Nov 2002
Posts: 610

PostPosted: Thu Feb 05, 2004 11:04 am    Post subject: Reply with quote

I always modify the ebuild to download shared :] I mean, why use static in the first place, when you typically have a newer version of Qt installed anyway (Opera static uses something like 3.05). Fonts tend to look nicer with shared, probably because of the newer version of Qt.
Back to top
View user's profile Send private message
nevynxxx
Veteran
Veteran


Joined: 12 Nov 2003
Posts: 1123
Location: Manchester - UK

PostPosted: Thu Feb 05, 2004 11:47 am    Post subject: Reply with quote

Could someone please post a modified ebuild(or link) for the shared version, it would be helpfull to see.

-Anthony
_________________
My Public Key

Wanted: Instructor in the art of Bowyery
Back to top
View user's profile Send private message
gmichels
Guru
Guru


Joined: 20 Jun 2003
Posts: 480
Location: Brazil

PostPosted: Thu Feb 05, 2004 12:14 pm    Post subject: Reply with quote

I agree with the static use flag to decide the version.
Back to top
View user's profile Send private message
Bonkie
Guru
Guru


Joined: 28 Oct 2002
Posts: 501
Location: Antwerpen, Belgium

PostPosted: Thu Feb 05, 2004 1:45 pm    Post subject: Reply with quote

@newynxxx:

Edit the ebuild, /usr/portage/net-www/opera/opera-7.xx.ebuild with xx your version of course, and change these lines:

Code:
OPERATYPE="1-static-qt"
SRC_URI="x86? ( ftp://ftp.opera.com/pub/opera/linux/723/final/en/i386/static/${PN}-${OPERAVER}.${OPERATYPE}.i386-en.tar.bz2 )
    ppc? ( ftp://ftp.opera.com/pub/opera/linux/723/final/en/ppc/static/${PN}-${OPERAVER}.${OPERATYPE}.ppc-en.tar.bz2 )
    sparc? ( ftp://ftp.opera.com/pub/opera/linux/723/final/en/sparc/static/${PN}-${OPERAVER}.${OPERATYPE}.sparc-en.tar.bz2 )"


to

Code:

OPERATYPE="4-shared-qt"
SRC_URI="x86? ( ftp://ftp.opera.com/pub/opera/linux/723/final/en/i386/shared/gcc-3.2/${PN}-${OPERAVER}.${OPERATYPE}.i386-en.tar.bz2 )
    ppc? ( ftp://ftp.opera.com/pub/opera/linux/723/final/en/ppc/shared/gcc-3.2/${PN}-${OPERAVER}.${OPERATYPE}.ppc-en.tar.bz2 )
    sparc? ( ftp://ftp.opera.com/pub/opera/linux/723/final/en/sparc/shared/gcc-3.2/${PN}-${OPERAVER}.${OPERATYPE}.sparc-en.tar.bz2 )"


The code works perfect for 7.23 but it can differ for other versions so check the url and files first. If you want to link against another gcc version, you'll have to change that too of course.

You'll have to run ebuild file digest and then you can emerge it.

Dont forget that an "emerge sync" will overwrite this file so if you want to keep it, you might want to place in your portage overlay dir :wink:
_________________
"I would say we have a 50% chance of survival, but I consider myself an optimist so I'll give us 50,5% ..."
~ Arthur C. Clarke [Physics PHD,SF Writer], when asked about the chances of the human race's survival
Back to top
View user's profile Send private message
nevynxxx
Veteran
Veteran


Joined: 12 Nov 2003
Posts: 1123
Location: Manchester - UK

PostPosted: Thu Feb 05, 2004 1:50 pm    Post subject: Reply with quote

@Bonkie Brilliant thanks, wont coping the /usr/portage/net-www/opera/opera-7.xx.ebuild to /usr/local/portage/net-www/opera/opera-7.xx.ebuild then changing it do the trick of not getting it wiped out by emerge sync?
_________________
My Public Key

Wanted: Instructor in the art of Bowyery
Back to top
View user's profile Send private message
Bonkie
Guru
Guru


Joined: 28 Oct 2002
Posts: 501
Location: Antwerpen, Belgium

PostPosted: Thu Feb 05, 2004 3:14 pm    Post subject: Reply with quote

yes, that is your default portage overlay directory :D

But some prefer it to keep it somewhere else, that's why I mention it that way :wink:
_________________
"I would say we have a 50% chance of survival, but I consider myself an optimist so I'll give us 50,5% ..."
~ Arthur C. Clarke [Physics PHD,SF Writer], when asked about the chances of the human race's survival
Back to top
View user's profile Send private message
Chewi
Developer
Developer


Joined: 01 Sep 2003
Posts: 886
Location: Edinburgh, Scotland

PostPosted: Thu Feb 05, 2004 4:07 pm    Post subject: Reply with quote

Okay I'm making an ebuild that does both right now!
Back to top
View user's profile Send private message
nevynxxx
Veteran
Veteran


Joined: 12 Nov 2003
Posts: 1123
Location: Manchester - UK

PostPosted: Thu Feb 05, 2004 4:25 pm    Post subject: Reply with quote

Bonkie wrote:
yes, that is your default portage overlay directory :D

But some prefer it to keep it somewhere else, that's why I mention it that way :wink:


It is yes, it does help if I read to the end of a sentance before replying! \me slaps his own hands. Out of interest do you re digest the ebuild after the modification? I have done ready for when I get home tonight to play but I just wondered if it was needed.
_________________
My Public Key

Wanted: Instructor in the art of Bowyery
Back to top
View user's profile Send private message
Chewi
Developer
Developer


Joined: 01 Sep 2003
Posts: 886
Location: Edinburgh, Scotland

PostPosted: Thu Feb 05, 2004 4:37 pm    Post subject: Reply with quote

Okay I've made an ebuild that uses the static USE flag! I haven't dabbled much with ebuilds before so tell me if this looks right. It works for me but I'm not so sure about PPC/Sparc users. If it's okay then I'll go and stick it on Bugzilla. And it does seem that little bit snappier now! The default fonts actually look nice too.

Code:
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /home/cvsroot/gentoo-x86/net-www/opera/opera-7.23.ebuild,v 1.3 2004/01/11 13:48:42 lanius Exp $

IUSE="gnome kde static"

OPERAVER="7.23-20031119"

S=${WORKDIR}/${A/.tar.bz2/}
DESCRIPTION="Opera web browser."
HOMEPAGE="http://www.opera.com/linux/"
SRC_URI="x86? ( static? ( ftp://ftp.opera.com/pub/opera/linux/723/final/en/i386/static/${PN}-${OPERAVER}.1-static-qt.i386-en.tar.bz2 ) )
   ppc? ( static? ( ftp://ftp.opera.com/pub/opera/linux/723/final/en/ppc/static/${PN}-${OPERAVER}.1-static-qt.ppc-en.tar.bz2 ) )
   sparc? ( static? ( ftp://ftp.opera.com/pub/opera/linux/723/final/en/sparc/static/${PN}-${OPERAVER}.1-static-qt.sparc-en.tar.bz2 ) )
   x86? ( !static? ( ftp://ftp.opera.com/pub/opera/linux/723/final/en/i386/shared/${PN}-${OPERAVER}.5-shared-qt.i386-en.tar.bz2 ) )
   ppc? ( !static? ( ftp://ftp.opera.com/pub/opera/linux/723/final/en/ppc/shared/gcc-2.95/${PN}-${OPERAVER}.2-shared-qt.ppc-en.tar.bz2 ) )
   sparc? ( !static? ( ftp://ftp.opera.com/pub/opera/linux/723/final/en/sparc/shared/gcc-2.95/${PN}-${OPERAVER}.2-shared-qt.sparc-en.tar.bz2 ) )"

SLOT="0"
LICENSE="OPERA"
KEYWORDS="x86 ppc sparc"

# Dependencies may be augmented later (see below).
DEPEND=">=sys-apps/sed-4"

RDEPEND="virtual/x11
   >=media-libs/fontconfig-2.1.94-r1
   media-libs/libexif
   x11-libs/openmotif"

src_unpack() {
   unpack ${A}
   cd ${S}
   sed -i -e "s:/etc:${D}/etc:g" \
          -e "s:config_dir=\"/etc\":config_dir=\"${D}/etc/\":g" \
          -e "s:read install_config:install_config=yes:" \
          -e "s:/opt/kde2:${D}/usr/kde/2:g" \
          -e "s:/opt/kde2:${D}/usr/kde/2:g" \
          -e "s:/usr/share/applnk:${D}/usr/share/applnk:g" \
          -e "s:/usr/share/pixmaps:${D}/usr/share/pixmaps:g" \
          -e "s:/usr/share/icons:${D}/usr/share/icons:g" \
          -e "s:/etc/X11:${D}/etc/X11:g" \
          -e "s:/usr/share/gnome:${D}/usr/share/gnome:g" \
          -e 's:#\(LD_PRELOAD=.*libawt.so\):\1:' \
          -e 's:#\(OPERA_FORCE_JAVA_ENABLED=\):\1:' \
          -e 's:#\(export LD_PRELOAD OPERA_FORCE_JAVA_ENABLED\):\1:' \
         -e 's:chop "${DESTDIR}" "str_localdirexec"::' \
         -e 's:chop "${DESTDIR}" "str_localdirshare"::' \
         -e 's:chop "${DESTDIR}" "str_localdirplugin"::' \
         -e 's:read str_answer:return 0:' \
          install.sh || die
}

src_compile() {
   true
}

src_install() {
   # Prepare installation directories for Opera's installer script.
   dodir /etc
   if [ "`use kde`" ]
   then
      # Install stuff for KDE2, and then simply copy it over
      # into the KDE3 directories.
      dodir /usr/kde/2/share/icons/{locolor,hicolor}/{16x16,22x22,32x32,48x48}/apps
      dodir /usr/kde/2/share/applnk/Internet
   fi
   if [ "`use gnome`" ]
   then
      dodir /usr/share/gnome/pixmaps
      dodir /usr/share/gnome/apps/Internet
   fi

   # Opera's native installer.
   ./install.sh --prefix="${D}"/opt/opera || die
   if [ "`use kde`" ]
   then
      cp -R ${D}/usr/kde/2 ${D}/usr/kde/3
   fi
   rm ${D}/opt/opera/share/doc/opera/help
   dosym /opt/share/doc/opera/help /opt/opera/share/opera/help

   dosed /opt/opera/bin/opera
   dosed /opt/opera/share/opera/java/opera.policy

   # Install the icons
   insinto /usr/share/icons /etc/X11/wmconfig /etc/X11/applnk/Internet \
      /usr/share/pixmaps
   doins images/opera.xpm

   # Install a symlink /usr/bin/opera
   dodir /usr/bin
   dosym /opt/opera/bin/opera /usr/bin/opera
}

pkg_postinst() {
   einfo "For localized language files take a look at:"
   einfo "http://www.opera.com/download/languagefiles/index.dml?platform=linux"
}
Back to top
View user's profile Send private message
Bonkie
Guru
Guru


Joined: 28 Oct 2002
Posts: 501
Location: Antwerpen, Belgium

PostPosted: Thu Feb 05, 2004 5:50 pm    Post subject: Reply with quote

Looks good
Except i tend to use the one linked against gcc-3.2. Cant really recall what was different about 5-shared-qt ...

ill test the ebuild as soon as i can

@newynxx: yes i redigest, cause you modified the ebuild to download a different file then before, so it should complain about it if you dont digest actually
_________________
"I would say we have a 50% chance of survival, but I consider myself an optimist so I'll give us 50,5% ..."
~ Arthur C. Clarke [Physics PHD,SF Writer], when asked about the chances of the human race's survival
Back to top
View user's profile Send private message
Chewi
Developer
Developer


Joined: 01 Sep 2003
Posts: 886
Location: Edinburgh, Scotland

PostPosted: Thu Feb 05, 2004 6:01 pm    Post subject: Reply with quote

I was wondering about that so I checked what versions get downloaded from the download page. The Red Het 9 download links to 5-shared-qt and the Red Hat 8 / SuSE 8.1 / Mandrake 9 download links to 4-shared-qt. We're running the latest stuff so I guess we want 5-shared-qt? Unfortunately the PPC and Sparc versions have only been linked against gcc-2.95.
Back to top
View user's profile Send private message
mirko_3
l33t
l33t


Joined: 02 Nov 2003
Posts: 605
Location: Birreria

PostPosted: Thu Feb 05, 2004 7:03 pm    Post subject: Reply with quote

I think we should use 5-shared-qt, as it is for gcc 3.2.2, and I (and most gentoo users, I think) am on 3.2.3... also, I've just edited the 7.50-alpha (which I've been using for some time, and have to say is great!), and you only have to change 1-static-qt to 5-static-qt, you can leave source addresses the same... now I'll close opera to see if it really is faster and looks better :-D
Then I might try emerge qt-3.3.0 with the icc flag, just to get things really fast :twisted:
_________________
Non fa male! Non fa male!
Back to top
View user's profile Send private message
Chewi
Developer
Developer


Joined: 01 Sep 2003
Posts: 886
Location: Edinburgh, Scotland

PostPosted: Thu Feb 05, 2004 7:08 pm    Post subject: Reply with quote

I tried that Alpha version and thought it was bloody awful but each to their own. At least it was only an Alpha version.
Back to top
View user's profile Send private message
mirko_3
l33t
l33t


Joined: 02 Nov 2003
Posts: 605
Location: Birreria

PostPosted: Thu Feb 05, 2004 7:22 pm    Post subject: Reply with quote

there is a new flag in the alpha ebuild, if you don't want to install IRC/Mail clients....
if you customise opera 7.50 (particularly that new, obtrusive bar) it's really neat... and the rss feeds are cool, if not particularly useful...
oh, and I think it actually is a bit faster, loading especially... but it might just be that I was hoping so hard for a noticeable improvement that I just made it up...:-D
[OT]
Also, one thing I notice most people don't do: skin opera!! Right click on a toolbar and 'get skins'; I'm using Breeze II and love it, though there are other cool ones like Tob's Theatre..
[/OT]
_________________
Non fa male! Non fa male!
Back to top
View user's profile Send private message
Chewi
Developer
Developer


Joined: 01 Sep 2003
Posts: 886
Location: Edinburgh, Scotland

PostPosted: Thu Feb 05, 2004 8:14 pm    Post subject: Reply with quote

Yeah mine's skinned, no worries.

Right well I'm getting impatient so I'm gonna toddle off to Bugzilla right now. :D
Back to top
View user's profile Send private message
Chewi
Developer
Developer


Joined: 01 Sep 2003
Posts: 886
Location: Edinburgh, Scotland

PostPosted: Thu Feb 05, 2004 8:31 pm    Post subject: Reply with quote

"Bug" reported here.
Back to top
View user's profile Send private message
Bonkie
Guru
Guru


Joined: 28 Oct 2002
Posts: 501
Location: Antwerpen, Belgium

PostPosted: Thu Feb 05, 2004 9:43 pm    Post subject: Reply with quote

Great workd :D
_________________
"I would say we have a 50% chance of survival, but I consider myself an optimist so I'll give us 50,5% ..."
~ Arthur C. Clarke [Physics PHD,SF Writer], when asked about the chances of the human race's survival
Back to top
View user's profile Send private message
beowulf
Apprentice
Apprentice


Joined: 07 Apr 2003
Posts: 225

PostPosted: Fri Feb 06, 2004 3:55 am    Post subject: Reply with quote

Thanks Chewi for the ebuild. However, I can't digest it... copied it from bugzilla.... and received this error:
Code:

root@Illusion(/home/beowulf) # ebuild /usr/local/portage/net-www/opera/opera-7.23-r1.ebuild digest
>>> Downloading http://gentoo.oregonstate.edu/distfiles/!static?
--22:44:05--  http://gentoo.oregonstate.edu/distfiles/!static?
           => `/usr/portage/distfiles/!static'
Resolving gentoo.oregonstate.edu... 128.193.0.3
Connecting to gentoo.oregonstate.edu[128.193.0.3]:80... connected.
HTTP request sent, awaiting response... 404 Not Found
22:44:06 ERROR 404: Not Found.

>>> Downloading http://distro.ibiblio.org/pub/Linux/distributions/gentoo/distfiles/!static?
--22:44:06--  http://distro.ibiblio.org/pub/Linux/distributions/gentoo/distfiles/!static?
           => `/usr/portage/distfiles/!static'
Resolving distro.ibiblio.org... 152.2.210.109
Connecting to distro.ibiblio.org[152.2.210.109]:80... connected.
HTTP request sent, awaiting response... 404 Not Found
22:44:07 ERROR 404: Not Found.

>>> Downloading !static?
--22:44:07--  http://!static/?
           => `/usr/portage/distfiles/index.html'
Resolving !static... failed: Host not found.
!!! Couldn't download !static?. Aborting.

I assume that something's wrong with my system since others have been able to build it.... so just wondering if you could point me in any direction.

thanks.
_________________
I have nothing witty to say here... ever :-(
Back to top
View user's profile Send private message
wishkah
Guru
Guru


Joined: 09 May 2003
Posts: 441
Location: de

PostPosted: Sun May 30, 2004 2:33 pm    Post subject: Reply with quote

beowulf wrote:
Thanks Chewi for the ebuild. However, I can't digest it... copied it from bugzilla.... and received this error:
Code:

root@Illusion(/home/beowulf) # ebuild /usr/local/portage/net-www/opera/opera-7.23-r1.ebuild digest
>>> Downloading http://gentoo.oregonstate.edu/distfiles/!static?
--22:44:05--  http://gentoo.oregonstate.edu/distfiles/!static?
           => `/usr/portage/distfiles/!static'
Resolving gentoo.oregonstate.edu... 128.193.0.3
Connecting to gentoo.oregonstate.edu[128.193.0.3]:80... connected.
HTTP request sent, awaiting response... 404 Not Found
22:44:06 ERROR 404: Not Found.

>>> Downloading http://distro.ibiblio.org/pub/Linux/distributions/gentoo/distfiles/!static?
--22:44:06--  http://distro.ibiblio.org/pub/Linux/distributions/gentoo/distfiles/!static?
           => `/usr/portage/distfiles/!static'
Resolving distro.ibiblio.org... 152.2.210.109
Connecting to distro.ibiblio.org[152.2.210.109]:80... connected.
HTTP request sent, awaiting response... 404 Not Found
22:44:07 ERROR 404: Not Found.

>>> Downloading !static?
--22:44:07--  http://!static/?
           => `/usr/portage/distfiles/index.html'
Resolving !static... failed: Host not found.
!!! Couldn't download !static?. Aborting.

I assume that something's wrong with my system since others have been able to build it.... so just wondering if you could point me in any direction.

thanks.


Same problem here... I guess the ebuild is broken, just emerge sync in a few hours and it should be ok.
_________________
if only I could fill my heart with love...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum