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