#998765 adonthell: bashism in configure script

Package:
src:adonthell
Source:
adonthell
Submitter:
Andrej Shadura
Date:
2021-11-07 19:27:06 UTC
Severity:
normal
Tags:
#998765#5
Date:
2021-11-07 19:25:58 UTC
From:
To:
Hi,

Your package uses configure script with bash features not present in
POSIX without explicitly declaring the need to bash shell; this
currently works as configure scripts select bash, but when dash enables
LINENO support, your configure script will start failing:

     ./configure: 9525: test: x/usr/bin/python3: unexpected operator
     checking for Python header files... found
     checking for Python library... -lpython3.9
     ./configure: 1: Bad substitution
     ./configure: 9602: Bad substitution
     	tail -v -n \+0 config.log

To test this, you can install dash from experimental and re-run the
configure script.

Please replace non-POSIX features with their equivalents to make sure
the script runs with dash. Most common ones are usage of == instead of =
and for with arrays (not lists).