Firefox-pgo - profileserver.py

Heylo,
I succesfully compiled this a week ago, but a few days after my harddrive crashed(*click click beep beep pewwwweeesh*). I reinstalled arch on an usb drive, and now tried compiling it again, but it is getting stuck no matter what flags I tried at:
OBJDIR=/tmp/yaourt-tmp-busata/aur-firefox-pgo/firefox-pgo/src/mozilla-1.9.2/ff-pgo python /tmp/yaourt-tmp-busata/aur-firefox-pgo/firefox-pgo/src/mozilla-1.9.2/ff-pgo/_profile/pgo/profileserver.py
INFO | automation.py | Application pid: 28778
Xlib: extension "RANDR" missing on display ":99.0"
I'm using the pkgbuild from AUR, tried changing the march to nocona (which seems the one good for my processor), which got stuck at the same point, even though it compiled just fine last week.
Any thoughts?

I'd suggest asking in the pgo thread instead, and maybe do a search there first to see if others have had that problem.  if it's hanging at testing portion (where it goes to another X in framebuffer) you may need to try to disable that (on the pgo-thread the earlier PKGBUILDs did not use framebuffer for the profile tests)
Last edited by toxygen (2010-05-25 06:31:00)

Similar Messages

  • Firefox-pgo in AUR - several naive questions

    I just happened upon Ranguvar's firefox-pgo in the AUR.  It builds flawlessly with makepkg on my system and the installed binary feels faster than the one from the standard package. I have two naive questions:
    1)  I realize that it contains the same base src as the standard firefox package, but there are a number of patches the PKGBUILD applies.  Any potential security concerns of using this build over the standard one?
    2) One only has to build the package once, right?  I have been reading about pgo and from what I understand, the package is built once, the user actually bangs on the software while other executables monitor how it behaves to some log files, then, at some point in the future, the user re-builds the package and these log files are used to rebuild the it with user-specific optimizations.  Do I have that right and if so, how does one do it with this PKGBUILD?
    Thanks for the clarification.

    graysky wrote:Do we have a list of these in the mozconfig we can edit to disable?
    off the top of my head i think:
    ac_add_options --disable-safe-browsing
    ac_add_options --disable-crashreporter --disable-parental-controls
    ac_add_options --disable-installer --disable-updater
    are the main ones.  if you go to the mozilla developer center, the mozconfig options are not very detailed in description, they cover a few ones, then dump the rest with little or no details on what they're for.  and some are missing entirely.
    oh and if you're really not a fan of being tracked on your laptop, and dont arent into geocaching or geo trolling or whatever that "hobby" is
    --disable-necko-wifi
    and remove wireless-tools from the PKGBUILD build depends.  this is used as a poor man's gps by tracking wireless networks around your computer and triangulating to your position from there.  i'm still not sure why it's enabled by default, but oh well

  • Firefox-pgo 3.5.7

    im clearly missing something simple but when it opens firefox to test it i get an error:
    Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See
    http://projects.gnome.org/gconf/ for information. (Details - 1: Failed to get connection to session: Did not receive a reply. Possible causes include: the remote application did
    not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.)
    and everything times out then it just recompiles. i have firefox closed and reinstalled orbit2 but it still gave this

    You have compiled firefox-pgo on your computer before, right? You're just having a problem compiling the update from last night? Mine did compile and install without a problem.
    I'm sorry, I don't have much for suggestions. A search on Google hints that it might have something to do with root user. Are you making the package as root? Are there any firefox settings in the root home directory? If there is, trying deleting them. Consider creating a "fresh" new using and building firefox-pgo as that new user. (in other words, remove all gconf and firefox settings before compiling)

  • Firefox-PGO compilation error.

    Can anyone help with this? I'm losing my mind.

    As always, please don't cross post. The other thread has a response, so closing this one.
    http://bbs.archlinux.org/viewtopic.php?id=49774

  • [Solved?] Installing multiple versions of Firefox at the same time

    I would like to install the normal Firefox in the repositories and also firefox-pgo-minefield-smp from the AUR so that I may use either one as desired. 
    Looking at the current PKGBUILD from http://aur.archlinux.org/packages.php?ID=33506 (pkgbuild @ http://aur.archlinux.org/packages/firef … p/PKGBUILD ) I am thinking that perhaps I would modify this line:
    export LDFLAGS="-Wl,-rpath,/usr/lib/firefox-$_prever -Wl,-O1,--sort-common,--hash-style=gnu,--as-needed"
    to reflect the path where I would like to install it like so:
    export LDFLAGS="-Wl,-rpath,/opt/firefox-$_prever -Wl,-O1,--sort-common,--hash-style=gnu,--as-needed"
    And then presumably fix my symlink at /usr/bin/firefox to point back to /usr/lib/firefox-2.6 again. (and also fix the menu links and I realize I would have to use an ugly 'pacman -U tarball --force' to install it -- there's got to be a better way as that is very ugly and wrong surely???? Perhaps modify the pkgname as well as conflicts and provides so I could install it more normally?)
    Correct?  Would I also need to modify a prefix or such besides this and if so where in the pkgbuild (ideally) or source would you recommend (must I change the actual makefile or does my modification in the PKGBUILD take care of this?  Would you in your experience recommend another approach for this?
    I thought it wise to ask here before hacking away with this stuff and possibly hosing my system in unforeseen ways.   Please forgive my greenness.  I have spent a few hours researching this but still am not quite sure thus I ask. While I think I could do it with a straight compile with a modified configure I'm unsure of how to do it best using the arch tools...
    Thanks for your time.
    Last edited by davidm (2010-02-08 14:51:21)

    Basically solved but not yet mastered.
    So I've figured out how to do this, it works, but not yet optimally and I am unsure about some things.  Namely:
    [david@arch-desktop opt]$ ls -l /opt/bin
    total 0
    lrwxrwxrwx 1 root root 33 Feb 8 07:27 firefox -> /opt/lib/firefox-3.7a1pre/firefox
    [david@arch-desktop opt]$ ls -l /opt/lib
    total 8
    drwxr-xr-x 12 root root 4096 Feb 8 07:27 firefox-3.7a1pre
    drwxr-xr-x 3 root root 4096 Feb 8 07:27 firefox-devel-3.7a1pre
    [david@arch-desktop opt]$ ls -l /opt/lib/firefox-devel-3.7a1pre
    total 8
    lrwxrwxrwx 1 root root 25 Feb 8 07:27 bin -> /opt/lib/firefox-3.7a1pre
    lrwxrwxrwx 1 root root 31 Feb 8 07:27 idl -> /opt/share/idl/firefox-3.7a1pre
    lrwxrwxrwx 1 root root 29 Feb 8 07:27 include -> /opt/include/firefox-3.7a1pre
    lrwxrwxrwx 1 root root 39 Feb 8 07:27 lib -> /opt/lib/firefox-devel-3.7a1pre/sdk/lib
    drwxr-xr-x 3 root root 4096 Feb 8 07:27 sdk
    -rw-r--r-- 1 root root 2082 Feb 8 05:06 xpcom-config.h
    [david@arch-desktop lib]$ ls -l /opt/lib/firefox-3.7a1pre
    total 17428
    -rw-r--r-- 1 root root 2102 Feb 8 07:27 application.ini
    -rw-r--r-- 1 root root 2531 Feb 8 07:27 blocklist.xml
    -rw-r--r-- 1 root root 232 Feb 8 07:27 browserconfig.properties
    drwxr-xr-x 3 root root 4096 Feb 8 07:27 chrome
    drwxr-xr-x 2 root root 4096 Feb 8 07:27 components
    drwxr-xr-x 5 root root 4096 Feb 8 07:27 defaults
    -rw-r--r-- 1 root root 139 Feb 8 07:27 dependentlibs.list
    drwxr-xr-x 2 root root 4096 Feb 8 07:27 dictionaries
    drwxr-xr-x 3 root root 4096 Feb 8 07:27 extensions
    -rwxr-xr-x 1 root root 3913 Feb 8 07:27 firefox
    -rwxr-xr-x 1 root root 56788 Feb 8 07:27 firefox-bin
    -rw-r--r-- 1 root root 76888 Feb 8 07:27 greprefs.js
    drwxr-xr-x 2 root root 4096 Feb 8 07:27 icons
    -rwxr-xr-x 1 root root 1846520 Feb 8 07:27 libmozjs.so
    -rwxr-xr-x 1 root root 900176 Feb 8 07:27 libmozsqlite3.so
    -rwxr-xr-x 1 root root 11540 Feb 8 07:27 libxpcom.so
    -rwxr-xr-x 1 root root 14796800 Feb 8 07:27 libxul.so
    -rw-r--r-- 1 root root 30826 Feb 8 07:27 LICENSE
    drwxr-xr-x 2 root root 4096 Feb 8 07:27 modules
    -rwxr-xr-x 1 root root 3108 Feb 8 07:27 mozilla-runtime
    -rwxr-xr-x 1 root root 10720 Feb 8 07:27 mozilla-xremote-client
    -rw-r--r-- 1 root root 154 Feb 8 07:27 platform.ini
    drwxr-xr-x 2 root root 4096 Feb 8 07:27 plugins
    -rw-r--r-- 1 root root 177 Feb 8 07:27 README.txt
    -rw-r--r-- 1 root root 16712 Feb 8 07:27 removed-files
    drwxr-xr-x 6 root root 4096 Feb 8 07:27 res
    -rwxr-xr-x 1 root root 10370 Feb 8 07:27 run-mozilla.sh
    drwxr-xr-x 2 root root 4096 Feb 8 07:27 searchplugins
    [david@arch-desktop include]$ ls -l /opt/include
    total 80
    drwxr-xr-x 11 root root 77824 Feb 8 07:27 firefox-3.7a1pre
    It seems as though it is a bit messy, as if I have more than I need installed. Especially the two entries in /opt/lib/.  Do I really need all this?
    PKGBUILD:
    # Maintainer: Devin Cofer <ranguvar{AT]archlinux[DOT}us>
    # Contributor: blasse <koralik(at)gmail(dot)com>
    # PKGBUILD MODIFIED The above info does not apply. Modified by davidm for personal use, not intended for distribution.
    # This package is not a normal -hg package. I manually bump $_workingrev every now and again when
    # a revision of Firefox passes all of the Linux tests on http://bit.ly/1O4siz
    pkgname=firefox-electrolysis-nightly-opt
    pkgver=999901
    pkgrel=1
    _prever=3.7a1pre
    _workingrev='d2bed0c20e89'
    _mozver=central
    pkgdesc="Mozilla Firefox customizable web browser Electrolysis Nightly installed in opt (XULRunner independent, PGO optimized, 64-bit TraceMonkey, Dev tree, Multithreaded)"
    url="http://www.mozilla.org/projects/firefox"
    arch=('i686' 'x86_64')
    license=('MPL' 'GPL' 'LGPL')
    _soundsystem='alsa-lib' # 'alsa-lib' for ALSA, 'oss' for OSS
    makedepends=('mercurial' 'autoconf-compat' 'gcc>=4.4' 'zip' 'pkgconfig'
    'diffutils' 'libgnomeui>=2.24.1' 'python' 'wireless_tools')
    depends=('gtk2>=2.18.0' 'gcc-libs>=4.4' 'libidl2>=0.8.13' 'mozilla-common'
    'nss>=3.12.4' 'libxt' 'hunspell>=1.2.8' 'startup-notification>=0.10'
    'libnotify>=0.4' 'mime-types' 'dbus-glib>=0.82' 'desktop-file-utils'
    'cairo' ${_soundsystem})
    #provides=("firefox-electrolysis-nightly-opt=$_pkgver")
    #conflicts=('firefox-electrolysis-nightly-opt')
    install=$pkgname.install
    source=('mozconfig'
    'firefox-minefield-smp.desktop'
    'firefox-safe-minefield-smp.desktop'
    'fix-mozilla-launcher.patch'
    'mozilla-firefox-1.0-lang.patch'
    'ldflags-namespec.patch'
    'jemalloc-enable-pgo.patch'
    'potential-pgo-fix.patch')
    #Original hashes
    # sha256sums=('8d08ee111b88473a53e8c0852d463971af7a827f796a94d3fe74ca2eed76ca0b'
    # '21722965bb0bab05e3fbd2f584dbcaeb9f0726ed755f59bbf6fb26a7f964e6ec'
    # '00641e2d7ba45a607522a621aa86c21e13b2951ebca920b1e0b538b0e1188445'
    # 'd4948cc5878b2100b4d19b0fbc09119c34377593c5847678d5788db2b4e0fe43'
    # '0ca095ff2af57297f615877a7e79ddc84d1a3f62509a8af6ca50aad7a8671f6a'
    # '0e9631fdad5efa3fd7a95b59171f5d15420d10aa61748b920cc994ee9227915c'
    # 'e6b8345215eb0c595cadfd6b1abb3a12a1cad8b8b1f3528e6affc58900695215'
    # 'bf53a9712aada73dbecb45516bf932b52e7b8debf25cf19294adbfcc54d80028')
    #My MODIFIED HAshes
    md5sums=('ee857ec52fe3c7a047a282cfc5587d07'
    '68cf02788491c6e846729b2f2913bf79'
    '5e68cabfcf3c021806b326f664ac505e'
    '63eee2d1da3b43c9d604f2253f242f40'
    'bd5db57c23c72a02a489592644f18995'
    '9e461e5fc73b241d68d08be908405a5e'
    'df6fde73c9fdb38245f50b9b5bb09024'
    '9587e0e6da42c883e34a46ee35cc3b7d')
    # Don't use normal _hgroot/_hgrepo, we don't want Pacman automagically changing the pkgver.
    _ff_hgroot="http://hg.mozilla.org/projects/electrolysis"
    build() {
    msg "* Note: If the build fails, try again, try without jemalloc PGO, and try *"
    msg "* without PGO at all. Also, try with 'potential-pgo-fix.patch'. PGO can be *"
    msg "* temperamental -- it can sometimes take two or three builds before you'll *"
    msg "* get a good one. *"
    sleep 15
    cd "$srcdir"
    # It can take a long time to re-fetch the Mozilla source...
    # The commented lines are for use by experienced users who build often.
    hg clone "$_ff_hgroot/mozilla-$_mozver" "mozilla-$_mozver" || return 1
    # tar xf "$startdir/mozilla-$_mozver.tar.gz" || return 1
    cd "mozilla-$_mozver"
    # hg pull || return 1
    # hg update || return 1
    # cd ..
    # tar czf "$startdir/mozilla-$_mozver.tar.gz" "mozilla-$_mozver" || return 1
    # cd "mozilla-$_mozver"
    # hg up "$_workingrev" || return 1 # Comment out this line to use the untested latest source.
    cp "$srcdir/mozconfig" .mozconfig || return 1
    # Don't strip if the user doesn't want to... ;p
    if [ "$(check_option strip)" = "n" ]; then
    sed -i 's/--enable-strip/--disable-strip/' \
    .mozconfig || return 1
    sed -i 's/--enable-install-strip/--disable-install-strip/' \
    .mozconfig || return 1
    fi
    if [ "$_soundsystem" = "oss" ]; then
    msg "Using OSS instead of ALSA."
    sed -i 's/sydney_audio_alsa/sydney_audio_oss/' \
    media/libsydneyaudio/src/Makefile.in || return 1
    # Get rid of ALSA config system stuff (requires autoconf rerun)
    sed -i '/alsa\//d' config/system-headers || return 1
    sed -i '/alsa\//d' js/src/config/system-headers || return 1
    sed -i '/LIB(asound/d' configure.in || return 1
    fi
    msg "Patching source."
    msg "Patches from main Arch xulrunner/firefox packages..."
    # Fix stub launcher - Arch
    patch -Np0 -i "$srcdir"/fix-mozilla-launcher.patch || return 1
    # Use LANG environment variable to choose locale
    patch -Np1 -i "$srcdir"/mozilla-firefox-1.0-lang.patch || return 1
    msg "Patches from this package..."
    # PGO compilation LDFLAGS fix
    patch -Np1 -i "$srcdir"/ldflags-namespec.patch || return 1
    # Enable experimental PGO for jemalloc (speed).
    # See Mozilla bugs #418866 and #419470.
    patch -Np0 -i "$srcdir"/jemalloc-enable-pgo.patch || return 1
    # Sometimes necessary for PGO build to work, especially when PGO compile
    # aborts with an error about control sum mismatch (thx to methuselah!)
    # patch -Np1 -i "$srcdir/potential-pgo-fix.patch" || return 1
    msg "Setting up build."
    # Changing the user's optimization flags is justified, because this is
    # a package specifically for an optimized software build, and because of
    # the official branding, binaries can't be redistributed anyways.
    # These flags just set guidelines for the build, they are overridden in
    # most compile job pieces by Firefox's better judgement.
    #export CFLAGS="-march=native -O2 -pipe"
    #export CXXFLAGS="-march=native -O2 -pipe"
    export CFLAGS="-march=i686 -mtune=pentium4 -O2 -pipe -fomit-frame-pointer"
    export CXXFLAGS="-march=i686 -mtune=pentium4 -O2 -pipe -fomit-frame-pointer"
    # The hash-style and as-needed flags are in Arch defaults anyways,
    # and the other optimization falgs are almost definitely safe.
    export LDFLAGS="-Wl,-rpath,/opt/lib/firefox-$_prever -Wl,-O1,--sort-common,--hash-style=gnu,--as-needed"
    autoconf-2.13 || return 1
    msg "Actual build."
    # Yes, all this is SMP. MOZ_MAKE_FLAGS takes care of it.
    # Compile a non-PGO build first to reduce chance of error in PGO build.
    make -j1 -f client.mk build MOZ_MAKE_FLAGS="$MAKEFLAGS" || return 1
    # Comment out remaining lines for a non-PGO build.
    msg "Profiled build now."
    # Don't let PGO disrupt the user, use a virtual framebuffer.
    LD_PRELOAD="" /usr/bin/Xvfb -nolisten tcp -extension GLX :99 &
    XPID=$!
    DISPLAY=:99 LD_PRELOAD="" make -j1 -f client.mk profiledbuild \
    MOZ_MAKE_FLAGS="$MAKEFLAGS" || return 1
    kill -9 $XPID
    package() {
    cd "$srcdir/mozilla-$_mozver"
    make -j1 DESTDIR="$pkgdir" -C ff-pgo install || return 1
    # install -Dm644 "$srcdir/mozilla-$_mozver/other-licenses/branding/firefox/mozicon128.png" \
    # "$pkgdir/usr/share/pixmaps/firefox.png" || return 1
    # install -Dm644 "$srcdir/firefox--minefield-smp.desktop" \
    # "$pkgdir/usr/share/applications/firefox-minefield-smp.desktop" || return 1
    # install -Dm644 "$srcdir/firefox-safe-minefield-smp.desktop" \
    # "$pkgdir/usr/share/applications/firefox-safe-minefield-smp.desktop" \
    # || return 1
    # Remove devel stuff.
    rm -rf "$pkgdir/usr/include/"
    rm -rf "$pkgdir/usr/lib/firefox-devel-$_prever/"
    rm -rf "$pkgdir/usr/share/idl/"
    mozconfig:
    ac_add_options --enable-application=browser
    mk_add_options MOZ_CO_PROJECT=browser
    ac_add_options --prefix=/opt --libdir=/opt/lib
    ## System libs are preferred
    ac_add_options --with-system-nss --with-system-jpeg --with-pthread
    ac_add_options --with-system-zlib --with-system-libpng --with-system-bz2
    ac_add_options --enable-system-cairo --with-system-hunspell --with-system-sqlite
    ac_add_options --with-system-nspr
    ## GNU/Linux stuff
    ac_add_options --disable-installer --disable-updater
    ac_add_options --enable-official-branding
    ac_add_options --enable-startup-notification
    ## Optimize
    ac_add_options --disable-pedantic --enable-jemalloc --enable-xterm-updates
    ### Reverse these lines (enable vs disable) for a debug build
    ac_add_options --enable-optimize --disable-debug --disable-tests
    ac_add_options --enable-profile-guided-optimization
    ac_add_options --enable-strip --enable-install-strip
    ## Edit these as you see fit
    ac_add_options --disable-crashreporter --disable-parental-controls
    ac_add_options --enable-printing --enable-xinerama
    # Sane settings include cairo-gtk2-df, cairo-gtk2, and cairo-qt.
    ac_add_options --enable-default-toolkit=cairo-gtk2
    ac_add_options --enable-places --enable-svg --enable-pango --enable-canvas
    ac_add_options --enable-smil --disable-java-xpcom --enable-canvas3d
    # This is disabled in order to speed Firefox up, it prevents checking Google
    # for every single URL Firefox processes. If you're using this package, it's likely you already
    # know enough to be safe online, or are paranoid (perhaps with reason) about
    # Google getting your URLs. Also, this is GNU/Linux, we have somewhat less to fear ;-)
    ac_add_options --disable-safe-browsing
    mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/ff-pgo
    mk_add_options PROFILE_GEN_SCRIPT='$(PYTHON) $(MOZ_OBJDIR)/_profile/pgo/profileserver.py'
    export BUILD_OFFICIAL=1
    export MOZILLA_OFFICIAL=1
    mk_add_options BUILD_OFFICIAL=1
    mk_add_options MOZILLA_OFFICIAL=1
    # Want to change the compiler?
    #export CC='gcc-4.5'
    #export CXX='g++-4.5'
    ^ A dirty hack to download the latest nightly of the electrolysis tree, pgo optimized for an intel i686 P4 (not native to get around the seg fault bug). I just commented out the .desktop files as well as the icon for now. Also the conflicts and provides section have merely been commented out. The goal is to have this work independently from the standard firefox allowing me to run both on the system at the same time.
    Anyone see anything that I have missed and could fix as far as doing the separate install in /opt using makepkg and the pkgbuild?   I've been using arch less than a month and this is the first I've really hacked with a PKGBUILD and mozconfig so I feel I could really use the help. Any insight appreciated greatly.
    Last edited by davidm (2010-02-08 15:25:49)

  • Firefox Debug Build difficulties

    I'm trying to debug a problem (https://bugs.archlinux.org/task/26363) that I'm having with with firefox, and so I need a version with the symbols left in. I am having difficulty getting this.
    I tried compiling with options=(!strip) in the PKGBUILD, adding to the mozconfig file the following lines:
    export MOZ_DEBUG_SYMBOLS=1
    ac_add_options --enable-debug-symbols="-ggdb"
    ac_add_options --enable-debug
    ac_add_options --disable-optimize
    And tossed in
    export CFLAGS="$CFLAGS -g -O1"
    export CXXFLAGS="$CXXFLAGS -g -O1"
    after the sed in the default PKGBUILD (just for good measure).
    I ran into the xpcshell problem (https://bugs.archlinux.org/task/27729) so I installed devtools and ran
    sudo extra-i686-build
    inside the folder with the PKBUILD.
    It built a package, I installed it, and when I ran gdb, I found that I had no luck.
    $ gdb /usr/bin/firefox
    GNU gdb (GDB) 7.4
    Copyright (C) 2012 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law. Type "show copying"
    and "show warranty" for details.
    This GDB was configured as "i686-pc-linux-gnu".
    For bug reporting instructions, please see:
    <http://www.gnu.org/software/gdb/bugs/>...
    Reading symbols from /usr/bin/firefox...(no debugging symbols found)...done.
    Naive thought: Is it something to do with the extra-i686-build? It looks like it uses all the local and modified files, so I don't know why it would be that. On a related note, is there a way to get extra-i686-build to use a clean chroot but take advantage of the old compile? It takes nine hours on my machine to compile from start to finish, it seems.
    TIA,
    majiq.

    mozconfig
    . $topsrcdir/browser/config/mozconfig
    ac_add_options --prefix=/usr
    ac_add_options --libdir=/usr/lib
    # System libraries
    ac_add_options --with-system-nspr
    ac_add_options --with-system-nss
    ac_add_options --with-system-jpeg
    ac_add_options --with-system-zlib
    ac_add_options --with-system-bz2
    ac_add_options --with-system-png
    ac_add_options --with-system-libevent
    ac_add_options --with-system-libvpx
    ac_add_options --enable-system-hunspell
    ac_add_options --enable-system-sqlite
    ac_add_options --enable-system-ffi
    ac_add_options --enable-system-cairo
    ac_add_options --enable-system-pixman
    ac_add_options --with-pthreads
    # Features
    ac_add_options --enable-official-branding
    ac_add_options --enable-safe-browsing
    ac_add_options --enable-startup-notification
    ac_add_options --enable-gio
    ac_add_options --disable-gnomevfs
    ac_add_options --disable-crashreporter
    ac_add_options --disable-updater
    ac_add_options --disable-tests
    ac_add_options --disable-mochitest
    ac_add_options --disable-installer
    # Optimization
    ac_add_options --enable-optimize
    # PGO
    ac_add_options --enable-profile-guided-optimization
    mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/ff-pgo
    mk_add_options PROFILE_GEN_SCRIPT='$(PYTHON) $(MOZ_OBJDIR)/_profile/pgo/profileserver.py'
    mk_add_options PYTHONPATH='$(OBJDIR)/_profile/pgo'
    export MOZ_DEBUG_SYMBOLS=1
    ac_add_options --enable-debug-symbols="-ggdb"
    ac_add_options --enable-debug
    ac_add_options --disable-optimize
    export MOZILLA_OFFICIAL=1
    mk_add_options MOZILLA_OFFICIAL=1
    PKGBUILD
    # $Id: PKGBUILD 150400 2012-02-17 11:58:52Z ibiru $
    # Maintainer : Ionut Biru <[email protected]>
    # Contributor: Jakub Schmidtke <[email protected]>
    pkgname=firefox
    pkgver=10.0.2
    pkgrel=1
    pkgdesc="Standalone web browser from mozilla.org"
    arch=('i686' 'x86_64')
    license=('MPL' 'GPL' 'LGPL')
    depends=('gtk2' 'mozilla-common' 'nss>=3.13.1' 'libxt' 'hunspell' 'startup-notification' 'mime-types' 'dbus-glib' 'alsa-lib' 'sqlite3' 'libnotify' 'desktop-file-utils' 'libvpx' 'libevent' 'hicolor-icon-theme')
    makedepends=('unzip' 'zip' 'pkg-config' 'diffutils' 'python2' 'wireless_tools' 'yasm' 'mesa' 'autoconf2.13' 'libidl2' 'xorg-server-xvfb')
    url="http://www.mozilla.org/projects/firefox"
    install=firefox.install
    source=(ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/$pkgver/source/firefox-$pkgver.source.tar.bz2
    mozconfig firefox.desktop firefox-install-dir.patch vendor.js
    libvpx.patch)
    options=(!strip)
    build() {
    cd "$srcdir/mozilla-release"
    cp "$srcdir/mozconfig" .mozconfig
    patch -Np1 -i "$srcdir/firefox-install-dir.patch"
    patch -Np1 -i "$srcdir/libvpx.patch"
    # Fix PRE_RELEASE_SUFFIX
    sed -i '/^PRE_RELEASE_SUFFIX := ""/s/ ""//' \
    browser/base/Makefile.in
    export CFLAGS="$CFLAGS -g -O1"
    export CXXFLAGS="$CXXFLAGS -g -O1"
    export LDFLAGS="$LDFLAGS -Wl,-rpath,/usr/lib/firefox"
    export PYTHON="/usr/bin/python2"
    LD_PRELOAD="" /usr/bin/Xvfb -nolisten tcp -extension GLX -screen 0 1280x1024x24 :99 &
    LD_PRELOAD="" DISPLAY=:99 make -j1 -f client.mk profiledbuild MOZ_MAKE_FLAGS="$MAKEFLAGS"
    kill $! || true
    package() {
    cd "$srcdir/mozilla-release"
    make -j1 -f client.mk DESTDIR="$pkgdir" install
    install -m644 "$srcdir"/vendor.js "$pkgdir/usr/lib/firefox/defaults/pref"
    for i in 16x16 22x22 24x24 32x32 48x48 256x256; do
    install -Dm644 browser/branding/official/default${i/x*/}.png \
    "$pkgdir/usr/share/icons/hicolor/$i/apps/firefox.png"
    done
    install -Dm644 "$srcdir/firefox.desktop" \
    "$pkgdir/usr/share/applications/firefox.desktop"
    rm -rf "$pkgdir"/usr/lib/firefox/{dictionaries,hyphenation}
    ln -sf /usr/share/hunspell "$pkgdir/usr/lib/firefox/dictionaries"
    ln -sf /usr/share/hyphen "$pkgdir/usr/lib/firefox/hyphenation"
    # We don't want the development stuff
    rm -r "$pkgdir"/usr/{include,lib/firefox-devel,share/idl}
    #workaround for now
    #https://bugzilla.mozilla.org/show_bug.cgi?id=658850
    ln -sf firefox "$pkgdir/usr/lib/firefox/firefox-bin"
    md5sums=('5ce038d591964f72c534fa33b75a62f5'
    '4cfc9ad2042859e9f296fdcd1c3c451c'
    'bdeb0380c7fae30dd0ead6d2d3bc5873'
    '594523c536a9be951b52c90dd85aff18'
    '0d053487907de4376d67d8f499c5502b'
    '5d418ecdbdb9f40597df6b978b0b5ee5')

  • Trying to install firefox-3.5, x86_64

    There are so many packages on AUR for firefox-3.5, but they require xulrunner-1.9.1. So, I installed xulrunner-1.9.1 from AUR through yaourt, but even after installing xulrunner-1.9.1 from AUR, when trying to install firefox-3.5 I still get a message saying that it requires xulrunner-1.9.1.
    How do I fix this?

    Try one that does not require Xulrunner (externally), like Firefox-PGO.
    Last edited by DevoidOfWindows (2009-07-05 06:04:35)

  • Is Firefox 3.0.6 available on arch?

    Is there an upgrade for firefox 3.0.6?  I know arch uses grandparadiso.  Where can I get it?
    Thanks

    quarkup wrote:
    anyway, you got this in aur:
    aur/firefox-pgo 3.0.6-1 (27)
        Mozilla Firefox, the way it should be packaged (https://developer.mozilla.org/en/Buildi … timization). Replacement for firefox-spookyet. XULRunner independent
    I got this last night, so far it's working good. 
    Can someone be kind enough to explain the diff between this package, the "official" one in extra, the firefox-optimized, and firefox-spookyet packages?  (i know there's about a dozen other "firefox" packages out there, but these are the main ones i've built over the last few months, and so far i'd say spookyet and pgo were the ones that seemed snappier and more stable). 
    I've seen the mozconfig's on all of these, and they have a lot of minor (and a couple of major) differences, but both the AUR and PKGBUILDs provide very little useful info on what they actually do different.

  • Firefox performance issues

    So far I really like Arch... but any help with this problem would be great.
    I have moved from Gentoo to Arch and so far really like it. I am using LVM on LUKS encrypted partition, with KDE base for a desktop manager.  This all works perfectly and I am using yaourt to install from teh AUR repos.
    The only problem I have, and it is one that would possibly force me back onto another distro is; Firefox performance and website looks.
    As a lot of work I do is through a web browser I need this to be working real well. These problems do not occur on a netbook I also have with Ubuntu 10.04 and Firefox installed.
    The problems;
    1) speed of browsing - This is very slow going to new pages and refreshing
    2) some web pages do not display correctly, sections seem to be moved further down the page as though the frames don't all fit in properly.
    This is what I have installed that is related to these problems;
    firefox-branded (AUR)
    openjdk6
    icedtea-web
    flashplugin
    ttf-bitstream-vera
    ttf-dejavu
    xf86-video-intel
    lib32-intel-dri
    I have tried;
    a) unticking 'allow pages to choose their own fonts' in Firefox preferences
    b) changing layout.css.dpi from -1 to 0 in about:config
    c) removing firefox-branded and using firefox-branded-bin
    My environment;
    2.6.37-ARCH #1 SMP PREEMPT Tue Mar 8 08:34:35 CET 2011 x86_64 Intel(R) Pentium(R) CPU P6100 @ 2.00GHz GenuineIntel GNU/Linux
    lspci |grep -i vga
    00:02.0 VGA compatible controller: Intel Corporation Core Processor Integrated Graphics Controller (rev 18)
    4 GB RAM
    Anyone got any ideas?
    Thanks
    Last edited by banksy (2011-03-16 10:24:50)

    I can recommend firefox-pgo-beta from AUR. It's really fast, and it looks very good. I think it uses system cairo. I actually set firefox to use the Ubuntu font by default everywhere, and it works very good.
    You could also try moving Firefox's cache to a ramdisk. That is supposed to increase speeds even more. Instructions are found in the wiki.
    Also, since you are using KDE, you might wanna check out the 'Oxygen KDE' extension for firefox. It makes Firefox a bit slower, but on the other hand it blends in really well in KDE. This is found in kde-look.org. Here is my screenshot included as an example: http://i.imgur.com/UPkQi.png

  • FireFox garbled after update last night.

    Saw .33 was pushed out of testing, ran the upgrade, this morning I tried to open firefox (firefox-pgo-beta from the AUR). It was completely garbled, so I rebuilt it. Still garbled. So I removed it and installed the binary firefox release from Extra. Still garbled.
    Obvious things like starting in safe mode, deleting ~/.mozilla, etc. have all failed. I'm open to suggestions, but the first person to suggest I switch to Chrome gets a kitten thrown at them.
    Edit: Oh, and as you can probably see, underneath it all FireFox *is* running. If I try hard enough to make out where stuff is, I can still browse the web, but it's otherwise unusable. Other GTK applications seem to be working fine.
    Last edited by Gary13579 (2010-04-10 07:07:21)

    the_eye wrote:a) yep, confirmed, thjat's better. though what I did was compare your example above to the one from the wiki and add the lines that are there in yours but aren't in the wiki ..
    namely the one about AccelDFS and the one about ClockGating. whatever that means, it leads to some quite dramatic improvements, performance-wise, even when using EXA. Nevertheless, still feels slightly less snappy than with XAA but is now useable AND firefox works.
    Probably AccelDFS then. ClockGating is for power saving (I doubt its even working though, I underclocked the card anyway). Manpage says its some KMS related speed improvement stuff.
    I dont have the time to test XAA right now, but I didnt experience any errors despite firefox. Video, other windows and Wesnoth menu screen worked snappy as expected.

  • Firefox perfomance

    about:buildconfig
    Compiler Version Compiler flags
    gcc gcc version 4.6.0 20110415 (prerelease) (GCC) -Wall -W -Wno-unused -Wpointer-arith -Wcast-align -W -fno-strict-aliasing -pthread -pipe -DNDEBUG -DTRIMMED -Os -freorder-blocks -fomit-frame-pointer
    c++ gcc version 4.6.0 20110415 (prerelease) (GCC) -fno-rtti -fno-exceptions -Wall -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align -Wno-invalid-offsetof -Wno-variadic-macros -Werror=return-type -fpermissive -fno-strict-aliasing -fshort-wchar -pthread -pipe -DNDEBUG -DTRIMMED -Os -freorder-blocks -fomit-frame-pointer
    why only -Os? why not -O2 or even -O3? in other distros (such as SUSE for example) firefox much more optimized and much more faster
    p.s. sorry for bad english. i'm not english speaking

    Cheer up, our woes will probably be over soon.
    Read this on /. yesterday:
    http://linux.slashdot.org/story/11/04/3 … As-Windows
    Also if you impatient enough, then try this"
    http://aur.archlinux.org/packages.php?ID=22296
    I tried firefox-pgo with the 3.6 series. It did feel snappier, but it wasn't worth the 2 hour compile time, that my poor and hot-headed (read get very hot, very fast) p4 had to go through.
    Last edited by x33a (2011-05-02 04:38:08)

  • Firefox Tearing when Scrolling - How to enable Vsync.

    Peace ppl!
    I'm experiencing firefox tearing issues/visual artifacts when smooth scrolling is enabled on aur/firefox-pgo 3.6.6-1.
    One way to solve this is to enable vsync. Simply enable desktop effects on kde4 and enable vsync.
    $ glxgears
    Running synchronized to the vertical refresh.  The framerate should be
    approximately the same as the monitor refresh rate.
    263 frames in 5.0 seconds = 52.432 FPS
    The fps is close to the monitor refresh rate of 60Hz.
    The weird thing is if I disable desktop effects thereafter, the vsync setting still stands!
    Is there a way to enable vsync without going through all this?
    Perhaps through an xorg.conf setting. (Don't have one now; not required)
    Thanks in advance!

    http://www.zupmage.eu/i/bV8yTk2LIZ.png
    Disabled smooth scrolling and resolve my problem
    -- mod edit: read the Forum Etiquette and only post thumbnails http://wiki.archlinux.org/index.php/For … s_and_Code [jwr] --

  • Firefox-QT

    There is one firefox-qt package in AUR, but it is very old. Now Firefox-QT is in Master branch, to compile it you must set "--enable-default-toolkit=cairo-qt" to configure. Ive tried making pkgbuild but got error when compiling:
    gfxQPainterSurface.cpp
    c++ -o gfxQPainterSurface.o -c -I../../../dist/include/system_wrappers -include ../../../config/gcc_hidden.h -DIMPL_THEBES -DMOZILLA_INTERNAL_API -D_IMPL_NS_COM -DEXPORT_XPT_API -DEXPORT_XPTC_API -D_IMPL_NS_COM_OBSOLETE -D_IMPL_NS_GFX -D_IMPL_NS_WIDGET -DIMPL_XREAPI -DIMPL_NS_NET -DIMPL_THEBES -DOSTYPE=\"Linux2.6\" -DOSARCH=Linux -I. -I. -I../../../dist/include/cairo -I../../../dist/include/string -I../../../dist/include/pref -I../../../dist/include/xpcom -I../../../dist/include/unicharutil -I../../../dist/include/lcms -I../../../dist/include/locale -I../../../dist/include -I../../../dist/include/thebes -I/usr/include/nspr -I/home/dinth/builds/firefox-pgo-beta/src/mozilla-1.9.1/dist/sdk/include -fPIC -fno-rtti -fno-exceptions -Wall -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align -Wno-invalid-offsetof -Wno-long-long -pedantic -fno-strict-aliasing -fshort-wchar -pthread -pipe -DNDEBUG -DTRIMMED -Os -freorder-blocks -fno-reorder-functions -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -DQT_SHARED -I/usr/include/QtGui -I/usr/include/QtCore -I/usr/include/QtNetwork -I/usr/include/QtUiTools -I/usr/include/QtXml -DMOZILLA_CLIENT -include ../../../mozilla-config.h -Wp,-MD,.deps/gfxQPainterSurface.pp gfxQPainterSurface.cpp
    In file included from gfxQPainterSurface.cpp:43:
    ../../../dist/include/system_wrappers/cairo-qpainter.h:3:33: error: cairo-qpainter.h: Nie ma takiego pliku ani katalogu
    gfxQPainterSurface.cpp: In constructor 'gfxQPainterSurface::gfxQPainterSurface(QPainter*)':
    gfxQPainterSurface.cpp:47: error: 'cairo_qpainter_surface_create' was not declared in this scope
    gfxQPainterSurface.cpp: In constructor 'gfxQPainterSurface::gfxQPainterSurface(const gfxIntSize&, gfxASurface::gfxImageFormat)':
    gfxQPainterSurface.cpp:56: error: 'cairo_format_t' was not declared in this scope
    gfxQPainterSurface.cpp:58: error: 'cairo_qpainter_surface_create_with_qimage' was not declared in this scope
    gfxQPainterSurface.cpp:59: error: 'cairo_qpainter_surface_get_qpainter' was not declared in this scope
    gfxQPainterSurface.cpp: In constructor 'gfxQPainterSurface::gfxQPainterSurface(const gfxIntSize&, gfxASurface::gfxContentType)':
    gfxQPainterSurface.cpp:66: error: 'cairo_content_t' was not declared in this scope
    gfxQPainterSurface.cpp:68: error: 'cairo_qpainter_surface_create_with_qpixmap' was not declared in this scope
    gfxQPainterSurface.cpp:69: error: 'cairo_qpainter_surface_get_qpainter' was not declared in this scope
    gfxQPainterSurface.cpp: In constructor 'gfxQPainterSurface::gfxQPainterSurface(cairo_surface_t*)':
    gfxQPainterSurface.cpp:76: error: 'cairo_qpainter_surface_get_qpainter' was not declared in this scope
    gfxQPainterSurface.cpp: In member function 'QImage* gfxQPainterSurface::GetQImage()':
    gfxQPainterSurface.cpp:91: error: 'cairo_qpainter_surface_get_qimage' was not declared in this scope
    gfxQPainterSurface.cpp: In member function 'already_AddRefed<gfxImageSurface> gfxQPainterSurface::GetImageSurface()':
    gfxQPainterSurface.cpp:100: error: 'cairo_qpainter_surface_get_image' was not declared in this scope
    make[5]: *** [gfxQPainterSurface.o] Błąd 1
    make[5]: Opuszczenie katalogu `/home/dinth/builds/firefox-pgo-beta/src/mozilla-1.9.1/gfx/thebes/src'
    make[4]: *** [libs] Błąd 2
    make[4]: Opuszczenie katalogu `/home/dinth/builds/firefox-pgo-beta/src/mozilla-1.9.1/gfx/thebes'
    make[3]: *** [libs] Błąd 2
    make[3]: Opuszczenie katalogu `/home/dinth/builds/firefox-pgo-beta/src/mozilla-1.9.1/gfx'
    make[2]: *** [libs_tier_gecko] Błąd 2
    make[2]: Opuszczenie katalogu `/home/dinth/builds/firefox-pgo-beta/src/mozilla-1.9.1'
    make[1]: *** [tier_gecko] Błąd 2
    make[1]: Opuszczenie katalogu `/home/dinth/builds/firefox-pgo-beta/src/mozilla-1.9.1'
    make: *** [default] Błąd 2

    I did some work and got it to work :-)
    See my blog:
    http://friesoft.wordpress.com/2010/04/0 … x-you-can/
    [Edit]: whoops... wrong year.. f***** sorry...
    Last edited by friesoft (2010-04-01 22:28:59)

  • [SOLVED] Can't build Firefox anymore, wants old libjpeg?

    I first noticed this problem with my firefox-pgo package, but it appears the problem is specific to my system, and occurs even when I build [extra] firefox.
    My builds, even though I have libjpeg 8 and don't have the 'libjpeg7' package, always result in a Firefox that wants version 7 of libjpeg, and fails because it can't find it (ldd confirms).
    The interesting part is that any other package I build is fine with libjpeg 8 (ldd confirms with a built imlib2).
    Any help would, obviously, be much appreciated.
    EDIT: Got it fixed, somehow... not sure how.
    Uninstalled old Firefox first, re-installed a lot of packages, rebuilt a lot of packages, and scoured my drive of unpackaged files.
    Last edited by Ranguvar (2010-02-07 19:16:23)

    Thanks for your reply. Well you're right, few more infos won't hurt...
    I'm indeed using PKGBUILD from ABS. (no custom build)
    Arch : i686
    Dist : Testing (up2date)
    [eb@blackout ~]$ pacman -Qi perl
    Name : perl
    Version : 5.8.8-5
    URL : http://www.perl.org
    License : None
    Groups : None
    Provides : None
    Depends On : glibc coreutils gdbm db>=4.5
    Removes : None
    Required By : automake bogofilter groff inkscape lm_sensors perl-date-manip perl-error
    perl-extutils-depends perl-extutils-pkgconfig perl-gnome2-wnck perl-libintl-perl
    perl-locale-gettext perl-uri perl-xmms perlpanel perlxml procinfo vim
    Conflicts With : None
    Installed Size : 30503.13 K
    Packager : Tobias Powalowski <[email protected]>
    Architecture : i686
    Build Date : Mon Mar 12 18:29:03 2007 UTC
    Build Type : Unknown
    Install Date : Sat Aug 4 17:51:35 2007 UTC
    Install Reason : Installed as a dependency for another package
    Install Script : Yes
    Description : Practical Extraction and Report Language

  • Firefox HTML 5 with OSS

    HTML 5 audio (<video> + <audio>) will not work in Firefox. I'm using firefox-nightly from the AUR along with xulrunner-oss from the AUR.
    Yet when I try to view Dailymotion's demo video, the video works but the sound doesn't. When I try YouTube's demo video, neither work.
    The volume for Firefox is turned up in the OSSXMix settings and is turned up in the video. Still nothing.

    since you're using nightly from aur, try one of the pgo builds (firefox-pgo-minefield for nightly type, or firefox-pgo-beta for 3.6).  you can build either with or without pgo, and they patch for better oss support in firefox. 
    also check out some of the posts in the pgo-thread which might give you some ideas.
    html 5 video is still very buggy with linux/firefox from my experience.  some pages work well, some dont work at all.
    Last edited by toxygen (2010-01-16 18:21:00)

Maybe you are looking for

  • Hiding a tab?

    I'd like to show a tab view in a dialog with different amount of tabs depending on some variable. However, the following code does not seem to work, it always shows two tabs (i.e. the visible -variable in the second tab_view_item is ignored). f:tab_v

  • Weblogic Server 9.2 - JMS File Store not working as expected.

    Hi, I am facing a problem at the server startup possibly due to huge size of the JMS File Store created. My question is that our application receives messages via MDB (container managed), Even after successfully processing the message, the message wh

  • Number range for serial Number in production order

    Hi all,             I want to use the Serial Number in production Order ... It should be generated automatically ... when i try this system creating the serial number from 1.....i want the number to start from 2000000 , How to configure this number r

  • OK, So How Much RAM Does Photoshop CS5 Use?

    ANSWER: All you give it, lol! I posted this for those buying or building a PC and are deciding "how much RAM do I need?" I built a fairly powerful rig for Photoshop and editing in Premiere Pro, and without all the tech specs, I have 24GB of ram, most

  • DTP - Formula - Question

    Hello, I want to create a new formula in DTP (DSO to Cube). The new formula should fill new key figure. In long description the formula should look like: = summation ((If(..... The question is about "summation". The only area where I can change is in