[Pkg-mozext-maintainers] Review Initial packaging for Cryptocat

u u at 451f.org
Wed Dec 24 21:32:20 UTC 2014


Hi,

[snip]

So, I managed to fix everything you mentioned.

> W: xul-ext-cryptocat: embedded-javascript-library usr/share/xul-ext/cryptocat/chrome/content/data/js/lib/jquery/jquery.js please use libjs-jquery
> W: xul-ext-cryptocat: embedded-javascript-library usr/share/xul-ext/cryptocat/chrome/content/data/js/lib/strophe/strophe.js please use libjs-strophe

But I fail to correctly symlink the files of libjs-strophe and libjs-jquery.

I've tried to patch the source code, but it seems that doing that kind
of thing

-<script type="application/javascript"
src="js/lib/jquery/jquery.js"></script>
+<script type="application/javascript"
src="./../../../../../javascript/jquery/jquery.js"></script>

does not work.

(I saw that the sieve extension does it like that.)

I suppose that I can't get out of this kind of sandboxed URL
chrome://cryptocat/content/data/

I also tried to symlink the files but i get a 404, for example :

file:///usr/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/cryptocat at crypto.cat/chrome/content/data/js/lib/jquery/jquery.js
not found

But the symlink in
/usr/share/xul-ext/cryptocat/chrome/content/data/js/lib/ looks like this:

jquery.js -> /usr/share/javascript/jquery/jquery.js


Not quite sure what I miss here.
Do you have any examples where this actually works?
Will continue searching..

Cheers!
u.



More information about the Pkg-mozext-maintainers mailing list