[lfs-patches] r2392 - trunk/firefox

andy at linuxfromscratch.org andy at linuxfromscratch.org
Sat Mar 17 18:38:07 PDT 2012


Author: andy
Date: 2012-03-17 19:38:02 -0600 (Sat, 17 Mar 2012)
New Revision: 2392

Added:
   trunk/firefox/firefox-11.0_gcc-4.7-1.patch
Log:
compile firefox with gcc-4.7

Added: trunk/firefox/firefox-11.0_gcc-4.7-1.patch
===================================================================
--- trunk/firefox/firefox-11.0_gcc-4.7-1.patch	                        (rev 0)
+++ trunk/firefox/firefox-11.0_gcc-4.7-1.patch	2012-03-18 01:38:02 UTC (rev 2392)
@@ -0,0 +1,61 @@
+Submitted By: Andrew Benton <andy at benton.eu.com>
+Date: 2012-03-18
+Initial Package Version: 11.0
+Upstream Status: Submitted to  Mozilla Bugzilla bug #736765
+Origin: http://gcc.gnu.org/gcc-4.7/porting_to.html
+Description: Fixes compiling firefox-11.0 with gcc-4.7
+The same effect can be achieved with these seds:
+
+sed -i 's:#if defined(ANDROID):& || defined(OS_POSIX):' \
+ipc/chromium/src/base/file_util.cc
+sed -i '/fcntl.h/a#include <unistd.h>' ipc/chromium/src/base/file_util_linux.cc
+sed -i '/fcntl.h/a#include <unistd.h>' \
+ipc/chromium/src/base/message_pump_libevent.cc
+sed -i '/sys\/time\.h/a#include <unistd.h>' ipc/chromium/src/base/time_posix.cc
+
+
+diff -Naur mozilla-release.orig/ipc/chromium/src/base/file_util.cc mozilla-release/ipc/chromium/src/base/file_util.cc
+--- mozilla-release.orig/ipc/chromium/src/base/file_util.cc	2012-03-13 01:36:29.000000000 +0000
++++ mozilla-release/ipc/chromium/src/base/file_util.cc	2012-03-18 01:23:05.750834540 +0000
+@@ -8,7 +8,7 @@
+ #include <io.h>
+ #endif
+ #include <stdio.h>
+-#if defined(ANDROID)
++#if defined(ANDROID) || defined(OS_POSIX)
+ #include <unistd.h>
+ #endif
+ 
+diff -Naur mozilla-release.orig/ipc/chromium/src/base/file_util_linux.cc mozilla-release/ipc/chromium/src/base/file_util_linux.cc
+--- mozilla-release.orig/ipc/chromium/src/base/file_util_linux.cc	2012-03-13 01:36:29.000000000 +0000
++++ mozilla-release/ipc/chromium/src/base/file_util_linux.cc	2012-03-18 01:23:05.757501140 +0000
+@@ -5,6 +5,7 @@
+ #include "base/file_util.h"
+ 
+ #include <fcntl.h>
++#include <unistd.h>
+ 
+ #include <string>
+ #include <vector>
+diff -Naur mozilla-release.orig/ipc/chromium/src/base/message_pump_libevent.cc mozilla-release/ipc/chromium/src/base/message_pump_libevent.cc
+--- mozilla-release.orig/ipc/chromium/src/base/message_pump_libevent.cc	2012-03-13 01:36:29.000000000 +0000
++++ mozilla-release/ipc/chromium/src/base/message_pump_libevent.cc	2012-03-18 01:23:05.760834441 +0000
+@@ -6,6 +6,7 @@
+ 
+ #include <errno.h>
+ #include <fcntl.h>
++#include <unistd.h>
+ 
+ #include "eintr_wrapper.h"
+ #include "base/logging.h"
+diff -Naur mozilla-release.orig/ipc/chromium/src/base/time_posix.cc mozilla-release/ipc/chromium/src/base/time_posix.cc
+--- mozilla-release.orig/ipc/chromium/src/base/time_posix.cc	2012-03-13 01:36:29.000000000 +0000
++++ mozilla-release/ipc/chromium/src/base/time_posix.cc	2012-03-18 01:23:05.767501042 +0000
+@@ -8,6 +8,7 @@
+ #include <mach/mach_time.h>
+ #endif
+ #include <sys/time.h>
++#include <unistd.h>
+ #ifdef ANDROID
+ #include <time64.h>
+ #else




More information about the patches mailing list