[BISECTED] Busybox sort regression

Denys Vlasenko vda.linux at googlemail.com
Mon Oct 19 12:49:56 UTC 2015


Fixed in git, will be in 1.24.1:

http://busybox.net/downloads/fixes-1.24.0/busybox-1.24.0-sort.patch

On Sat, Oct 17, 2015 at 11:08 AM, Aaro Koskinen <aaro.koskinen at iki.fi> wrote:
> Hi,
>
> Current busybox git breaks glibc builds because of "sort" regression.
> Bisected to:
>
> commit 8aa7cf305ba5133721aa9852b398cbf1867fc857
> Author: Denys Vlasenko <vda.linux at googlemail.com>
> Date:   Sat Sep 19 22:06:40 2015 +0200
>
>     sort: fix -kN,M handling (was including last separator into the comparison)
>
> This breaks scripts/versionlist.awk in the glibc source tree (it calls
> external "sort" program). Simplified reproducer:
>
> Try the below input:
>
> ----->8-----
> GLIBC_2.1
> GLIBC_2.1.1
> GLIBC_2.2
> GLIBC_2.2.1
> GLIBC_2.10
> GLIBC_2.20
> GLIBC_2.21
> ----->8-----
>
> with "sort -u -t. -k 1,1 -k 2n,2n -k 3".
>
> Output with old busybox: same as input
>
> Output with current (broken) busybox:
>
> ----->8-----
> GLIBC_2.1
> GLIBC_2.10
> GLIBC_2.1.1
> GLIBC_2.20
> GLIBC_2.2.1
> ----->8-----
>
> A.


More information about the busybox mailing list