With xpi_install from mozextension.eclass 1.4 it is not possible to install correctly e.g. the better-privacy extension by an ebuild (ebuild attached): It will install but not be recognized as an extension of mozilla-firefox. The reason is that the sed-command to parse "id" from install.rdf is too sloppy: In the mentioned example an to early em:id entry is read. This is easy to fix: The em:id entries should ignored if they come before the tag <Description about="urn:mozilla:install-manifest"> So I suggest to let sed only parse the content after a match of "install-manifest" (patch is attached). Of course, this is not perfect - sed cannot replace a full xml parser - but it is better than sloppy behavior before: At least, better-privacy (and probably some other extensions) will then install correctly, and the change will not break other extensions (I tried several of them, including noscript from the portage tree).
Created attachment 217237 [details] better-privacy-1.45.ebuild (example for a non-working install without patch)
Created attachment 217239 [details, diff] Patch for mozextensions.eclass to fix the problem
(In reply to comment #2) > Created an attachment (id=217239) [details] > Patch for mozextensions.eclass to fix the problem > I will get this landed tomorrow evening, sorry for the delay in getting this resolved.
Created attachment 258320 [details, diff] Version of the patch which works with more extensions.. The attached patch works with even more mozilla extensions (of course probably still not with all, since this would need an xml parser). However, since there are no longer any mozilla extensions in the tree, perhaps it makes no longer sense to extend an class which is not used... Just for the records: Meanwhile I have written my own class for extensions which is much more complex but somewhat more luxury to use and saves disk space by optionally using links or symlinks instead of duplicating data: http://git.overlays.gentoo.org/gitweb/?p=user/mv.git;a=blob_plain;f=eclass/mv_mozextension.eclass;hb=HEAD
Thanks for your work it is much appreciated. We are still using extensions eclass to install enigmail and lightning for tb.