bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

strtoimax test still broken


From: Dag-Erling Smørgrav
Subject: strtoimax test still broken
Date: Sun, 07 Apr 2024 14:36:14 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

Hi,

The strtoimax() existence test in m4/strtoimax.m4 has been broken since
its inception in September 2022.  The test is supposed to check if
strtoimax() is available, and provide a replacement if it isn't, but the
condition is inverted, so it provides a replacement if and only if the
function is already available.  This means that bash a) fails to link on
systems that lack strtoimax(), and b) may also fail to link on systems
that do have it, depending on implementation details.

This issue was reported here on 2022-10-01, with a trivial patch (and a
slightly incorrect description):

https://lists.gnu.org/archive/html/bug-bash/2022-10/msg00000.html

A year and a half later, the patch has still not been committed, and
downstream distributions are still having to carry their own patch:

https://cgit.freebsd.org/ports/tree/shells/bash/files/patch-m4_strtoimax.m4
https://sources.debian.org/patches/bash/5.2.15-2/bash-musl.diff/

Can you please deal with this?

DES
-- 
Dag-Erling Smørgrav - des@des.no



reply via email to

[Prev in Thread] Current Thread [Next in Thread]