meson: remove meson-created megadrivers symlinks
authorEric Engestrom <eric.engestrom@intel.com>
Tue, 9 Apr 2019 08:28:17 +0000 (09:28 +0100)
committerEric Engestrom <eric@engestrom.ch>
Thu, 11 Apr 2019 12:40:16 +0000 (12:40 +0000)
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=110356
Fixes: aa7afe324c2092fb31f9 "meson: strip rpath from megadrivers"
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Tested-by: Mike Lothian <mike@fireburn.co.uk>
Reviewed-by: Eric Anholt <eric@anholt.net>
bin/install_megadrivers.py

index 31636f7244cf727929b175eb8c3848fcf3e775d3..470137e0c1dfc42d69e308c474a3c39db2f89464 100644 (file)
@@ -69,7 +69,14 @@ def main():
                 name, ext = os.path.splitext(name)
         finally:
             os.chdir(ret)
+
+    # Remove meson-created master .so and symlinks
     os.unlink(master)
+    name, ext = os.path.splitext(master)
+    while ext != '.so':
+        if os.path.lexists(name):
+            os.unlink(name)
+        name, ext = os.path.splitext(name)
 
 
 if __name__ == '__main__':