summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorL. E. Segovia <amy@centricular.com>2025-09-11 16:42:15 +0000
committerL. E. Segovia <amy@centricular.com>2025-09-11 22:34:26 +0000
commit525571eccbd541ab6a97793cfdfced14e6e572d8 (patch)
tree346f615a1bde9888b11cad47a2844c7db059da18
parentb7edbf7a24a3ef315b376c09bc9122ccc8c601c6 (diff)
gst-plugins-rs: Remove backup files after meldingHEADmain
On CI, these files end up being cached into storage in the `update_cache` calls. They are only usable for debugging purposes, so a prospective user can either recover the original libraries from the sources/target/release folder, or just by commenting this block. Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1942>
-rw-r--r--recipes/gst-plugins-rs.recipe6
1 files changed, 6 insertions, 0 deletions
diff --git a/recipes/gst-plugins-rs.recipe b/recipes/gst-plugins-rs.recipe
index 4e1f2baa..12ddbee1 100644
--- a/recipes/gst-plugins-rs.recipe
+++ b/recipes/gst-plugins-rs.recipe
@@ -381,6 +381,12 @@ class Recipe(recipe.Recipe):
await shell.async_call(
[dragonfire, '-o', self.workspace_lib, '-f', fmt, *files], cmd_dir=self.config.prefix, logfile=self.logfile, env=self.env
)
+
+ # These end up cached, remove them
+ for f in files:
+ src = Path(self.config.prefix, f)
+ bak = src.with_suffix('.bak')
+ bak.unlink(missing_ok=True)
# CAVEAT: on Apple platforms, compiler_builtins (and any other
# crate mistakenly built with LTO enabled) will contain LLVM
# bitcode, causing usages of eg. stock (pre Xcode 16) nm to emit