Package: bash
Source: bash
Version: 5.2.21-2.1+b1
Severity: normal
Tags: patch, upstream


Dear Debian support,
latest debian testing package bash provides wrong output when using built-in 
“printf” - steps to reproduce:

LC_ALL=C bash -c 'printf "%.0f\n” 4.3’
0

previous version, 5.2.21-2.1 release in June is not affected:
LC_ALL=C bash -c 'printf "%.0f\n” 4.3’
4

given that no modifications to source code have been introduced between the two 
versions, this issue might be related to compilation against newer glibc - 
recompiling source package exhibits the same printf breakage (glibc=2.39.6)

This issue might be the tracked by: 
https://gitlab.archlinux.org/archlinux/packaging/packages/bash/-/issues/3 and 
can be solved by integrating "bash-5.2_p21-configure-strtold.patch” which can 
be found @ 
https://packages.hetzner.com/gentoo-portage/app-shells/bash/files/bash-5.2_p21-configure-strtold.patch
 

I already tested it by integrating and recompiling source and binary package to 
5.2.21-2.1+b2 locally: attached for your convenience you can find 
bash-5.2_p21-configure-strtold.diff converted and ready to be dropped in 
“debian/patches”

Hope it helps
Thank you for your support

Alessandro Lannocca

Attachment: bash-5.2_p21-configure-strtold.diff
Description: Binary data

Reply via email to