MozillaZine

[FX]: theNonsuch: 1.0 Final [Aviary / OS X] (G5 optimized)

Discussion of third-party/unofficial Firefox/Thunderbird/SeaMonkey builds.
neilio
 
Posts: 235
Joined: November 16th, 2002, 8:42 am

Post Posted November 6th, 2004, 12:19 pm

With a ton of help from PowerBook (who's G4 optimized builds rock my aluminum powerbook's world), I've managed to successfully build Firefox with optimization for the G5 processor.

The only other change to this build is I have included a version of Kevin Gerich's awesome form widgets, which I think look a zillion times better on OS X than the standard ones.

This has not been built with OS 10.2 support. I was getting a ton of errors when I tried, so I stopped and just built for OS 10.3. I have no idea what will happen if you try to run this on 10.2, so caveat emptor.

I also haven't tested this on any other G5 machine except for my iMac G5. It should work, but then again, I've never successfully built Firefox before, so... :)

Here's my .mozconfig file, in case any one else wants to give it a whirl:

. $topsrcdir/browser/config/mozconfig

export MOZILLA_OFFICIAL=1
export BUILD_OFFICIAL=1

mk_add_options MOZILLA_OFFICIAL=1
mk_add_options BUILD_OFFICIAL=1
mk_add_options MOZ_MAKE_FLAGS=-j2

ac_add_options --enable-pthreads
ac_add_options --enable-prebinding
ac_add_options --enable-static
ac_add_options --enable-strip
ac_add_options --enable-strip-libs
ac_add_options --enable-optimize="-O3 -faltivec -mcpu=970 -mtune=970 -mpowerpc64 -mpowerpc-gpopt"

ac_add_options --disable-tests
ac_add_options --disable-shared
ac_add_options --disable-debug

ac_add_options --without-system-nspr
ac_add_options --without-system-zlib
ac_add_options --without-system-jpeg
ac_add_options --without-system-png
ac_add_options --without-system-mng


EDIT: Due to problems with bandwidth and such, I'm keeping this post on my personal site up-to-date, so visit here for download links, etc.

Let me know if it works for you!

Neil
Last edited by neilio on November 17th, 2004, 1:33 pm, edited 11 times in total.
Slumming at the beatnikPad : http://www.beatnikpad.com/

krmathis

User avatar
 
Posts: 4699
Joined: May 24th, 2004, 9:40 pm
Location: Oslo, Norway

Post Posted November 6th, 2004, 12:38 pm

Great work Neil!
Hopefully a lot of the iMac/PowerMac G5 users will appreciate the speed this optimized version brings...

Edit: To simplify the build process create a shell script that runs the whole process.
Something like this:
Code: Select all
#!/bin/sh
date
export CVSROOT=:pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot
cvs co -r AVIARY_1_0_20040515_BRANCH mozilla/client.mk mozilla/browser/config
cd mozilla/
make -f client.mk
cd xpinstall/packager/
make
cd ../../..
gzip -d mozilla/dist/firefox-powerpc-apple-darwin7.6.0.dmg.gz
bzip2 --best mozilla/dist/firefox-powerpc-apple-darwin7.6.0.dmg
mv mozilla/dist/firefox-powerpc-apple-darwin7.6.0.dmg.bz2 mozilla/dist/firefox-ppc970-`date +%Y.%m.%d`.dmg.bz2
date
Save as build.sh in your home folder, then make executable "chmod +x build.sh".
Run it like this: ./build.sh
Last edited by krmathis on November 7th, 2004, 4:25 am, edited 2 times in total.

frankko
 
Posts: 9
Joined: November 6th, 2004, 1:37 pm

Post Posted November 6th, 2004, 1:39 pm

I can download the .gz fine, but the resulting .dmg won't mount.

neilio
 
Posts: 235
Joined: November 16th, 2002, 8:42 am

Post Posted November 6th, 2004, 5:11 pm

Frankko, I just posted a new version. This one should work.
Slumming at the beatnikPad : http://www.beatnikpad.com/

smartcat99s

User avatar
 
Posts: 124
Joined: June 19th, 2004, 6:35 pm
Location: Omaha, NE

Post Posted November 6th, 2004, 8:15 pm

frankko, are you on some sort of school network, as I know that we do not have permissions to mount .dmg images, that could be your problem.
Folding for a cure - Stats - Team 11108

frankko
 
Posts: 9
Joined: November 6th, 2004, 1:37 pm

Post Posted November 6th, 2004, 8:50 pm

There's no problem on my end with mounting DMG files. After all, Powerbook's G4 builds-- not to mention the official builds-- have been delivered via DMG files.

The problem I had with the first DMG file is the Finder claimed there was no mountable file system.

With this new file, after the .gz is unzipped, it leaves a file with no extension at all: firefox-powerpc-apple-darwin7.6.0-06-11-04. Adding .dmg to it doesn't work (again, the Finder claims there's no mountable file system).

neilio
 
Posts: 235
Joined: November 16th, 2002, 8:42 am

Post Posted November 6th, 2004, 8:52 pm

This isn't a DMG file - it's a gzipped copy of the application. What are you using to decompress the file? I'm using Stuffit here and it works perfectly.
Slumming at the beatnikPad : http://www.beatnikpad.com/

frankko
 
Posts: 9
Joined: November 6th, 2004, 1:37 pm

Post Posted November 6th, 2004, 9:40 pm

I've tried both Stuffit Expander 8.0.2 and gunzip in the Terminal. In both cases, all I'm left with is a file called "firefox-powerpc-apple-darwin7.6.0-06-11-04" (no extension). If I add ".app" to the filename, it won't launch. If I rename it to "firefox.app", it won't launch, either.

neilio
 
Posts: 235
Joined: November 16th, 2002, 8:42 am

Post Posted November 6th, 2004, 9:48 pm

Frankko, I'm not sure what to say, but I just downloaded it and it decompressed with no problems for me, on two separate machines.

How are you downloading the file? Maybe it's somehow being corrupted or downloaded as ASCII or something like that...
Slumming at the beatnikPad : http://www.beatnikpad.com/

krmathis

User avatar
 
Posts: 4699
Joined: May 24th, 2004, 9:40 pm
Location: Oslo, Norway

Post Posted November 6th, 2004, 11:21 pm

The current .gz file is valid, and even the first file you posted.
Its downloading and unpacking fine here, ending up with a firefox.app

frankko
 
Posts: 9
Joined: November 6th, 2004, 1:37 pm

Post Posted November 6th, 2004, 11:44 pm

This is pretty bizarre. Like I said before, gunzip in the Terminal and Stuffit Expander wouldn't open it. But when I tried it with Stuffit Deluxe, it at first complained that the archive couldn't be browsed, and asked it I would like to just expand it, after which I said OK, and that worked.

But Stuffit Expander directly won't open the file on my machine for some reason.

Strange.

neilio
 
Posts: 235
Joined: November 16th, 2002, 8:42 am

Post Posted November 7th, 2004, 9:33 am

11-07 build now up.

Thanks for the shell script, PowerBook - I edited it so that the custom form widgets would be automatically included and it works like a charm!

Neil
Slumming at the beatnikPad : http://www.beatnikpad.com/

kugino
 
Posts: 3
Joined: November 7th, 2004, 9:53 pm

Post Posted November 7th, 2004, 10:06 pm

i'm running it on a PM dual 2.0 w/ 2.5 gig ram...it's very quick. but i don't know if it's the optimization that's fast or the processor power...hopefully both. in any case, it works great so far...keep up the good work!

cliffzilla
 
Posts: 209
Joined: May 15th, 2003, 9:35 pm

Post Posted November 8th, 2004, 6:59 am

Very nice. Thanks. I did notice though that for some reason I have the standard widgets and not the new and improved ones.

neilio
 
Posts: 235
Joined: November 16th, 2002, 8:42 am

Post Posted November 8th, 2004, 8:45 am

11/08 is up. For some reason the user agent didn't update, though, but I just built this 20 minutes ago, so it should be up to date with the latest changes.

Form widgets should be in there now, too - I had a boo-boo in my shell script. :)
Slumming at the beatnikPad : http://www.beatnikpad.com/

Return to Third Party/Unofficial Builds


Who is online

Users browsing this forum: No registered users and 0 guests