[Lunar-commits] <moonbase> firefox: This builds when you say yes to PGO. Appears to work fine, no
Dennis `stumbles` Veatch
stumbles at lunar-linux.org
Sun Aug 9 12:24:13 CEST 2009
commit 135dc8ad93696f739fe0d45d8ae7c6e10da73268
Author: Dennis `stumbles` Veatch <stumbles at lunar-linux.org>
Date: Sun Aug 9 06:24:13 2009 -0400
firefox: This builds when you say yes to PGO. Appears to work fine, no
crashes so far.
---
web/firefox/BUILD.x86_64 | 108 ++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 108 insertions(+), 0 deletions(-)
diff --git a/web/firefox/BUILD.x86_64 b/web/firefox/BUILD.x86_64
new file mode 100644
index 0000000..c736afe
--- /dev/null
+++ b/web/firefox/BUILD.x86_64
@@ -0,0 +1,108 @@
+(
+
+ #Really? You go and call fprintf and don't #include <cstdio>?
+ #How exactly did you plan on doing that?!?!
+ sedit 's:<cstdlib>:<cstdlib>\n#include <cstdio>:g' mozilla-1.9.1/toolkit/crashreporter/google-breakpad/src/common/linux/dump_symbols.cc
+ sedit 's:<cstdlib>:<cstdlib>\n#include <cstdio>:g' mozilla-1.9.1/toolkit/crashreporter/google-breakpad/src/client/linux/handler/exception_handler.cc
+ sedit 's:<cstdlib>:<cstdlib>\n#include <cstdio>:g' mozilla-1.9.1/toolkit/crashreporter/google-breakpad/src/client/linux/handler/minidump_generator.cc
+
+ if module_is_expired $MODULE && [ "$VERSION" != "`installed_version $MODULE`" ]; then
+ set_module_config OLD_VER "`installed_version $MODULE`"
+ fi &&
+
+ # This should always be just a link
+ rm -rf /usr/lib/firefox-$VERSION/plugins &&
+
+ export MOZILLA_HOME=/usr/lib/$MODULE-$VERSION
+ export MOZ_CO_PROJECT=browser
+ export MOZILLA_OFFICIAL=1
+ export BUILD_OFFICIAL=1
+
+ cp $SCRIPT_DIRECTORY/mozconfig mozilla-1.9.1/ &&
+
+ export MOZ_OBJDIR="${SOURCE_DIRECTORY}/build-mozilla"
+ mkdir -p ${MOZ_OBJDIR} &&
+
+ cd mozilla-1.9.1 &&
+
+ #Add DEPENDS options
+
+ if in_depends $MODULE dbus ; then
+ echo "ac_add_options --enable-dbus" >> mozconfig
+ else
+ echo "ac_add_options --disable-dbus" >> mozconfig
+ fi &&
+
+ if in_depends $MODULE sqlite ; then
+ echo "ac_add_options --enable-system-sqlite" >> mozconfig
+ fi &&
+
+ if in_depends $MODULE heimdal ; then
+ echo "ac_add_options --with-gssapi=/usr/include/heimdal" >> mozconfig
+ else
+ echo "ac_add_options --without-gssapi" >> mozconfig
+ fi &&
+
+ if in_depends $MODULE "xulrunner" ; then
+ XUL=`module_version xulrunner`
+ echo "ac_add_options --with-libxul-sdk=/usr/lib/xulrunner-devel-$XUL" >> mozconfig
+ fi &&
+
+ #Add CONFIGURE options
+
+ if [ "$SAFE" == "y" ] ; then
+ echo "ac_add_options --enable-safe-browsing" >> mozconfig
+ fi &&
+
+ if [ "$WEBSERVICES" == "y" ] ; then
+ echo "ac_add_options --enable-webservices" >> mozconfig
+ fi &&
+
+ setterm -bfreq -blength &&
+
+ #Finally, the build!
+ if [ "$PGO" == "y" ] ; then
+ #CCache breaks the pgo build
+ export CCACHE_DISABLE=1
+ echo "ac_add_options --enable-profile-guided-optimization" >> mozconfig &&
+ echo "mk_add_options PROFILE_GEN_SCRIPT='python $MOZ_OBJDIR/_profile/pgo/profileserver.py'" >> mozconfig &&
+ make -f client.mk build &&
+ make -f client.mk profiledbuild
+ else
+ make -f client.mk build
+ fi &&
+
+ cd ${MOZ_OBJDIR} &&
+ prepare_install &&
+ make install &&
+
+ # Put some important headers in place
+ mkdir -p /usr/include/firefox-$VERSION/nss &&
+ cp -Lf dist/private/nss/*.h dist/public/nss/*.h /usr/include/firefox-$VERSION/nss &&
+
+ # Install the plugins in the right directories
+ mkdir -p /opt/lunar/plugins &&
+ for plugin in `ls /usr/lib/firefox-$VERSION/plugins`; do
+ `install -m755 /usr/lib/firefox-$VERSION/plugins/$plugin /opt/lunar/plugins`; done &&
+
+ rm -rf /usr/lib/firefox-$VERSION/plugins &&
+ ln -snf /opt/lunar/plugins /usr/lib/firefox-$VERSION/plugins &&
+
+ # Now the .desktop file and the icon
+ mkdir -p /usr/share/applications /usr/share/pixmaps &&
+ install -m644 $SCRIPT_DIRECTORY/firefox.desktop /usr/share/applications &&
+ # please, dont just let the lin fail because /usr/share/pixmaps/firefox.xpm is an existing symlink...
+ rm -f /usr/share/pixmaps/firefox.xpm &&
+ install -m644 $MOZILLA_HOME/icons/mozicon50.xpm /usr/share/pixmaps/firefox.xpm &&
+
+ # Make firefox use its own icon
+
+ rm -rf /usr/lib/firefox-$VERSION/chrome/icons &&
+ mkdir -p /usr/lib/firefox-$VERSION/chrome/icons/default &&
+
+ for icon in 16 32 48; do
+ ln -sf /usr/lib/firefox-$VERSION/icons/mozicon128.png \
+ /usr/lib/firefox-$VERSION/chrome/icons/default/default$icon.png
+ done
+
+) > $C_FIFO 2>&1
More information about the Lunar-commits
mailing list