Skip to contentSkip to conversation

meson: accept relative symlinks in "meson introspect --installed" data

PATCH New Paolo Bonzini 1 participant 1 message Dec 16, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 meson: accept relative symlinks in "meson introspect --installed" data

When installing shared libraries, as is the case for libvfio-user.so, Meson will include relative symbolic links in the output of "meson introspect --installed":

  {
    "libvfio-user.so": "/usr/local/lib64/libvfio-user.so",
    ...
  }

In the case of scripts/symlink-install-tree.py, this will be a symbolic link to a symbolic link but, in any case, there is no issue in creating it.

---
 scripts/symlink-install-tree.py | 1 -
 1 file changed, 1 deletion(-)
scripts/symlink-install-tree.py +0 -1
index a5bf0b0d6d7c..67cb86dd523a 100644
@@ -17,7 +17,6 @@ def destdir_join(d1: str, d2: str) -> str:
 out = subprocess.run([*introspect.split(' '), '--installed'],
                      stdout=subprocess.PIPE, check=True).stdout
 for source, dest in json.loads(out).items():
-    assert os.path.isabs(source)
     bundle_dest = destdir_join('qemu-bundle', dest)
     path = os.path.dirname(bundle_dest)
     try:
Signature · 1 line
2.38.1