diff options
author | L. E. Segovia <amy@centricular.com> | 2023-08-23 14:14:22 -0300 |
---|---|---|
committer | L. E. Segovia <amy@centricular.com> | 2023-12-03 11:47:13 -0300 |
commit | a18486eda51d68bd98aaa8ece3acdddfb92a95c9 (patch) | |
tree | 3dbda3872175f849c4e523c5d8dbcb2e8d479b41 /recipes | |
parent | 53e03a30f7b33212435b066f97750ed5a63e81e4 (diff) |
gst-plugins-rs: Test if there's a .dll.a before attempting the rename fix
In https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1299
these were disabled, so the post_install step would fail without
warning.
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1255>
Diffstat (limited to 'recipes')
-rw-r--r-- | recipes/gst-plugins-rs.recipe | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/recipes/gst-plugins-rs.recipe b/recipes/gst-plugins-rs.recipe index 058704e0..ba58a2e3 100644 --- a/recipes/gst-plugins-rs.recipe +++ b/recipes/gst-plugins-rs.recipe @@ -150,6 +150,7 @@ class Recipe(recipe.Recipe): src = os.path.join(self.config.prefix, d, f'{name[3:]}') dst = os.path.join(self.config.prefix, f) os.replace(src, dst) - # .dll.a also needs renaming - os.replace(src + '.a', dst + '.a') + # if there's a .dll.a it also needs renaming + if os.path.exists(src + '.a'): + os.copy(src + '.a', dst + '.a') super().post_install() |