summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2021-10-28 14:17:14 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-10-30 18:56:47 +0100
commitd10ce1059dea4746012bb361c731d0b8b8a50c80 (patch)
tree01c6cb378b0d502496503c9be9dacdf0cbdddab9
parent6370dd2b42f586aab65f4a4da651c4e7204d32d8 (diff)
downloadpoky-d10ce1059dea4746012bb361c731d0b8b8a50c80.tar.gz
archiver: Default to xz compresison instead of gz
We should default to xz or zstd instead of gz, pick xz for now as it is more tested. (From OE-Core rev: 658f274c161ec67b91f133ee9b5c3767c2925787) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/archiver.bbclass2
-rw-r--r--meta/lib/oeqa/selftest/cases/archiver.py6
-rw-r--r--meta/lib/oeqa/selftest/cases/buildoptions.py4
3 files changed, 6 insertions, 6 deletions
diff --git a/meta/classes/archiver.bbclass b/meta/classes/archiver.bbclass
index 411d459ed0..549f3311e4 100644
--- a/meta/classes/archiver.bbclass
+++ b/meta/classes/archiver.bbclass
@@ -51,7 +51,7 @@ ARCHIVER_MODE[diff-exclude] ?= ".pc autom4te.cache patches"
51ARCHIVER_MODE[dumpdata] ?= "0" 51ARCHIVER_MODE[dumpdata] ?= "0"
52ARCHIVER_MODE[recipe] ?= "0" 52ARCHIVER_MODE[recipe] ?= "0"
53ARCHIVER_MODE[mirror] ?= "split" 53ARCHIVER_MODE[mirror] ?= "split"
54ARCHIVER_MODE[compression] ?= "gz" 54ARCHIVER_MODE[compression] ?= "xz"
55 55
56DEPLOY_DIR_SRC ?= "${DEPLOY_DIR}/sources" 56DEPLOY_DIR_SRC ?= "${DEPLOY_DIR}/sources"
57ARCHIVER_TOPDIR ?= "${WORKDIR}/archiver-sources" 57ARCHIVER_TOPDIR ?= "${WORKDIR}/archiver-sources"
diff --git a/meta/lib/oeqa/selftest/cases/archiver.py b/meta/lib/oeqa/selftest/cases/archiver.py
index 0194ae9f69..75195241b7 100644
--- a/meta/lib/oeqa/selftest/cases/archiver.py
+++ b/meta/lib/oeqa/selftest/cases/archiver.py
@@ -163,21 +163,21 @@ class Archiver(OESelftestTestCase):
163 Test that the archiver works with `ARCHIVER_MODE[src] = "patched"`. 163 Test that the archiver works with `ARCHIVER_MODE[src] = "patched"`.
164 """ 164 """
165 165
166 self._test_archiver_mode('patched', 'selftest-ed-native-1.14.1-r0-patched.tar.gz') 166 self._test_archiver_mode('patched', 'selftest-ed-native-1.14.1-r0-patched.tar.xz')
167 167
168 def test_archiver_mode_configured(self): 168 def test_archiver_mode_configured(self):
169 """ 169 """
170 Test that the archiver works with `ARCHIVER_MODE[src] = "configured"`. 170 Test that the archiver works with `ARCHIVER_MODE[src] = "configured"`.
171 """ 171 """
172 172
173 self._test_archiver_mode('configured', 'selftest-ed-native-1.14.1-r0-configured.tar.gz') 173 self._test_archiver_mode('configured', 'selftest-ed-native-1.14.1-r0-configured.tar.xz')
174 174
175 def test_archiver_mode_recipe(self): 175 def test_archiver_mode_recipe(self):
176 """ 176 """
177 Test that the archiver works with `ARCHIVER_MODE[recipe] = "1"`. 177 Test that the archiver works with `ARCHIVER_MODE[recipe] = "1"`.
178 """ 178 """
179 179
180 self._test_archiver_mode('patched', 'selftest-ed-native-1.14.1-r0-recipe.tar.gz', 180 self._test_archiver_mode('patched', 'selftest-ed-native-1.14.1-r0-recipe.tar.xz',
181 'ARCHIVER_MODE[recipe] = "1"\n') 181 'ARCHIVER_MODE[recipe] = "1"\n')
182 182
183 def test_archiver_mode_diff(self): 183 def test_archiver_mode_diff(self):
diff --git a/meta/lib/oeqa/selftest/cases/buildoptions.py b/meta/lib/oeqa/selftest/cases/buildoptions.py
index f99881758e..651bb03c7e 100644
--- a/meta/lib/oeqa/selftest/cases/buildoptions.py
+++ b/meta/lib/oeqa/selftest/cases/buildoptions.py
@@ -183,8 +183,8 @@ class ArchiverTest(OESelftestTestCase):
183 deploy_dir_src = get_bb_var('DEPLOY_DIR_SRC') 183 deploy_dir_src = get_bb_var('DEPLOY_DIR_SRC')
184 pkgs_path = g.glob(str(deploy_dir_src) + "/allarch*/xcurs*") 184 pkgs_path = g.glob(str(deploy_dir_src) + "/allarch*/xcurs*")
185 src_file_glob = str(pkgs_path[0]) + "/xcursor*.src.rpm" 185 src_file_glob = str(pkgs_path[0]) + "/xcursor*.src.rpm"
186 tar_file_glob = str(pkgs_path[0]) + "/xcursor*.tar.gz" 186 tar_file_glob = str(pkgs_path[0]) + "/xcursor*.tar.xz"
187 self.assertTrue((g.glob(src_file_glob) and g.glob(tar_file_glob)), "Couldn't find .src.rpm and .tar.gz files under %s/allarch*/xcursor*" % deploy_dir_src) 187 self.assertTrue((g.glob(src_file_glob) and g.glob(tar_file_glob)), "Couldn't find .src.rpm and .tar.xz files under %s/allarch*/xcursor*" % deploy_dir_src)
188 188
189class ToolchainOptions(OESelftestTestCase): 189class ToolchainOptions(OESelftestTestCase):
190 def test_toolchain_fortran(self): 190 def test_toolchain_fortran(self):