summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
authorJustin Bronder <jsbronder@cold-front.org>2024-11-04 12:35:57 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-11-05 11:17:17 +0000
commitf700c1b7745e6b3d142f1922005d2f676326ba84 (patch)
tree43f549a46be1c4f893e4d3a2009b37df8fde1857 /bitbake/lib
parent0884c31b1b60f34f3d3db3ab110b4e506bcc9160 (diff)
downloadpoky-f700c1b7745e6b3d142f1922005d2f676326ba84.tar.gz
bitbake: bb/compress: use lz4 instead of lz4c
lz4c has been considered deprecated by upstream since at least 2018 [1] and has been disabled by default recently [2]. openSUSE Tumbleweed is no longer packaging the deprecated version and others will likely follow. Luckily, we're not using any legacy-specific options and, going back as far as Ubuntu 16.04/Fedora 25, both lz4 and lz4cli are installed as part of the same package 1. https://github.com/lz4/lz4/pull/553 2. https://github.com/lz4/lz4/pull/1479 (Bitbake rev: 907472034b344e4eb73cfd43059a413469f52e1c) Signed-off-by: Justin Bronder <jsbronder@cold-front.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/compress/lz4.py4
-rw-r--r--bitbake/lib/bb/tests/compression.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/bitbake/lib/bb/compress/lz4.py b/bitbake/lib/bb/compress/lz4.py
index 88b0989322..2a64681c86 100644
--- a/bitbake/lib/bb/compress/lz4.py
+++ b/bitbake/lib/bb/compress/lz4.py
@@ -13,7 +13,7 @@ def open(*args, **kwargs):
13 13
14class LZ4File(bb.compress._pipecompress.PipeFile): 14class LZ4File(bb.compress._pipecompress.PipeFile):
15 def get_compress(self): 15 def get_compress(self):
16 return ["lz4c", "-z", "-c"] 16 return ["lz4", "-z", "-c"]
17 17
18 def get_decompress(self): 18 def get_decompress(self):
19 return ["lz4c", "-d", "-c"] 19 return ["lz4", "-d", "-c"]
diff --git a/bitbake/lib/bb/tests/compression.py b/bitbake/lib/bb/tests/compression.py
index 95af3f96d7..16c297b315 100644
--- a/bitbake/lib/bb/tests/compression.py
+++ b/bitbake/lib/bb/tests/compression.py
@@ -66,8 +66,8 @@ class CompressionTests(object):
66 66
67class LZ4Tests(CompressionTests, unittest.TestCase): 67class LZ4Tests(CompressionTests, unittest.TestCase):
68 def setUp(self): 68 def setUp(self):
69 if shutil.which("lz4c") is None: 69 if shutil.which("lz4") is None:
70 self.skipTest("'lz4c' not found") 70 self.skipTest("'lz4' not found")
71 super().setUp() 71 super().setUp()
72 72
73 @contextlib.contextmanager 73 @contextlib.contextmanager