Skip to content
  • Simon McVittie's avatar
    capture-libs: Implement path: and path-match: modes · a5b810ac
    Simon McVittie authored
    
    
    In particular this is enough to capture the dependencies of the
    Mesa DRI drivers:
    
        $ capsule-capture-libs --dest=lib \
          only-dependencies:path-match:"/usr/lib/x86_64-linux-gnu/dri/*.so"
        $ ls lib
        libbsd.so.0
        libc.so.6
        libdl.so.2
        libdrm_amdgpu.so.1    # etc.
    
    and the drivers themselves:
    
        $ capsule-capture-libs --dest=mesa-drivers \
          no-dependencies:path-match:"/usr/lib/x86_64-linux-gnu/dri/*.so"
        $ ls mesa-drivers
        i915_dri.so   # etc.
    
    in separate batches.
    
    Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
    a5b810ac