click-reviewers-tools fails on all python3-based snaps
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Click Reviewers tools (obsolete) |
Invalid
|
Undecided
|
Unassigned | ||
Snapcraft |
Expired
|
Undecided
|
Unassigned |
Bug Description
I'm trying to build a simple python3 app. My snapcraft.yaml file is:
```
name: gmailfilter
version: 0.0.1a
summary: Programmatically filter gmail messages
description: Filter messages in a gmail inbox by writing Python code - obviously!
apps:
gmailfilter:
command: usr/bin/gmailfilter
plugs: [network, network-bind]
parts:
gmailfilter:
plugin: python3
source: <email address hidden>
```
The .snap file built with snapcraft in xenial (version 2.8.4) is installable locally, and works fine. However, upon uploading it it fails review with the following error:
```
package contains external symlinks: usr/lib/
```
I can see that file listed in the snapcraft working directory:
```
$ find . -name "libmvec.*"
./stage/
./stage/
./snap/
./snap/
./parts/
./parts/
```
But it's not a dependency of the application itself (i.e.- grabbing the source and installing it in a virtualenv doesn't pull in that library).
I can only imagine that this is caused by the python3 plugin.
summary: |
- snapcraft python3 plugin generates invalid snaps + click-reviewers-tools fails on all python3-based snaps |
Changed in click-reviewers-tools: | |
status: | New → Invalid |
Changed in snapcraft: | |
status: | New → Triaged |
I've confirmed that this also happens with the 'py3-project' example from the snapcraft git repo.
jdstrand says:
9:14 AM <jdstrand> may I see the review tools error? x86_64- linux-gnu/ libmvec. so lint-snap- v2_external_ symlinks"
9:14 AM <thomi> jdstrand: sure, one sec
9:14 AM <Facu> jdstrand, "package contains external symlinks: usr/lib/
9:14 AM <thomi> beat me to it :D
9:15 AM <jdstrand> right
9:15 AM <jdstrand> that indicates a real problem with your snap
9:15 AM <jdstrand> it is pointing to something outside of itself
9:15 AM <thomi> jdstrand: this is using the example py3-project snap from the snapcraft repo
9:16 AM <jdstrand> sounds like a bug in the snapcraft repo