Build with snap manifest failed with /tmp as tmpfs

Hi forum!

when building snap with stage-packages, SNAPCRAFT_BUILD_ENVIRONMENT=host and SNAPCRAFT_BUILD_INFO=1, it seems snapcraft wants to set user extended attributes on extracted files in /tmp. Since my /tmp is mounted as tmpfs, user extended attributes are not permitted according to tmpfs man page.

Did I miss something here?

The snapcraft.yaml I used:

name: my-snap-name # you probably want to 'snapcraft register <name>'
base: core20 # the base snap is the execution environment for this snap
version: '0.1' # just for humans, typically '1.2+git' or '1.3.2'
summary: Single-line elevator pitch for your amazing snap # 79 char long summary
description: |
  This is my-snap's description. You have a paragraph or two to tell the
  most important story about your snap. Keep it under 100 words though,
  we live in tweetspace and your description wants to look good in the snap
  store.

grade: devel # must be 'stable' to release into candidate/stable channels
confinement: strict # use 'strict' once you have the right plugs and slots

parts:
  my-part:
    # See 'snapcraft plugins'
    plugin: nil
    stage-packages:
      - hello

apps:
  hello:
    command: hello

It failed with:

Sorry, an error occurred in Snapcraft:
Unable to write extended attribute.

Recommended resolution:
Check that your filesystem supports extended attributes.

Detailed information:
Failed to write attribute ‘user.snapcraft.origin_stage_package’ on ‘/tmp/tmp6_fmrax4deb-extract.
/usr/share/man/man1/hello.1.gz’.

Cheers,
Jian