summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Bronder <jsbronder@cold-front.org>2024-11-06 14:06:42 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-11-07 22:17:24 +0000
commit7626a6b4c0785fae14b09c0e5d35787ba5911c5a (patch)
treeb076c77d5237f92af7ca82f052f28148dc4cc8f4
parentfc027ef55fa5e03b6fd6241161fa46b3e1bd10d2 (diff)
downloadpoky-7626a6b4c0785fae14b09c0e5d35787ba5911c5a.tar.gz
barebox: 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. Going back as far as Ubuntu 16.04/Fedora 25, both lz4 and lz4c are installed as part of the same package so switching should be safe. 1. https://github.com/lz4/lz4/pull/553 2. https://github.com/lz4/lz4/pull/1479 Upstream-Status: Submitted [http://lists.infradead.org/pipermail/barebox/2024-November/048491.html] (From OE-Core rev: d25c027c6c5ca5cc4b93d3dc394d5bbae15dbafc) Signed-off-by: Justin Bronder <jsbronder@cold-front.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-bsp/barebox/barebox/0001-lib-lz4-use-lz4-instead-of-lz4c.patch35
-rw-r--r--meta/recipes-bsp/barebox/barebox_2024.09.0.bb4
2 files changed, 38 insertions, 1 deletions
diff --git a/meta/recipes-bsp/barebox/barebox/0001-lib-lz4-use-lz4-instead-of-lz4c.patch b/meta/recipes-bsp/barebox/barebox/0001-lib-lz4-use-lz4-instead-of-lz4c.patch
new file mode 100644
index 0000000000..55d4a4556b
--- /dev/null
+++ b/meta/recipes-bsp/barebox/barebox/0001-lib-lz4-use-lz4-instead-of-lz4c.patch
@@ -0,0 +1,35 @@
1From 24839df617aef8099e4d1ba3fc47a04c52c0cf75 Mon Sep 17 00:00:00 2001
2From: Justin Bronder <jsbronder@cold-front.org>
3Date: Wed, 6 Nov 2024 11:59:40 -0500
4Subject: [PATCH] lib: lz4: use lz4 instead of lz4c
5
6lz4c has been considered deprecated by upstream since at least 2018 [1]
7and has been disabled by default recently [2]. openSUSE Tumbleweed is
8no longer packaging the deprecated version and others will likely
9follow.
10
11Going back as far as Ubuntu 16.04/Fedora 25, both lz4 and lz4c are
12installed as part of the same package so switching should be safe.
13
141. https://github.com/lz4/lz4/pull/553
152. https://github.com/lz4/lz4/pull/1479
16
17Upstream-Status: Submitted [http://lists.infradead.org/pipermail/barebox/2024-November/048491.html]
18Signed-off-by: Justin Bronder <jsbronder@cold-front.org>
19---
20 scripts/Makefile.lib | 2 +-
21 1 file changed, 1 insertion(+), 1 deletion(-)
22
23diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib
24index 1881e3c1..1052bcee 100644
25--- a/scripts/Makefile.lib
26+++ b/scripts/Makefile.lib
27@@ -492,7 +492,7 @@ cmd_lzo = (cat $(filter-out FORCE,$^) | \
28
29 quiet_cmd_lz4 = LZ4 $@
30 cmd_lz4 = (cat $(filter-out FORCE,$^) | \
31- lz4c -l -c1 stdin stdout && $(call size_append, $(filter-out FORCE,$^))) > $@ || \
32+ lz4 -l --best stdin stdout && $(call size_append, $(filter-out FORCE,$^))) > $@ || \
33 (rm -f $@ ; false)
34
35 %.lz4: %
diff --git a/meta/recipes-bsp/barebox/barebox_2024.09.0.bb b/meta/recipes-bsp/barebox/barebox_2024.09.0.bb
index d2a3d4ebd1..4b24ab945e 100644
--- a/meta/recipes-bsp/barebox/barebox_2024.09.0.bb
+++ b/meta/recipes-bsp/barebox/barebox_2024.09.0.bb
@@ -11,5 +11,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=f5125d13e000b9ca1f0d3364286c4192"
11 11
12inherit barebox 12inherit barebox
13 13
14SRC_URI = "https://barebox.org/download/barebox-${PV}.tar.bz2" 14SRC_URI = "https://barebox.org/download/barebox-${PV}.tar.bz2 \
15 file://0001-lib-lz4-use-lz4-instead-of-lz4c.patch \
16 "
15SRC_URI[sha256sum] = "4d4ea7e232aeba2b3cb9ccf0dbf8cd8e01c65b6c615f64c3bd0c4f24f23a47da" 17SRC_URI[sha256sum] = "4d4ea7e232aeba2b3cb9ccf0dbf8cd8e01c65b6c615f64c3bd0c4f24f23a47da"