You are not logged in.

#1 2009-04-28 15:14:05

ammon
Member
Registered: 2008-12-11
Posts: 413

Firefox 3.5b4

Can someone please make pkgbuild for new FF beta, but to use source and compile it.
Packets in aur are i688 and x68_64 specific and use i686 build made by mozilla.
This package that i propose can replace them both. And can be updated with every new beta or RC...

There is source ftp://ftp.mozilla.org/pub/firefox/relea … b4/source/
And here are MD5 sums ftp://ftp.mozilla.org/pub/firefox/relea … b4/MD5SUMS

And please dont place line "replace firefox3" so it can be used parallel with old firefox.
Thanks in advance.

Offline

#2 2009-04-28 15:19:36

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: Firefox 3.5b4

there is such a build. take a look at comments also.

http://aur.archlinux.org/packages.php?ID=22919


Give what you have. To someone, it may be better than you dare to think.

Offline

#3 2009-04-28 22:19:25

ammon
Member
Registered: 2008-12-11
Posts: 413

Re: Firefox 3.5b4

wonder wrote:

there is such a build. take a look at comments also.

http://aur.archlinux.org/packages.php?ID=22919

Yep, tried that long time ago. Did not work. And it is tweaked. Not official.

Offline

#4 2009-04-28 22:40:44

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: Firefox 3.5b4

ammon wrote:

Yep, tried that long time ago. Did not work. And it is tweaked. Not official.

then do it yourself.
you have the source and i see that you have the knowledge


Give what you have. To someone, it may be better than you dare to think.

Offline

#5 2009-04-28 22:47:02

ammon
Member
Registered: 2008-12-11
Posts: 413

Re: Firefox 3.5b4

No I dont, that why I asked someone.
Tried to play with both firefox-pgo and firefox-optimized pkgbuilds to figure out what I need to edit. But it dont know about that with C flags etc...

Offline

#6 2009-04-29 08:50:01

adamlau
Member
Registered: 2009-01-30
Posts: 418

Re: Firefox 3.5b4

This puppy is not building properly (custom mozconfig) through ten builds, I'll keep on trying...

Last edited by adamlau (2009-04-29 11:02:41)


Arch Linux + sway
Debian Testing + GNOME/sway
NetBSD 64-bit + Xfce

Offline

#7 2009-04-29 14:56:18

ammon
Member
Registered: 2008-12-11
Posts: 413

Re: Firefox 3.5b4

pkgname=firefox-beta
pkgver=3.5b4
pkgrel=1
pkgdesc="Standalone web browser from mozilla.org"
arch=('i686' 'x86_64')
license=('MPL' 'GPL' 'LGPL')
depends=('desktop-file-utils' 'libxt' 'mime-types' 'nss' 'shared-mime-info')
makedepends=('zip' 'pkgconfig' 'diffutils' 'python' 'xorg-server' 'patch' 'make' 'gcc')
provides=('firefox-3.5b4')
install=firefox.install
url="http://www.mozilla.org/projects/firefox"
source=(
        ftp://ftp.mozilla.org/pub/firefox/relea … ce.tar.bz2
    mozconfig
    firefox-beta.desktop
    firefox-beta-safe.desktop
    mozilla-firefox-1.0-lang.patch
    )
md5sums=(
    'ff6bf463300cb56bcf750973b2af3d80'
    '5b1024bc36208f2e8fb9a03bf724fb69'
    '745e6f4aaf4df6094a2d1280fa49bb00'
    '8530022da9f9f58dc10fe651bf160b1c'
    'bd5db57c23c72a02a489592644f18995'
    )

build() {
        cd ${srcdir}/mozilla-1.9.1
    patch -Np1 -i ${srcdir}/mozilla-firefox-1.0-lang.patch || return 1

    cp ${srcdir}/mozconfig .mozconfig

    unset CFLAGS
    unset CXXFLAGS
    export LDFLAGS="-Wl,-rpath,/usr/lib/firefox-${pkgver}"
    LD_PRELOAD="" /usr/bin/Xvfb -nolisten tcp -extension GLX :99 &
    XPID=$!
    export DISPLAY=:99

    LD_PRELOAD="" make -j1 -f client.mk profiledbuild MOZ_MAKE_FLAGS="${MAKEFLAGS}" || return 1
    kill $XPID
    make -j1 DESTDIR=${pkgdir} -C ff-opt-obj install || return 1

    rm -f ${pkgdir}/usr/lib/firefox-${pkgver}/libjemalloc.so
    install -m755 -d ${pkgdir}/usr/share/applications
    install -m755 -d ${pkgdir}/usr/share/pixmaps
    install -m644 ${srcdir}/mozilla/browser/branding/unofficial/default48.png ${pkgdir}/usr/share/pixmaps/firefox.png || return 1
    install -m644 ${srcdir}/firefox-beta.desktop ${pkgdir}/usr/share/applications/ || return 1
    install -m644 ${srcdir}/firefox-beta-safe.desktop ${pkgdir}/usr/share/applications/ || return 1
}

It wont compile. This is modified firefox-optimized pkgbuild.
I know I've missed something in the build section but I'm not sure what.
Tried with the firefox-beta-pgo build section but with no success.
Please help.

Note: I've used firefox-optimized mozconfig. Could that be it?

Last edited by ammon (2009-04-29 23:51:38)

Offline

#8 2009-04-30 13:16:25

koeleck
Member
From: Germany
Registered: 2009-04-07
Posts: 4

Re: Firefox 3.5b4

install -m644 ${srcdir}/mozilla/browser/branding/unofficial/default48.png ${pkgdir}/usr/share/pixmaps/firefox.png || return 1

This will throw a error, because the path is not correct.
Change it to:

install -m644 ${srcdir}/mozilla-1.9.1/browser/branding/unofficial/default48.png ${pkgdir}/usr/share/pixmaps/firefox.png || return 1

Offline

#9 2009-04-30 13:44:08

ammon
Member
Registered: 2008-12-11
Posts: 413

Re: Firefox 3.5b4

Tried that one. This is the output.

make[8]: *** [nsGNOMEShellService.o] Error 1
make[8]: Leaving directory `/home/ammon/abs/firefox-3.5b4/src/mozilla-1.9.1/ff-opt-obj/browser/components/shell/src'
make[7]: *** [libs] Error 2
make[7]: Leaving directory `/home/ammon/abs/firefox-3.5b4/src/mozilla-1.9.1/ff-opt-obj/browser/components/shell'
make[6]: *** [libs] Error 2
make[6]: Leaving directory `/home/ammon/abs/firefox-3.5b4/src/mozilla-1.9.1/ff-opt-obj/browser/components'
make[5]: *** [libs] Error 2
make[5]: Leaving directory `/home/ammon/abs/firefox-3.5b4/src/mozilla-1.9.1/ff-opt-obj/browser'
make[4]: *** [libs_tier_app] Error 2
make[4]: Leaving directory `/home/ammon/abs/firefox-3.5b4/src/mozilla-1.9.1/ff-opt-obj'
make[3]: *** [tier_app] Error 2
make[3]: Leaving directory `/home/ammon/abs/firefox-3.5b4/src/mozilla-1.9.1/ff-opt-obj'
make[2]: *** [default] Error 2
make[2]: Leaving directory `/home/ammon/abs/firefox-3.5b4/src/mozilla-1.9.1/ff-opt-obj'
make[1]: *** [build] Error 2
make[1]: Leaving directory `/home/ammon/abs/firefox-3.5b4/src/mozilla-1.9.1'
make: *** [profiledbuild] Error 2

Offline

#10 2009-04-30 13:45:24

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,557

Re: Firefox 3.5b4

ammon wrote:

pkgname=firefox-beta
pkgver=3.5b4
pkgrel=1
pkgdesc="Standalone web browser from mozilla.org"
arch=('i686' 'x86_64')
license=('MPL' 'GPL' 'LGPL')
depends=('desktop-file-utils' 'libxt' 'mime-types' 'nss' 'shared-mime-info')
makedepends=('zip' 'pkgconfig' 'diffutils' 'python' 'xorg-server' 'patch' 'make' 'gcc')
provides=('firefox-3.5b4')
install=firefox.install
url="http://www.mozilla.org/projects/firefox"
source=(
        ftp://ftp.mozilla.org/pub/firefox/relea … ce.tar.bz2
    mozconfig
    firefox-beta.desktop
    firefox-beta-safe.desktop
    mozilla-firefox-1.0-lang.patch
    )
md5sums=(
    'ff6bf463300cb56bcf750973b2af3d80'
    '5b1024bc36208f2e8fb9a03bf724fb69'
    '745e6f4aaf4df6094a2d1280fa49bb00'
    '8530022da9f9f58dc10fe651bf160b1c'
    'bd5db57c23c72a02a489592644f18995'
    )

build() {
        cd ${srcdir}/mozilla-1.9.1
    patch -Np1 -i ${srcdir}/mozilla-firefox-1.0-lang.patch || return 1

    cp ${srcdir}/mozconfig .mozconfig

    unset CFLAGS
    unset CXXFLAGS
    export LDFLAGS="-Wl,-rpath,/usr/lib/firefox-${pkgver}"
    LD_PRELOAD="" /usr/bin/Xvfb -nolisten tcp -extension GLX :99 &
    XPID=$!
    export DISPLAY=:99

    LD_PRELOAD="" make -j1 -f client.mk profiledbuild MOZ_MAKE_FLAGS="${MAKEFLAGS}" || return 1
    kill $XPID
    make -j1 DESTDIR=${pkgdir} -C ff-opt-obj install || return 1

    rm -f ${pkgdir}/usr/lib/firefox-${pkgver}/libjemalloc.so
    install -m755 -d ${pkgdir}/usr/share/applications
    install -m755 -d ${pkgdir}/usr/share/pixmaps
    install -m644 ${srcdir}/mozilla/browser/branding/unofficial/default48.png ${pkgdir}/usr/share/pixmaps/firefox.png || return 1
    install -m644 ${srcdir}/firefox-beta.desktop ${pkgdir}/usr/share/applications/ || return 1
    install -m644 ${srcdir}/firefox-beta-safe.desktop ${pkgdir}/usr/share/applications/ || return 1
}

It wont compile. This is modified firefox-optimized pkgbuild.
I know I've missed something in the build section but I'm not sure what.
Tried with the firefox-beta-pgo build section but with no success.
Please help.

Note: I've used firefox-optimized mozconfig. Could that be it?

maybe you should start with posting the error you got. [edit] you did it while i was posting but... you need to copy/paste a bit earlier in the build process. this is unfortunately useless. [/edit]

ammon wrote:

But it dont know about that with C flags etc...

no worries:

PKGBUILD wrote:

unset CFLAGS
unset CXXFLAGS

even if, FTR, it works with custom CFLAGS

Last edited by bangkok_manouel (2009-04-30 13:47:43)

Offline

#11 2009-04-30 18:03:42

adamlau
Member
Registered: 2009-01-30
Posts: 418

Re: Firefox 3.5b4

3.0.10 PGO and 3.5b4 build w/o issue, 3.5b4 PGO does not. Have tried about 15 diff mozconfigs, no go, diff errors depending on options used.


Arch Linux + sway
Debian Testing + GNOME/sway
NetBSD 64-bit + Xfce

Offline

#12 2009-04-30 18:06:29

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: Firefox 3.5b4


Give what you have. To someone, it may be better than you dare to think.

Offline

#13 2009-04-30 18:31:29

adamlau
Member
Registered: 2009-01-30
Posts: 418

Re: Firefox 3.5b4

That patch may be the ticket, will try it out tonight...


Arch Linux + sway
Debian Testing + GNOME/sway
NetBSD 64-bit + Xfce

Offline

#14 2009-04-30 23:19:06

ammon
Member
Registered: 2008-12-11
Posts: 413

Re: Firefox 3.5b4

Yep, it works. I use it right now. Fantastic!

Offline

#15 2009-05-03 04:50:35

methuselah
Member
Registered: 2007-10-02
Posts: 570

Re: Firefox 3.5b4

adamlau wrote:

That patch may be the ticket, will try it out tonight...

I've been having trouble building the 3.5beta4 PGO. Did you ever get this to work properly.

I usually build with the blasse PGO package but it won't build since 3.1b3: http://aur.archlinux.org/packages.php?ID=22919

I've also tried this one: http://aur.archlinux.org/packages.php?ID=26057 as PGO and I keep getting the same error:

make[7]: *** [libbrowsercomps.so] Error 1
make[7]: Leaving directory `/tmp/pacbuilder/build/firefox-3.5/src/mozilla-1.9.1/ff-opt-obj/browser/components/build'
make[6]: *** [libs] Error 2
make[6]: Leaving directory `/tmp/pacbuilder/build/firefox-3.5/src/mozilla-1.9.1/ff-opt-obj/browser/components'
make[5]: *** [libs] Error 2
make[5]: Leaving directory `/tmp/pacbuilder/build/firefox-3.5/src/mozilla-1.9.1/ff-opt-obj/browser'
make[4]: *** [libs_tier_app] Error 2
make[4]: Leaving directory `/tmp/pacbuilder/build/firefox-3.5/src/mozilla-1.9.1/ff-opt-obj'
make[3]: *** [tier_app] Error 2
make[3]: Leaving directory `/tmp/pacbuilder/build/firefox-3.5/src/mozilla-1.9.1/ff-opt-obj'
make[2]: *** [default] Error 2
make[2]: Leaving directory `/tmp/pacbuilder/build/firefox-3.5/src/mozilla-1.9.1/ff-opt-obj'
make[1]: *** [build] Error 2
make[1]: Leaving directory `/tmp/pacbuilder/build/firefox-3.5/src/mozilla-1.9.1'
make: *** [profiledbuild] Error 2

Last edited by methuselah (2009-05-03 05:01:44)

Offline

#16 2009-05-03 06:11:58

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: Firefox 3.5b4

methuselah wrote:
adamlau wrote:

That patch may be the ticket, will try it out tonight...

I've been having trouble building the 3.5beta4 PGO. Did you ever get this to work properly.

I usually build with the blasse PGO package but it won't build since 3.1b3: http://aur.archlinux.org/packages.php?ID=22919

I've also tried this one: http://aur.archlinux.org/packages.php?ID=26057 as PGO and I keep getting the same error:

make[7]: *** [libbrowsercomps.so] Error 1
make[7]: Leaving directory `/tmp/pacbuilder/build/firefox-3.5/src/mozilla-1.9.1/ff-opt-obj/browser/components/build'
make[6]: *** [libs] Error 2
make[6]: Leaving directory `/tmp/pacbuilder/build/firefox-3.5/src/mozilla-1.9.1/ff-opt-obj/browser/components'
make[5]: *** [libs] Error 2
make[5]: Leaving directory `/tmp/pacbuilder/build/firefox-3.5/src/mozilla-1.9.1/ff-opt-obj/browser'
make[4]: *** [libs_tier_app] Error 2
make[4]: Leaving directory `/tmp/pacbuilder/build/firefox-3.5/src/mozilla-1.9.1/ff-opt-obj'
make[3]: *** [tier_app] Error 2
make[3]: Leaving directory `/tmp/pacbuilder/build/firefox-3.5/src/mozilla-1.9.1/ff-opt-obj'
make[2]: *** [default] Error 2
make[2]: Leaving directory `/tmp/pacbuilder/build/firefox-3.5/src/mozilla-1.9.1/ff-opt-obj'
make[1]: *** [build] Error 2
make[1]: Leaving directory `/tmp/pacbuilder/build/firefox-3.5/src/mozilla-1.9.1'
make: *** [profiledbuild] Error 2

You didn't post the actual error message. It should be higher in the output.

Offline

#17 2009-05-04 04:00:27

methuselah
Member
Registered: 2007-10-02
Posts: 570

Re: Firefox 3.5b4

Snowman wrote:

You didn't post the actual error message. It should be higher in the output.

Sorry. I didn't realize that and I'm not sure where that first error was. I was able to build that package once I stopped adding my own exported LDFLAGS, and I also removed the 'nss-new' AUR package and replaced it with the new version of 'nss' from the extra repo.

However, for a PGO build it only took 3-5 minutes to build.... so I'm not sure if it really built as a PGO since that other Firefox-PGO package takes over 1 hour to compile.

Offline

#18 2009-05-04 06:52:56

blasse
Member
From: Poland
Registered: 2008-04-24
Posts: 303

Re: Firefox 3.5b4

It may be possible - my PGO built without standalone Xulrunner. That makes compiling much longer, but you don't need to compile separate xul wink


Proud ex-maintainer of firefox-pgo

Offline

#19 2009-05-04 07:01:56

adamlau
Member
Registered: 2009-01-30
Posts: 418

Re: Firefox 3.5b4

3-5 minutes? No way you built a PGO build. Even my Opteron box took about 30 minutes before the profile script started (and eventually failed) for 3.5b4.


Arch Linux + sway
Debian Testing + GNOME/sway
NetBSD 64-bit + Xfce

Offline

#20 2009-05-04 07:32:20

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,557

Re: Firefox 3.5b4

methuselah wrote:
Snowman wrote:

You didn't post the actual error message. It should be higher in the output.

Sorry. I didn't realize that and I'm not sure where that first error was. I was able to build that package once I stopped adding my own exported LDFLAGS, and I also removed the 'nss-new' AUR package and replaced it with the new version of 'nss' from the extra repo.

However, for a PGO build it only took 3-5 minutes to build.... so I'm not sure if it really built as a PGO since that other Firefox-PGO package takes over 1 hour to compile.

It is extremely likely that you did a PGO build of the front-end (official Arch packages are like this too), which is pretty useless.

Offline

#21 2009-05-04 08:16:13

blasse
Member
From: Poland
Registered: 2008-04-24
Posts: 303

Re: Firefox 3.5b4

Most of AUR Firefox pkgs build just front-end. Optimizing it is pretty useless. Optimizing makes sense when building xulrunner or standalone application without xulrunner wink


Proud ex-maintainer of firefox-pgo

Offline

#22 2009-05-04 09:12:38

ammon
Member
Registered: 2008-12-11
Posts: 413

Re: Firefox 3.5b4

Is firefox any faster without xulrunner (PGO package) or with it. I use ff 3.5b4 with custom compiled xulrunner. Performance is very, very good if matched with old ff.

Offline

#23 2009-05-04 10:25:16

blasse
Member
From: Poland
Registered: 2008-04-24
Posts: 303

Re: Firefox 3.5b4

PGO is much faster than normal build. It doesn't matter if you compile xulrunner with pgo or standalone ff with pgo. It's just a matter of your preferences.

EG. I'm using only one mozilla app - ff. So I don't need standalone xulrunner. That's why I packaged standalone ff. If someone is using FF, Thunderbird or anything more than one Mozilla app - standalone xulrunner is probably better smile

Last edited by blasse (2009-05-04 10:25:56)


Proud ex-maintainer of firefox-pgo

Offline

#24 2009-05-04 11:59:38

methuselah
Member
Registered: 2007-10-02
Posts: 570

Re: Firefox 3.5b4

bangkok_manouel wrote:
methuselah wrote:
Snowman wrote:

You didn't post the actual error message. It should be higher in the output.

Sorry. I didn't realize that and I'm not sure where that first error was. I was able to build that package once I stopped adding my own exported LDFLAGS, and I also removed the 'nss-new' AUR package and replaced it with the new version of 'nss' from the extra repo.

However, for a PGO build it only took 3-5 minutes to build.... so I'm not sure if it really built as a PGO since that other Firefox-PGO package takes over 1 hour to compile.

It is extremely likely that you did a PGO build of the front-end (official Arch packages are like this too), which is pretty useless.

Yeah, I figured that was the case since a profile-guided build will usually take over an hour on my computer.... I just didn't want to sound arrogant about it since it did have "client.mk profiledbuild" in the PKGBUILD.... so I just did a quick benchmark and then removed the package (barely faster than my proper pgo 3.1b3).....

Another quick question.... what does the ubuntu patch do for this 3.5 package?

Offline

#25 2009-05-04 12:15:19

methuselah
Member
Registered: 2007-10-02
Posts: 570

Re: Firefox 3.5b4

adamlau wrote:

3-5 minutes? No way you built a PGO build. Even my Opteron box took about 30 minutes before the profile script started (and eventually failed) for 3.5b4.

Yeah, I knew that.... 3.1b2 and 3.1b3 have both taken 1 hour+ to finish with my AMD Turion 64 X 2 running at 100% CPU for most of the build.....  I was just trying to be polite about it. I had actually edited my comment from:

..... so I don't think it really built as a PGO since that other Firefox-PGO package takes over 1 hour to compile.

to:

..... so I'm not sure if it really built as a PGO since that other Firefox-PGO package takes over 1 hour to compile.

Offline

Board footer

Powered by FluxBB