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