Skip to content

capture-libs: Add support for remapping link target

If you don't want to change the link target for all the symlinks that will be created, instead of using --link-target, it is now possible to use the new --remap-link-target and just list the directories that should be located under a different target.


Related issue https://gitlab.steamos.cloud/steamrt/steam-runtime-tools/-/issues/29

Please note that differently to the solution proposed in the issue linked above, I decided to avoid allowing wildcards. In this way we will not have to worry about all the different edge cases that might appear (e.g. what to do with an option like --remap-link-target='/lib*=/run/host/*lib'). Instead it's just a plain find and replace.

Edited by Ludovico de Nittis

Merge request reports