Wednesday, November 11, 2009

Google Gears for Firefox 3.5 on Ubuntu Karmic 9.10

Built my own - seems to work fine so far.


jabley@miq-jabley:~/work/gears-read-only$ svn info
Path: .
URL: http://gears.googlecode.com/svn/trunk
Repository Root: http://gears.googlecode.com/svn
Repository UUID: fe895e04-df30-0410-9975-d76d301b4276
Revision: 3410
Node Kind: directory
Schedule: normal
Last Changed Author: gears.daemon
Last Changed Rev: 3410
Last Changed Date: 2009-11-10 01:49:08 +0000 (Tue, 10 Nov 2009)


Made some changes:

Index: gears/localserver/common/localserver_db.cc
===================================================================
--- gears/localserver/common/localserver_db.cc (revision 3410)
+++ gears/localserver/common/localserver_db.cc (working copy)
@@ -26,6 +26,7 @@
#include "gears/localserver/common/localserver_db.h"
#include <stdlib.h>
+#include <stdio.h>
#include <time.h>
#include <map>
Index: gears/tools/config.mk
===================================================================
--- gears/tools/config.mk (revision 3410)
+++ gears/tools/config.mk (working copy)
@@ -524,7 +524,7 @@
COMPILE_FLAGS_dbg = -g -O0
COMPILE_FLAGS_opt = -O2
-COMPILE_FLAGS = -c -o $@ -fPIC -fmessage-length=0 -Wall -Werror $(COMPILE_FLAGS_$(MODE))
+COMPILE_FLAGS = -c -o $@ -fPIC -fmessage-length=0 -Wall $(COMPILE_FLAGS_$(MODE))
# NS_LITERAL_STRING does not work properly without this compiler option
COMPILE_FLAGS += -fshort-wchar
@@ -650,12 +650,12 @@
COMPILE_FLAGS += -fshort-wchar
-# TODO(playmobil): Remove this condition and move -Werror directly into the COMPILE_FLAGS definition.
+# TODO(playmobil): Remove this condition and move directly into the COMPILE_FLAGS definition.
ifeq ($(BROWSER),SF)
# SAFARI-TEMP
-# Need to re-enable -Werror for Safari port.
+# Need to re-enable for Safari port.
else
-COMPILE_FLAGS += -Werror
+COMPILE_FLAGS +=
endif
CFLAGS = $(COMPILE_FLAGS)
Index: gears/geolocation/backoff_manager.cc
===================================================================
--- gears/geolocation/backoff_manager.cc (revision 3410)
+++ gears/geolocation/backoff_manager.cc (working copy)
@@ -26,6 +26,7 @@
#include "gears/geolocation/backoff_manager.h"
#include <assert.h>
+#include <stdlib.h>
// The baseline minimum period between network requests.
static const int kBaselineMinimumRequestInterval = 1000 * 5; // 5 seconds
Index: gears/base/common/string16.h
===================================================================
--- gears/base/common/string16.h (revision 3410)
+++ gears/base/common/string16.h (working copy)
@@ -46,6 +46,7 @@
#define GEARS_BASE_COMMON_STRING16_H__
#include <string>
+#include <string.h>
#include "gears/base/common/basictypes.h"
// Need to cast literals (Linux, OSX) and SQLite void* retvals (all platforms)
Index: gears/base/common/string_utils.cc
===================================================================
--- gears/base/common/string_utils.cc (revision 3410)
+++ gears/base/common/string_utils.cc (working copy)
@@ -23,6 +23,7 @@
// OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+#include <limits.h>
#include "gears/base/common/string_utils.h"
#include "third_party/convert_utf/ConvertUTF.h"
Index: gears/base/common/http_utils.cc
===================================================================
--- gears/base/common/http_utils.cc (revision 3410)
+++ gears/base/common/http_utils.cc (working copy)
@@ -27,6 +27,7 @@
#include <iterator>
#include <vector>
+#include <stdlib.h>
#include "gears/base/common/http_utils.h"
// ----------------------------------------------------------------------
Index: third_party/jsoncpp/json_reader.cc
===================================================================
--- third_party/jsoncpp/json_reader.cc (revision 3410)
+++ third_party/jsoncpp/json_reader.cc (working copy)
@@ -3,6 +3,7 @@
#include <utility>
#include <stdio.h>
#include <assert.h>
+#include <string.h>
#if _MSC_VER >= 1400 // VC++ 8.0
#pragma warning( disable : 4996 ) // disable warning about strdup being deprecated.
Index: third_party/jsoncpp/json_writer.cc
===================================================================
--- third_party/jsoncpp/json_writer.cc (revision 3410)
+++ third_party/jsoncpp/json_writer.cc (working copy)
@@ -2,6 +2,7 @@
#include <utility>
#include <assert.h>
#include <stdio.h>
+#include <string.h>
#if _MSC_VER >= 1400 // VC++ 8.0
#pragma warning( disable : 4996 ) // disable warning about strdup being deprecated.
Index: third_party/jsoncpp/json_value.cc
===================================================================
--- third_party/jsoncpp/json_value.cc (revision 3410)
+++ third_party/jsoncpp/json_value.cc (working copy)
@@ -2,6 +2,7 @@
#include "third_party/jsoncpp/writer.h"
#include <utility>
#include "assert.h"
+#include <string.h>
#ifdef JSON_USE_CPPTL
# include <cpptl/conststring.h>
#endif
Index: third_party/googleurl/src/url_parse.cc
===================================================================
--- third_party/googleurl/src/url_parse.cc (revision 3410)
+++ third_party/googleurl/src/url_parse.cc (working copy)
@@ -38,6 +38,7 @@
#include "base/logging.h"
#include "googleurl/src/url_parse_internal.h"
+#include <cstdlib>
namespace url_parse {


make mode=OPT

and then install the resulting xpi.

1 comment:

SoCRaT said...

Could you please send me the xpi to my e-mail (aamr@fcih.net)? Thanks a lot.