poky/meta/recipes-extended/bzip2
Hongxu Jia 8d6a455919 bzip2: fix 'bzip2 --version > /tmp/aaa 2>&1' hang
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/

(From OE-Core rev: ae4fe4263ba9d372f9b9e80df4ec4697b51c1f9b)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-11-18 22:09:02 +00:00
..
bzip2 bzip2: fix 'bzip2 --version > /tmp/aaa 2>&1' hang 2024-11-18 22:09:02 +00:00
bzip2_1.0.8.bb bzip2: fix 'bzip2 --version > /tmp/aaa 2>&1' hang 2024-11-18 22:09:02 +00:00