[mozilla-firetray/f14/master] Symlink the extension's directory for sunbird the same way of the other applications using gecko >=

Hicham HAOUARI hicham at fedoraproject.org
Sun Oct 24 21:44:22 UTC 2010


commit d0386d62519fccfed15455088fb7fa78b55a1d7e
Author: Hicham HAOUARI <hicham.haouari at gmail.com>
Date:   Sun Oct 24 21:44:11 2010 +0000

    Symlink the extension's directory for sunbird the same way of the other applications using gecko >= 1.9.2, fixes rhbz #646185

 mozilla-firetray.spec |   22 +++++++++++++++++++---
 1 files changed, 19 insertions(+), 3 deletions(-)
---
diff --git a/mozilla-firetray.spec b/mozilla-firetray.spec
index 5449c47..72db4fb 100644
--- a/mozilla-firetray.spec
+++ b/mozilla-firetray.spec
@@ -1,4 +1,4 @@
-%define rel 2.1
+%define rel 3
 
 %define svn 0
 
@@ -270,8 +270,20 @@ popd
 %endif
 
 #sunbird
-pushd $RPM_BUILD_ROOT%{mz_ext_dir}%{sb_guid}
-    ln -s %{_libdir}/%{name}-%{version} %{ft_guid}
+#more symlink vodoo for sunbird since it crashes after the first start when using a whole symlinked extension directory
+pushd $RPM_BUILD_ROOT%{mz_ext_dir}%{sb_guid}/%{ft_guid}
+    ln -s %{_libdir}/%{name}-%{version}/install.rdf install.rdf
+    ln -s %{_libdir}/%{name}-%{version}/chrome.manifest chrome.manifest
+    ln -s %{_libdir}//%{name}-%{version}/chrome chrome
+    ln -s %{_libdir}//%{name}-%{version}/defaults defaults
+
+    mkdir components
+    cd components
+        ln -s %{_libdir}/%{name}-%{version}/components/nsMinimize.js nsMinimize.js
+        ln -s %{_libdir}/%{name}-%{version}/components/nsITray.xpt nsITray.xpt
+        ln -s %{_libdir}/%{name}-%{version}/components/nsIMinimize.xpt nsIMinimize.xpt
+        ln -s %{_libdir}/%{name}-%{version}/components/libnptray.so libnptray.so
+    cd ..
 popd
 
 # chatzilla
@@ -333,6 +345,10 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Sun Oct 24 2010 Hicham HAOUARI <hicham.haouari at gmail.com> - 0.2.8-3
+- Symlink the extension's directory for sunbird the same way of the
+  other applications using gecko >= 1.9.2, fixes rhbz #646185 
+
 * Wed Sep 29 2010 jkeating - 0.2.8-2.1
 - Rebuilt for gcc bug 634757
 


More information about the scm-commits mailing list