dylibs in 1.22.2 MacOS package not relocatable due to dependency on liblzma.5.dylib from homebrew
Few dylibs in the .pkg installers are not 'relocatable' since they link to 'liblzma.5.dylib' using absolute install names rather than '@rpath'-relative install names.
For example, 'libavcodec.59.dylib' has a link to '/usr/local/opt/xz/lib/liblzma.5.dylib':
mukilan@macpro-intel-01 servo % otool -L /Library/Frameworks/GStreamer.framework/Versions/1.0/lib/libavcodec.59.dylib
/Library/Frameworks/GStreamer.framework/Versions/1.0/lib/libavcodec.59.dylib:
@rpath/libavcodec.59.18.100.dylib (compatibility version 59.0.0, current version 59.18.100)
@rpath/lib/libswresample.4.dylib (compatibility version 4.0.0, current version 4.3.100)
@rpath/lib/libavutil.57.dylib (compatibility version 57.0.0, current version 57.17.100)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1319.0.0)
/usr/local/opt/xz/lib/liblzma.5.dylib (compatibility version 10.0.0, current version 10.0.0)
@rpath/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.0.0)
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 1953.255.0)
/System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo (compatibility version 1.2.0, current version 1.5.0)
/System/Library/Frameworks/CoreMedia.framework/Versions/A/CoreMedia (compatibility version 1.0.0, current version 1.0.0)
'libavformat.59.dylib' also has the same issue. I believe both of these dylibs are dependencies of the 'libgstlibav.dylib' plugin.
Because of the absolute install names, the plugins can't be loaded without installing the 'xz' package from Homebrew. In addition to introducing dependency on Homebrew package, it also breaks on Apple Silicon macs as the prefix for Homebrew is '/opt/homebrew'.