Hi Paul, I noticed this while working on the bzip2 CVE-2026-42250 fix for scarthgap — master, wrynose already have this bug fix on the same bzip2 1.0.8,
so I figured it made sense to bring scarthgap in line. It's a bug fix — bzip2 --version hangs when output is redirected because it falls through to reading stdin. The patch is minimal and only affects --version exit behaviour. Best regards, Jaipaul On 2026-07-20, 21:14, "Paul Barker" <[email protected]> wrote: On Mon, 2026-07-20 at 19:22 +0200, Yoann Congal via lists.openembedded.org wrote: > From: Hongxu Jia <[email protected]<mailto:[email protected]>> > > According to [1] > > As of the current version 1.0.8, bzip2 --version will print version > info but it will also continue compressing stdin: > > $ ./bzip2 --version > bzip2, a block-sorting file compressor. Version 1.0.8, 13-Jul-2019. > > Copyright (C) 1996-2019 by Julian Seward. > > This program is free software; [...] > > bzip2: I won't write compressed data to a terminal. > bzip2: For help, type: `bzip2 --help'. > > Debian (and its downstreams like Ubuntu) will patch this out [2], > making the < /dev/null unnecessary, port a part of debian patch > to fix the issue > > [1] > https://stackoverflow.com/questions/59757176/why-using-dev-null-with-a-program-like-bzip2 > [2] > https://sources.debian.org/src/bzip2/1.0.8-6/debian/patches/20-legacy.patch/ > > Signed-off-by: Hongxu Jia > <[email protected]<mailto:[email protected]>> > Signed-off-by: Mathieu Dubois-Briand > <[email protected]<mailto:[email protected]>> > Signed-off-by: Richard Purdie > <[email protected]<mailto:[email protected]>> > (cherry picked from commit ae4fe4263ba9d372f9b9e80df4ec4697b51c1f9b) > Signed-off-by: Jaipaul Cheernam > <[email protected]<mailto:[email protected]>> > Signed-off-by: Yoann Congal > <[email protected]<mailto:[email protected]>> Hi Jaipaul, What's the motivation for backporting this now? Applying this to scarthgap will change the behaviour of bzip2 on a stable branch, so we'd need a strong reason to do that. Best regards, -- Paul Barker Regards, Jaipaul Cheernam 🔗 EST Website<https://www.est.tech/> 🔗 EST LinkedIn<https://www.linkedin.com/company/ericsson-software-technology/>
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#241511): https://lists.openembedded.org/g/openembedded-core/message/241511 Mute This Topic: https://lists.openembedded.org/mt/120362912/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
