Build failure with snapcraft 4.6.3

Hi,

it seems I’m having failure while building glpi-agent with snapcraft 4.6.3. The failure can be seen on github there: https://github.com/glpi-project/glpi-agent/runs/2474260554 but I also tested locally on my Fedora33 and I obtains the same error.

It was working with snapcraft 4.6.

Seeing Revert snapcraft to older version?, I managed to try again with 4.6 on my F33 and the build just works as expected. So it seems to me something goes wrong in 4.6.1, 4.6.2 or 4.6.3. There’s no release note on Snapcraft releases notes so I don’t see what could be wrong in my snapcraft.yaml.

I submitted the problem via the local run as proposed on the console but maybe someone has some other tips I can try to help fix the problem.

Nothing obvious comes to mind, but running a build myself to see what happens…

It seems indeed I need to clean some folders from the stage sections.

In my stage sections I had these few lines:

  • etc/ld.so.conf.d
  • lib64

Removing them seems to fix the problem. I’m not sure this is finally related to snapcraft, maybe simply these folders were removed from the packages I needed.