So I’ve been going somewhat round in circles trying to meet dependancies.
With some help from the community I now know how to provide required dependencies via stage-packages.
The problem is that I’m using a remote part via the ‘after’ clause.
The error I’m getting seems to be suggesting that the remote part is missing libc6.
You can seem my snapcraft.yaml here
This is the remote part I’m using:
The error I’m getting is:
'libc6' is required inside the snap for this part to work properly.
Add it as a `stage-packages` entry for this part.
You can see from my snapcraft yaml that I have libc6 as a stage-package for the part that includes tomcat by ‘after’.
war/irrigation-1.0-SNAPSHOT.war : webapps/pi-gation.war
The problem seems to be that the stage-packages clause for libc6 in the part doesn’t seem to meet the requirements of tomcat and the remote tomcat part is missing its own stage-packages clause.
So what is the correct solution?