Bug#954459: lintian: maintainer-shell-script-fails-syntax-check requires /bin/sh → !/bin/bash?
Package: lintian
Version: 2.58.0
Severity: normal
Hi,
The scripts-bashisms and legacy-maintainer-scripts and tests fail
when /bin/sh is set to /bin/bash. This occurs in, for example, the
Reproducible Builds framework:
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/lintian.html
Click the build2 link in the left-hand navigation. The cause is that
whilst:
./t/tags/checks/scripts/scripts-bashisms/build-spec/debian/postinst
… contains bashisms, it has a /bin/sh shebang so the script is tested
against Bash which, of course, supports Bashisms.
$ bash -n t/tags/checks/scripts/scripts-bashisms/build-spec/debian/postinst
$ dash -n t/tags/checks/scripts/scripts-bashisms/build-spec/debian/postinst
./t/tags/checks/scripts/scripts-bashisms/build-spec/debian/postinst: 66: Syntax error: "do" unexpected
$
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` lamby@debian.org / chris-lamb.co.uk
`-
Reply to: