Package: debhelper
Version: 12.9
Severity: normal
Related to #953636
Hi,
this old hook has to be replaced:
if ( -d "$tmp/usr/lib/nodejs/") {
my @nodejs_exec_patterns = qw(*/cli.js */bin.js);
my @exec_files = grep {
not excludefile($_) and -f $_;
} glob_expand(["$tmp/usr/lib/nodejs"],
\&glob_expand_error_handler_silently_ignore, @nodejs_exec_patterns);
reset_perm_and_owner(0755, @exec_files)
}
* In Debian 11, nodejs modules are no more installed in /usr/lib/nodejs
but:
* arch-indep in /usr/share/nodejs
* arch-dep in /usr/lib/<multi-arch>/nodejs
* many nodejs binaries are not called */cli.js neither */bin.js
Modern nodejs modules uses pkg-js-tools auto installer, #953636 could be
a good solution to replace this (and then remove definetly this hook).
Cheers,
Xavier