|| ||Raphael Geissert <geissert-AT-debian.org> |
|| ||debian-devel-AT-lists.debian.org |
|| ||RFH: bashisms in configure script |
|| ||Tue, 25 May 2010 16:13:36 -0500|
|| ||Article, Thread
dash recently added support for the magic variable $LINENO, which was the last
piece to make it POSIX compliant. However, this change made the autoconf-
generated configure scripts use dash to execute the script's code. Without
support for LINENO, configure scripts exec to bash automatically.
With this behaviour change, bashisms in configure scripts are now making
packages FTBFS. Due to some bugs in checkbashisms, most of the code in
configure scripts was skipped, making those bashisms invisible.
An archive-wide check of the source packages gives an estimate of over 3425
source packages with bashisms in *any file*. This doesn't necessarily mean that
we are drowned by bashisms, as some of those may already be fixed by Debian-
provided packages or might affect unused code (either at the build process or
code not included in the final binary package.)
A rough estimate of the number of source packages with bashisms in configure
scripts (false positives included and not necessarily autoconf's configure
script) is 1504.
1. If your name is on the list at  please check at  the .dsc file that
corresponds to the source packages you co-/maintain, review and fix. The .dsc
files contain checkbashisms' output.
2. Do the same for other packages in the list: review, file report, and try
to provide a patch/NMU.
3. Do the same for other packages in  (which are not necessarily in the
list below): review, file report, try to provide a patch/NMU.
Please encourage others to work on these issues.
Normally I would process the results and file the bug reports myself but I
don't have and won't have time to do it any time soon. I've already tried to
find some time yesterday and today to work on checkbashisms to come up with bug
fixes, and am probably going to find a bit more to only fast-process the
results of a new run against the binary packages.
Thanks in advance!
(before anybody asks/complains, the list of maintainers is too big to be
attached to the email, even if compressed.)
 Please set "User: firstname.lastname@example.org" and "Usertags: goal-
dash" when filing the report. Severity should be important (or serious if it
makes the package FTBFS.)
 See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=497489#13 and
Raphael Geissert - Debian Developer
www.debian.org - get.debian.net
to post comments)