[arch-commits] Commit in firefox/trunk (PKGBUILD)

Evangelos Foutras foutrelis at nymeria.archlinux.org
Wed Apr 10 13:20:57 UTC 2013


    Date: Wednesday, April 10, 2013 @ 15:20:56
  Author: foutrelis
Revision: 182414

Add workaround for preprocessor misdetection (FS#34644).

Modified:
  firefox/trunk/PKGBUILD

----------+
 PKGBUILD |   12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-04-10 13:01:03 UTC (rev 182413)
+++ PKGBUILD	2013-04-10 13:20:56 UTC (rev 182414)
@@ -26,7 +26,7 @@
          '0d053487907de4376d67d8f499c5502b'
          '52e52f840a49eb1d14be1c0065b03a93')
 
-build() {
+prepare() {
   cd mozilla-release
 
   cp ../mozconfig .mozconfig
@@ -38,7 +38,6 @@
     browser/base/Makefile.in
 
   mkdir "$srcdir/path"
-  export PATH="$srcdir/path:$PATH"
 
   # WebRTC build tries to execute "python" and expects Python 2
   ln -s /usr/bin/python2 "$srcdir/path/python"
@@ -46,6 +45,15 @@
   # Use gold, as Mozilla can use some of its features, such as safe ICF
   ln -s /usr/bin/ld.gold "$srcdir/path/ld"
 
+  # configure script misdetects the preprocessor without an optimization level
+  # https://bugs.archlinux.org/task/34644
+  sed -i '/ac_cpp=/s/$CPPFLAGS/& -O2/' configure
+}
+
+build() {
+  cd mozilla-release
+
+  export PATH="$srcdir/path:$PATH"
   export LDFLAGS="$LDFLAGS -Wl,-rpath,/usr/lib/firefox"
   export PYTHON="/usr/bin/python2"
   export MOZ_MAKE_FLAGS="$MAKEFLAGS"




More information about the arch-commits mailing list