#999379 amoebax: bashism in configure script

Package:
src:amoebax
Source:
amoebax
Submitter:
Andrej Shadura
Date:
2021-11-10 15:30:06 UTC
Severity:
normal
Tags:
#999379#5
Date:
2021-11-10 15:27:35 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:

     checking for SDL_mixer... yes
     configure: creating ./config.status
     config.status: creating Makefile
     config.status: creating autopackage/Makefile
     config.status: creating autopackage/default.apspec
     config.status: creating data/Makefile
     config.status: creating data/InfoPlist.strings
     config.status: creating data/Info.plist
     config.status: creating data/AmoebaxMain.nib/Makefile
     config.status: creating data/fonts/Makefile
     config.status: creating data/graphics/Makefile
     config.status: creating data/graphics/gp2x/Makefile
     config.status: creating data/music/Makefile
     config.status: creating data/sfx/Makefile
     config.status: creating doc/Doxyfile
     config.status: creating doc/Makefile
     config.status: creating m4/Makefile
     config.status: creating src/Makefile
     config.status: creating config.h
     config.status: executing depfiles commands
     ./config.status: 1103: shift: can't shift that many
     	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).