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

Bug #1511440 reported by Ricardo Kirkner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
Status tracked in Trunk
1.x
Fix Released
High
Kyle Fazzari
Trunk
Fix Released
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

Revision history for this message
Ricardo Kirkner (ricardokirkner) wrote :
Revision history for this message
Ricardo Kirkner (ricardokirkner) wrote :
Revision history for this message
Ricardo Kirkner (ricardokirkner) wrote :

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
Revision history for this message
Leo Arias (elopio) wrote :
Changed in snapcraft:
status: New → Invalid
Changed in snapcraft:
status: Invalid → Triaged
Revision history for this message
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)
Revision history for this message
Kyle Fazzari (kyrofa) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.