Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 197095 - www-client/opera-9.50_beta1 fetches from wrong URL for x86_64
Summary: www-client/opera-9.50_beta1 fetches from wrong URL for x86_64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Jeroen Roovers (RETIRED)
URL:
Whiteboard:
Keywords:
: 197141 197145 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-10-26 02:44 UTC by Sterling Christensen
Modified: 2007-12-25 21:29 UTC (History)
4 users (show)

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 Sterling Christensen 2007-10-26 02:44:15 UTC
The ebuild tries to fetch a 32 bit build and fails because the URLs it tries contain an "x86_64" that should be an "i386" (for a 32 bit build).

Example attempted URL:
"ftp://gd.tuwien.ac.at/infosys/browsers/opera/linux/950b/final/en/x86_64/shared/opera-9.50b-20071024.6-shared-qt.i386-en.tar.bz2"
Should be:
"ftp://gd.tuwien.ac.at/infosys/browsers/opera/linux/950b/final/en/i386/shared/opera-9.50b-20071024.6-shared-qt.i386-en.tar.bz2"

However, it would be even better if it installed the 64 bit version.

They don't seems to be following their convention of dividing the builds into a "shared" dir and a "static" dir with 64 bit builds. There are only shared builds and they're not in a "shared" dir:
ftp://ftp.opera.com/pub/opera/linux/950b/final/en/x86_64/

Reproducible: Always

Steps to Reproduce:
Comment 1 Ferris McCormick (RETIRED) gentoo-dev 2007-10-26 12:49:40 UTC
Problem seems to be here:
SRC_URI=" ...
 x86-fbsd? (     qt-static? ( ${O_URI}unix/freebsd${O_FTP}static/${PN}-${O_VER}.1-static
-qt.i386.freebsd-${O_LNG}.tar.bz2 ) )
                                !qt-static? ( ${O_URI}unix/freebsd${O_FTP}shared/${PN}-${O_VER}
.4-shared-qt.i386.freebsd-${O_LNG}.tar.bz2 )"

You need to change the first ") )" to ")" and add a ")" at the end, I think:

 x86-fbsd? (     qt-static? ( ${O_URI}unix/freebsd${O_FTP}static/${PN}-${O_VER}.1-static
-qt.i386.freebsd-${O_LNG}.tar.bz2 )
                                !qt-static? ( ${O_URI}unix/freebsd${O_FTP}shared/${PN}-${O_VER}
.4-shared-qt.i386.freebsd-${O_LNG}.tar.bz2 ) )"

Then, for me at least, on
S="${WORKDIR}/${O_S/.tar.bz2/}-${O_SUFF}"
you have to lose the -${O_SUFF}  because the source file is already
opera-9.50-20071024.2-shared-qt.x86_64-1643.tar.bz2
so when you strip the '.tar.bz2' you already have the -${O_SUFF}

That said, we have a suspect plugin:
usr/share/opera/ini/pluginpath.ini: FAILED

Still, with all of that, om amd64 this version of opera seems to work.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2007-10-26 16:02:22 UTC
Could someone print the header of the ebuild they're looking at? I am at 1.3 right now after tomaw alterted me on IRC to a problem for amd64.

(I thought I fixed it some eight hours ago.)
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2007-10-26 16:16:34 UTC
*** Bug 197145 has been marked as a duplicate of this bug. ***
Comment 4 Ferris McCormick (RETIRED) gentoo-dev 2007-10-26 16:24:35 UTC
CVS has:
# $Header: /var/cvsroot/gentoo-x86/www-client/opera/opera-9.50_beta1.ebuild,v 1.3 2007/10/26 08:51:25 jer Exp $

It also has the problems I mentioned in Comment #1
Comment 5 Ferris McCormick (RETIRED) gentoo-dev 2007-10-26 16:31:22 UTC
By the way, what I see is not the same as the original report.  Because of the misplaced closing parenthesis, current ebuild on amd64 fetches two source files and unpackes them both.  Then, it fails when trying to 'cd' into the directory to apply the patch, because the cd looks like:
cd D1 D2
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2007-10-26 16:43:49 UTC
(In reply to comment #5)
> By the way, what I see is not the same as the original report.

That's right. For reasons unknown to me, before revision 1.3, `ebuild opera-9.50_beta1.ebuild manifest` did *not* download the amd64 URIs but failed to fail as well. The URIs were wrong to begin with and 1.3 fixed that.

> Because of the
> misplaced closing parenthesis, current ebuild on amd64 fetches two source files
> and unpackes them both.  Then, it fails when trying to 'cd' into the directory
> to apply the patch, because the cd looks like:
> cd D1 D2

I hope I fixed that now (revision 1.5). Please sync or cvs up and test it.
Comment 7 Ferris McCormick (RETIRED) gentoo-dev 2007-10-26 17:04:21 UTC
On amd64, with
# $Header: /var/cvsroot/gentoo-x86/www-client/opera/opera-9.50_beta1.ebuild,v 1.6 2007/10/26 16
:57:17 jer Exp $

It fetches the correct source file --- opera-9.50-20071024.2-shared-qt.x86_64-1643.tar.bz2 --- and installs it just fine.
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2007-10-26 18:20:54 UTC
*** Bug 197141 has been marked as a duplicate of this bug. ***
Comment 9 Bob Paddock 2007-10-27 13:54:33 UTC
I use Opera for some Emails and RSS feed.
I emerged this version of Opera to try it out.

When Opera started up, it asked
me if I wanted to convert to a new email format.
I told it to proceed.  Opera then seemed to work
ok. 

However when I restarted Opera it had an
error about initializing the email system,
and all the email and RSS data was no longer
accessible.

I went back to 9.24 and restored from last nights
backup.

Opera's Changelog for 9.50, mentions several
issues, having good backups is at the top of
this list:

http://snapshot.opera.com/unix/u950b1.html

"This is a beta version of Opera. Use only on properly backed up computers and do not install over previous Opera versions."

I realize this is not a ebuild issue, but
thought you might want a heads-up.
Comment 10 Jeroen Roovers (RETIRED) gentoo-dev 2007-10-27 15:31:45 UTC
(In reply to comment #9)
> "This is a beta version of Opera. Use only on properly backed up computers and
> do not install over previous Opera versions."

Opera 9.50 beta builds will remain keyworded as ~arch.
Comment 11 Jeroen Roovers (RETIRED) gentoo-dev 2007-10-31 03:43:02 UTC
I think all SRC_URI problems have been fixed now... until Opera introduces a few more. :)