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

Evangelos Foutras foutrelis at nymeria.archlinux.org
Wed Apr 10 13:31:29 UTC 2013


    Date: Wednesday, April 10, 2013 @ 15:31:29
  Author: foutrelis
Revision: 182417

Add workaround for preprocessor misdetection (FS#34644).

Modified:
  thunderbird/trunk/PKGBUILD

----------+
 PKGBUILD |   10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-04-10 13:31:16 UTC (rev 182416)
+++ PKGBUILD	2013-04-10 13:31:29 UTC (rev 182417)
@@ -27,12 +27,20 @@
          '1c6f47b315a5d7830f8e901b1f723cfc'
          '5a53179d14ae9631b7afe5e4d0fc0b25')
 
-build() {
+prepare() {
   cd comm-esr17
   patch -Np1 -i "$srcdir/thunderbird-install-dir.patch"
 
   cp "$srcdir/mozconfig" .mozconfig
 
+  # 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 comm-esr17
+
   export LDFLAGS="$LDFLAGS -Wl,-rpath,/usr/lib/thunderbird"
   export PYTHON="/usr/bin/python2"
 




More information about the arch-commits mailing list