[Pkg-javascript-devel] Bug#1026974: Bug#1026974: Cannot exclude a component from consideration using !

Israel Galadima izzygaladima at gmail.com
Sun Dec 25 19:49:25 GMT 2022


Can I ask what you're trying to achieve by excluding the component listed
in debian/watch? There could be a dh command or some pkg-js-tools
functionality that can be used to achieve it.

On Sun, 25 Dec 2022 at 20:36, Israel Galadima <izzygaladima at gmail.com>
wrote:

> Hi Julian,
>
> These are some excerpts from pkg-js-tools manpage:
>
> debian/nodejs/additional_components is used to set some subdirectories
> that should be considered as components even if they are not listed in
> debian/watch. Starting from pkg-js-tools version 0.12.0 and 0.12.7, the
> packages field in lerna.conf and workspaces field in package.json are used
> to automatically detect additional components. If a component should not be
> considered i.e, not automatically detected, insert its name preceded by a
> "!" in debian/nodejs/additional_components.
>
> From the above, I don't think "!" in debian/nodejs/additional_components
> is used to exclude a component listed in debian/watch.
>
> On Sun, 25 Dec 2022 at 13:09, Julian Gilbey <jdg at debian.org> wrote:
>
>> Package: pkg-js-tools
>> Version: 0.15.12
>> Severity: normal
>>
>> I am working on a package (node-webfont) which requires a non-node
>> component.  The dh-nodejs tools keeps complaining, for example
>> debclean reports:
>>
>> Found debian/nodejs/additional_components
>> /!\ woff2/package.json not found
>> Unable to load woff2
>> /!\ brotli/package.json not found
>> Unable to load brotli
>>
>> My additional_components reads:
>> ---
>> !brotli
>> !woff2
>> ---
>> following the guidance in pkg-js-tools(7), if I've understood it
>> correctly.  But it seems that this syntax doesn't help;
>> list-node-components reports:
>>
>> [...]
>> varstream
>> woff2
>> brotli
>> !brotli
>> !woff2
>>
>> with the first occurrence being picked up from debian/watch and the !
>> occurrences being those in additional_components.  But
>> component_list in /usr/share/perl5/Debian/PkgJs/Utils.pm has a
>> different behaviour, and it would seem that that should work.
>> Unfortunately, though, it doesn't appear to do so, and I don't
>> understand why not.
>>
>> Best wishes,
>>
>>    Julian
>>
>> --
>> Pkg-javascript-devel mailing list
>> Pkg-javascript-devel at alioth-lists.debian.net
>>
>> https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20221225/562891dd/attachment.htm>


More information about the Pkg-javascript-devel mailing list