[Pkg-javascript-devel] Bug#977792: closed by Debian FTP Masters

Kevin Locke kevin at kevinlocke.name
Sun May 29 18:17:51 BST 2022


found 977792 16.15.0+dfsg-1
thanks

On Fri, 2022-05-27 at 14:54 +0000, Debian Bug Tracking System wrote:
> This is an automatic notification regarding your Bug report
> which was filed against the nodejs package:
> 
> #977792: nodejs: install bash-completion script
> 
> It has been closed by Debian FTP Masters <ftpmaster at ftp-master.debian.org> (reply to Jérémy Lal <kapouer at melix.org>).

Thanks for working on this issue!  Unfortunately, it does not appear
to be fixed in 16.15.0+dfsg-1, as the
/usr/share/bash-completion/completions directory is empty in this
version:

    $ dget nodejs=16.15.0+dfsg-1
    $ dpkg -c nodejs_16.15.0+dfsg-1_amd64.deb | grep bash-completion
    drwxr-xr-x root/root         0 2022-05-27 07:48 ./usr/share/bash-completion/
    drwxr-xr-x root/root         0 2022-05-27 07:48 ./usr/share/bash-completion/completions/

The buildd log for amd64[1] includes:

    /bin/sh: 1: ./node: not found

in debian/rules override_dh_auto_build-arch on line 1443.  Which
appears be the source of the problem.  Apparently the error is not
fatal because it occurs in a variable substitution?  Was that
intentional?  Perhaps it could be fixed and made fatal with:

--- a/debian/rules
+++ b/debian/rules
@@ -257,7 +257,7 @@ endif
 
 override_dh_auto_build-arch: deps_build
 	dh_auto_build
-	$(shell ./node --completion-bash > ./debian/nodejs.bash-completion)
+	./out/Release/node --completion-bash > ./debian/nodejs.bash-completion
 
 override_dh_auto_build-indep: deps_links
 	mkdir -p $(DEBIAN_DOC_DEPS)


It may also be worth considering adding nodejs.links with content:
/usr/share/bash-completion/completions/node	/usr/share/bash-completion/completions/nodejs
So that users will get completion for `node <tab>` in addition to
`nodejs <tab>`.

Thanks again,
Kevin

[1]: https://buildd.debian.org/status/fetch.php?pkg=nodejs&arch=amd64&ver=16.15.0%2Bdfsg-1&stamp=1653680475&raw=0



More information about the Pkg-javascript-devel mailing list