Skip to contentSkip to conversation

uninative: remove unneeded call to sparse copy

PATCH New Stephano Cetola 1 participant 1 message Mar 10, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 uninative: remove unneeded call to sparse copy

As of this commit:

39f5a05152aa0c3503735e18dd3b4c066b284107

patchelf no longer inflates file sizes. Since the files are no longer inflated by patchelf, we can skip using cp with the --sparse option. More details as to how patchelf has changed are available in that commit log.

---
 meta/classes/uninative.bbclass | 3 ---
 1 file changed, 3 deletions(-)
meta/classes/uninative.bbclass +0 -3
index 0d1063a13c..ee4ab20c17 100644
@@ -122,7 +122,4 @@ python uninative_changeinterp () {
                 continue
 
             subprocess.check_output(("patchelf-uninative", "--set-interpreter", d.getVar("UNINATIVE_LOADER"), f), stderr=subprocess.STDOUT)
-            subprocess.check_output(("cp", "--sparse=always", f, f + ".sparse"), stderr=subprocess.STDOUT)
-            os.unlink(f)
-            os.rename(f + ".sparse", f)
 }
Signature · 1 line
2.12.0