[Pkg-mozext-maintainers] tree-style-tab conversion to WebExtensions

Ximin Luo infinity0 at debian.org
Wed Jul 25 18:58:00 BST 2018


Dmitry Smirnov:
> On Thursday, 26 July 2018 3:25:00 AM AEST Ximin Luo wrote:
>> Hey Dmitry, did you try using "dh $@ --with webext" rather than manually
>> symlinking and unzipping stuff in the postinst?
>>
>> I wrote some emails about it previously in this thread.
> 
> Yes, I did try dh_webext and I thoroughly explored prior attempts to package 
> web extensions for Firefox.
> 
> I've found dh_webext to be not too helpful as it does very little but the 
> biggest problem is that Firefox wants _zipped_ extensions (I've explained why 
> in another email to the list). I'm creating zipped bundle in postinst...
> 
> 
>> There are lots of things left to do but it should be able to handle simple
>> WebExtensions like tree-style-tab well. For a quick out-dated example see
>> this:
>>
>> https://salsa.debian.org/webext-team/tree-style-tab/tree/pu/webext
> 
> I've missed that branch entirely but I already tried similar approach in my 
> other package (form-history-control) where I've found dh_webext to be 
> somewhat less effective than direct approach...
> 

If Firefox's requirements have changed since I last used dh_webext, why not improve dh_webext to create these zips during build time rather than postinst time?

The whole point of something like dh-XXX is to prevent duplication of logic that might have to change based on something outside of the package. Instead of updating d/rules of every single webext package, whenever Firefox's logic changes, we only have to update dh-webext and run a binary-only rebuild.

X

-- 
GPG: ed25519/56034877E1F87C35
GPG: rsa4096/1318EFAC5FBBDBCE
https://github.com/infinity0/pubkeys.git



More information about the Pkg-mozext-maintainers mailing list