#999388 c-icap-modules: bashism in configure script

#999388#5
Date:
2021-11-10 15:33:46 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 if gcc supports -fno-rtti -fno-exceptions... no
     checking for gcc option to produce PIC... -fPIC -DPIC
     checking if gcc PIC flag -fPIC -DPIC works... yes
     checking if gcc static flag -static works... yes
     checking if gcc supports -c -o file.o... yes
     checking if gcc supports -c -o file.o... (cached) yes
     checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
     checking whether -lc should be explicitly linked in... no
     checking dynamic linker characteristics... GNU/Linux ld.so
     checking how to hardcode library paths into programs... immediate
     checking for shl_load... no
     checking for shl_load in -ldld... no
     checking for dlopen... no
     checking for dlopen in -ldl... yes
     checking whether a program can dlopen itself... yes
     checking whether a statically linked program can dlopen itself... no
     checking whether stripping libraries is possible... yes
     checking if libtool supports shared libraries... yes
     checking whether to build shared libraries... yes
     checking whether to build static libraries... no
     ./configure: 14224: Syntax error: Bad fd number
     	tail -v -n \+0 config.log
     ==> config.log <==
     This file contains any messages produced by compilers while

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).