On 14/03/2022 18:30, Jonas Smedegaard wrote:
Quoting Yadd (2022-03-14 18:02:11)
On 14/03/2022 17:49, Jonas Smedegaard wrote:
Quoting Yadd (2022-03-14 15:45:23)
Le Lundi, Mars 14, 2022 15:07 CET, Jonas Smedegaard
<jo...@jones.dk> a écrit:
Quoting Yadd (2022-03-14 08:41:44)
pkg-js-tools 0.13.0 improve pkgjs-depends and add a new
dh_nodejs_autodocs tool (to automatically install components
documentation: @rouca, this is for you ;-))

Here is the result of new "-c" option (display mismatch versions)

$ pkgjs-depends -c ava

Using option -c requires apt-file.  This should probably grow a
Recommends: for the package, or at least a Suggests: and a notice
in long description.

That option -c fails unless mismatching packages are installed.

It shouldn't, could you share some logs ?

On a clean chroot, with pkg-js-tools installed (and its
recommendations - i.e. *not* a broken system):

root@auryn:/# pkgjs-depends -c ava
[...]
Unable to check versions, did you install node-semver ?

After installing node-semver:

# pkgjs-depends ava
Can't exec "npm": No such file or directory at /usr/share/perl5/Dpkg/IPC.pm 
line 311.
[...]
After installing npm (and it shitload of dependencies/recommendations):

# pkgjs-depends ava
# ava@4.1.0Can't exec "apt-file": No such file or directory at 
/usr/share/perl5/Dpkg/IPC.pm line 311.
[...]
   - Jonas

I think the best here is to split pkg-js-tools into:
   * dh-nodejs with minimal dependencies (just nodejs:any and
     needed Perl libs) => provides dh-sequence-nodejs
   * pkg-js-tools with:
     + suggested dependencies upgraded to required/recommended
     + a dependency to dh-nodejs

Utilities that doesn't not add any dependency will stay on dh-nodejs
(pkgjs-ln, pkgjs-utils,...) because they are used in some
debian/rules; advanced tools like pkgjs-depends, pkgjs-ls,
add-node-component will move to new pkg-js-tools

Then no regressions (most of package depends on dh-sequence-nodejs,
not pkg-js-tools and pkg-js-tools will continue to provide
dh-sequence-nodejs via its dependency to dh-nodejs) and a better
usability.

What do you think about this ?

Sounds sensible to me.

  - Jonas

All done in 0.14.3 [experimental] (split, progressbar, cache, bugfixes). Thanks for the report!

Cheers,
Yadd

--
Pkg-javascript-devel mailing list
Pkg-javascript-devel@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel

Reply via email to