I created a snap package “a-pack” with the following slot:
slots: lib0-1804: interface: content content: lib0-1804 source: read: - $SNAP/lib
Now, I created another snap package, “b-pack” with the following plug:
apps: b-pack: command: bin/b-pack-run plugs: - lib0-1804 environment: LD_LIBRARY-PATH: $SNAP/extra-libs plugs: lib0-1804: interface: content content: lib0-1804 default-provider: a-pack target: $SNAP/extra-libs
a-pack compiles successfully and installs too (with the flags
--devmode --dangerous. But when I try to compile b-pack using
snapcraft, it returns the following error:
Could not install snap defined in plug 'a-pack'. The missing library report may have false positives listed if those libraries are provided by the content snap.
If I remove the plug from
b-pack and all the dependent files, then everything compiles successfully. It can’t be an issue in the
b-pack-run as I tested it separately and it compiles and runs fine.
Can someone guide me, what could possibly be going wrong?