Thanks to visit codestin.com
Credit goes to github.com

Skip to content

extremely slow scan for "copyright" files #278

Open
@mralusw

Description

@mralusw

First of all, thank you for DISABLE_COPYRIGHT_FILES_DEPLOYMENT, it really saves the day!

Right now each library / executable is scanned running a separate dpkg -S. Then linuxdeploy checks for /usr/share/doc/PKG/copyright. This is extremely slow. dpkg -S actually supports multiple query paths in a single call, in case you want to batch the calls.

Another solution would be to add an --output-deployed-files FNAME to output the list of files for which the copyright files need to be found. After all, linuxdeploy has valuable logic to include / exclude deployed files from lookup.

I currently extract the AppImage created by linuxdeploy, list all .so libraries, look them up all at once in a single dpkg -S operation, and copy the results as appropriate. But mine is a simple case.

I've noticed that there already is a framework for deferred operations, so maybe that can be co-opted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions