python based package created using snapcraft fails review checks due to external symlink

Bug #1511440 reported by Ricardo Kirkner on 2015-10-29
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
Status tracked in Trunk
1.x
High
Kyle Fazzari
Trunk
High
Kyle Fazzari

Bug Description

When creating a snap package based on python2, the package is successfully built, but upon uploading it to the store, the review checks fail with

package contains external symlinks: /tmp/clickreview-kb8ua64p/usr/lib/python2.7/site-packages lint_external_symlinks

Attached are the files necessary to reproduce the build

As suggested by Sergio, adding the following to the snapcraft.yaml file produces a package that passes the review checks

parts:
  flexget:
    ...
    snap:
      - -usr/lib/python2.7/site-packages
      - -usr/lib/python2.7/sitecustomize.py

summary: - python based package created using external symlink
+ python based package created using external symlink fails review checks
summary: - python based package created using external symlink fails review checks
+ python based package created using snapcraft fails review checks due to
+ external symlink
Leo Arias (elopio) wrote :
Changed in snapcraft:
status: New → Invalid
Changed in snapcraft:
status: Invalid → Triaged
Sergio Schvezov (sergiusens) wrote :

With curdir /tmp/tmp.o6gXji4fP4

lrwxrwxrwx 3 sergiusens sergiusens 39 nov 26 13:19 snap/usr/lib/python2.7/sitecustomize.py -> ../../../etc/python2.7/sitecustomize.py
lrwxrwxrwx 3 sergiusens sergiusens 73 nov 26 13:20 snap/usr/lib/python2.7/site-packages -> /tmp/tmp.o6gXji4fP4/parts/flexge
t/install/usr/lib/python2.7/dist-packages

Changed in snapcraft:
importance: Undecided → High
assignee: nobody → Sergio Schvezov (sergiusens)
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers