--- gears-0.5.32.0~svn3391+dfsg.orig/debian/postinst +++ gears-0.5.32.0~svn3391+dfsg/debian/postinst @@ -0,0 +1,29 @@ +#!/bin/sh +# postinst script for gears +# +# see: dh_installdeb(1) + +set -e + +case "$1" in + configure) + echo + echo "If you have installed Google Gears manually from the xpi, please read" + echo "/usr/share/doc/gears/README.Debian for instructions on removing it." + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 --- gears-0.5.32.0~svn3391+dfsg.orig/debian/rules +++ gears-0.5.32.0~svn3391+dfsg/debian/rules @@ -0,0 +1,84 @@ +#!/usr/bin/make -f + +MOZ_XPI_BUILD_COMMAND := $(NULL) +MOZ_XPI_INSTALL_DIRECTORY = /usr/share/$(MOZ_EXTENSION_PKG) + +DEB_SHLIBDEPS_INCLUDE := $(shell pkg-config --variable=sdkdir libxul)/sdk/lib + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/rules/simple-patchsys.mk +include /usr/share/mozilla-devscripts/xpi.mk + +PACKAGE = gears +SRC_VERSION := $(shell dpkg-parsechangelog | sed -ne 's/^Version: \(.*\)-.*/\1/p') +SVN_REVISION := $(shell echo $(SRC_VERSION) | awk -F"~" '{ print $$2 }' | awk -F"+" '{ print $$1 }' | sed 's/svn//' ) +TARBALL = $(PACKAGE)_$(SRC_VERSION).orig.tar.gz +GECKO_VERSION = $(shell pkg-config --modversion libxul) +GECKO_SDKDIR = $(shell pkg-config --variable=sdkdir libxul) +NSPR_INCLUDEDIR = $(shell pkg-config --variable=includedir nspr) +.PHONY: get-orig-source + +MAKE_FLAGS = USING_ICU=0 USING_ZLIB=0 BROWSER=FF31 MODE=opt + +pre-build:: + if [ ! -d third_party/gecko_$(GECKO_VERSION) ]; then \ + install -d third_party/gecko_$(GECKO_VERSION)/linux/gecko_sdk/include && \ + ln -s $(GECKO_SDKDIR)/include third_party/gecko_$(GECKO_VERSION)/gecko_internal && \ + ln -s $(GECKO_SDKDIR)/bin third_party/gecko_$(GECKO_VERSION)/linux/gecko_sdk/bin && \ + ln -s $(GECKO_SDKDIR)/idl third_party/gecko_$(GECKO_VERSION)/linux/gecko_sdk/idl && \ + ln -s $(GECKO_SDKDIR)/lib third_party/gecko_$(GECKO_VERSION)/linux/gecko_sdk/lib && \ + ln -s $(GECKO_SDKDIR)/lib third_party/gecko_$(GECKO_VERSION)/linux/gecko_sdk/lib64 && \ + cp -sdpR $(GECKO_SDKDIR)/include/* third_party/gecko_$(GECKO_VERSION)/linux/gecko_sdk/include/ && \ + cp -sdpR $(NSPR_INCLUDEDIR)/* third_party/gecko_$(GECKO_VERSION)/linux/gecko_sdk/include/ 2>/dev/null || :; \ + fi + +build/$(MOZ_EXTENSION_PKG):: + make -C gears $(MAKE_FLAGS) + make -C gears installers $(MAKE_FLAGS) + cp gears/bin-opt/installers/*.xpi . + +binary-post-install/$(MOZ_EXTENSION_PKG):: + find debian/$(MOZ_EXTENSION_PKG)$(MOZ_XPI_INSTALL_DIRECTORY) -depth -type d -empty -exec rmdir {} \; + install -d debian/$(MOZ_EXTENSION_PKG)/usr/lib/$(MOZ_EXTENSION_PKG) + mv debian/$(MOZ_EXTENSION_PKG)/usr/share/$(MOZ_EXTENSION_PKG)/lib/* \ + debian/$(MOZ_EXTENSION_PKG)/usr/lib/$(MOZ_EXTENSION_PKG) + rmdir debian/$(MOZ_EXTENSION_PKG)/usr/share/$(MOZ_EXTENSION_PKG)/lib + dh_link usr/lib/$(MOZ_EXTENSION_PKG) usr/share/$(MOZ_EXTENSION_PKG)/lib + +clean:: + make -C gears clean + rm -rf *.xpi third_party/gecko_* + +get-orig-source: + svn export -r $(SVN_REVISION) http://gears.googlecode.com/svn/trunk $(PACKAGE)-$(SRC_VERSION) && \ + cp $(PACKAGE)-$(SRC_VERSION)/third_party/gecko_$(GECKO_VERSION)/gecko_internal/nsGUIEvent_edited_for_Gears.h \ + $(PACKAGE)-$(SRC_VERSION)/gears/desktop/ && \ + rm -rf $(PACKAGE)-$(SRC_VERSION)/third_party/gecko_* \ + $(PACKAGE)-$(SRC_VERSION)/third_party/gtk \ + $(PACKAGE)-$(SRC_VERSION)/third_party/icu38 \ + $(PACKAGE)-$(SRC_VERSION)/third_party/libgd \ + $(PACKAGE)-$(SRC_VERSION)/third_party/zlib \ + $(PACKAGE)-$(SRC_VERSION)/third_party/libjpeg/config.log \ + $(PACKAGE)-$(SRC_VERSION)/third_party/breakpad/src/client/mac \ + $(PACKAGE)-$(SRC_VERSION)/third_party/breakpad/src/common/mac \ + $(PACKAGE)-$(SRC_VERSION)/third_party/breakpad/src/tools/mac \ + $(PACKAGE)-$(SRC_VERSION)/third_party/breakpad_osx \ + $(PACKAGE)-$(SRC_VERSION)/third_party/breakpad/autotools/config.sub \ + $(PACKAGE)-$(SRC_VERSION)/third_party/breakpad/autotools/config.guess \ + $(PACKAGE)-$(SRC_VERSION)/third_party/chrome \ + $(PACKAGE)-$(SRC_VERSION)/third_party/growl \ + $(PACKAGE)-$(SRC_VERSION)/third_party/opera \ + $(PACKAGE)-$(SRC_VERSION)/third_party/v8 \ + $(PACKAGE)-$(SRC_VERSION)/third_party/spidermonkey \ + $(PACKAGE)-$(SRC_VERSION)/third_party/sqlite_vendor \ + $(PACKAGE)-$(SRC_VERSION)/third_party/stlport \ + $(PACKAGE)-$(SRC_VERSION)/third_party/AtlActiveScriptSite.h \ + $(PACKAGE)-$(SRC_VERSION)/third_party/glint \ + $(PACKAGE)-$(SRC_VERSION)/third_party/speex \ + $(PACKAGE)-$(SRC_VERSION)/third_party/portaudio \ + $(PACKAGE)-$(SRC_VERSION)/third_party/tremor \ + $(PACKAGE)-$(SRC_VERSION)/third_party/skia/include/utils/mac \ + $(PACKAGE)-$(SRC_VERSION)/third_party/skia/src/utils/mac \ + $(PACKAGE)-$(SRC_VERSION)/gears/tools/gguidgen.exe && \ + GZIP=--best tar czf $(TARBALL) $(PACKAGE)-$(SRC_VERSION) && \ + rm -rf $(PACKAGE)-$(SRC_VERSION) --- gears-0.5.32.0~svn3391+dfsg.orig/debian/compat +++ gears-0.5.32.0~svn3391+dfsg/debian/compat @@ -0,0 +1 @@ +7 --- gears-0.5.32.0~svn3391+dfsg.orig/debian/README.source +++ gears-0.5.32.0~svn3391+dfsg/debian/README.source @@ -0,0 +1,33 @@ +This version of gears is built against http://gears.googlecode.com/svn/trunk. + +The source was cleaned up by removing the following: + + third_party/gecko_1.8 + third_party/gecko_1.9 + third_party/gecko_1.9.1 + third_party/gtk + third_party/icu38 + third_party/libgd + third_party/zlib + third_party/libjpeg/config.log + third_party/breakpad/src/client/mac + third_party/breakpad/src/common/mac + third_party/breakpad/src/tools/mac + third_party/breakpad_osx + third_party/chrome + third_party/growl + third_party/opera + third_party/v8 + third_party/spidermonkey + third_party/sqlite_vendor + third_party/stlport + third_party/AtlActiveScriptSite.h + third_party/glint + third_party/speex + third_party/portaudio + third_party/tremor + third_party/skia/include/utils/mac + third_party/skia/src/utils/mac + gears/tools/gguidgen.exe + +This was to reduce the size of the source and build against our system libs. --- gears-0.5.32.0~svn3391+dfsg.orig/debian/control +++ gears-0.5.32.0~svn3391+dfsg/debian/control @@ -0,0 +1,40 @@ +Source: gears +Section: web +Priority: optional +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Stefan Lesicnik +Build-Depends: cdbs, + debhelper (>= 7), + libgtk2.0-dev, + libicu-dev, + mozilla-devscripts (>= 0.19~), + pkg-config, + xulrunner-dev, + zip, + zlib1g-dev +Standards-Version: 3.8.3 +Homepage: http://gears.google.com/ + +Package: xul-ext-gears +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Recommends: ${xpi:Recommends} +Provides: ${xpi:Provides} +Enhances: ${xpi:Enhances} +Replaces: gears (<< 0.5.32.0~svn3391+dfsg-0ubuntu2) +Description: Browser extension that enables more powerful web applications + Gears is a plug-in that extends your browser to create a richer platform for + web applications. For example, webmasters can use Gears on their websites to + let users access information offline or provide you with content based on your + geographical location. + . + A number of web applications currently make use of Gears, including: + Google Reader, Google Docs, Zoho and Remember the Milk. + +Package: gears +Architecture: all +Depends: xul-ext-gears, ${misc:Depends} +Description: transitional dummy package + This is a transitional dummy package to ease the migration + from the gears to the new xul-ext-gears package. + You can remove it safely. --- gears-0.5.32.0~svn3391+dfsg.orig/debian/copyright +++ gears-0.5.32.0~svn3391+dfsg/debian/copyright @@ -0,0 +1,672 @@ +Format: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=59 +Name: Gears +Maintainer: Google Inc +Source: http://gears.google.com/ + +Files: debian/* +Copyright: 2009, Stefan Lesicnik + 2009, Rail Aliev +License: GPL-3 + On Debian systems the full text of the GNU General Public + License can be found in the `/usr/share/common-licenses/GPL-3' + file. + +Files: gears/* +Copyright: 2007, Google Inc. +License: google-bsd + +Files: gears/desktop/nsGUIEvent_edited_for_Gears.h +Copyright: 1998, Netscape Communications Corporation +License: MPL-1.1 or GPL-2 or LGPL-2.1 + The contents of this file are subject to the Mozilla Public License Version + 1.1 (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + http://www.mozilla.org/MPL/ + + Software distributed under the License is distributed on an "AS IS" basis, + WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + for the specific language governing rights and limitations under the + License. + + The Original Code is mozilla.org code. + + The Initial Developer of the Original Code is + Netscape Communications Corporation. + Portions created by the Initial Developer are Copyright (C) 1998 + the Initial Developer. All Rights Reserved. + + Contributor(s): + Makoto Kato + Dean Tessman + + Alternatively, the contents of this file may be used under the terms of + either the GNU General Public License Version 2 or later (the "GPL"), or + the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + in which case the provisions of the GPL or the LGPL are applicable instead + of those above. If you wish to allow use of your version of this file only + under the terms of either the GPL or the LGPL, and not to allow others to + use your version of this file under the terms of the MPL, indicate your + decision by deleting the provisions above and replace them with the notice + and other provisions required by the GPL or the LGPL. If you do not delete + the provisions above, a recipient may use your version of this file under + the terms of any one of the MPL, the GPL or the LGPL. + +Files: third_party/breakpad/* +Copyright: 2006, Google Inc. +License: google-bsd + +Files: third_party/convert_utf/* +Copyright: 2001-2004, Unicode, Inc. +License: other + This source code is provided as is by Unicode, Inc. No claims are + made as to fitness for any particular purpose. No warranties of any + kind are expressed or implied. The recipient agrees to determine + applicability of information provided. If this file has been + purchased on magnetic or optical media from Unicode, Inc., the + sole remedy for any claim will be exchange of defective media + within 90 days of receipt. + + Limitations on Rights to Redistribute This Code + + Unicode, Inc. hereby grants the right to freely use the information + supplied in this file in the creation of products supporting the + Unicode Standard, and to make copies of this file in any form + for internal or external distribution as long as this notice + remains attached. + +Files: third_party/Cheetah/* +Copyright: 2001-2005, The Cheetah Development Team: Tavis Rudd, Mike Orr, + Chuck Esterbrook, Ian Bicking. +License: other + Permission to use, copy, modify, and distribute this software for any purpose + and without fee is hereby granted, provided that the above copyright notice + appear in all copies and that both that copyright notice and this permission + notice appear in supporting documentation, and that the names of the authors not + be used in advertising or publicity pertaining to distribution of the software + without specific, written prior permission. + + THE AUTHORS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHORS + BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF + CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION + WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +Files: third_party/google_perltools/* +Copyright: 2005, Google Inc. +License: google-bsd + +Files: third_party/googleurl/* +Copyright: 2007, Google Inc. +License: google-bsd + +Files: third_party/gtest/* +Copyright: 2008, Google Inc. +License: google-bsd + +Files: third_party/jsonjs/* +Copyright: 2002, JSON.org +License: other + Permission is hereby granted, free of charge, to any person obtaining a copy of + this software and associated documentation files (the "Software"), to deal in + the Software without restriction, including without limitation the rights to + use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of + the Software, and to permit persons to whom the Software is furnished to do so, + subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + The Software shall be used for Good, not Evil. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS + FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR + COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +Files: third_party/jsoncpp/* +Copyright: Baptiste Lepilleur +License: public-domain + +Files: third_party/jsoncpp/json_unittest.py +Copyright: 2006, Google Inc. +License: google-bsd + +Files: third_party/libjpeg/* +Copyright: 1991-1998, Thomas G. Lane +License: other + All Rights Reserved except as specified below. + + Permission is hereby granted to use, copy, modify, and distribute this + software (or portions thereof) for any purpose, without fee, subject to these + conditions: + (1) If any part of the source code for this software is distributed, then this + README file must be included, with this copyright and no-warranty notice + unaltered; and any additions, deletions, or changes to the original files + must be clearly indicated in accompanying documentation. + (2) If only executable code is distributed, then the accompanying + documentation must state that "this software is based in part on the work of + the Independent JPEG Group". + (3) Permission for use of this software is granted only if the user accepts + full responsibility for any undesirable consequences; the authors accept + NO LIABILITY for damages of any kind. + + These conditions apply to any software derived from or based on the IJG code, + not just to the unmodified library. If you use our work, you ought to + acknowledge us. + + Permission is NOT granted for the use of any IJG author's name or company name + in advertising or publicity relating to this software or products derived from + it. This software may be referred to only as "the Independent JPEG Group's + software". + + We specifically permit and encourage the use of this software as the basis of + commercial products, provided that all warranty or liability claims are + assumed by the product vendor. + +Files: third_party/libjpeg/ansi2knr.c +Copyright: 1989, Aladdin Enterprises +License: other + ansi2knr is distributed in the hope that it will be useful, but WITHOUT ANY + WARRANTY. No author or distributor accepts responsibility to anyone for the + consequences of using it or for whether it serves any particular purpose or + works at all, unless he says so in writing. Refer to the GNU General Public + License (the "GPL") for full details. + + Everyone is granted permission to copy, modify and redistribute ansi2knr, + but only under the conditions described in the GPL. A copy of this license + is supposed to have been given to you along with ansi2knr so you can know + your rights and responsibilities. It should be in a file named COPYLEFT. + [In the IJG distribution, the GPL appears below, not in a separate file.] + Among other things, the copyright notice and this notice must be preserved + on all copies. + + We explicitly state here what we believe is already implied by the GPL: if + the ansi2knr program is distributed as a separate set of sources and a + separate executable file which are aggregated on a storage medium together + with another program, this in itself does not bring the other program under + the GPL, nor does the mere fact that such a program or the procedures for + constructing it invoke the ansi2knr executable bring any other part of the + program under the GPL. + + ---------- Here is the GNU GPL file COPYLEFT, referred to above ---------- + ----- These terms do NOT apply to the JPEG software itself; see README ------ + + GHOSTSCRIPT GENERAL PUBLIC LICENSE + (Clarified 11 Feb 1988) + + Copyright (C) 1988 Richard M. Stallman + Everyone is permitted to copy and distribute verbatim copies of this + license, but changing it is not allowed. You can also use this wording + to make the terms for other programs. + + The license agreements of most software companies keep you at the + mercy of those companies. By contrast, our general public license is + intended to give everyone the right to share Ghostscript. To make sure + that you get the rights we want you to have, we need to make + restrictions that forbid anyone to deny you these rights or to ask you + to surrender the rights. Hence this license agreement. + + Specifically, we want to make sure that you have the right to give + away copies of Ghostscript, that you receive source code or else can get + it if you want it, that you can change Ghostscript or use pieces of it + in new free programs, and that you know you can do these things. + + To make sure that everyone has such rights, we have to forbid you to + deprive anyone else of these rights. For example, if you distribute + copies of Ghostscript, you must give the recipients all the rights that + you have. You must make sure that they, too, receive or can get the + source code. And you must tell them their rights. + + Also, for our own protection, we must make certain that everyone finds + out that there is no warranty for Ghostscript. If Ghostscript is + modified by someone else and passed on, we want its recipients to know + that what they have is not what we distributed, so that any problems + introduced by others will not reflect on our reputation. + + Therefore we (Richard M. Stallman and the Free Software Foundation, + Inc.) make the following terms which say what you must do to be allowed + to distribute or change Ghostscript. + + COPYING POLICIES + + 1. You may copy and distribute verbatim copies of Ghostscript source + code as you receive it, in any medium, provided that you conspicuously + and appropriately publish on each copy a valid copyright and license + notice "Copyright (C) 1989 Aladdin Enterprises. All rights reserved. + Distributed by Free Software Foundation, Inc." (or with whatever year is + appropriate); keep intact the notices on all files that refer to this + License Agreement and to the absence of any warranty; and give any other + recipients of the Ghostscript program a copy of this License Agreement + along with the program. You may charge a distribution fee for the + physical act of transferring a copy. + + 2. You may modify your copy or copies of Ghostscript or any portion of + it, and copy and distribute such modifications under the terms of + Paragraph 1 above, provided that you also do the following: + + a) cause the modified files to carry prominent notices stating + that you changed the files and the date of any change; and + + b) cause the whole of any work that you distribute or publish, + that in whole or in part contains or is a derivative of Ghostscript + or any part thereof, to be licensed at no charge to all third + parties on terms identical to those contained in this License + Agreement (except that you may choose to grant more extensive + warranty protection to some or all third parties, at your option). + + c) You may charge a distribution fee for the physical act of + transferring a copy, and you may at your option offer warranty + protection in exchange for a fee. + + Mere aggregation of another unrelated program with this program (or its + derivative) on a volume of a storage or distribution medium does not bring + the other program under the scope of these terms. + + 3. You may copy and distribute Ghostscript (or a portion or derivative + of it, under Paragraph 2) in object code or executable form under the + terms of Paragraphs 1 and 2 above provided that you also do one of the + following: + + a) accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of + Paragraphs 1 and 2 above; or, + + b) accompany it with a written offer, valid for at least three + years, to give any third party free (except for a nominal + shipping charge) a complete machine-readable copy of the + corresponding source code, to be distributed under the terms of + Paragraphs 1 and 2 above; or, + + c) accompany it with the information you received as to where the + corresponding source code may be obtained. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form alone.) + + For an executable file, complete source code means all the source code for + all modules it contains; but, as a special exception, it need not include + source code for modules which are standard libraries that accompany the + operating system on which the executable file runs. + + 4. You may not copy, sublicense, distribute or transfer Ghostscript + except as expressly provided under this License Agreement. Any attempt + otherwise to copy, sublicense, distribute or transfer Ghostscript is + void and your rights to use the program under this License agreement + shall be automatically terminated. However, parties who have received + computer software programs from you with this License Agreement will not + have their licenses terminated so long as such parties remain in full + compliance. + + 5. If you wish to incorporate parts of Ghostscript into other free + programs whose distribution conditions are different, write to the Free + Software Foundation at 675 Mass Ave, Cambridge, MA 02139. We have not + yet worked out a simple rule that can be stated here, but we will often + permit this. We will be guided by the two goals of preserving the free + status of all derivatives of our free software and of promoting the + sharing and reuse of software. + + Your comments and suggestions about our licensing policies and our + software are welcome! Please contact the Free Software Foundation, + Inc., 675 Mass Ave, Cambridge, MA 02139, or call (617) 876-3296. + + NO WARRANTY + + BECAUSE GHOSTSCRIPT IS LICENSED FREE OF CHARGE, WE PROVIDE ABSOLUTELY + NO WARRANTY, TO THE EXTENT PERMITTED BY APPLICABLE STATE LAW. EXCEPT + WHEN OTHERWISE STATED IN WRITING, FREE SOFTWARE FOUNDATION, INC, RICHARD + M. STALLMAN, ALADDIN ENTERPRISES, L. PETER DEUTSCH, AND/OR OTHER PARTIES + PROVIDE GHOSTSCRIPT "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER + EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE + ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF GHOSTSCRIPT IS WITH + YOU. SHOULD GHOSTSCRIPT PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL + NECESSARY SERVICING, REPAIR OR CORRECTION. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW WILL RICHARD M. + STALLMAN, THE FREE SOFTWARE FOUNDATION, INC., L. PETER DEUTSCH, ALADDIN + ENTERPRISES, AND/OR ANY OTHER PARTY WHO MAY MODIFY AND REDISTRIBUTE + GHOSTSCRIPT AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING + ANY LOST PROFITS, LOST MONIES, OR OTHER SPECIAL, INCIDENTAL OR + CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE + (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED + INACCURATE OR LOSSES SUSTAINED BY THIRD PARTIES OR A FAILURE OF THE + PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS) GHOSTSCRIPT, EVEN IF YOU + HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES, OR FOR ANY CLAIM + BY ANY OTHER PARTY. + +Files: third_party/libpng/* +Copyright: 1998-2008, Glenn Randers-Pehrson +License: other + COPYRIGHT NOTICE, DISCLAIMER, and LICENSE: + + If you modify libpng you may insert additional notices immediately following + this sentence. + + libpng versions 1.2.6, August 15, 2004, through 1.2.35, February 14, 2009, are + Copyright (c) 2004, 2006-2008 Glenn Randers-Pehrson, and are + distributed according to the same disclaimer and license as libpng-1.2.5 + with the following individual added to the list of Contributing Authors + + Cosmin Truta + + libpng versions 1.0.7, July 1, 2000, through 1.2.5 - October 3, 2002, are + Copyright (c) 2000-2002 Glenn Randers-Pehrson, and are + distributed according to the same disclaimer and license as libpng-1.0.6 + with the following individuals added to the list of Contributing Authors + + Simon-Pierre Cadieux + Eric S. Raymond + Gilles Vollant + + and with the following additions to the disclaimer: + + There is no warranty against interference with your enjoyment of the + library or against infringement. There is no warranty that our + efforts or the library will fulfill any of your particular purposes + or needs. This library is provided with all faults, and the entire + risk of satisfactory quality, performance, accuracy, and effort is with + the user. + + libpng versions 0.97, January 1998, through 1.0.6, March 20, 2000, are + Copyright (c) 1998, 1999 Glenn Randers-Pehrson, and are + distributed according to the same disclaimer and license as libpng-0.96, + with the following individuals added to the list of Contributing Authors: + + Tom Lane + Glenn Randers-Pehrson + Willem van Schaik + + libpng versions 0.89, June 1996, through 0.96, May 1997, are + Copyright (c) 1996, 1997 Andreas Dilger + Distributed according to the same disclaimer and license as libpng-0.88, + with the following individuals added to the list of Contributing Authors: + + John Bowler + Kevin Bracey + Sam Bushell + Magnus Holmgren + Greg Roelofs + Tom Tanner + + libpng versions 0.5, May 1995, through 0.88, January 1996, are + Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc. + + For the purposes of this copyright and license, "Contributing Authors" + is defined as the following set of individuals: + + Andreas Dilger + Dave Martindale + Guy Eric Schalnat + Paul Schmidt + Tim Wegner + + The PNG Reference Library is supplied "AS IS". The Contributing Authors + and Group 42, Inc. disclaim all warranties, expressed or implied, + including, without limitation, the warranties of merchantability and of + fitness for any purpose. The Contributing Authors and Group 42, Inc. + assume no liability for direct, indirect, incidental, special, exemplary, + or consequential damages, which may result from the use of the PNG + Reference Library, even if advised of the possibility of such damage. + + Permission is hereby granted to use, copy, modify, and distribute this + source code, or portions hereof, for any purpose, without fee, subject + to the following restrictions: + + 1. The origin of this source code must not be misrepresented. + + 2. Altered versions must be plainly marked as such and must not + be misrepresented as being the original source. + + 3. This Copyright notice may not be removed or altered from any + source or altered source distribution. + + The Contributing Authors and Group 42, Inc. specifically permit, without + fee, and encourage the use of this source code as a component to + supporting the PNG file format in commercial products. If you use this + source code in a product, acknowledgment is not required but would be + appreciated. + +Files: third_party/npapi/npapi.h +Copyright: 1998, Netscape Communications Corporation +License: MPL-1.1 or GPL-2 or LGPL-2.1 + The contents of this file are subject to the Mozilla Public License Version + 1.1 (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + http://www.mozilla.org/MPL/ + + Software distributed under the License is distributed on an "AS IS" basis, + WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + for the specific language governing rights and limitations under the + License. + + The Original Code is mozilla.org code. + + The Initial Developer of the Original Code is + Netscape Communications Corporation. + Portions created by the Initial Developer are Copyright (C) 1998 + the Initial Developer. All Rights Reserved. + + Contributor(s): + + Alternatively, the contents of this file may be used under the terms of + either the GNU General Public License Version 2 or later (the "GPL"), or + the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + in which case the provisions of the GPL or the LGPL are applicable instead + of those above. If you wish to allow use of your version of this file only + under the terms of either the GPL or the LGPL, and not to allow others to + use your version of this file under the terms of the MPL, indicate your + decision by deleting the provisions above and replace them with the notice + and other provisions required by the GPL or the LGPL. If you do not delete + the provisions above, a recipient may use your version of this file under + the terms of any one of the MPL, the GPL or the LGPL. + +Files: third_party/npapi/nphostapi.h +Copyright: 2006, Google Inc. +License: google-bsd + +Files: third_party/npapi/npruntime.h +Copyright: 2004, Apple Computer, Inc. and The Mozilla Foundation +License: other + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + 3. Neither the names of Apple Computer, Inc. ("Apple") or The Mozilla + Foundation ("Mozilla") nor the names of their contributors may be used + to endorse or promote products derived from this software without + specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY APPLE, MOZILLA AND THEIR CONTRIBUTORS "AS + IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A + PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE, MOZILLA OR + THEIR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED + TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +Files: third_party/pexpect/* +Copyright: 2008, Noah Spurrier +License: other + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. + IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, + DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR + OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE + USE OR OTHER DEALINGS IN THE SOFTWARE. + +Files: third_party/scoped_ptr/* +Copyright: 1998-1999, Greg Colvin and Beman Dawes + 2001-2002, Peter Dimov +License: other + Permission is hereby granted, free of charge, to any person or organization + obtaining a copy of the software and accompanying documentation covered by + this license (the "Software") to use, reproduce, display, distribute, + execute, and transmit the Software, and to prepare derivative works of the + Software, and to permit third-parties to whom the Software is furnished to + do so, all subject to the following: + + The copyright notices in the Software and this entire statement, including + the above license grant, this restriction and the following disclaimer, + must be included in all copies of the Software, in whole or in part, and + all derivative works of the Software, unless such copies or derivative + works are solely in the form of machine-executable object code generated by + a source language processor. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT + SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE + FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, + ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + DEALINGS IN THE SOFTWARE. + +Files: third_party/googleurl/url_parse.cc +Copyright: 1996-1999 Netscape Communications Corporation +License: MPL-1.1 + On Debian systems the full text of the MPL License can be found in the + `/usr/share/common-licenses/MPL-1.1' file. + +Files: third_party/linked_ptr/* +Copyright: 2003, Google Inc. +License: google-bsd + +Files: third_party/modpb_64/* +Copyright: 2005-2006 Nick Galbreath +License: other + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + + Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + Neither the name of the modp.com nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + This is the standard "new" BSD license: + http://www.opensource.org/licenses/bsd-license.php + +Files: third_party/passthru_app/* +Copyright: 2007, Igor Tandetnik +License: Apache-2 + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + On Debian systems the full text of the Apache-2 License can be found in the + `/usr/share/common-licenses/Apache-2.0' file. + +Files: third_party/simplejson/* +Copyright: 2006, Bob Ippolito +License: other + Permission is hereby granted, free of charge, to any person obtaining a copy of + this software and associated documentation files (the "Software"), to deal in + the Software without restriction, including without limitation the rights to + use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies + of the Software, and to permit persons to whom the Software is furnished to do + so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +Files: third_party/skia/* +Copyright: 2006, The Android Open Source Project +License: Apache-2 + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + On Debian systems the full text of the Apache-2 License can be found in the + `/usr/share/common-licenses/Apache-2.0' file. + +Files: third_party/sqlite_google/* +License: public-domain + All of the deliverable code in SQLite has been dedicated to the public domain + by the authors. + + All code authors, and representatives of the companies they work for, have + signed affidavits dedicating their contributions to the public domain and + originals of those signed affidavits are stored in a firesafe at the main + offices of Hwaci. Anyone is free to copy, modify, publish, use, compile, sell, + or distribute the original SQLite code, either in source code form or as a + compiled binary, for any purpose, commercial or non-commercial, and by any + means. + +Files: third_party/sqlite_google/google_generate_preprocessed.sh: +Copyright: 2007, Google Inc. +License: google-bsd + +License: google-bsd + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + 1. Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + 3. Neither the name of Google Inc. nor the names of its contributors may be + used to endorse or promote products derived from this software without + specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED + WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO + EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; + OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR + OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF + ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --- gears-0.5.32.0~svn3391+dfsg.orig/debian/changelog +++ gears-0.5.32.0~svn3391+dfsg/debian/changelog @@ -0,0 +1,29 @@ +gears (0.5.32.0~svn3391+dfsg-0ubuntu2) lucid; urgency=low + + * Fix FTBFS by setting MOZ_XPI_INSTALLATION_DIRECTORY. + * Rename binary package from gears to xul-ext-gears according to new + policy. + * Wrap Build-Depends line. + * Bump Standards-Version to 3.8.3. + * Use new features from mozilla-devscripts 0.19. + * Simplify debian/rules. + * Remove indention in debian/copyright. + + -- Benjamin Drung Mon, 25 Jan 2010 23:06:32 +0100 + +gears (0.5.32.0~svn3391+dfsg-0ubuntu1) karmic; urgency=low + + * New upstream release. (LP: #407758) + - debian/control: + - Build depend on xulrunner-1.9.1-dev. + - Depends on firefox >= 3.5. + - Patches rebuilt to work against 3391. + - Dynamic checking of gecko versions for more robust upgrades. + + -- Stefan Lesicnik Fri, 14 Aug 2009 12:34:42 +0200 + +gears (0.5.21.0~svn3334+dfsg-0ubuntu1) karmic; urgency=low + + * Initial release (LP: #244245). + + -- Stefan Lesicnik Thu, 30 Apr 2009 19:15:25 +0200 --- gears-0.5.32.0~svn3391+dfsg.orig/debian/source.lintian-overrides +++ gears-0.5.32.0~svn3391+dfsg/debian/source.lintian-overrides @@ -0,0 +1,2 @@ +# Third_party included source. +gears source: ancient-libtool third_party/libjpeg/ltconfig --- gears-0.5.32.0~svn3391+dfsg.orig/debian/README.Debian +++ gears-0.5.32.0~svn3391+dfsg/debian/README.Debian @@ -0,0 +1,21 @@ +gears for Debian +---------------- + +This package is currently only building for Firefox 3.5+ and prism. Firefox 3.0 +and 3.2pre are not supported at this stage. + +If Gears was installed manually from the xpi, it should be removed and the +following lines removed from the extensions.cache + +gre-global {000a9d1c-beef-4f90-9363-039d445309b8} rel%{000a9d1c-beef-4f90-9363-039d445309b8} 0 +app-global {000a9d1c-beef-4f90-9363-039d445309b8} rel%{000a9d1c-beef-4f90-9363-039d445309b8} 0 + +These can be located by editing + ~/.mozilla/firefox/[profileid.default]/extensions.cache + +or by running +grep -v 000a9d1c-beef-4f90-9363-039d445309b8 extensions.cache +\ > extensions.cache.new && mv extensions.cache.new extensions.cache + +from the profileid.default directory where profileid.default is the system +unique firefox profile id. --- gears-0.5.32.0~svn3391+dfsg.orig/debian/patches/50-system-gecko-buildfix.diff +++ gears-0.5.32.0~svn3391+dfsg/debian/patches/50-system-gecko-buildfix.diff @@ -0,0 +1,27 @@ +# Description: Patch to build Gecko against system libs +# Author: Stefan Lesicnik & Rail Aliev + +diff -Nur -x '*.orig' -x '*~' gears-0.5.21.0~svn3334+dfsg/gears/base/firefox/module.cc gears-0.5.21.0~svn3334+dfsg.new/gears/base/firefox/module.cc +--- gears-0.5.21.0~svn3334+dfsg/gears/base/firefox/module.cc 2008-08-26 04:01:09.000000000 +0400 ++++ gears-0.5.21.0~svn3334+dfsg.new/gears/base/firefox/module.cc 2009-05-19 13:06:57.000000000 +0400 +@@ -37,6 +37,7 @@ + #include + #include + #include ++#include + + #include "gears/base/common/leak_counter.h" + #include "gears/base/common/message_queue.h" +diff -Nur -x '*.orig' -x '*~' gears-0.5.21.0~svn3334+dfsg/gears/base/firefox/module.cc.rej gears-0.5.21.0~svn3334+dfsg.new/gears/base/firefox/module.cc.rej +diff -Nur -x '*.orig' -x '*~' gears-0.5.21.0~svn3334+dfsg/gears/desktop/drag_and_drop_utils_ff.cc gears-0.5.21.0~svn3334+dfsg.new/gears/desktop/drag_and_drop_utils_ff.cc +--- gears-0.5.21.0~svn3334+dfsg/gears/desktop/drag_and_drop_utils_ff.cc 2009-05-12 10:01:17.000000000 +0400 ++++ gears-0.5.21.0~svn3334+dfsg.new/gears/desktop/drag_and_drop_utils_ff.cc 2009-05-19 13:08:00.000000000 +0400 +@@ -27,7 +27,7 @@ + // Must include this before nsGUIEvent_edited_for_Gears.h. + #include + +-#include ++#include "nsGUIEvent_edited_for_Gears.h" + #include + #include + #include --- gears-0.5.32.0~svn3391+dfsg.orig/debian/patches/10-gcc43-fix.diff +++ gears-0.5.32.0~svn3391+dfsg/debian/patches/10-gcc43-fix.diff @@ -0,0 +1,147 @@ +# Description: GCC 4.3 / 4.4 fix for stricter build rules +# Author: Joel Stanley & modified by Rail Aliev to patch against r3334 +# Upstream: http://jms.id.au/~shenki/gears/r3301.patch + +diff -Nur -x '*.orig' -x '*~' gears-0.5.18.0~svn3301+dfsg/gears/base/common/http_utils.cc gears-0.5.18.0~svn3301+dfsg.new/gears/base/common/http_utils.cc +--- gears-0.5.18.0~svn3301+dfsg/gears/base/common/http_utils.cc 2009-05-06 18:18:43.000000000 +0400 ++++ gears-0.5.18.0~svn3301+dfsg.new/gears/base/common/http_utils.cc 2009-05-06 18:18:45.000000000 +0400 +@@ -27,6 +27,7 @@ + + #include + #include ++#include + #include "gears/base/common/http_utils.h" + + // ---------------------------------------------------------------------- +@@ -756,7 +757,8 @@ + const char *space = (char *) memchr(line, ' ', line_end - line); + if (space) { + char *errpos; +- strtol(space + 1, &errpos, 10); ++ int ret = strtol(space + 1, &errpos, 10); ++ ret++; + if (isspace(*errpos) && errpos > space + 1) { + good_first_line = true; + num_headers++; +diff -Nur -x '*.orig' -x '*~' gears-0.5.18.0~svn3301+dfsg/gears/base/common/string16.h gears-0.5.18.0~svn3301+dfsg.new/gears/base/common/string16.h +--- gears-0.5.18.0~svn3301+dfsg/gears/base/common/string16.h 2009-05-06 18:18:43.000000000 +0400 ++++ gears-0.5.18.0~svn3301+dfsg.new/gears/base/common/string16.h 2009-05-06 18:18:45.000000000 +0400 +@@ -46,6 +46,7 @@ + #define GEARS_BASE_COMMON_STRING16_H__ + + #include ++#include + #include "gears/base/common/basictypes.h" + + // Need to cast literals (Linux, OSX) and SQLite void* retvals (all platforms) +diff -Nur -x '*.orig' -x '*~' gears-0.5.18.0~svn3301+dfsg/gears/cctests/test.cc gears-0.5.18.0~svn3301+dfsg.new/gears/cctests/test.cc +--- gears-0.5.18.0~svn3301+dfsg/gears/cctests/test.cc 2009-04-19 23:01:58.000000000 +0400 ++++ gears-0.5.18.0~svn3301+dfsg.new/gears/cctests/test.cc 2009-05-06 18:18:45.000000000 +0400 +@@ -700,15 +700,15 @@ + + bool ok = false; + JsParamType t = context->GetArgumentType(1); +- if (type == STRING16(L"bool") && t == JSPARAM_BOOL || +- type == STRING16(L"int") && t == JSPARAM_INT || +- type == STRING16(L"double") && t == JSPARAM_DOUBLE || +- type == STRING16(L"string") && t == JSPARAM_STRING16 || +- type == STRING16(L"null") && t == JSPARAM_NULL || +- type == STRING16(L"undefined") && t == JSPARAM_UNDEFINED || +- type == STRING16(L"array") && t == JSPARAM_ARRAY || +- type == STRING16(L"function") && t == JSPARAM_FUNCTION || +- type == STRING16(L"object") && t == JSPARAM_OBJECT) { ++ if ((type == STRING16(L"bool") && t == JSPARAM_BOOL) || ++ (type == STRING16(L"int") && t == JSPARAM_INT) || ++ (type == STRING16(L"double") && t == JSPARAM_DOUBLE) || ++ (type == STRING16(L"string") && t == JSPARAM_STRING16) || ++ (type == STRING16(L"null") && t == JSPARAM_NULL) || ++ (type == STRING16(L"undefined") && t == JSPARAM_UNDEFINED) || ++ (type == STRING16(L"array") && t == JSPARAM_ARRAY) || ++ (type == STRING16(L"function") && t == JSPARAM_FUNCTION) || ++ (type == STRING16(L"object") && t == JSPARAM_OBJECT)) { + ok = true; + } + context->SetReturnValue(JSPARAM_BOOL, &ok); +diff -Nur -x '*.orig' -x '*~' gears-0.5.18.0~svn3301+dfsg/gears/desktop/desktop.cc gears-0.5.18.0~svn3301+dfsg.new/gears/desktop/desktop.cc +--- gears-0.5.18.0~svn3301+dfsg/gears/desktop/desktop.cc 2009-04-19 23:01:58.000000000 +0400 ++++ gears-0.5.18.0~svn3301+dfsg.new/gears/desktop/desktop.cc 2009-05-06 18:18:45.000000000 +0400 +@@ -222,14 +222,14 @@ + } + + // Resolve the icon urls +- if (!shortcut_info->icon16x16.url.empty() && +- !ResolveUrl(&shortcut_info->icon16x16.url, &error_) || +- !shortcut_info->icon32x32.url.empty() && +- !ResolveUrl(&shortcut_info->icon32x32.url, &error_) || +- !shortcut_info->icon48x48.url.empty() && +- !ResolveUrl(&shortcut_info->icon48x48.url, &error_) || +- !shortcut_info->icon128x128.url.empty() && +- !ResolveUrl(&shortcut_info->icon128x128.url, &error_)) { ++ if ((!shortcut_info->icon16x16.url.empty() && ++ !ResolveUrl(&shortcut_info->icon16x16.url, &error_)) || ++ (!shortcut_info->icon32x32.url.empty() && ++ !ResolveUrl(&shortcut_info->icon32x32.url, &error_)) || ++ (!shortcut_info->icon48x48.url.empty() && ++ !ResolveUrl(&shortcut_info->icon48x48.url, &error_)) || ++ (!shortcut_info->icon128x128.url.empty() && ++ !ResolveUrl(&shortcut_info->icon128x128.url, &error_))) { + return false; + } + +diff -Nur -x '*.orig' -x '*~' gears-0.5.18.0~svn3301+dfsg/gears/localserver/common/localserver_db.cc gears-0.5.18.0~svn3301+dfsg.new/gears/localserver/common/localserver_db.cc +--- gears-0.5.18.0~svn3301+dfsg/gears/localserver/common/localserver_db.cc 2009-03-18 16:00:34.000000000 +0300 ++++ gears-0.5.18.0~svn3301+dfsg.new/gears/localserver/common/localserver_db.cc 2009-05-06 18:18:45.000000000 +0400 +@@ -27,6 +27,7 @@ + + #include + #include ++#include + + #include + #include +diff -Nur -x '*.orig' -x '*~' gears-0.5.18.0~svn3301+dfsg/third_party/googleurl/src/url_parse.cc gears-0.5.18.0~svn3301+dfsg.new/third_party/googleurl/src/url_parse.cc +--- gears-0.5.18.0~svn3301+dfsg/third_party/googleurl/src/url_parse.cc 2009-05-06 18:18:43.000000000 +0400 ++++ gears-0.5.18.0~svn3301+dfsg.new/third_party/googleurl/src/url_parse.cc 2009-05-06 18:18:45.000000000 +0400 +@@ -41,6 +41,8 @@ + #include "base/logging.h" + #include "googleurl/src/url_parse_internal.h" + ++#include ++ + namespace url_parse { + + namespace { +diff -Nur -x '*.orig' -x '*~' gears-0.5.18.0~svn3301+dfsg/third_party/jsoncpp/json_value.cc gears-0.5.18.0~svn3301+dfsg.new/third_party/jsoncpp/json_value.cc +--- gears-0.5.18.0~svn3301+dfsg/third_party/jsoncpp/json_value.cc 2009-05-06 18:18:43.000000000 +0400 ++++ gears-0.5.18.0~svn3301+dfsg.new/third_party/jsoncpp/json_value.cc 2009-05-06 18:18:45.000000000 +0400 +@@ -2,6 +2,7 @@ + #include "third_party/jsoncpp/writer.h" + #include + #include "assert.h" ++#include + #ifdef JSON_USE_CPPTL + # include + #endif +diff -Nur -x '*.orig' -x '*~' gears-0.5.18.0~svn3301+dfsg/third_party/jsoncpp/json_writer.cc gears-0.5.18.0~svn3301+dfsg.new/third_party/jsoncpp/json_writer.cc +--- gears-0.5.18.0~svn3301+dfsg/third_party/jsoncpp/json_writer.cc 2009-05-06 18:18:43.000000000 +0400 ++++ gears-0.5.18.0~svn3301+dfsg.new/third_party/jsoncpp/json_writer.cc 2009-05-06 18:18:45.000000000 +0400 +@@ -2,6 +2,7 @@ + #include + #include + #include ++#include + + #if _MSC_VER >= 1400 // VC++ 8.0 + #pragma warning( disable : 4996 ) // disable warning about strdup being deprecated. +diff -Nur -x '*.orig' -x '*~' gears-0.5.18.0~svn3301+dfsg/third_party/skia/src/core/SkDebug_stdio.cpp gears-0.5.18.0~svn3301+dfsg.new/third_party/skia/src/core/SkDebug_stdio.cpp +--- gears-0.5.18.0~svn3301+dfsg/third_party/skia/src/core/SkDebug_stdio.cpp 2009-02-11 03:07:55.000000000 +0300 ++++ gears-0.5.18.0~svn3301+dfsg.new/third_party/skia/src/core/SkDebug_stdio.cpp 2009-05-06 18:18:45.000000000 +0400 +@@ -54,7 +54,7 @@ + va_start(args, format); + vsnprintf(buffer, kBufferSize, format, args); + va_end(args); +- fprintf(stderr, buffer); ++ fprintf(stderr, "%s", buffer); + } + + #endif --- gears-0.5.32.0~svn3391+dfsg.orig/debian/patches/80-firefox-3.5.diff +++ gears-0.5.32.0~svn3391+dfsg/debian/patches/80-firefox-3.5.diff @@ -0,0 +1,35 @@ +--- gears-0.5.32.0~svn3384+dsfg/gears/tools/rules.mk 2009-07-09 07:01:45.000000000 +0200 ++++ gears-0.5.32.0~svn3384+dsfg/gears/tools/rules.mk.patch 2009-08-01 12:55:33.222684363 +0200 +@@ -1238,8 +1238,10 @@ endif + cp base/firefox/static_files/components/stub.js $(INSTALLERS_OUTDIR)/$(INSTALLER_BASE_NAME)/components + cp base/firefox/static_files/components/bootstrap.js $(INSTALLERS_OUTDIR)/$(INSTALLER_BASE_NAME)/components + cp base/firefox/static_files/lib/updater.js $(INSTALLERS_OUTDIR)/$(INSTALLER_BASE_NAME)/lib ++ifeq ($(BROWSER),FF31) + cp $(FF31_OUTDIR)/genfiles/install.rdf $(INSTALLERS_OUTDIR)/$(INSTALLER_BASE_NAME)/install.rdf + cp $(FF31_OUTDIR)/genfiles/chrome.manifest $(INSTALLERS_OUTDIR)/$(INSTALLER_BASE_NAME)/chrome.manifest ++endif + ifneq ($(OS),win32) + # TODO(playmobil): Inspector should be located in extensions dir on win32. + "mkdir" -p $(INSTALLERS_OUTDIR)/$(INSTALLER_BASE_NAME)/resources/inspector +@@ -1249,14 +1251,20 @@ ifneq ($(OS),win32) + endif + "mkdir" -p $(INSTALLERS_OUTDIR)/$(INSTALLER_BASE_NAME)/chrome/chromeFiles/content + "mkdir" -p $(INSTALLERS_OUTDIR)/$(INSTALLER_BASE_NAME)/chrome/chromeFiles/locale ++ifeq ($(BROWSER),FF31) + cp $(FF31_RESOURCES) $(INSTALLERS_OUTDIR)/$(INSTALLER_BASE_NAME)/chrome/chromeFiles/content ++endif + cp $(COMMON_RESOURCES) $(INSTALLERS_OUTDIR)/$(INSTALLER_BASE_NAME)/chrome/chromeFiles/content + cp -R $(FF31_OUTDIR)/genfiles/i18n/* $(INSTALLERS_OUTDIR)/$(INSTALLER_BASE_NAME)/chrome/chromeFiles/locale + cp -R $(COMMON_OUTDIR)/genfiles/i18n/* $(INSTALLERS_OUTDIR)/$(INSTALLER_BASE_NAME)/chrome/chromeFiles/locale ++ifeq ($(BROWSER),FF31) + cp $(FF31_MODULE_TYPELIB) $(INSTALLERS_OUTDIR)/$(INSTALLER_BASE_NAME)/components + cp $(FF31_MODULE_DLL) $(INSTALLERS_OUTDIR)/$(INSTALLER_BASE_NAME)/lib/ff35/$(DLL_PREFIX)$(MODULE)$(DLL_SUFFIX) ++endif ++ifeq ($(BROWSER),FF3) + cp $(FF3_MODULE_DLL) $(INSTALLERS_OUTDIR)/$(INSTALLER_BASE_NAME)/lib/ff30/$(DLL_PREFIX)$(MODULE)$(DLL_SUFFIX) +-ifneq ($(ARCH),x86_64) ++endif ++ifeq ($(BROWSER),FF2) + cp $(FF2_MODULE_DLL) $(INSTALLERS_OUTDIR)/$(INSTALLER_BASE_NAME)/lib/ff2/$(DLL_PREFIX)$(MODULE)$(DLL_SUFFIX) + endif + ifeq ($(OS),osx) --- gears-0.5.32.0~svn3391+dfsg.orig/debian/patches/60-chmod.diff +++ gears-0.5.32.0~svn3391+dfsg/debian/patches/60-chmod.diff @@ -0,0 +1,14 @@ +# Description: Dont chmod 777 +# Author: Rail Aliev + +--- a/gears/tools/rules.mk 2009-05-15 14:48:46.000000000 +0400 ++++ b/gears/tools/rules.mk 2009-05-15 15:04:17.000000000 +0400 +@@ -1218,7 +1218,7 @@ + endif # not OSX + + # Mark files writeable to allow .xpi rebuilds +- chmod -R 777 $(INSTALLERS_OUTDIR)/$(INSTALLER_BASE_NAME)/* ++ chmod -R a-x+X-w,u+w $(INSTALLERS_OUTDIR)/$(INSTALLER_BASE_NAME)/* + (cd $(INSTALLERS_OUTDIR)/$(INSTALLER_BASE_NAME) && zip -r ../$(INSTALLER_BASE_NAME).xpi .) + + $(SF_INSTALLER_PLUGIN_BUNDLE): $(SF_INSTALLER_PLUGIN_EXE) --- gears-0.5.32.0~svn3391+dfsg.orig/debian/patches/20-build.diff +++ gears-0.5.32.0~svn3391+dfsg/debian/patches/20-build.diff @@ -0,0 +1,120 @@ +# Description: GCC 4.3 / 4.4 fix for stricter build rules +# Author: Stefan Lesicnik & Rail Aliev + +--- a/gears/base/common/http_utils.cc ++++ b/gears/base/common/http_utils.cc +@@ -49,6 +49,9 @@ + + // The ""'s catch people who don't pass in a literal for "str" + #define strliterallen(str) (sizeof("" str "")-1) ++#include ++#include ++ + + static int memcasecmp(const char *s1, const char *s2, size_t len) { + const unsigned char *us1 = reinterpret_cast(s1); +--- a/gears/base/common/string16.h ++++ b/gears/base/common/string16.h +@@ -57,6 +57,9 @@ + #define WEOF (static_cast(-1)) + #endif + ++#include ++#include ++ + #if (defined WIN32) + + typedef wchar_t char16; +--- a/gears/base/common/string_utils.cc ++++ b/gears/base/common/string_utils.cc +@@ -25,7 +25,7 @@ + + #include "gears/base/common/string_utils.h" + #include "third_party/convert_utf/ConvertUTF.h" +- ++#include + #if defined(OS_ANDROID) + // Android is missing wcslen. This is just a wide character strlen. + size_t wcslen(const char16 *str) { +--- a/gears/geolocation/backoff_manager.cc ++++ b/gears/geolocation/backoff_manager.cc +@@ -26,6 +26,10 @@ + #include "gears/geolocation/backoff_manager.h" + + #include ++#include ++#include ++#include ++ + + // The baseline minimum period between network requests. + static const int kBaselineMinimumRequestInterval = 1000 * 5; // 5 seconds +--- a/gears/geolocation/wifi_data_provider_common.cc ++++ b/gears/geolocation/wifi_data_provider_common.cc +@@ -24,6 +24,7 @@ + // ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + #include "gears/geolocation/wifi_data_provider_common.h" ++#include + + #include + +--- a/gears/tools/config.mk ++++ b/gears/tools/config.mk +@@ -529,7 +529,8 @@ + + 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 -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 + +--- a/third_party/googleurl/src/url_parse.cc ++++ b/third_party/googleurl/src/url_parse.cc +@@ -33,6 +33,8 @@ + * the terms of any one of the MPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** */ ++#include ++#include + + #include "googleurl/src/url_parse.h" + +--- a/third_party/jsoncpp/json_reader.cc ++++ b/third_party/jsoncpp/json_reader.cc +@@ -3,6 +3,9 @@ + #include + #include + #include ++#include ++#include ++ + + #if _MSC_VER >= 1400 // VC++ 8.0 + #pragma warning( disable : 4996 ) // disable warning about strdup being deprecated. +--- a/third_party/jsoncpp/json_value.cc ++++ b/third_party/jsoncpp/json_value.cc +@@ -10,6 +10,9 @@ + #ifndef JSON_USE_SIMPLE_INTERNAL_ALLOCATOR + # include "third_party/jsoncpp/json_batchallocator.h" + #endif // #ifndef JSON_USE_SIMPLE_INTERNAL_ALLOCATOR ++#include ++#include ++ + + #define JSON_ASSERT_UNREACHABLE assert( false ) + #define JSON_ASSERT( condition ) assert( condition ); // @todo <= change this into an exception throw +--- a/third_party/jsoncpp/json_writer.cc ++++ b/third_party/jsoncpp/json_writer.cc +@@ -7,6 +7,9 @@ + #if _MSC_VER >= 1400 // VC++ 8.0 + #pragma warning( disable : 4996 ) // disable warning about strdup being deprecated. + #endif ++#include ++#include ++ + + namespace Json { + --- gears-0.5.32.0~svn3391+dfsg.orig/debian/patches/70-system-gtk.diff +++ gears-0.5.32.0~svn3391+dfsg/debian/patches/70-system-gtk.diff @@ -0,0 +1,14 @@ +# Description: Patch to build against Ubuntu GTK +# Author: Rail Aliev + +--- gears-0.5.21.0~svn3334+dfsg.orig/gears/tools/config.mk ++++ gears-0.5.21.0~svn3334+dfsg/gears/tools/config.mk +@@ -513,7 +513,7 @@ + THIRD_PARTY_CFLAGS = -Wno-main + + # all the GTK headers using includes relative to this directory +-GTK_CFLAGS = -I../third_party/gtk/include/gtk-2.0 -I../third_party/gtk/include/atk-1.0 -I../third_party/gtk/include/glib-2.0 -I../third_party/gtk/include/pango-1.0 -I../third_party/gtk/include/cairo -I../third_party/gtk/lib/gtk-2.0/include -I../third_party/gtk/lib/glib-2.0/include ++GTK_CFLAGS = $(shell pkg-config --cflags gtk+-2.0) + CPPFLAGS += $(GTK_CFLAGS) + + COMPILE_FLAGS_dbg = -g -O0 --- gears-0.5.32.0~svn3391+dfsg.orig/debian/patches/30-install.rdf.m4.diff +++ gears-0.5.32.0~svn3391+dfsg/debian/patches/30-install.rdf.m4.diff @@ -0,0 +1,21 @@ +# Description: Patch to allow Google Gears to be used with Mozilla Prism +# Author: Matthew Gertner +# Upstream: http://code.google.com/p/gears/issues/detail?id=704 + +--- google-gears-0.5.16.0.orig/gears/base/firefox/install.rdf.m4 ++++ google-gears-0.5.16.0/gears/base/firefox/install.rdf.m4 +@@ -60,6 +60,14 @@ + {000a9d1c-beef-4f90-9363-039d445309b8} + PRODUCT_VERSION + ++ ++ ++ prism@developer.mozilla.org ++ 0.8 ++ 1.0.0.* ++ ++ ++ +