Skip to content

Build error: meson.build:334:2: ERROR: Sandbox violation: Tried to grab file 70-nvmf-autoconnect.conf outside current (sub)project. #2960

@martin-belanger

Description

@martin-belanger

When nvme-cli is used as a subproject of another meson project (e.g. nvme-stas), we get this error when we try to build:

meson.build:334:2: ERROR: Sandbox violation: Tried to grab file 70-nvmf-autoconnect.conf outside current (sub)project.

I found that the problem is related to using a separate data_install() when one could have just used the install argument of configure_file(). In fact, data_install() should only be used to install static sources files and not to install generated files from configure_file().

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