#1068725 libnginx-mod-http-js contains unnecessary dependency

Package:
nginx
Source:
nginx
Description:
small, powerful, scalable web/proxy server
Submitter:
Miao Wang
Date:
2024-04-16 08:42:02 UTC
Severity:
normal
#1068725#5
Date:
2024-04-09 19:26:32 UTC
From:
To:
Dear Maintainer,

libnginx-mod-http-js contains a dependency on libnginx-mod-stream, which should be only necessary for libnginx-mod-stream-js.

Cheers,

Miao Wang

#1068725#14
Date:
2024-04-16 08:38:25 UTC
From:
To:
Le mar. 9 avr. 2024 à 21:30, Miao Wang <shankerwangmiao@gmail.com> a écrit :
Reassigned to nginx, because currently dh-nginx does this unconditionally:
$this->{has_stream} = $this->has_build_dep("libnginx-mod-stream");
../..
if ($this->{has_stream} == 1) {
  addsubstvar($cur, "misc:Depends", "libnginx-mod-stream (>= $ngx_ver),
libnginx-mod-stream (<< $ngx_ver.1~)");
}
../..

It should offer a better way.
Maybe shlibdeps picks that dependency ? so dh-nginx could add the
constraint on mod-stream versions only when the built binary is actually
linked to it ?