[Pkg-mozext-maintainers] Having trouble with dh_webext and non-root source path

John Scott jscott at posteo.net
Sun Aug 9 02:19:25 BST 2020


I sent this mail a while ago but it didn't get a response. It's now the 
primary blocker for LibreJS, so I'm resending it.

I'm working on packaging LibreJS (ITP #659348), but am clueless why I'm 
getting stuck. As the LibreJS developers suggest, I'm moving all of the 
WebExtension artifacts including manifest.json into its own subdirectory, 
because the LibreJS source tree includes many things that don't belong in
/usr/share/webext/*

It finds manifest.json on its own:
dh_webext: Found 1 manifest.json, source PATH set to ./subdir
dh_webext: Set NAME to librejs from package webext-librejs
install -d debian/webext-librejs/usr/share/webext/librejs

cd '././subdir/..' && find 'subdir' ! \( -regex .\*\\.git.\* -or -regex .\*\
\.pc.\* -or -regex .\*debian.\* \) \( -type f -or -type l \) -print0 | 
LC_ALL=C sort -z | xargs -0 -I {} cp --reflink=auto --parents -dp {} /home/
john/librejs/librejs-7.20.2/debian/webext-librejs/usr/share/webext/librejs/

cd '././subdir/..' && find 'subdir' ! \( -regex .\*\\.git.\* -or -regex .\*\
\.pc.\* -or -regex .\*debian.\* \) \( -type d -and -empty \) -print0 | 
LC_ALL=C sort -z | xargs -0 -I {} cp --reflink=auto --parents -a {} /home/john/
librejs/librejs-7.20.2/debian/webext-librejs/usr/share/webext/librejs/

But all of the artifacts get installed into /usr/share/webext/librejs/subdir/, 
where they should just go in /usr/share/webext/librejs/. Why does this happen? 
Firefox and Chromium don't seem to recognize extensions in subdirectories of 
subdirectories of /usr/share/webext/, so this should be caught.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: This is a digitally signed message part.
URL: <http://alioth-lists.debian.net/pipermail/pkg-mozext-maintainers/attachments/20200808/8166e988/attachment.sig>


More information about the Pkg-mozext-maintainers mailing list