This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --5xreRZfCDi73hNaeh2cD8DbdFE3rbxUKl
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable
On 11/10/21 12:50 PM, Andrej Shadura wrote:
On Wed, 10 Nov 2021, at 19:18, Sam Hartman wrote:
I understand that it's generally better to fix bashisms in configure
scripts.
Is it possible to force autoconf to prefer bash for a given configure
script if it's difficult or undesirable to fix bashisms in a configure
script?
Yes, passing CONFIG_SHELL=/bin/bash to configure with do the thing.
Can we just enable LINENO in dash then, let the other packages FTBFS,
and people who care about the packages that FTBFS can either:
A) Fix the bashisms, or
B) Add CONFIG_SHELL=/bin/bash to their ./configure invocation.
bash is currently Essential, so there's no need for a Build-Depends on
bash for option B right now.
A might be easy, and B is definitely trivial.
It sounds like there are real benefits to enabling LINENO in dash.
LINENO support is apparently required by POSIX, so this fixes dash in
that regard (582952 comment #10) and for those packages using autoconf
without bashisms, dash will speed them up (842242 comment #5).
Bug #582952 (the first time LINENO was enabled in dash) was from 2010. I understand reverting the change to dash if it was near a release. But
that's not the case right now and at this point, it's been ELEVEN YEARS.
It's time to move forward.
--
Richard
--5xreRZfCDi73hNaeh2cD8DbdFE3rbxUKl--
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEE1Ot9lOeOTujs4H+U+HlhmcBFhs4FAmGMGo8ACgkQ+HlhmcBF hs6coBAAh5Z8zqXaLswsQpWDgx+IATqpbJmrH59IOIr2F080F2GOZWx2q6MsKTQW 2p+lV8ztKU3YTXjFvnobq6mI+uYU36xrG9OthjkUL5usKCPK8lYZAylcV+Mmn9S6 NP7T/BJVGOcP5c593vr6fb+tEibEkcFnhIp3s1tPizn8oJAPaIBLSSMcMIsNw1i+ Q+5PgcaCBtC2oVStI61VB2qqdpPdcTM3+DQLbwMeTdZrY4XSsQCBexNpH6C5MONL eUL2VMRW44fvvT7ll4MEQjLl5lvnn9u3WA6DL0Y9MUm2U8B1ik3wQy0H3B44otgQ LEQQ1SE0x69YGwBNl22l8e68KwddSVguEfhvt+FUFxMwrzeVcfp5cFbVz8zxe53a b2CFdtoPGKNO4gOfi6aheSBHuOE3uMKIvpmvUl+ThyUEdRACLlICKs8f5ztiDnlY wZ9KNXEbTM79iviqAKU4dVWOuEsJARuC1KEcmrDFdM2xBOzqP/O96HMuPsMWRwah lab7CvBc/0SeynccEiUeA+BRaKS9tOYwsmHCNW0/DQE0l6tjMjW2mqIC9ldqUb0z L/f91dcyS6nvjnD2FugpspAgL9xdnbRsdfI0HTQO9aL4m81yxdfpIG+UmtwAmdFy aMcWIJKbfwDqER3A8L7o9zCEsgJoH3HMjDcAhITU3+SpafUHrMk=
=vEJI
-----END PGP SIGNATURE-----
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)