In /usr/bin/dpkg-genbuilddeps line 4:
PROGNAME=`basename $0`
         ^-----------^ SC2006: Use $(...) notation instead of legacy backticked `...`.
                   ^-- SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
PROGNAME=$(basename "$0")

For more information:
  https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ...
  https://www.shellcheck.net/wiki/SC2006 -- Use $(...) notation instead of le...