f35d1b
diff -up ./esc/coreconf/Linux3.2.mk.fix13 ./esc/coreconf/Linux3.2.mk
f35d1b
--- ./esc/coreconf/Linux3.2.mk.fix13	2012-02-20 18:08:55.637187190 -0800
f35d1b
+++ ./esc/coreconf/Linux3.2.mk	2012-02-20 18:09:16.296139174 -0800
f35d1b
@@ -0,0 +1,35 @@
f35d1b
+# BEGIN COPYRIGHT BLOCK
f35d1b
+# This Program is free software; you can redistribute it and/or modify it under
f35d1b
+# the terms of the GNU General Public License as published by the Free Software
f35d1b
+# Foundation; version 2 of the License.
f35d1b
+#
f35d1b
+# This Program is distributed in the hope that it will be useful, but WITHOUT
f35d1b
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
f35d1b
+# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
f35d1b
+#
f35d1b
+# You should have received a copy of the GNU General Public License along with
f35d1b
+# this Program; if not, write to the Free Software Foundation, Inc., 59 Temple
f35d1b
+# Place, Suite 330, Boston, MA 02111-1307 USA.
f35d1b
+#
f35d1b
+# Copyright (C) 2005 Red Hat, Inc.
f35d1b
+# All rights reserved.
f35d1b
+# END COPYRIGHT BLOCK
f35d1b
+
f35d1b
+#
f35d1b
+# Config stuff for Linux 3.2 (ELF)
f35d1b
+#
f35d1b
+
f35d1b
+include $(CORE_DEPTH)/coreconf/Linux.mk
f35d1b
+
f35d1b
+OS_REL_CFLAGS   += -DLINUX2_1
f35d1b
+MKSHLIB         = $(CC) -shared -Wl,-soname -Wl,$(@:$(OBJDIR)/%.so=%.so)
f35d1b
+ifdef BUILD_OPT
f35d1b
+            OPTIMIZER       = -O2
f35d1b
+endif
f35d1b
+
f35d1b
+ifdef MAPFILE
f35d1b
+	MKSHLIB += -Wl,--version-script,$(MAPFILE)
f35d1b
+endif
f35d1b
+PROCESS_MAP_FILE = grep -v ';-' $(LIBRARY_NAME).def | \
f35d1b
+        sed -e 's,;+,,' -e 's; DATA ;;' -e 's,;;,,' -e 's,;.*,;,' > $@
f35d1b
+
f35d1b
diff -up ./esc/src/app/xpcom/Makefile.sdk.fix13 ./esc/src/app/xpcom/Makefile.sdk
f35d1b
--- ./esc/src/app/xpcom/Makefile.sdk.fix13	2012-02-20 18:01:49.522177961 -0800
f35d1b
+++ ./esc/src/app/xpcom/Makefile.sdk	2012-02-20 18:01:49.526177952 -0800
f35d1b
@@ -35,7 +35,12 @@ ifndef GECKO_BIN_PATH
f35d1b
 GECKO_BIN_PATH=/usr/lib/xulrunner-1.9pre
f35d1b
 endif
f35d1b
 XUL_FRAMEWORK_BIN_PATH=$(GECKO_BIN_PATH)
f35d1b
-
f35d1b
+ifndef GECKO_IDL_PATH
f35d1b
+GECKO_IDL_PATH=/usr/share/idl/xulrunner-2
f35d1b
+endif
f35d1b
+ifndef PYTHON_BIN_PATH
f35d1b
+PYTHON_BIN=python
f35d1b
+endif
f35d1b
 
f35d1b
 ifeq ($(OS_ARCH),Darwin)
f35d1b
 ifndef GECKO_SDK_PATH
f35d1b
@@ -190,13 +195,14 @@ endif
f35d1b
 all::	export libs
f35d1b
 
f35d1b
 libs:: 
f35d1b
-	$(GECKO_BIN_PATH)/xpidl -v -I $(GECKO_SDK_PATH)/idl -I $(NSPR_INCLUDE) -m header rhIKeyNotify.idl
f35d1b
 
f35d1b
-	$(GECKO_BIN_PATH)/xpidl -v -I $(GECKO_SDK_PATH)/idl -I $(NSPR_INCLUDE) -m typelib rhIKeyNotify.idl
f35d1b
+	$(PYTHON_BIN) $(GECKO_SDK_PATH)/bin/header.py --cachedir /tmp  -o rhIKeyNotify.h -I $(GECKO_IDL_PATH) -I $(NSPR_INCLUDE)  rhIKeyNotify.idl
f35d1b
+
f35d1b
+	$(PYTHON_BIN) $(GECKO_SDK_PATH)/bin/typelib.py --cachedir /tmp -o rhIKeyNotify.xpt -I $(GECKO_IDL_PATH) -I $(NSPR_INCLUDE)  rhIKeyNotify.idl
f35d1b
 
f35d1b
-	$(GECKO_BIN_PATH)/xpidl -v -I $(GECKO_SDK_PATH)/idl -I $(NSPR_INCLUDE) -m header rhICoolKey.idl
f35d1b
+	$(PYTHON_BIN) $(GECKO_SDK_PATH)/bin/header.py --cachedir /tmp -o rhICoolKey.h  -I $(GECKO_IDL_PATH) -I $(NSPR_INCLUDE)  rhICoolKey.idl
f35d1b
 
f35d1b
-	$(GECKO_BIN_PATH)/xpidl -v -I $(GECKO_SDK_PATH)/idl -I $(NSPR_INCLUDE) -m typelib rhICoolKey.idl
f35d1b
+	$(PYTHON_BIN) $(GECKO_SDK_PATH)/bin/typelib.py --cachedir /tmp -o rhICoolKey.xpt -I $(GECKO_IDL_PATH) -I $(NSPR_INCLUDE) rhICoolKey.idl
f35d1b
 
f35d1b
 ifeq ($(OS_ARCH),Darwin)
f35d1b
 	$(CXX)   $(CPPFLAGS)  -c  -o $(OBJECT)  $(GECKO_CONFIG_INCLUDE) $(GECKO_DEFINES) $(GECKO_INCLUDES) $(COOL_INCLUDES) $(CXXFLAGS) $(FILES)
f35d1b
diff -up ./esc/src/app/xpcom/rhCoolKey.cpp.fix13 ./esc/src/app/xpcom/rhCoolKey.cpp
f35d1b
--- ./esc/src/app/xpcom/rhCoolKey.cpp.fix13	2012-02-20 18:01:49.524177956 -0800
f35d1b
+++ ./esc/src/app/xpcom/rhCoolKey.cpp	2012-02-20 18:01:49.526177952 -0800
f35d1b
@@ -98,6 +98,7 @@ static PRLogModuleInfo *coolKeyLog = PR_
f35d1b
 
f35d1b
 rhCoolKey *single = NULL;
f35d1b
 
f35d1b
+
f35d1b
 class CoolKeyShutdownObserver : public nsIObserver
f35d1b
  {
f35d1b
  public:
f35d1b
@@ -364,9 +365,9 @@ SECStatus rhCoolKey::badCertHandler(void
f35d1b
                           GetTStamp(tBuff,56),err,host,port)
f35d1b
     );
f35d1b
 
f35d1b
-    PRBool isTemporaryOverride = PR_FALSE;
f35d1b
+    bool isTemporaryOverride = PR_FALSE;
f35d1b
     PRUint32 overrideBits = 0;
f35d1b
-    PRBool overrideResult = PR_FALSE;
f35d1b
+    bool overrideResult = PR_FALSE;
f35d1b
 
f35d1b
     // Use the nsICertOverrideService to see if we have
f35d1b
     // previously trusted this certificate.
f35d1b
@@ -554,14 +555,14 @@ PRBool rhCoolKey::InitInstance()
f35d1b
     char *grePath = (char *) GETSTRING(GECKO_BIN_PATH);
f35d1b
 
f35d1b
     
f35d1b
-    snprintf(xpcom_path,4096,grePath);
f35d1b
+    snprintf(xpcom_path,4096,"%s%s",grePath,"libxpcom.so");
f35d1b
 
f35d1b
     char *lib_name =(char *) XPCOM_LIB_NAME ;
f35d1b
 
f35d1b
   
f35d1b
     PR_LOG( coolKeyLog, PR_LOG_DEBUG, ("%s rhCoolKey::xpcom_path %s \n",GetTStamp(tBuff,56),xpcom_path)); 
f35d1b
 
f35d1b
-    XPCOMGlueStartup(xpcom_path);
f35d1b
+    XPCOMGlueStartup("/usr/lib/xulrunner-2/libxpcom.so");
f35d1b
 
f35d1b
     nssComponent
f35d1b
     = do_GetService(PSM_COMPONENT_CONTRACTID); 
f35d1b
@@ -1309,7 +1310,7 @@ NS_IMETHODIMP rhCoolKey::GetCoolKeyStatu
f35d1b
 /* boolean GetCoolKeyIsReallyCoolKey (in unsigned long aKeyType, in string aKeyID); */
f35d1b
 
f35d1b
 
f35d1b
-NS_IMETHODIMP rhCoolKey::GetCoolKeyIsReallyCoolKey(PRUint32 aKeyType, const char *aKeyID, PRBool *_retval)
f35d1b
+NS_IMETHODIMP rhCoolKey::GetCoolKeyIsReallyCoolKey(PRUint32 aKeyType, const char *aKeyID, bool *_retval)
f35d1b
 {
f35d1b
     char tBuff[56];
f35d1b
     PR_LOG( coolKeyLog, PR_LOG_DEBUG, ("%s rhCoolKey::GetCoolKeyIsReallyCoolKey thread: %p \n",GetTStamp(tBuff,56),PR_GetCurrentThread()));
f35d1b
@@ -1328,7 +1329,7 @@ NS_IMETHODIMP rhCoolKey::GetCoolKeyIsRea
f35d1b
 }
f35d1b
 
f35d1b
 /* long GetCoolKeyGetAppletVer (in unsigned long aKeyType, in string aKeyID, in boolean aIsMajor); */
f35d1b
-NS_IMETHODIMP rhCoolKey::GetCoolKeyGetAppletVer(PRUint32 aKeyType, const char *aKeyID, PRBool aIsMajor, PRInt32 *_retval)
f35d1b
+NS_IMETHODIMP rhCoolKey::GetCoolKeyGetAppletVer(PRUint32 aKeyType, const char *aKeyID, bool aIsMajor, PRInt32 *_retval)
f35d1b
 {
f35d1b
     char tBuff[56];
f35d1b
     PR_LOG(coolKeyLog, PR_LOG_DEBUG, ("%s rhCoolKey::GetCoolKeyAppletVer thread: %p \n",GetTStamp(tBuff,56),PR_GetCurrentThread()));
f35d1b
@@ -1344,7 +1345,7 @@ NS_IMETHODIMP rhCoolKey::GetCoolKeyGetAp
f35d1b
 
f35d1b
 /* boolean rhCoolKeyIsEnrolled (in unsigned long aKeyType, in string aKeyID); */
f35d1b
 
f35d1b
-NS_IMETHODIMP rhCoolKey::GetCoolKeyIsEnrolled(PRUint32 aKeyType, const char *aKeyID, PRBool *_retval)
f35d1b
+NS_IMETHODIMP rhCoolKey::GetCoolKeyIsEnrolled(PRUint32 aKeyType, const char *aKeyID, bool *_retval)
f35d1b
 {
f35d1b
     char tBuff[56];
f35d1b
     PR_LOG( coolKeyLog, PR_LOG_DEBUG, ("%s rhCoolKey::RhCoolKeyIsEnrolled thread: %p \n",GetTStamp(tBuff,56),PR_GetCurrentThread()));
f35d1b
@@ -1586,7 +1587,7 @@ NS_IMETHODIMP rhCoolKey::GetCoolKeyIssue
f35d1b
 }
f35d1b
 
f35d1b
 /* boolean SetCoolKeyConfigValue (in string aName, in string aValue); */
f35d1b
-NS_IMETHODIMP rhCoolKey::SetCoolKeyConfigValue(const char *aName, const char *aValue, PRBool *_retval)
f35d1b
+NS_IMETHODIMP rhCoolKey::SetCoolKeyConfigValue(const char *aName, const char *aValue, bool *_retval)
f35d1b
 {
f35d1b
     char tBuff[56];
f35d1b
     PR_LOG( coolKeyLog, PR_LOG_DEBUG, ("rhCoolKey::SetCoolKeyConfigValue thread: %p \n",GetTStamp(tBuff,56),PR_GetCurrentThread()));
f35d1b
@@ -1620,7 +1621,7 @@ NS_IMETHODIMP rhCoolKey::GetCoolKeyConfi
f35d1b
 
f35d1b
 /* boolean rhCoolKeyRequiresAuthentication (in unsigned long aKeyType, in string aKeyID); */
f35d1b
 
f35d1b
-NS_IMETHODIMP rhCoolKey::GetCoolKeyRequiresAuthentication(PRUint32 aKeyType, const char *aKeyID, PRBool *_retval)
f35d1b
+NS_IMETHODIMP rhCoolKey::GetCoolKeyRequiresAuthentication(PRUint32 aKeyType, const char *aKeyID, bool *_retval)
f35d1b
 {
f35d1b
     char tBuff[56];
f35d1b
     PR_LOG( coolKeyLog, PR_LOG_DEBUG, ("%s rhCoolKey::RhCoolKeyRequiresAuthentication thread: %p \n",GetTStamp(tBuff,56),PR_GetCurrentThread()));
f35d1b
@@ -1640,7 +1641,7 @@ NS_IMETHODIMP rhCoolKey::GetCoolKeyRequi
f35d1b
 
f35d1b
 /* boolean rhGetCoolKeyIsAuthenticated (in unsigned long aKeyType, in string aKeyID); */
f35d1b
 
f35d1b
-NS_IMETHODIMP rhCoolKey::GetCoolKeyIsAuthenticated(PRUint32 aKeyType, const char *aKeyID, PRBool *_retval)
f35d1b
+NS_IMETHODIMP rhCoolKey::GetCoolKeyIsAuthenticated(PRUint32 aKeyType, const char *aKeyID, bool *_retval)
f35d1b
 {
f35d1b
     char tBuff[56];
f35d1b
     PR_LOG( coolKeyLog, PR_LOG_DEBUG, ("%s rhCoolKey::RhGetCoolKeyIsAuthenticated thread: %p \n",GetTStamp(tBuff,56),PR_GetCurrentThread()));
f35d1b
@@ -1660,7 +1661,7 @@ NS_IMETHODIMP rhCoolKey::GetCoolKeyIsAut
f35d1b
 
f35d1b
 /* boolean rhAuthenticateCoolKey (in unsigned long aKeyType, in string aKeyID, in string aPIN); */
f35d1b
 
f35d1b
-NS_IMETHODIMP rhCoolKey::AuthenticateCoolKey(PRUint32 aKeyType, const char *aKeyID, const char *aPIN, PRBool *_retval) 
f35d1b
+NS_IMETHODIMP rhCoolKey::AuthenticateCoolKey(PRUint32 aKeyType, const char *aKeyID, const char *aPIN, bool *_retval) 
f35d1b
 {
f35d1b
     char tBuff[56];
f35d1b
     PR_LOG( coolKeyLog, PR_LOG_DEBUG, ("%s rhCoolKey::RhAuthenticateCoolKey thread: %p \n",GetTStamp(tBuff,56),PR_GetCurrentThread()));
f35d1b
diff -up ./esc/src/app/xpcom/tray/Makefile.sdk.fix13 ./esc/src/app/xpcom/tray/Makefile.sdk
f35d1b
--- ./esc/src/app/xpcom/tray/Makefile.sdk.fix13	2012-02-20 18:01:49.522177961 -0800
f35d1b
+++ ./esc/src/app/xpcom/tray/Makefile.sdk	2012-02-20 18:01:49.526177952 -0800
f35d1b
@@ -39,6 +39,15 @@ ifndef GECKO_BIN_PATH
f35d1b
 GECKO_BIN_PATH=/usr/lib/xulrunner-1.9
f35d1b
 endif
f35d1b
 
f35d1b
+ifndef GECKO_IDL_PATH
f35d1b
+GECKO_IDL_PATH=/usr/share/idl/xulrunner-2
f35d1b
+endif
f35d1b
+
f35d1b
+ifndef PYTHON_BIN_PATH
f35d1b
+PYTHON_BIN=python
f35d1b
+endif
f35d1b
+
f35d1b
+
f35d1b
 ifeq ($(OS_ARCH),Darwin)
f35d1b
 ifndef GECKO_SDK_PATH
f35d1b
 GECKO_SDK_PATH =/Users/jmagne/Desktop/gecko-sdk-mac-universal
f35d1b
@@ -220,13 +229,14 @@ all::	export libs
f35d1b
 
f35d1b
 libs:: 
f35d1b
 	echo "PPC_BUILD $(PPC_BUILD)"
f35d1b
-	$(GECKO_BIN_PATH)/xpidl -I $(GECKO_SDK_PATH)/idl -I $(NSPR_INCLUDE) -m header rhITray.idl
f35d1b
 
f35d1b
-	$(GECKO_BIN_PATH)/xpidl -I $(GECKO_SDK_PATH)/idl -I $(NSPR_INCLUDE) -m typelib rhITray.idl
f35d1b
+	$(PYTHON_BIN) $(GECKO_SDK_PATH)/bin/header.py --cachedir=/tmp -o rhITray.h -I $(GECKO_IDL_PATH) -I $(NSPR_INCLUDE)  rhITray.idl
f35d1b
+
f35d1b
+	$(PYTHON_BIN) $(GECKO_SDK_PATH)/bin/typelib.py --cachedir=/tmp -o rhITray.xpt -I $(GECKO_IDL_PATH) -I $(NSPR_INCLUDE) rhITray.idl
f35d1b
 
f35d1b
-	$(GECKO_BIN_PATH)/xpidl -I $(GECKO_SDK_PATH)/idl -I $(NSPR_INCLUDE) -m header rhITrayWindNotify.idl
f35d1b
+	$(PYTHON_BIN) $(GECKO_SDK_PATH)/bin/header.py --cachedir=/tmp -o rhITrayWindNotify.h -I $(GECKO_IDL_PATH) -I $(NSPR_INCLUDE)  rhITrayWindNotify.idl
f35d1b
 
f35d1b
-	$(GECKO_BIN_PATH)/xpidl -I $(GECKO_SDK_PATH)/idl -I $(NSPR_INCLUDE) -m typelib rhITrayWindNotify.idl
f35d1b
+	$(PYTHON_BIN) $(GECKO_SDK_PATH)/bin/typelib.py --cachedir=/tmp -o rhITrayWindNotify.xpt -I $(GECKO_IDL_PATH) -I $(NSPR_INCLUDE) rhITrayWindNotify.idl
f35d1b
 
f35d1b
 ifeq ($(OS_ARCH),Darwin)
f35d1b
 	$(CXX)   $(CPPFLAGS)  -c  -o $(OBJECT)  $(GECKO_CONFIG_INCLUDE) $(GECKO_DEFINES) $(GECKO_INCLUDES) $(COOL_INCLUDES) $(CXXFLAGS) $(FILES)
f35d1b
diff -up ./esc/src/app/xpcom/tray/rhLinuxTray.cpp.fix13 ./esc/src/app/xpcom/tray/rhLinuxTray.cpp
f35d1b
--- ./esc/src/app/xpcom/tray/rhLinuxTray.cpp.fix13	2012-02-20 18:01:49.512177984 -0800
f35d1b
+++ ./esc/src/app/xpcom/tray/rhLinuxTray.cpp	2012-02-20 18:01:49.526177952 -0800
f35d1b
@@ -215,7 +215,7 @@ NS_IMETHODIMP rhTray::Show(nsIBaseWindow
f35d1b
     return NS_OK;
f35d1b
 }
f35d1b
 
f35d1b
-NS_IMETHODIMP rhTray::IsInitializedAlready(PRBool *_retval)
f35d1b
+NS_IMETHODIMP rhTray::IsInitializedAlready(bool *_retval)
f35d1b
 {
f35d1b
     *_retval = 0;
f35d1b
 
f35d1b
@@ -749,7 +749,7 @@ void rhTray::NotifyTrayWindListeners(PRU
f35d1b
     std::list< nsCOMPtr <rhITrayWindNotify> >::const_iterator it;
f35d1b
     for(it=gTrayWindNotifyListeners.begin(); it!=gTrayWindNotifyListeners.end(); ++it) {
f35d1b
 
f35d1b
-        PRBool claimed = 0;
f35d1b
+        bool claimed = 0;
f35d1b
 
f35d1b
         PR_LOG( trayLog, PR_LOG_DEBUG, ("%s NotifyTrayWindListeners about to notify \n",GetTStamp(tBuff,56)));
f35d1b
         ((rhITrayWindNotify *) (*it))->RhTrayWindEventNotify(aEvent,aEventData, aKeyData, aData1, aData2, &claimed);
f35d1b
diff -up ./esc/src/app/xul/esc/application.ini.fix13 ./esc/src/app/xul/esc/application.ini
f35d1b
--- ./esc/src/app/xul/esc/application.ini.fix13	2012-02-20 18:01:49.523177958 -0800
f35d1b
+++ ./esc/src/app/xul/esc/application.ini	2012-02-20 18:01:49.527177950 -0800
f35d1b
@@ -25,7 +25,7 @@ Vendor=RedHat
f35d1b
 Name=ESC
f35d1b
 ;
f35d1b
 ; This field specifies your application's version.  This field is optional.
f35d1b
-Version=1.1.0-16
f35d1b
+Version=1.1.0-15
f35d1b
 ;
f35d1b
 ; This field specifies your application's build ID (timestamp).  This field is
f35d1b
 ; required.
f35d1b
diff -up ./esc/src/app/xul/esc/chrome/content/esc/ESC.js.fix13 ./esc/src/app/xul/esc/chrome/content/esc/ESC.js
f35d1b
--- ./esc/src/app/xul/esc/chrome/content/esc/ESC.js.fix13	2012-02-20 18:01:49.514177980 -0800
f35d1b
+++ ./esc/src/app/xul/esc/chrome/content/esc/ESC.js	2012-02-20 18:01:49.527177950 -0800
f35d1b
@@ -118,7 +118,7 @@ jsNotify.prototype = {
f35d1b
      if(!iid.equals(Components.interfaces.rhIKeyNotify) &&
f35d1b
          !iid.equals(Components.interfaces.nsISupports))
f35d1b
       {
f35d1b
-          MyAlert(getBundleString("errorJsNotifyInterface"));
f35d1b
+          //MyAlert(getBundleString("errorJsNotifyInterface"));
f35d1b
           throw Components.results.NS_ERROR_NO_INTERFACE;
f35d1b
       }
f35d1b
       return this;
f35d1b
diff -up ./esc/src/app/xul/esc/chrome/content/esc/TRAY.js.fix13 ./esc/src/app/xul/esc/chrome/content/esc/TRAY.js
f35d1b
--- ./esc/src/app/xul/esc/chrome/content/esc/TRAY.js.fix13	2012-02-20 18:01:49.515177978 -0800
f35d1b
+++ ./esc/src/app/xul/esc/chrome/content/esc/TRAY.js	2012-02-20 18:01:49.528177948 -0800
f35d1b
@@ -49,7 +49,7 @@ jsWindNotify.prototype = {
f35d1b
      if(!iid.equals(Components.interfaces.rhITrayWindNotify) &&
f35d1b
          !iid.equals(Components.interfaces.nsISupports))
f35d1b
       {
f35d1b
-          MyAlert(getBundleString("errorJsNotifyInterface"));
f35d1b
+          //MyAlert(getBundleString("errorJsNotifyInterface"));
f35d1b
           throw Components.results.NS_ERROR_NO_INTERFACE;
f35d1b
       }
f35d1b
       return this;