Page 2 of 5

Re: Firefox 3.6 end of life and options for CentOS/YDL

PostPosted: 23 Mar 2012, 14:32
by billb
Also, the xulrunner RPM is 121MB, and when installed, libxul.so is 290MB!

Re: Firefox 3.6 end of life and options for CentOS/YDL

PostPosted: 23 Mar 2012, 19:44
by Iguana
So, what are the alternative options?

Re: Firefox 3.6 end of life and options for CentOS/YDL

PostPosted: 23 Mar 2012, 19:46
by ppietro
billb wrote:OK, I have the nspr, nss, and xulrunner packages completed and installed.

Did you have to modify the firefox.spec at all? This is what I get when I try to build it:

$ rpmbuild -ba firefox.spec
error: syntax error in expression
error: /home/bill/rpmbuild/SPECS/firefox.spec:4: parseExpressionBoolean returns -1
error: Name field must be present in package: (main package)
error: Version field must be present in package: (main package)
error: Release field must be present in package: (main package)
error: Summary field must be present in package: (main package)
error: Group field must be present in package: (main package)
error: License field must be present in package: (main package)


Hmm - not for YDL for CUDA, anyway. All I had to do was: rpmbuild --rebuild firefox-10.0.3-1.el5.centos.src.rpm

Say - that's a good question. Where did you get your SRPMs? Mine were from here:

http://vault.centos.org/5.8/updates/SRP ... _8.src.rpm
http://vault.centos.org/5.8/updates/SRP ... _8.src.rpm
http://vault.centos.org/5.8/updates/SRP ... _8.src.rpm
http://vault.centos.org/5.8/updates/SRP ... os.src.rpm

I'll do a rpm -ivh firefox-10.0.3-1.el5.centos.src.rpm and take a look at the spec file.

UPDATE: Oh yeah - that spec file has the same issues as the xulrunner spec file. I'll post an updated one shortly, and rebuild on YDL for CUDA.

Billb - do you want my updated SRPM? Or is the spec file okay?

Cheers,
Paul

Re: Firefox 3.6 end of life and options for CentOS/YDL

PostPosted: 23 Mar 2012, 20:24
by billb
ppietro wrote:UPDATE: Oh yeah - that spec file has the same issues as the xulrunner spec file. I'll post an updated one shortly, and rebuild on YDL for CUDA.

Billb - do you want my updated SRPM? Or is the spec file okay?


Thought that might be the case -- thanks! Will try with your modified spec this evening. Even if all that works out, the huge libxul.so file still worries me, though.

I believe I got the SRPMS from the same place and they are the same versions.

Re: Firefox 3.6 end of life and options for CentOS/YDL

PostPosted: 23 Mar 2012, 20:59
by ppietro
billb wrote:
ppietro wrote:UPDATE: Oh yeah - that spec file has the same issues as the xulrunner spec file. I'll post an updated one shortly, and rebuild on YDL for CUDA.

Billb - do you want my updated SRPM? Or is the spec file okay?


Thought that might be the case -- thanks! Will try with your modified spec this evening. Even if all that works out, the huge libxul.so file still worries me, though.

I believe I got the SRPMS from the same place and they are the same versions.


Thanks, Billb! :)

I just rebuilt it on YDL for CUDA, and my firefox.spec file works okay. One caveat - since I had my "funky" firefox on there, I had to uninstall it first, since this was the same version. After uninstallation, trying a normal rpm -ivh of my corrected build gave me this:

Code: Select all
[root@localhost x86_64]# rpm -ivh firefox-10.0.3-1.x86_64.rpm
Preparing...                ########################################### [100%]
   1:firefox                ########################################### [100%]
error: unpacking of archive failed on file /usr/lib64/firefox/firefox;4f6cd26b: cpio: MD5 sum mismatch


Weird huh? I looked on-line and it suggested there were errors with pre-linking:
http://www.linux-archive.org/rpm-packag ... match.html

So - I took the easy way out and did:
Code: Select all
[root@localhost x86_64]# rpm -ivh --nomd5 firefox-10.0.3-1.x86_64.rpm
Preparing...                ########################################### [100%]
   1:firefox                ########################################### [100%]
[root@localhost x86_64]#


It's working without a hitch, now. I'm guessing you have to have some firefox on there to start.

Cheers,
Paul

Re: Firefox 3.6 end of life and options for CentOS/YDL

PostPosted: 23 Mar 2012, 21:20
by ppietro
Okay - update of my update. ;)

I just tried a test where I uninstalled Firefox ESR 10, installed Firefox 3.6.24, rebuilt Firefox ESR 10 and did an rpm -Uvh to install the new build.

Same md5sum error as before.

Since this error is somewhat bogus, I think we're okay - but we might want to see if it happens on YDL as well as YDL for CUDA.

Cheers,
Paul

Re: Firefox 3.6 end of life and options for CentOS/YDL

PostPosted: 23 Mar 2012, 23:57
by ppietro
ppietro wrote:trying a normal rpm -ivh of my corrected build gave me this:

Code: Select all
[root@localhost x86_64]# rpm -ivh firefox-10.0.3-1.x86_64.rpm
Preparing...                ########################################### [100%]
   1:firefox                ########################################### [100%]
error: unpacking of archive failed on file /usr/lib64/firefox/firefox;4f6cd26b: cpio: MD5 sum mismatch



aaaaand... I just got rid of it by re-rebuilding from my new SRPM.

So - here's what I did:
  1. rpm -ivh firefox-10.0.3-1.el5.centos.src.rpm
  2. replace the firefox.spec file with the updated one I posted above
  3. rpmbuild -ba firefox.spec
  4. After the build, look for the new SRPM that was generated
  5. rpmbuild --rebuild firefox-10.0.3-1.src.rpm
  6. look for the resultant RPM
  7. rpm -Uvh firefox-10.0.3-1.x86_64.rpm

Weird... very weird.... Billb - let me know if you see this kind of behavior.

Cheers,
Paul

P.S. For those of you following at home - don't forget - if you're building for PowerPC, you'll have to add the setarch ppc prefix and the --ppc switch to rpmbuild as you try this.

Re: Firefox 3.6 end of life and options for CentOS/YDL

PostPosted: 24 Mar 2012, 02:03
by billb
Firefox build started on the PowerMac with your modified spec ... will let you know how it goes. :mrgreen:

Re: Firefox 3.6 end of life and options for CentOS/YDL

PostPosted: 24 Mar 2012, 02:39
by billb
Ran into the same issue with the md5sum mismatch but rebuilding from the resultant SRPM didn't fix it. I was able to install using rpm --nomd5, and am running Firefox ESR 10.0.3 on the PowerMac now. Haven't tried it on the PS3 yet.

Not sure if this is relevant here:
http://vijayk.blogspot.com/2005_08_01_archive.html
(I tried modifiying etc/rpm/macros.prelink as suggested and rebuilding but that didn't fix it)

Anyway, we're getting somewhere I think! :)

Re: Firefox 3.6 end of life and options for CentOS/YDL

PostPosted: 24 Mar 2012, 05:52
by ppietro
billb wrote:Ran into the same issue with the md5sum mismatch but rebuilding from the resultant SRPM didn't fix it. I was able to install using rpm --nomd5, and am running Firefox ESR 10.0.3 on the PowerMac now. Haven't tried it on the PS3 yet.

Not sure if this is relevant here:
http://vijayk.blogspot.com/2005_08_01_archive.html
(I tried modifiying etc/rpm/macros.prelink as suggested and rebuilding but that didn't fix it)

Anyway, we're getting somewhere I think! :)


Yeah - I saw that article. I was going to try that, but then I stumbled upon my re-rebuild trick, so I didn't do it. :)

Good news about the PowerMac build. Hope it works on the PS3!

Cheers,
Paul

Re: Firefox 3.6 end of life and options for CentOS/YDL

PostPosted: 24 Mar 2012, 18:37
by billb
Trying a rebuild after running /usr/sbin/prelink --undo --all ...

EDIT: That worked! :mrgreen:

I'm uploading all these packages to the ps3bodega-testing repo now.

Re: Firefox 3.6 end of life and options for CentOS/YDL

PostPosted: 24 Mar 2012, 20:06
by billb
...and it's running fine on the PS3! :D

I still have it in testing for now, but users of YDL 6.2 and the ps3bodega repo can install with:

Code: Select all
su

<root password>

Code: Select all
yum install firefox --enablerepo=PS3Bodega-testing

Code: Select all
exit

(the testing repo is disabled by default, and the above command only enables it temporarily for the Firefox 10.0.3 install)

If you want to download the files individually, they are here:

http://pleasantfiction.ipower.com/ps3li ... 2/testing/

Re: Firefox 3.6 end of life and options for CentOS/YDL

PostPosted: 24 Mar 2012, 20:55
by Iguana
w00t! ydl on the ps3 finally gets an html 5 supported web browser, too bad youtube and all those are still flash based i think? but then again there's always minitube :mrgreen:

Re: Firefox 3.6 end of life and options for CentOS/YDL

PostPosted: 26 Mar 2012, 17:24
by ppietro
Iguana wrote:w00t! ydl on the ps3 finally gets an html 5 supported web browser, too bad youtube and all those are still flash based i think? but then again there's always minitube :mrgreen:


Here you go!
http://www.youtube.com/html5

NOTE: This won't work if the YouTube video has the ad/commercial overlay; it only works with the non-commercial YouTube videos.

UPDATE: Interesting. Although HTML5 support is in this build, it doesn't look like webm support was included. (h.264 will never be included in Firefox for reasons I detailed here: A possible solution to the YouTube issue + boo hiss)

Cheers,
Paul

Re: Firefox 3.6 end of life and options for CentOS/YDL

PostPosted: 26 Mar 2012, 18:15
by billb
ppietro wrote:UPDATE: Interesting. Although HTML5 support is in this build, it doesn't look like webm support was included. (h.264 will never be included in Firefox for reasons I detailed here: A possible solution to the YouTube issue + boo hiss)


Yes I noticed that ... wasn't sure how to enable it in a rebuild, though. That spec file is a monster. :wink:

Cool that tenfourfox has PowerPC specific improvements (like Altivec accelerated WebM), but AFAIK it's for OSX only.

EDIT: this is an interesting site to checkout with this version of FF http://html5test.com/