[Mesa-dev] [PATCH 2/3] meson: use relative paths in megadriver symlinks

Greg V greg at unrelenting.technology
Tue Mar 6 19:16:04 UTC 2018


e.g. libvdpau_radeonsi.so(.1(.0)) were pointing to the absolute
build-time path of libvdpau_radeonsi.so.1.0.0, which caused trouble
when packaging the libraries.
---
 bin/install_megadrivers.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/install_megadrivers.py b/bin/install_megadrivers.py
index 86bfa35918..ce947b4332 100755
--- a/bin/install_megadrivers.py
+++ b/bin/install_megadrivers.py
@@ -58,7 +58,7 @@ def main():
             while ext != '.so':
                 if os.path.exists(name):
                     os.unlink(name)
-                os.symlink(driver, name)
+                os.symlink(os.path.relpath(driver), name)
                 name, ext = os.path.splitext(name)
         finally:
             os.chdir(ret)
-- 
2.16.2



More information about the mesa-dev mailing list