Package Search
 
Members: 351 | Topics: 765 | Posts: 3209
We welcome our newest member: Somewhat Reticent
Info
» You aren't logged in, login or registerOnline: No members and 4 guests | Time: 02:29
Opera Upgrade
paldo Support Forum    Upkg    Package Specifications
Reply Reply   Subscribe Topic Subscribe Topic
18 posts found.Page: 1 2
This topic contains previous posts. Back
 Re: Opera Upgrade
Administrator
 
 
 
Posts: 426
Registered: 2004-09-09
Thanks, updated.
Profile   Private Message   Web
Created: 2009-12-06 16:03
Highlight selected Text   Edit   Delete   Quote Reply
 Re: Opera Upgrade
Junior Mitglied
 
 
 
Posts: 49
Registered: 2009-02-26
Hi. Anyone have a script that successfully builds Opera 10.60?
Profile   Private Message
Created: 2010-07-16 20:16
Highlight selected Text   Edit   Delete   Quote Reply
 Re: Opera Upgrade
Senior Mitglied
 
 
 
Posts: 216
Registered: 2008-07-04
Hi subgoo,

First let me try to correct yout when you say "build". Opera is a closed source project and so it can't be "built" only "extracted and installed".\

Normally, You should have no problem only changing the versions on the xml spec. But opera 10.60, have changed its url, and also its script. It no longer installs with install.sh, but instead with install. The other difference is now that the install script have no option to set the prefix, so it installs unconditionally on /usr/local instead of /usr.

So the spec should look like this (I have highlighted the differences from the one on the repositories):

Code[In neuem Fenster öffnen]
<?xml version="1.0"?>
<package name="opera">
<description>closed source webbrowser</description>
<releases>
<release version="10.60" revision="1" branch="stable" arch="x86">
<settings>
<binary>no</binary>
</settings>
<deps>

<dep name="qt-4"/>
<dep name="ice"/>
<dep name="x11"/>
<dep name="libstdc++5"/>
<dep name="xext"/>
<dep name="sm"/>
<dep name="coreutils"/>
<dep name="filesystem-hierarchy"/>
<dep name="xt"/>

<dep name="glibc"/>
<dep name="gcc"/>
<dep name="zlib"/>
</deps>
<build>
<script>
<archive name="http://get.opera.com/pub/opera/linux/1060/opera-$VERSION-6386.i386.linux">
<!-- Change PREFIX -->
<cmd>sed -e 's:PREFIX=/usr/local:PREFIX=/usr:g' ./install</cmd>

<cmd>sh ./install --prefix=/usr -v</cmd>

<cmd>install usr/share/pixmaps/opera.xpm /usr/share/pixmaps/opera.xpm</cmd>
<cmd check="no">cat &gt; /usr/share/applications/opera.desktop &lt;&lt; "EOF"
[Desktop Entry]
Name=Opera
Comment=Browse the web
Exec=opera
Icon=/usr/share/pixmaps/opera.xpm
Terminal=false
Type=Application
Categories=Application;Network;
MimeType=text/html;text/xml;application/xhtml+xml;
EOF</cmd>
</archive>
</script>
</build>
</release>

<release version="10.60" revision="1" branch="stable" arch="x86_64">
<settings>
<binary>no</binary>
</settings>
<deps>
<dep name="qt-4"/>
<dep name="ice"/>
<dep name="x11"/>

<dep name="libstdc++5"/>
<dep name="xext"/>
<dep name="sm"/>
<dep name="coreutils"/>
<dep name="filesystem-hierarchy"/>
<dep name="xt"/>
<dep name="glibc"/>
<dep name="gcc"/>
<dep name="zlib"/>

</deps>
<preinst>
<cmd>ln -Tsvf lib /lib64</cmd>
</preinst>
<build>
<script>
<archive name="http://get.opera.com/pub/opera/linux/1060/opera-$VERSION-6386.x86_64.linux">
<!-- Change PREFIX -->
<cmd>sed -e 's:PREFIX=/usr/local:PREFIX=/usr:g' ./install</cmd>

<cmd>./install.sh --prefix=/usr -v</cmd>

<cmd>install usr/share/pixmaps/opera.xpm /usr/share/pixmaps/opera.xpm</cmd>
<cmd check="no">cat &gt; /usr/share/applications/opera.desktop &lt;&lt; "EOF"
[Desktop Entry]
Name=Opera
Comment=Browse the web
Exec=opera
Icon=/usr/share/pixmaps/opera.xpm
Terminal=false
Type=Application
Categories=Application;Network;
MimeType=text/html;text/xml;application/xhtml+xml;
EOF</cmd>
</archive>
</script>
</build>
</release>

</releases>
</package>


You can put this spec on your local repository and try to install with "upkg-install opera"
 
..............................
OSs: Paldo-testing x86_64 :: HP Pavilion dv9680ez
Profile   Private Message   E-Mail
Created: 2010-07-18 14:56
Highlight selected Text   Edit   Delete   Quote Reply
 Re: Opera Upgrade
Junior Mitglied
 
 
 
Posts: 49
Registered: 2009-02-26
Thanks once again, diogo. Yes, I should have said "install" script when referring to Opera.

Modifying the script to upgrade to 10.11 wasn't a problem but the install.sh and prefix errors that kept coming up for 10.60 was puzzling. Where did you find the change?

Profile   Private Message
Created: 2010-07-19 03:28
Highlight selected Text   Edit   Delete   Quote Reply
 Re: Opera Upgrade
Senior Mitglied
 
 
 
Posts: 216
Registered: 2008-07-04
Hi subgoo,

Good to hear it worked for you.

I have taken a look at the gentoo ebuild adn at the archlinux pkgbuild to find the correct url. then I just downloaded the tarball and digged inside the tarball to see what was there. I saw the problem of the prefix when I tried to use the option --prefix on the install script and it said the option was unknown, so I took a look at the code of the install script, which is a simple bash script.
 
..............................
OSs: Paldo-testing x86_64 :: HP Pavilion dv9680ez
Profile   Private Message   E-Mail
Created: 2010-07-19 03:41
Highlight selected Text   Edit   Delete   Quote Reply
 Re: Opera Upgrade
Mitglied
 
 
 
Posts: 73
Registered: 2009-07-15
Hi Diogo

I had a look at this Opera upgrade. I would like to update Transmission and was wondering how easy, or difficult it woud be.

Does it is only a matter of fiding the spec file, change the Transmission version inside it, put it in a local repository and try to install with "upkg-install Transmission"?
Profile   Private Message
Created: 2010-07-21 02:44
Highlight selected Text   Edit   Delete   Quote Reply
 Re: Opera Upgrade
Senior Mitglied
 
 
 
Posts: 216
Registered: 2008-07-04
Hi zerobug,

Normally just changing the package version and checking for the source url (if it is not using the $VERSION parameter) and things should work ok.

The problem with some packages is that some developers don't maintain de consistency of its packages, so opera, for instance, seems that every single version the url changes completly and the installer script changes as well.

As of transmission I don't think there should be a problem.

I just think that since the new version of transmission (2.xx) now have a qt4 and gtk gui interfaces, maybe you will need too force the use of gtk with --enable-gtk flag on the configure command, but nothing else.

If you need help creating specs for some packages you can take a look at how the other distributions like archlinux and gentoo, and use the site that kim88 have created a long time ago that provides a step by step to create a spec: http://upkg.kim88.ch/

If you have a problem with your transmission spec, please create a thread here requesting the upgrade and posting the upkg and the error you're receiving that I'll try to help you futher, (just as an advise so we don't get poluted threads, please create an independent thread for transmission and let this place be only for opera package discussion)

* Just to remember, I'm not a developer and so I can't upgrade or fix the packages on the repository (as one once asked me to :/ ), but as part of the community I'll try to help where I can, answering these threads.

** zerobug, try the version and if it fails, you will not lose the installed package (only get a compilation failure). And so, if the failure appears, you could come back to the forums and ask for help (posting the outputs).
 
..............................
OSs: Paldo-testing x86_64 :: HP Pavilion dv9680ez
Profile   Private Message   E-Mail
Created: 2010-07-21 05:22
Highlight selected Text   Edit   Delete   Quote Reply
 Re: Opera Upgrade
Mitglied
 
 
 
Posts: 73
Registered: 2009-07-15
Hello Diogo

Once again, and as usually you're providing great and valuable information, to help us, Paldo users. Thanks a lot for that.
I noticed that my registration here, completed it's 1st aniversary just last week. I feel it's time for me to make an effort and start learning a litlle beat more about package management and installations. Your hints will be a good starting point, and as the spec for Transmission won't need major changes, it may be a good first try.
Anything else related to it, of course I'll follow your advice and will start a new thread.
Profile   Private Message
Created: 2010-07-22 05:00
Highlight selected Text   Edit   Delete   Quote Reply
Page: 1 2
Subscribe Topic Subscribe Topic
powered by bitron board 1.23a